fix tocs
This commit is contained in:
parent
13b143a92c
commit
afc4c624ad
BIN
06_template_demo.pdf
Normal file
BIN
06_template_demo.pdf
Normal file
Binary file not shown.
@ -15,6 +15,11 @@
|
||||
% Generate the main table of contents with custom formatting
|
||||
% The blenderfont provides a consistent typographic style
|
||||
% ------------------------------------------------------------------------------
|
||||
|
||||
|
||||
\newcommand{\offsetA}{\vspace{-5.5em}}
|
||||
\newcommand{\offsetB}{\vspace{-1em}}
|
||||
|
||||
\newpage
|
||||
\pagestyle{fancy}
|
||||
{
|
||||
@ -25,6 +30,7 @@
|
||||
% Formatting
|
||||
\blenderfont
|
||||
\chapter*{\oldcontentsname}
|
||||
\offsetA\offsetB
|
||||
\tableofcontents
|
||||
}
|
||||
|
||||
@ -56,21 +62,25 @@
|
||||
|
||||
% List of Figures
|
||||
\chapter*{\oldlistfigurename}
|
||||
\offsetA\offsetB
|
||||
\listoffigures
|
||||
|
||||
% List of Tables
|
||||
\vspace{1em}
|
||||
\chapter*{\oldlisttablename}
|
||||
\offsetA\offsetB
|
||||
\listoftables
|
||||
|
||||
% List of Listings
|
||||
\vspace{1em}
|
||||
\chapter*{\oldlstlistlistingname}
|
||||
\offsetB
|
||||
\lstlistoflistings
|
||||
|
||||
% List of Equations
|
||||
\vspace{1em}
|
||||
\chapter*{\oldlistequationsname}
|
||||
\offsetA\offsetB
|
||||
\listofmyequations
|
||||
}
|
||||
|
||||
@ -107,6 +117,9 @@
|
||||
}
|
||||
}
|
||||
|
||||
% Break pages for following chapters
|
||||
\AddToHook{cmd/chapter/before}{\clearpage}
|
||||
|
||||
% ==============================================================================
|
||||
% End of Table of Contents and Lists
|
||||
% ==============================================================================
|
||||
|
||||
@ -83,6 +83,7 @@ Die Fußnotentexte sollten nicht länger als 4 Zeilen sein. Ebenso sollte vermie
|
||||
Formeln werden vom Rand einheitlich um 1\,cm eingerückt und vom vorhergehenden und nachfolgenden Absatz um zwei Zeilen abgesetzt. Jede Formel ist über eine fortlaufend aufsteigend zu vergebende Nummer zu kennzeichnen. Bei Formeln, die durch Umformung auseinander hervorgehen, können die Zwischenschritte durch eine einheitliche Nummer, ergänzt um einen Buchstaben, referenziert werden.
|
||||
|
||||
Beispiel für die Mitternachtsformel:
|
||||
|
||||
\begin{equation}
|
||||
x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}
|
||||
\label{eq:mitternachtsformel}
|
||||
|
||||
@ -87,6 +87,7 @@ Formeln können direkt im Text verwendet werden, wie z.\,B. $E = mc^2$ oder $a^2
|
||||
\label{subsec:abgesetzte_formeln}
|
||||
|
||||
Einfache nummerierte Gleichung:
|
||||
|
||||
\begin{equation}
|
||||
\nabla \times \vec{E} = -\frac{\partial \vec{B}}{\partial t}
|
||||
\label{eq:maxwell1}
|
||||
@ -94,13 +95,16 @@ Einfache nummerierte Gleichung:
|
||||
\myequations{Erste Maxwell-Gleichung (Faradaysches Induktionsgesetz)}
|
||||
|
||||
Mehrzeilige Gleichung mit Alignment:
|
||||
\begin{align}
|
||||
f(x) & = x^2 + 2x + 1 \\
|
||||
& = (x + 1)^2
|
||||
|
||||
\begin{align*}
|
||||
f(x) & = x^2 + 2x + 1 \\
|
||||
& = (x + 1)^2 \numbereq
|
||||
\label{eq:binomial}
|
||||
\end{align}
|
||||
\end{align*}
|
||||
\myequations{Binomische Formel}
|
||||
|
||||
Matrix-Darstellung:
|
||||
|
||||
\begin{equation}
|
||||
\mathbf{A} = \begin{pmatrix}
|
||||
a_{11} & a_{12} & a_{13} \\
|
||||
|
||||
@ -180,6 +180,7 @@ For important equations, use the equation environment:
|
||||
= \mu_0 \vec{J}
|
||||
\label{eq:maxwell}
|
||||
\end{equation}
|
||||
\myequations{Maxwell's Equations}
|
||||
|
||||
Equation \eqref{eq:maxwell} represents one of Maxwell's equations.
|
||||
|
||||
@ -201,6 +202,7 @@ Matrix example:
|
||||
\end{bmatrix}
|
||||
\label{eq:matrix}
|
||||
\end{equation}
|
||||
\myequations{Matrix}
|
||||
|
||||
% ==============================================================================
|
||||
% Section: Figures and Graphics
|
||||
|
||||
@ -21,8 +21,16 @@
|
||||
% Equation List Commands
|
||||
% ==============================================================================
|
||||
% Command to add equations to the list
|
||||
\newcommand{\myequations}[1]{%
|
||||
\addcontentsline{equ}{myequations}{\protect\equationname~\numberline{\theequation:} #1}\par}
|
||||
\newfloat{Formel}{htbp}{}
|
||||
\newcommand\numbereq{\addtocounter{equation}{1}\tag{\theequation}}
|
||||
|
||||
\newcommand{\myequations}[1]{
|
||||
% Add Floating (N) #1 below (This function is called after the equation environment)
|
||||
\captionof{Formel}{#1}\vspace{1em}
|
||||
|
||||
% Add to list of equations
|
||||
\cftaddtitleline{equ}{myequations}{\quad\blenderfont(\theequation)\quad #1}{\blenderfont\thepage}\par
|
||||
}
|
||||
|
||||
% ==============================================================================
|
||||
% Equation Counter Configuration
|
||||
|
||||
@ -120,16 +120,6 @@
|
||||
}
|
||||
}
|
||||
|
||||
% ==============================================================================
|
||||
% Chapter Start Configuration
|
||||
% ==============================================================================
|
||||
% Ensure chapters start on a new page
|
||||
\let\originalchapter\chapter
|
||||
\renewcommand{\chapter}[1]{%
|
||||
\clearpage%
|
||||
\originalchapter{#1}%
|
||||
}
|
||||
|
||||
% ==============================================================================
|
||||
% Override Default Page Styles
|
||||
% ==============================================================================
|
||||
|
||||
@ -38,18 +38,29 @@
|
||||
% Figure and Table TOC Formatting
|
||||
% ==============================================================================
|
||||
% Configure font for figure entries in list of figures
|
||||
\renewcommand\cftfigfont{\blenderfont\color{gray}}
|
||||
\renewcommand\cftfigpagefont{\blenderfont\color{gray}}
|
||||
\renewcommand\cftfigfont{\blenderfont}
|
||||
\renewcommand\cftfigpagefont{\blenderfont}
|
||||
|
||||
% Configure font for table entries in list of tables
|
||||
\renewcommand\cfttabfont{\blenderfont\color{gray}}
|
||||
\renewcommand\cfttabpagefont{\blenderfont\color{gray}}
|
||||
\renewcommand\cfttabfont{\blenderfont}
|
||||
\renewcommand\cfttabpagefont{\blenderfont}
|
||||
|
||||
% Configure font for equation entries in list of equations
|
||||
% Define robust font commands
|
||||
|
||||
|
||||
% Configure font for listing entries in lstlistings list
|
||||
\renewcommand*{\l@lstlisting}[2]{
|
||||
\@dottedtocline{1}{1em}{2.3em}
|
||||
{\blenderfont#1}
|
||||
{\blenderfont#2}
|
||||
}
|
||||
|
||||
% ==============================================================================
|
||||
% Dot Separation Configuration
|
||||
% ==============================================================================
|
||||
% Set spacing between dots in TOC
|
||||
\renewcommand{\cftdotsep}{1.5}
|
||||
% \renewcommand{\cftdotsep}{1.5}
|
||||
|
||||
% ==============================================================================
|
||||
% End of Table of Contents Configuration Module
|
||||
|
||||
@ -157,9 +157,7 @@
|
||||
% ------------------------------------------------------------------------------
|
||||
|
||||
% Name for the list of equations (appears as chapter/section title)
|
||||
\renewcommand{\listequationsname}{Formeln und Gleichungen}
|
||||
|
||||
% Name for individual equation references
|
||||
\renewcommand{\listequationsname}{Formeln}
|
||||
\renewcommand{\equationname}{Formel}
|
||||
|
||||
% ------------------------------------------------------------------------------
|
||||
|
||||
Loading…
Reference in New Issue
Block a user