define algorithm environment, redefine tasks
This commit is contained in:
parent
051cb68d48
commit
712d63ee33
3 changed files with 100 additions and 58 deletions
|
|
@ -15,15 +15,9 @@
|
|||
\recalctypearea
|
||||
|
||||
\RequirePackage{ngutils}
|
||||
\RequirePackage{enumitem}
|
||||
\setlist{leftmargin=*}
|
||||
|
||||
|
||||
% 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}
|
||||
|
|
@ -33,18 +27,6 @@
|
|||
\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}
|
||||
|
|
@ -64,3 +46,26 @@
|
|||
\newkomafont{points}{\sffamily}
|
||||
\newcommand\points[2][\quad]{\marginline{\framebox{{\usekomafont{points}#1 \textbf{/} #2}}}}
|
||||
|
||||
\newcounter{task}
|
||||
\renewcommand{\thetask}{\@alph\c@task)}
|
||||
\newenvironment{tasks}
|
||||
{
|
||||
\begin{list}{\thetask}
|
||||
{
|
||||
\usecounter{task}
|
||||
\setlength{\leftmargin}{1.6em}
|
||||
}
|
||||
}{%
|
||||
\end{list}
|
||||
}
|
||||
|
||||
\DeclareNewTOC
|
||||
[
|
||||
type=algorithm,
|
||||
types=algorithms,
|
||||
float,
|
||||
floattype=4,
|
||||
name=Algorithmus,
|
||||
listname={Algorithmenverzeichnis}
|
||||
]
|
||||
{loa}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue