|
|
|
@@ -28,6 +28,8 @@
|
|
|
|
|
\usepackage{graphicx}
|
|
|
|
|
\usepackage{caption}
|
|
|
|
|
\usepackage{subcaption}
|
|
|
|
|
% pandoc 3.x sets \LTcaptype=none for captionless longtables; caption tries to \stepcounter{none}
|
|
|
|
|
\newcounter{none}
|
|
|
|
|
\usepackage{xcolor}
|
|
|
|
|
\makeatletter
|
|
|
|
|
\def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth\else\Gin@nat@width\fi}
|
|
|
|
@@ -42,10 +44,21 @@
|
|
|
|
|
% --- Code ---
|
|
|
|
|
\usepackage{fancyvrb}
|
|
|
|
|
\usepackage{listings}
|
|
|
|
|
\lstset{
|
|
|
|
|
basicstyle=\ttfamily\small,
|
|
|
|
|
breaklines=true,
|
|
|
|
|
breakatwhitespace=false,
|
|
|
|
|
columns=fullflexible,
|
|
|
|
|
keepspaces=true,
|
|
|
|
|
}
|
|
|
|
|
$if(highlighting-macros)$
|
|
|
|
|
$highlighting-macros$
|
|
|
|
|
$endif$
|
|
|
|
|
|
|
|
|
|
% ngerman macht " zu einem aktiven Shorthand ("u→ü, "a→ä, "r→Trennung).
|
|
|
|
|
% Da Umlaute direkt als UTF-8 geschrieben werden, ist der Shorthand nicht nötig.
|
|
|
|
|
\AtBeginDocument{\shorthandoff{"}}
|
|
|
|
|
|
|
|
|
|
% --- Hyperlinks ---
|
|
|
|
|
\usepackage{hyperref}
|
|
|
|
|
\hypersetup{
|
|
|
|
@@ -61,10 +74,12 @@ $endif$
|
|
|
|
|
% --- Pandoc compatibility ---
|
|
|
|
|
\providecommand{\tightlist}{%
|
|
|
|
|
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
|
|
|
|
|
\providecommand{\passthrough}[1]{#1}
|
|
|
|
|
|
|
|
|
|
% --- Absatzformatierung: kein Einzug, sichtbarer Abstand zwischen Absaetzen ---
|
|
|
|
|
\setlength{\parindent}{0pt}
|
|
|
|
|
\setlength{\parskip}{0.6\baselineskip}
|
|
|
|
|
\setlength{\emergencystretch}{3em}
|
|
|
|
|
|
|
|
|
|
% --- Section breaks: jede H1 (section) beginnt auf einer neuen Seite ---
|
|
|
|
|
\let\oldsection\section
|
|
|
|
@@ -118,7 +133,7 @@ $if(kapitelkennung)$\newcommand{\SMKapitelkennung}{$kapitelkennung$}$else$\newco
|
|
|
|
|
% =============================================================================
|
|
|
|
|
\pagestyle{fancy}
|
|
|
|
|
\fancyhf{}
|
|
|
|
|
\fancyhead[L]{\small\textbf{Gruppe~\SMGruppe{}} - \SMKapitelkennung{}: \truncate{6 0ex}{\SMKapitel{}}}
|
|
|
|
|
\fancyhead[L]{\small\textbf{Gruppe~\SMGruppe{}} - \SMKapitelkennung{}: \truncate{60ex}{\SMKapitel{}}}
|
|
|
|
|
\fancyhead[R]{\small\SMAufgabenkennung~-~\SMAufgabentyp}
|
|
|
|
|
\fancyfoot[C]{\small Seite~\thepage~von~\pageref{LastPage}}
|
|
|
|
|
\renewcommand{\headrulewidth}{0.4pt}
|
|
|
|
|