diff --git a/HSRTReport/Config/Equations.tex b/HSRTReport/Config/Equations.tex new file mode 100644 index 0000000..7bccbdb --- /dev/null +++ b/HSRTReport/Config/Equations.tex @@ -0,0 +1,36 @@ +% !TEX root = ../HSRTReport.cls +% ============================================================================== +% Equations Configuration Module +% ============================================================================== +% Description: Configuration for equation lists and equation formatting +% Author: Frederik Beimgraben +% License: Creative Commons CC BY 4.0 +% ============================================================================== + +% ============================================================================== +% List of Equations Configuration +% ============================================================================== +% Define custom list for equations +\newcommand{\listequationsname}{List of Equations} +\newlistof{myequations}{equ}{\listequationsname} + +% Define equation name for references +\newcommand{\equationname}{Equation} + +% ============================================================================== +% Equation List Commands +% ============================================================================== +% Command to add equations to the list +\newcommand{\myequations}[1]{% + \addcontentsline{equ}{myequations}{\protect\equationname~\numberline{\theequation:} #1}\par} + +% ============================================================================== +% Equation Counter Configuration +% ============================================================================== +% Remove chapter dependency from equation counter +% (This allows continuous equation numbering throughout the document) +\counterwithout{equation}{chapter} + +% ============================================================================== +% End of Equations Configuration Module +% ============================================================================== diff --git a/HSRTReport/Config/Floats.tex b/HSRTReport/Config/Floats.tex index 6990652..e69de29 100644 --- a/HSRTReport/Config/Floats.tex +++ b/HSRTReport/Config/Floats.tex @@ -1,6 +0,0 @@ -% !TEX root = ../../Main.tex - -\setlist[itemize]{leftmargin=*, itemsep=0pt, parsep=0pt} -\captionsetup[subfigure]{labelfont=rm,justification=centerlast,font=small,margin=50pt} -\floatsetup[table]{capposition=top} -\floatsetup[image]{capposition=bottom} \ No newline at end of file diff --git a/HSRTReport/Config/GlossarySettings.tex b/HSRTReport/Config/GlossarySettings.tex index 46dd6a8..afd2072 100644 --- a/HSRTReport/Config/GlossarySettings.tex +++ b/HSRTReport/Config/GlossarySettings.tex @@ -1,10 +1,28 @@ -%!TEX root = ../../Main.tex +% !TEX root = ../HSRTReport.cls +% ============================================================================== +% Glossary Configuration Module +% ============================================================================== +% Description: Glossary and acronym list configuration and styling +% Author: Frederik Beimgraben +% License: Creative Commons CC BY 4.0 +% ============================================================================== + +% ============================================================================== +% Glossary Initialization +% ============================================================================== \makeglossaries +% ============================================================================== +% Column Type Definitions +% ============================================================================== +% Define custom column types for glossary tables \newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}p{#1}} \newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}p{#1}} \newcolumntype{R}[1]{>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}p{#1}} +% ============================================================================== +% Custom Glossary Style +% ============================================================================== \newglossarystyle{manualfixedwidth}{ \setglossarystyle{long3colheader} \renewenvironment{theglossary} @@ -20,17 +38,35 @@ \renewcommand{\arraystretch}{1.1} } +% Apply the custom glossary style \setglossarystyle{manualfixedwidth} +% ============================================================================== +% Glossary Labels and Settings +% ============================================================================== +% German labels for glossary columns \renewcommand*{\entryname}{Wort/Abkürzung} \renewcommand*{\descriptionname}{Bedeutung} \renewcommand*{\pagelistname}{Seite(n)} + +% Enable hyperlinks in glossary \glsenablehyper + +% Disable page breaks between glossary groups \renewcommand*{\glsclearpage}{} + +% German name for acronym list \renewcommand{\acronymname}{Abkürzungsverzeichnis} -%%% https://golatex.de/viewtopic.php?t=23348 -% masculine genitive +% ============================================================================== +% Custom Glossary Keys for German Grammar +% ============================================================================== +% Source: https://golatex.de/viewtopic.php?t=23348 +% These keys enable proper German declension in glossary entries + +% ------------------------------------------------------------------------------ +% Genitive Case (Genitiv) +% ------------------------------------------------------------------------------ \glsaddkey {genitive}% key {}% default value @@ -40,7 +76,9 @@ {\Glsgen}% link ucfirst cs {\GLSgen}% link all caps cs -% dative +% ------------------------------------------------------------------------------ +% Dative Case (Dativ) +% ------------------------------------------------------------------------------ \glsaddkey {dative}% key {}% default value diff --git a/HSRTReport/Config/Hyperref.tex b/HSRTReport/Config/Hyperref.tex new file mode 100644 index 0000000..7d6f8e4 --- /dev/null +++ b/HSRTReport/Config/Hyperref.tex @@ -0,0 +1,30 @@ +% !TEX root = ../HSRTReport.cls +% ============================================================================== +% Hyperref Configuration Module +% ============================================================================== +% Description: Configure hyperlinks, PDF metadata, and link colors +% Author: Frederik Beimgraben +% License: Creative Commons CC BY 4.0 +% ============================================================================== + +% ============================================================================== +% PDF and Hyperlink Configuration +% ============================================================================== +% Note: hyperref package is already loaded in Config/Imports/Document.tex +\hypersetup{ + pdfpagemode={UseOutlines}, % Show bookmarks on opening + bookmarksopen=true, % Open bookmark tree + bookmarksopenlevel=0, % Level to which bookmarks are open + hypertexnames=false, % Use guessable names for links + colorlinks=true, % Color links instead of boxes + citecolor=[rgb]{0.286, 0.427, 0.537}, % Citation link color (blue-gray) + linkcolor=[rgb]{0.161, 0.31, 0.427}, % Internal link color (dark blue) + urlcolor=[rgb]{0.071, 0.212, 0.322}, % URL link color (dark teal) + pdfstartview={FitV}, % Fit page width in viewer + unicode, % Allow unicode characters + breaklinks=true % Allow links to break across lines +} + +% ============================================================================== +% End of Hyperref Configuration Module +% ============================================================================== diff --git a/HSRTReport/Config/PageSetup.tex b/HSRTReport/Config/PageSetup.tex index 3a12532..acccb31 100644 --- a/HSRTReport/Config/PageSetup.tex +++ b/HSRTReport/Config/PageSetup.tex @@ -17,11 +17,14 @@ \renewcommand{\headrulewidth}{0pt} % ============================================================================== -% Header and Footer Setup +% Page Number Configuration % ============================================================================== % Set page number font style \setkomafont{pagenumber}{\color{gray}\blenderfont\selectfont} +% ============================================================================== +% Header and Footer Setup +% ============================================================================== % Clear all header and footer fields \fancyhf{} diff --git a/HSRTReport/Config/Sections.tex b/HSRTReport/Config/Sections.tex index a40e401..f3b11a3 100644 --- a/HSRTReport/Config/Sections.tex +++ b/HSRTReport/Config/Sections.tex @@ -1,4 +1,4 @@ -% !TEX root = ../../HSRTReport.cls +% !TEX root = ../HSRTReport.cls % ============================================================================== % Sections Configuration Module % ============================================================================== diff --git a/HSRTReport/Config/ToC.tex b/HSRTReport/Config/ToC.tex index d073adc..659d3c3 100644 --- a/HSRTReport/Config/ToC.tex +++ b/HSRTReport/Config/ToC.tex @@ -1,4 +1,4 @@ -% !TEX root = ../../HSRTReport.cls +% !TEX root = ../HSRTReport.cls % ============================================================================== % Table of Contents Configuration Module % ============================================================================== diff --git a/HSRTReport/HSRTReport.cls b/HSRTReport/HSRTReport.cls index c3348e7..d4a91ae 100644 --- a/HSRTReport/HSRTReport.cls +++ b/HSRTReport/HSRTReport.cls @@ -64,104 +64,6 @@ % Graphics and TikZ packages \input{\classPath/Config/Imports/Graphics} -% ============================================================================== -% Hyperref Configuration -% ============================================================================== -% Hyperref already loaded in Imports-Document -\hypersetup{ - pdfpagemode={UseOutlines}, - bookmarksopen=true, - bookmarksopenlevel=0, - hypertexnames=false, - colorlinks=true, - citecolor=[rgb]{0.286, 0.427, 0.537}, - linkcolor=[rgb]{0.161, 0.31, 0.427}, - urlcolor=[rgb]{0.071, 0.212, 0.322}, - pdfstartview={FitV}, - unicode, - breaklinks=true -} - -% Font and page setup are loaded from configuration modules - -% ============================================================================== -% Title Page Configuration -% ============================================================================== -\setkomafont{pagenumber}{\color{gray}\blenderfont\selectfont} - -\fancyhf{} -\fancyhead[L]{\color{gray}\blenderfont \@title} -\fancyhead[R]{\pagemark} -\fancyfoot[C]{} - -\fancypagestyle{fancy}{ - \fancyhf{} - \fancyhead[L]{\color{gray}\blenderfont \@title} - \fancyhead[R]{\pagemark} - \fancyfoot[C]{} -} - -% Set font for all headings -\setkomafont{disposition}{\blenderfont\bfseries} -\setkomafont{chapter}{\Large\blenderfont\bfseries} -\setkomafont{section}{\Large\blenderfont\bfseries} -\setkomafont{subsection}{\large\blenderfont\bfseries} -\setkomafont{subsubsection}{\large\blenderfont\bfseries} - -\RedeclareSectionCommand[ - beforeskip=1ex, - afterskip=0.5ex, - style=section -]{chapter} - -\RedeclareSectionCommands[ - beforeskip=0.6ex, - afterskip=0.3ex, -]{section,subsection,subsubsection} - -\newcommand{\decoRule}{\rule{.8\textwidth}{.4pt}} - -% ============================================================================== -% Table of Contents Configuration -% ============================================================================== -% Page Numbering in the Table of Contents -\renewcommand\cftchappagefont{\blenderfont\color{gray}} -\renewcommand\cftsecpagefont{\blenderfont\color{gray}} -\renewcommand\cftsubsecpagefont{\blenderfont\color{gray}} -\renewcommand\cftsubsubsecpagefont{\blenderfont\color{gray}} - -% Chap/Sec/... Title in the Table of Contents -\renewcommand\cftchapfont{\blenderfont\color{gray}} -\renewcommand\cftsecfont{\blenderfont\color{gray}} -\renewcommand\cftsubsecfont{\blenderfont\color{gray}} -\renewcommand\cftsubsubsecfont{\blenderfont\color{gray}} - -\RedeclareSectionCommands[ - tocentryformat=\blenderfont\normalsize, - tocpagenumberformat=\blenderfont\normalsize -]{section,subsection} - -% Figure and Table in the Table of Contents -\renewcommand\cftfigfont{\blenderfont\color{gray}} -\renewcommand\cftfigpagefont{\blenderfont\color{gray}} -\renewcommand\cfttabfont{\blenderfont\color{gray}} -\renewcommand\cfttabpagefont{\blenderfont\color{gray}} -\renewcommand{\cftdotsep}{1.5} - -% List of equations -\newcommand{\listequationsname}{List of Equations} -\newlistof{myequations}{equ}{\listequationsname} - -\newcommand{\equationname}{Equation} - -% Command to add equations to the list -\newcommand{\myequations}[1]{% - \addcontentsline{equ}{myequations}{\protect\equationname~\numberline{\theequation:} #1}\par} - -\counterwithout{figure}{chapter} -\counterwithout{table}{chapter} -\counterwithout{equation}{chapter} - % ============================================================================== % Module Includes % ============================================================================== @@ -170,10 +72,13 @@ % ------------------------------------------------------------------------------ % Configuration Modules % ------------------------------------------------------------------------------ +\input{\classPath/Config/Hyperref} \input{\classPath/Config/Fonts} \input{\classPath/Config/PageSetup} +\input{\classPath/Config/Sections} \input{\classPath/Config/GlossarySettings} \input{\classPath/Config/ToC} +\input{\classPath/Config/Equations} \input{\classPath/Config/Floats} \input{\classPath/Config/Typography} diff --git a/Main.pdf b/Main.pdf deleted file mode 100644 index 8d70ced..0000000 Binary files a/Main.pdf and /dev/null differ