diff --git a/06_template_demo.pdf b/06_template_demo.pdf new file mode 100644 index 0000000..166db11 Binary files /dev/null and b/06_template_demo.pdf differ diff --git a/Content/00_toc.tex b/Content/00_toc.tex index fd4bc94..043c13b 100644 --- a/Content/00_toc.tex +++ b/Content/00_toc.tex @@ -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 % ============================================================================== diff --git a/Content/Chapters/03_seitenformatierung.tex b/Content/Chapters/03_seitenformatierung.tex index b6d0dde..3d47043 100644 --- a/Content/Chapters/03_seitenformatierung.tex +++ b/Content/Chapters/03_seitenformatierung.tex @@ -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} diff --git a/Content/Chapters/06_template_demo.tex b/Content/Chapters/06_template_demo.tex index c0fee69..bb3b7ae 100644 --- a/Content/Chapters/06_template_demo.tex +++ b/Content/Chapters/06_template_demo.tex @@ -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} \\ diff --git a/Content/Chapters/example_chapter.tex b/Content/Chapters/example_chapter.tex index 418911d..aa9f178 100644 --- a/Content/Chapters/example_chapter.tex +++ b/Content/Chapters/example_chapter.tex @@ -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 diff --git a/HSRTReport/Config/Equations.tex b/HSRTReport/Config/Equations.tex index 0712a99..125d425 100644 --- a/HSRTReport/Config/Equations.tex +++ b/HSRTReport/Config/Equations.tex @@ -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 diff --git a/HSRTReport/Config/PageSetup.tex b/HSRTReport/Config/PageSetup.tex index 418da19..b339dfd 100644 --- a/HSRTReport/Config/PageSetup.tex +++ b/HSRTReport/Config/PageSetup.tex @@ -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 % ============================================================================== diff --git a/HSRTReport/Config/ToC.tex b/HSRTReport/Config/ToC.tex index 659d3c3..e192d4c 100644 --- a/HSRTReport/Config/ToC.tex +++ b/HSRTReport/Config/ToC.tex @@ -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 diff --git a/Settings/General.tex b/Settings/General.tex index 391a070..1ae0efe 100644 --- a/Settings/General.tex +++ b/Settings/General.tex @@ -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} % ------------------------------------------------------------------------------