übungsblatt 2
This commit is contained in:
parent
c9d7939233
commit
3c93339506
19 changed files with 2055 additions and 50 deletions
|
|
@ -1,5 +1,7 @@
|
|||
# Fdb version 4
|
||||
["lualatex"] 1776697900.74979 "/home/never/Documents/InNa/26_SoSe/AGT/agt_exercise/übung_1/agt_übung_1.tex" "agt_übung_1.pdf" "agt_übung_1" 1776697902.55915 0
|
||||
["lualatex"] 1776943071.00209 "agt_übung_1.tex" "agt_übung_1.pdf" "agt_übung_1" 1776943072.74298 0
|
||||
"../ngexrcs.cls" 1776942999.96868 2044 cc75cac272b2a86e50ef3bd66a963cf3 ""
|
||||
"../ngutils.sty" 1776942782.83951 4493 7f39562722b52c0e9a76c17c4438174e ""
|
||||
"/home/never/.texlive2025/texmf-var/luatex-cache/generic/fonts/otl/euler-math.luc" 1770519352.28514 417132 89f085d929a7f52a226e499fed2b660f ""
|
||||
"/home/never/.texlive2025/texmf-var/luatex-cache/generic/fonts/otl/lmroman10-bold.luc" 1770519351.28214 128405 86240d2e88c12243734a13e4bf6704ec ""
|
||||
"/home/never/.texlive2025/texmf-var/luatex-cache/generic/fonts/otl/lmroman10-regular.luc" 1770519350.86413 127322 64667bb671c8def3fa5d85c341ebd817 ""
|
||||
|
|
@ -17,9 +19,6 @@
|
|||
"/home/never/.texlive2025/texmf-var/luatex-cache/generic/fonts/otl/texgyrepagella-regular.luc" 1770519351.40914 310182 64e3ff98a9959bea5d737ee8b9a06ff2 ""
|
||||
"/home/never/.texlive2025/texmf-var/luatex-cache/generic/names/luaotfload-lookup-cache.luc" 1776608606.25376 23014 4a1f49530b644afddd7c9abad44fb6f5 ""
|
||||
"/home/never/.texlive2025/texmf-var/luatex-cache/generic/names/luaotfload-names.luc.gz" 1770519350.80013 381420 8c34679872cd58fe28bd24cc6f0940ba ""
|
||||
"/home/never/Documents/InNa/26_SoSe/AGT/agt_exercise/übung_1/agt_übung_1.tex" 1776697897.66689 304 d56b2c71c7672c3ab6ee2cdcfe258fc5 ""
|
||||
"/home/never/texmf/tex/latex/ngexrcs/ngexrcs.cls" 1776614186.59271 2041 f7d79ac75cecdfbe676fa2a93e60930b ""
|
||||
"/home/never/texmf/tex/latex/ngutils/ngutils.sty" 1776618253.70411 4493 7f39562722b52c0e9a76c17c4438174e ""
|
||||
"/usr/local/texlive/2025/texmf-dist/fonts/opentype/public/euler-math/Euler-Math.otf" 1761682777 433104 26cb5ed06a913ce89a33ff41234f5c7a ""
|
||||
"/usr/local/texlive/2025/texmf-dist/fonts/opentype/public/tex-gyre/texgyreheros-bold.otf" 1257299502 135204 f5f20609880fff666e17267854df804d ""
|
||||
"/usr/local/texlive/2025/texmf-dist/fonts/opentype/public/tex-gyre/texgyreheros-italic.otf" 1257299502 139208 418e1daec3a0c0b2d8ebb349c646ec22 ""
|
||||
|
|
@ -171,14 +170,13 @@
|
|||
"/usr/local/texlive/2025/texmf-var/fonts/map/pdftex/updmap/pdftex.map" 1770517628 5541377 824b1e5beafd2ebda40585373b35bb6b ""
|
||||
"/usr/local/texlive/2025/texmf-var/tex/generic/config/language.dat" 1770517624.99251 6800 99336720d16c8191172704bea65615e7 ""
|
||||
"/usr/local/texlive/2025/texmf-var/web2c/luahbtex/lualatex.fmt" 1770517696 5655839 756767735d369e65a483b47207bff649 ""
|
||||
"agt_übung_1.aux" 1776697902.28891 2429 81986a9a774647930a5ac9e94cda7c51 "lualatex"
|
||||
"agt_übung_1.tex" 1776697897.66689 304 d56b2c71c7672c3ab6ee2cdcfe258fc5 ""
|
||||
"aufgabe_1.tex" 1776697508.46334 1313 9a143a43ac6e7341ab427860198035fe ""
|
||||
"aufgabe_2.tex" 1776697727.20732 2574 4462577f3400843a00f378bf393c326c ""
|
||||
"agt_übung_1.aux" 1776943072.50539 2429 81986a9a774647930a5ac9e94cda7c51 "lualatex"
|
||||
"agt_übung_1.tex" 1776943024.09058 383 7ebaaa039d7287d23b7b487b932e7358 ""
|
||||
"aufgabe_1.tex" 1776703998.38047 1292 93f78c81bfd1373cd3c7f231730eab51 ""
|
||||
"aufgabe_2.tex" 1776699060.19025 2580 a0ca1bea6a4b1f6c64b382a891bc1e2a ""
|
||||
"aufgabe_3.tex" 1776697749.8824 1092 7e430e37e65a2141c25db6271e3e6e91 ""
|
||||
"aufgabe_4.tex" 1776697772.78547 718 3d1c5acc0d22695136e721c12d5042b8 ""
|
||||
"dfs.eps" 1776689817.37668 5896 bfdfa03e5701d0b1d7555aa426023dcf ""
|
||||
"msb.eps" 1776424417.18606 5913 81dafb89427e3a448260b7481993e119 ""
|
||||
"figures.pdf" 1776704841.30975 10235 8eb27faa5a8fa3298021aeccb552f048 ""
|
||||
(generated)
|
||||
"agt_übung_1.aux"
|
||||
"agt_übung_1.log"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
PWD /home/never/Documents/InNa/26_SoSe/AGT/agt_exercise/übung_1
|
||||
INPUT /usr/local/texlive/2025/texmf-var/web2c/luahbtex/lualatex.fmt
|
||||
INPUT /home/never/Documents/InNa/26_SoSe/AGT/agt_exercise/übung_1/agt_übung_1.tex
|
||||
INPUT ./agt_übung_1.tex
|
||||
OUTPUT agt_übung_1.log
|
||||
INPUT /usr/local/texlive/2025/texmf-dist/tex/latex/tex-ini-files/lualatexquotejobname.lua
|
||||
INPUT /usr/local/texlive/2025/texmf-dist/tex/latex/base/ltluatex.lua
|
||||
|
|
@ -61,7 +61,7 @@ INPUT /usr/local/texlive/2025/texmf-dist/tex/luatex/luaotfload/luaotfload-case.l
|
|||
INPUT /usr/local/texlive/2025/texmf-dist/tex/luatex/luaotfload/luaotfload-bcp47.lua
|
||||
INPUT /usr/local/texlive/2025/texmf-dist/tex/latex/l3kernel/expl3.lua
|
||||
INPUT /usr/local/texlive/2025/texmf-dist/tex/luatex/lua-uni-algos/lua-uni-stage-tables.lua
|
||||
INPUT /home/never/texmf/tex/latex/ngexrcs/ngexrcs.cls
|
||||
INPUT ../ngexrcs.cls
|
||||
INPUT /usr/local/texlive/2025/texmf-dist/tex/latex/koma-script/scrartcl.cls
|
||||
INPUT /usr/local/texlive/2025/texmf-dist/tex/latex/koma-script/scrkbase.sty
|
||||
INPUT /usr/local/texlive/2025/texmf-dist/tex/latex/koma-script/scrbase.sty
|
||||
|
|
@ -74,7 +74,7 @@ INPUT /usr/local/texlive/2025/texmf-dist/tex/latex/koma-script/scrsize11pt.clo
|
|||
INPUT /home/never/.texlive2025/texmf-var/luatex-cache/generic/names/luaotfload-names.luc.gz
|
||||
INPUT /home/never/.texlive2025/texmf-var/luatex-cache/generic/fonts/otl/lmroman10-regular.luc
|
||||
INPUT /usr/local/texlive/2025/texmf-dist/tex/latex/koma-script/typearea.sty
|
||||
INPUT /home/never/texmf/tex/latex/ngutils/ngutils.sty
|
||||
INPUT ../ngutils.sty
|
||||
INPUT /usr/local/texlive/2025/texmf-dist/tex/generic/babel/babel.sty
|
||||
INPUT /usr/local/texlive/2025/texmf-dist/tex/generic/babel/luababel.def
|
||||
INPUT /usr/local/texlive/2025/texmf-var/tex/generic/config/language.dat
|
||||
|
|
@ -175,10 +175,10 @@ INPUT /usr/local/texlive/2025/texmf-dist/fonts/tfm/public/cm/cmmi12.tfm
|
|||
INPUT /usr/local/texlive/2025/texmf-dist/fonts/tfm/public/cm/cmmi10.tfm
|
||||
INPUT /usr/local/texlive/2025/texmf-dist/fonts/tfm/public/cm/cmmi7.tfm
|
||||
INPUT ./aufgabe_1.tex
|
||||
INPUT ./msb-eps-converted-to.pdf
|
||||
INPUT ./msb-eps-converted-to.pdf
|
||||
INPUT ./dfs-eps-converted-to.pdf
|
||||
INPUT ./dfs-eps-converted-to.pdf
|
||||
INPUT ./figures.pdf
|
||||
INPUT ./figures.pdf
|
||||
INPUT ./figures.pdf
|
||||
INPUT ./figures.pdf
|
||||
INPUT ./aufgabe_2.tex
|
||||
INPUT /usr/local/texlive/2025/texmf-var/fonts/map/pdftex/updmap/pdftex.map
|
||||
INPUT ./aufgabe_3.tex
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
This is LuaHBTeX, Version 1.22.0 (TeX Live 2025) (format=lualatex 2026.2.8) 20 APR 2026 18:53
|
||||
This is LuaHBTeX, Version 1.22.0 (TeX Live 2025) (format=lualatex 2026.2.8) 23 APR 2026 13:17
|
||||
restricted system commands enabled.
|
||||
**agt_übung_1.tex
|
||||
(./agt_übung_1.tex
|
||||
|
|
@ -39,7 +39,11 @@ Inserting `luaotfload.aux.fixup_fontdata' in `luaotfload.patch_font_unsafe'.
|
|||
Inserting `luaotfload.aux.set_capheight' in `luaotfload.patch_font'.
|
||||
Inserting `luaotfload.aux.set_xheight' in `luaotfload.patch_font'.
|
||||
Inserting `luaotfload.rewrite_fontname' in `luaotfload.patch_font'.
|
||||
Inserting `tracingstacklevels' in `input_level_string'. (./ngexrcs.cls
|
||||
Inserting `tracingstacklevels' in `input_level_string'. (../ngexrcs.cls
|
||||
|
||||
LaTeX Warning: You have requested document class `../ngexrcs',
|
||||
but the document class provides `ngexrcs'.
|
||||
|
||||
Document Class: ngexrcs 2021/12/21 ADS Exercise class
|
||||
(/usr/local/texlive/2025/texmf-dist/tex/latex/koma-script/scrartcl.cls
|
||||
Document Class: scrartcl 2026/02/02 v3.49.2 KOMA-Script document class (article
|
||||
|
|
@ -188,9 +192,13 @@ Package typearea Info: These are the values describing the layout:
|
|||
(typearea) \footskip = 47.6pt
|
||||
(typearea) \baselineskip = 13.6pt
|
||||
(typearea) on input line 15.
|
||||
(./ngutils.sty
|
||||
(../ngutils.sty
|
||||
|
||||
LaTeX Warning: You have requested package `../ngutils',
|
||||
but the package provides `ngutils'.
|
||||
|
||||
Package: ngutils 2025/12/24 Never's LaTeX utils
|
||||
(/usr/local/texlive/2025/texmf-dist/tex/generic/babel/babel.sty
|
||||
(/usr/local/texlive/2025/texmf-dist/tex/generic/babel/babel.sty
|
||||
Package: babel 2026/01/26 v26.2 The multilingual framework for LuaLaTeX, pdfLaT
|
||||
eX and XeLaTeX
|
||||
|
||||
|
|
@ -1298,7 +1306,7 @@ Class scrartcl Info: loading recommended package `bookmark'.
|
|||
(scrartcl) `bookmarkpackage=false' before \begin{document} and
|
||||
(scrartcl) you can avoid this message adding:
|
||||
(scrartcl) \usepackage{bookmark}
|
||||
(scrartcl) before \begin{document} on input line 9.
|
||||
(scrartcl) before \begin{document} on input line 10.
|
||||
(/usr/local/texlive/2025/texmf-dist/tex/latex/bookmark/bookmark.sty
|
||||
Package: bookmark 2023-12-10 v1.31 PDF bookmarks (HO)
|
||||
|
||||
|
|
@ -1313,26 +1321,26 @@ Package babel Info: 'ngerman' activates 'german' shorthands.
|
|||
)
|
||||
\openout1 = agt_übung_1.aux
|
||||
|
||||
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 9.
|
||||
LaTeX Font Info: ... okay on input line 9.
|
||||
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 9.
|
||||
LaTeX Font Info: ... okay on input line 9.
|
||||
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 9.
|
||||
LaTeX Font Info: ... okay on input line 9.
|
||||
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 9.
|
||||
LaTeX Font Info: ... okay on input line 9.
|
||||
LaTeX Font Info: Checking defaults for TS1/cmr/m/n on input line 9.
|
||||
LaTeX Font Info: ... okay on input line 9.
|
||||
LaTeX Font Info: Checking defaults for TU/lmr/m/n on input line 9.
|
||||
LaTeX Font Info: ... okay on input line 9.
|
||||
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 9.
|
||||
LaTeX Font Info: ... okay on input line 9.
|
||||
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 9.
|
||||
LaTeX Font Info: ... okay on input line 9.
|
||||
LaTeX Font Info: Checking defaults for PD1/pdf/m/n on input line 9.
|
||||
LaTeX Font Info: ... okay on input line 9.
|
||||
LaTeX Font Info: Checking defaults for PU/pdf/m/n on input line 9.
|
||||
LaTeX Font Info: ... okay on input line 9.
|
||||
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 10.
|
||||
LaTeX Font Info: ... okay on input line 10.
|
||||
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 10.
|
||||
LaTeX Font Info: ... okay on input line 10.
|
||||
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 10.
|
||||
LaTeX Font Info: ... okay on input line 10.
|
||||
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 10.
|
||||
LaTeX Font Info: ... okay on input line 10.
|
||||
LaTeX Font Info: Checking defaults for TS1/cmr/m/n on input line 10.
|
||||
LaTeX Font Info: ... okay on input line 10.
|
||||
LaTeX Font Info: Checking defaults for TU/lmr/m/n on input line 10.
|
||||
LaTeX Font Info: ... okay on input line 10.
|
||||
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 10.
|
||||
LaTeX Font Info: ... okay on input line 10.
|
||||
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 10.
|
||||
LaTeX Font Info: ... okay on input line 10.
|
||||
LaTeX Font Info: Checking defaults for PD1/pdf/m/n on input line 10.
|
||||
LaTeX Font Info: ... okay on input line 10.
|
||||
LaTeX Font Info: Checking defaults for PU/pdf/m/n on input line 10.
|
||||
LaTeX Font Info: ... okay on input line 10.
|
||||
|
||||
(/usr/local/texlive/2025/texmf-dist/tex/context/base/mkii/supp-pdf.mkii
|
||||
[Loading MPS to PDF converter (version 2006.09.02).]
|
||||
|
|
@ -1357,9 +1365,9 @@ File: epstopdf-sys.cfg 2010/07/13 v1.3 Configuration of (r)epstopdf for TeX Liv
|
|||
e
|
||||
))
|
||||
\c@lstlisting=\count345
|
||||
Package tocbasic Info: setting babel extension for `lol' on input line 9.
|
||||
Package tocbasic Info: setting babel extension for `lol' on input line 10.
|
||||
\scr@dte@lstlisting@maxnumwidth=\skip73
|
||||
Package hyperref Info: Link coloring OFF on input line 9.
|
||||
Package hyperref Info: Link coloring OFF on input line 10.
|
||||
\g__cctab_next_cctab=\catcodetable17
|
||||
|
||||
(./aufgabe_1.tex
|
||||
|
|
@ -1401,15 +1409,15 @@ L3 programming layer <2026-01-19>
|
|||
)
|
||||
|
||||
Here is how much of LuaTeX's memory you used:
|
||||
22934 strings out of 476076
|
||||
22938 strings out of 476076
|
||||
100000,1373583 words of node,token memory allocated
|
||||
3192 words of node memory still in use:
|
||||
61 hlist, 40 vlist, 38 rule, 9 local_par, 78 glue, 31 kern, 9 penalty, 20 gly
|
||||
ph, 213 attribute, 62 glue_spec, 107 attribute_list, 1 write nodes
|
||||
avail lists: 1:1,2:649,3:303,4:4,5:433,6:52,7:4721,8:16,9:473,10:4,11:478
|
||||
45027 multiletter control sequences out of 65536+600000
|
||||
45029 multiletter control sequences out of 65536+600000
|
||||
115 fonts using 27962135 bytes
|
||||
122i,8n,114p,11236b,574s stack positions out of 10000i,1000n,20000p,200000b,200000s
|
||||
122i,8n,114p,11238b,574s stack positions out of 10000i,1000n,20000p,200000b,200000s
|
||||
</usr/local/texlive/2025/texmf-dist/fonts/opentype/public/euler-math/Euler-Math.
|
||||
otf></usr/local/texlive/2025/texmf-dist/fonts/opentype/public/tex-gyre/texgyrepa
|
||||
gella-italic.otf></usr/local/texlive/2025/texmf-dist/fonts/opentype/public/euler
|
||||
|
|
@ -1419,7 +1427,7 @@ ntype/public/tex-gyre/texgyrepagella-bold.otf></usr/local/texlive/2025/texmf-dis
|
|||
t/fonts/opentype/public/tex-gyre/texgyreheros-regular.otf></usr/local/texlive/20
|
||||
25/texmf-dist/fonts/opentype/public/tex-gyre/texgyreheros-bold.otf></usr/local/t
|
||||
exlive/2025/texmf-dist/fonts/opentype/public/tex-gyre/texgyreheros-italic.otf>
|
||||
Output written on agt_übung_1.pdf (4 pages, 49645 bytes).
|
||||
Output written on agt_übung_1.pdf (4 pages, 49648 bytes).
|
||||
|
||||
PDF statistics: 126 PDF objects out of 1000 (max. 8388607)
|
||||
84 compressed objects within 1 object stream
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
|
|
@ -1,4 +1,5 @@
|
|||
\documentclass{ngexrcs}
|
||||
\documentclass{../ngexrcs}
|
||||
\usepackage{../ngutils}
|
||||
\usepackage{hyperref}
|
||||
\setkeys{Gin}{pagebox=artbox, width=0.2\textwidth}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,76 +0,0 @@
|
|||
% vim: set filetype:tex
|
||||
|
||||
% Identification %
|
||||
\NeedsTeXFormat{LaTeX2e}
|
||||
\ProvidesClass{ngexrcs}[2021/12/21 ADS Exercise class]
|
||||
|
||||
% Handle options %
|
||||
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{scrartcl}}
|
||||
\ProcessOptions\relax
|
||||
|
||||
% More declarations %
|
||||
\LoadClass{scrartcl}
|
||||
|
||||
\KOMAoptions{mpinclude=true}
|
||||
\recalctypearea
|
||||
|
||||
\RequirePackage{ngutils}
|
||||
\RequirePackage{enumitem}
|
||||
|
||||
|
||||
% define fonts
|
||||
\RequirePackage{fontspec}
|
||||
%\RequirePackage{tgpagella}
|
||||
%\RequirePackage{tgheros}
|
||||
%\RequirePackage{euler-math}
|
||||
\RequirePackage[math-style=upright]{unicode-math}
|
||||
\setmainfont{TeX Gyre Pagella}
|
||||
\setsansfont{TeX Gyre Heros}
|
||||
\setmonofont{TeX Gyre Cursor}
|
||||
\setmathfont{Euler Math}
|
||||
|
||||
\setlength{\marginparwidth}{1.5\marginparwidth}
|
||||
\setlength{\fboxrule}{\heavyrulewidth}
|
||||
|
||||
|
||||
%
|
||||
% \renewcommand\theenumi{\@alph\c@enumi}
|
||||
% \renewcommand\theenumii{\@arabic\c@enumii}
|
||||
%\renewcommand\theenumiii{\@roman\c@enumiii}
|
||||
%\renewcommand\theenumiv{\@Alph\c@enumiv}
|
||||
|
||||
% \renewcommand\labelenumi{\theenumi)}
|
||||
% \renewcommand\labelenumii{\theenumii.}
|
||||
%\renewcommand\labelenumiii{\theenumiii.}
|
||||
%\renewcommand\labelenumiv{\theenumiv.}
|
||||
|
||||
% Use sansfont for all title elements
|
||||
\addtokomafont{titlehead}{\sffamily}
|
||||
\addtokomafont{subject}{\normalfont \sffamily \itshape}
|
||||
\addtokomafont{title}{\sffamily}
|
||||
\addtokomafont{subtitle}{\sffamily}
|
||||
\addtokomafont{author}{\sffamily}
|
||||
\addtokomafont{date}{\sffamily}
|
||||
\addtokomafont{publishers}{\sffamily}
|
||||
|
||||
% Use serif font for headings
|
||||
\addtokomafont{disposition}{\rmfamily}
|
||||
|
||||
% Let sections be formated as in: Aufgabe 1 -- Section title
|
||||
\renewcommand*{\sectionformat}{Aufgabe \thesection\autodot\enskip--\enskip}
|
||||
|
||||
% Let points of an exercise be printed as in: [__ / 2]
|
||||
\newkomafont{points}{\sffamily}
|
||||
\newcommand\points[2][\quad]{\marginline{\framebox{{\usekomafont{points}#1 \textbf{/} #2}}}}
|
||||
|
||||
\newenvironment{tasks}[1][1em]
|
||||
{
|
||||
\setlist{leftmargin=*}
|
||||
\renewcommand\theenumi{\@alph\c@enumi}
|
||||
\renewcommand\theenumii{\@arabic\c@enumii}
|
||||
\renewcommand\labelenumi{\theenumi)}
|
||||
\renewcommand\labelenumii{\theenumii.}
|
||||
\begin{enumerate}
|
||||
}{%
|
||||
\end{enumerate}
|
||||
}
|
||||
|
|
@ -1,150 +0,0 @@
|
|||
\NeedsTeXFormat{LaTeX2e}
|
||||
\ProvidesPackage{ngutils}[2025/12/24 Never's LaTeX utils]
|
||||
|
||||
\RequirePackage[ngerman]{babel}
|
||||
\RequirePackage{graphicx}
|
||||
\RequirePackage{tabularx}
|
||||
\RequirePackage{booktabs}
|
||||
\RequirePackage{listings}
|
||||
|
||||
|
||||
\lstnewenvironment{pseudocode}[1][] %defines the algorithm listing environment
|
||||
{
|
||||
\renewcommand{\lstlistingname}{Algorithmus}
|
||||
\lstset{ %this is the stype
|
||||
mathescape=true,
|
||||
columns=fullflexible,
|
||||
basicstyle=\normalfont,
|
||||
identifierstyle=\scshape,
|
||||
keywordstyle=\bfseries,
|
||||
keywords={, new, if, then, else, while, for, in, to, up, down, foreach, do, return},
|
||||
commentstyle=\itshape,
|
||||
comment=[l]//,
|
||||
delim=[is][\normalfont]{|}{|},
|
||||
tabsize=3,
|
||||
frame=tb,
|
||||
framerule=1pt,
|
||||
#1 % this is to add specific settings to an usage of this environment (for instnce, the caption and referable label)
|
||||
}
|
||||
}
|
||||
{}
|
||||
|
||||
\newcommand{\seilpmi}{\ensuremath{\Longleftarrow}}
|
||||
|
||||
\newcommand\NN{\ensuremath{\mathbb{N}}}
|
||||
\newcommand\ZZ{\ensuremath{\mathbb{Z}}}
|
||||
\newcommand\QQ{\ensuremath{\mathbb{Q}}}
|
||||
\newcommand\RR{\ensuremath{\mathbb{R}}}
|
||||
\newcommand\CC{\ensuremath{\mathbb{C}}}
|
||||
\newcommand\PP{\ensuremath{\mathbb{P}}}
|
||||
|
||||
\newcommand\Oh{\ensuremath{\mathcal{O}}}
|
||||
\newcommand\oh{\ensuremath{\scriptstyle{\mathcal{O}}}}
|
||||
\newcommand\Eh{\ensuremath{\mathrm{E}}}
|
||||
\newcommand\Var{\ensuremath{\mathrm{Var}}}
|
||||
|
||||
\newcommand\parens[1]{\ensuremath{\left(#1\right)}}
|
||||
\newcommand\brackets[1]{\ensuremath{\left[#1\right]}}
|
||||
\newcommand\braces[1]{\ensuremath{\left\{#1\right\}}}
|
||||
\newcommand\angled[1]{\ensuremath{\left\langle#1\right\rangle}}
|
||||
|
||||
\newcommand\tup[1]{\parens{#1}}
|
||||
\newcommand\ivl[1]{\brackets{#1}}
|
||||
\newcommand\set[1]{\braces{#1}}
|
||||
\newcommand\arr[1]{\angled{#1}}
|
||||
\newcommand\abs[1]{\ensuremath{\lvert#1\rvert}}
|
||||
\newcommand\norm[1]{\ensuremath{\lVert#1\rVert}}
|
||||
\newcommand\ceil[1]{\ensuremath{\lceil#1\rceil}}
|
||||
\newcommand\floor[1]{\ensuremath{\lfloor#1\rfloor}}
|
||||
|
||||
\newcommand\alg[2]{{\normalfont\scshape#1}{\normalfont(#2)}}
|
||||
\newcommand\algt[1]{{\normalfont\scshape#1}}
|
||||
\newcommand\com[1]{{\normalfont\itshape/\!\!/ #1}}
|
||||
|
||||
\newenvironment{algorithmic}[1][1em]{
|
||||
\begin{minipage}[t]{\dimexpr\linewidth}
|
||||
\bfseries
|
||||
\begin{tabbing}
|
||||
\hspace{#1}\=\hspace{#1}\=\hspace{#1}\=\hspace{#1}\=\hspace{#1}\=\hspace{#1}\=\hspace{#1}\=\hspace{#1}\=\kill
|
||||
}{%
|
||||
\end{tabbing}
|
||||
\end{minipage}
|
||||
}
|
||||
|
||||
% \newenvironment{algorithm}[1][1em]{
|
||||
% \begin{center}
|
||||
% \begin{minipage}[t]{\dimexpr\linewidth}
|
||||
% \bfseries
|
||||
% \begin{tabbing}
|
||||
% \hspace{#1}\=\hspace{#1}\=\hspace{#1}\=\hspace{#1}\=\hspace{#1}\=\hspace{#1}\=\hspace{#1}\=\hspace{#1}\=\kill
|
||||
% }{%
|
||||
% \end{tabbing}
|
||||
% \end{minipage}
|
||||
% \end{center}
|
||||
% }
|
||||
|
||||
\makeatletter
|
||||
\newcounter{algorithm}% the counter
|
||||
\renewcommand*\thealgorithm{\arabic{algorithm}}% the default format for the counter
|
||||
\newcommand*\fps@algorithm{tbp}% default floating options
|
||||
\newcommand*\ftype@algorithm{4}% float type number, needs to be a power of 2; % \ftype@figure=1, \ftype@table=2
|
||||
\newcommand*\ext@algorithm{loa}% extension of file for the list of schemes
|
||||
\newcommand*\fnum@algorithm{\algorithmname\nobreakspace\thealgorithm}% used in caption
|
||||
\newcommand*\algorithmname{Algorithmus}% the name
|
||||
\newcommand*\listalgorithmname{Algorithmenverzeichnis}% the name of the list
|
||||
\newenvironment{algorithm}{\@float{algorithm}}{\end@float}% the environment
|
||||
\newenvironment{algorithm*}{\@dblfloat{algorithm}}{\end@dblfloat}% the starred % version for twocolumn documents
|
||||
\newcommand*\listofalgorithms{% the list of schemes
|
||||
\section*{\listalgorithmname}
|
||||
\@mkboth
|
||||
{\MakeUppercase\listalgorithmname}
|
||||
{\MakeUppercase\listalgorithmname}
|
||||
\@starttoc{\ext@algorithm} }
|
||||
\let\l@algorithm\l@figure % layout of list is the same as for figures
|
||||
\makeatother
|
||||
|
||||
\newlength{\theoremskip}
|
||||
\setlength{\theoremskip}{6em}
|
||||
|
||||
\newcommand{\theoremfont}{\normalfont\bfseries}
|
||||
\newcommand{\definitionfont}{\normalfont\bfseries}
|
||||
|
||||
\newenvironment{theoremic}[2][\theoremfont]{
|
||||
{#1 #2}
|
||||
\hfill
|
||||
\begin{minipage}[t]{\the\dimexpr\linewidth-\theoremskip\relax}
|
||||
}{
|
||||
\end{minipage}
|
||||
}
|
||||
|
||||
\newenvironment{theorem}{
|
||||
\begin{theoremic}{Satz.}
|
||||
}{
|
||||
\end{theoremic}
|
||||
}
|
||||
|
||||
\newenvironment{lemma}{
|
||||
\begin{theoremic}{Lemma.}
|
||||
}{
|
||||
\end{theoremic}
|
||||
}
|
||||
|
||||
\newenvironment{proof}{
|
||||
\begin{theoremic}{Beweis.}
|
||||
}{
|
||||
\end{theoremic}
|
||||
}
|
||||
|
||||
\newenvironment{definition}{
|
||||
\begin{theoremic}[\definitionfont]{Definition.}
|
||||
}{
|
||||
\end{theoremic}
|
||||
}
|
||||
|
||||
\newenvironment{example}{
|
||||
\begin{theoremic}[\definitionfont]{Beispiel.}
|
||||
}{
|
||||
\end{theoremic}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue