fix: wrapping of texts

This commit is contained in:
Jannik Meier
2026-06-09 21:19:12 +02:00
parent 579888a315
commit 09a79b5c49
2 changed files with 16 additions and 0 deletions
+1
View File
@@ -2,6 +2,7 @@ from: markdown+smart+fenced_code_blocks+inline_code_attributes+bracketed_spans
to: pdf
# template wird im Makefile als absoluter Pfad übergeben (wegen cd-Aufruf)
pdf-engine: pdflatex
listings: true
citeproc: true
number-sections: true
standalone: true
+15
View File
@@ -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