fix[06]: Remove listing references

This commit is contained in:
Frederik Beimgraben 2025-10-30 20:21:58 +01:00
parent b4a80c8510
commit 9db24ee9b6
5 changed files with 148 additions and 21 deletions

View File

@ -113,10 +113,10 @@
% ------------------------------------------------------------------------------ % ------------------------------------------------------------------------------
% Glossary Section % Glossary Section
% ------------------------------------------------------------------------------ % ------------------------------------------------------------------------------
% Generate glossary and list of acronyms % Generate glossary and list of abbreviations
% Two separate glossaries are printed: % Two separate glossaries are printed:
% 1. Main glossary with technical terms % 1. Main glossary with technical terms
% 2. Acronym list with abbreviations % 2. List of abbreviations
% ------------------------------------------------------------------------------ % ------------------------------------------------------------------------------
{ {
\noindent \noindent
@ -132,14 +132,14 @@
\printglossary \printglossary
} }
% --- Acronym List --- % --- List of Abbreviations ---
% Print acronym glossary with German header "Abkürzung" % Print abbreviation glossary with German header "Abkürzung"
{ {
\renewcommand*{\entryname}{Abkürzung} \renewcommand*{\entryname}{Abkürzung}
\newpage \newpage
\pagestyle{fancy} \pagestyle{fancy}
\vspace*{-2.25em} \vspace*{-2.25em}
\printglossary[type=\acronymtype] \printglossary[type=\acronymtype,title=Abkürzungen]
} }
} }

View File

@ -209,7 +209,7 @@ Mit dem \texttt{subcaption}-Paket können mehrere Abbildungen nebeneinander plat
\label{subsec:python_code} \label{subsec:python_code}
%TC:Ignore %TC:Ignore
\begin{lstlisting}[caption={Python-Beispiel: Fakultätsfunktion},label={lst:python_factorial},language=Python] \begin{lstlisting}[caption={Python-Beispiel: Fakultätsfunktion},language=Python]
def factorial(n): def factorial(n):
"""Berechnet die Fakultät einer Zahl rekursiv.""" """Berechnet die Fakultät einer Zahl rekursiv."""
if n <= 1: if n <= 1:
@ -220,14 +220,14 @@ def factorial(n):
# Verwendungsbeispiel # Verwendungsbeispiel
for i in range(10): for i in range(10):
print(f"{i}! = {factorial(i)}") print(f"{i}! = {factorial(i)}")
\end{lstlisting}\label{lst:python_factorial} \end{lstlisting}
%TC:EndIgnore %TC:EndIgnore
\subsection*{LaTeX-Code} \subsection*{LaTeX-Code}
\label{subsec:latex_code} \label{subsec:latex_code}
%TC:Ignore %TC:Ignore
\begin{lstlisting}[caption={LaTeX-Beispiel: Dokumentstruktur},label={lst:latex_example},language=TeX] \begin{lstlisting}[caption={LaTeX-Beispiel: Dokumentstruktur},language=TeX]
\documentclass{article} \documentclass{article}
\usepackage[ngerman]{babel} \usepackage[ngerman]{babel}
\usepackage{amsmath} \usepackage{amsmath}
@ -256,7 +256,6 @@ Das Template unterstützt intelligente Querverweise mit dem \texttt{cleveref}-Pa
\item Verweis auf Gleichung: siehe \cref{eq:maxwell1} \item Verweis auf Gleichung: siehe \cref{eq:maxwell1}
\item Verweis auf Abbildung: siehe \cref{fig:demo_abbildung} \item Verweis auf Abbildung: siehe \cref{fig:demo_abbildung}
\item Verweis auf Tabelle: siehe \cref{tab:messwerte} \item Verweis auf Tabelle: siehe \cref{tab:messwerte}
\item Verweis auf Listing: siehe \cref{lst:python_factorial}
\end{itemize} \end{itemize}
\subsection*{Fußnoten} \subsection*{Fußnoten}

View File

@ -1,14 +1,14 @@
% !TEX root = Main.tex % !TEX root = Main.tex
% ============================================================================== % ==============================================================================
% Glossary and Acronym Definitions % Glossary and Abkürzung Definitions
% ============================================================================== % ==============================================================================
% Description: This file contains all glossary entries and acronyms used in % Description: This file contains all glossary entries and acronyms used in
% the document. Entries are automatically sorted and formatted. % the document. Entries are automatically sorted and formatted.
% Usage: Reference entries in text using: % Usage: Reference entries in text using:
% - \gls{label} for glossary entries % - \gls{label} for glossary entries
% - \acrshort{label} for acronym short form % - \acrshort{label} for abbreviation short form
% - \acrlong{label} for acronym long form % - \acrlong{label} for abbreviation long form
% - \acrfull{label} for full acronym (short and long) % - \acrfull{label} for full abbreviation (short and long)
% Author: [Your Name] % Author: [Your Name]
% Date: [Date] % Date: [Date]
% ============================================================================== % ==============================================================================
@ -48,31 +48,31 @@
% } % }
% ============================================================================== % ==============================================================================
% Acronym Definitions % Abkürzung Definitions
% ============================================================================== % ==============================================================================
% Define abbreviations and acronyms that appear in the document % Define abbreviations that appear in the document
% Syntax: \newacronym{label}{SHORT}{Long Form} % Syntax: \newacronym{label}{SHORT}{Long Form}
% ------------------------------------------------------------------------------ % ------------------------------------------------------------------------------
% Document-related acronyms % Document-related abbreviations
\newacronym{a:Abb}{Abb.}{Abbildung} \newacronym{a:Abb}{Abb.}{Abbildung}
\newacronym{a:Tab}{Tab.}{Tabelle} \newacronym{a:Tab}{Tab.}{Tabelle}
% Legal and regulatory acronyms % Legal and regulatory abbreviations
\newacronym{MPG}{MPG}{Medizinproduktegesetz} \newacronym{MPG}{MPG}{Medizinproduktegesetz}
% Company and organization acronyms % Company and organization abbreviations
\newacronym{a:MS}{MS}{Microsoft®} \newacronym{a:MS}{MS}{Microsoft®}
% ------------------------------------------------------------------------------ % ------------------------------------------------------------------------------
% Add more acronyms here (alphabetically sorted recommended) % Add more abbreviations here (alphabetically sorted recommended)
% ------------------------------------------------------------------------------ % ------------------------------------------------------------------------------
% Technical acronyms % Technical abbreviations
% \newacronym{a:API}{API}{Application Programming Interface} % \newacronym{a:API}{API}{Application Programming Interface}
% \newacronym{a:CPU}{CPU}{Central Processing Unit} % \newacronym{a:CPU}{CPU}{Central Processing Unit}
% \newacronym{a:GPU}{GPU}{Graphics Processing Unit} % \newacronym{a:GPU}{GPU}{Graphics Processing Unit}
% Academic acronyms % Academic abbreviations
% \newacronym{a:BSc}{B.Sc.}{Bachelor of Science} % \newacronym{a:BSc}{B.Sc.}{Bachelor of Science}
% \newacronym{a:MSc}{M.Sc.}{Master of Science} % \newacronym{a:MSc}{M.Sc.}{Master of Science}
% \newacronym{a:PhD}{Ph.D.}{Doctor of Philosophy} % \newacronym{a:PhD}{Ph.D.}{Doctor of Philosophy}

View File

@ -77,6 +77,7 @@
% ------------------------------------------------------------------------------ % ------------------------------------------------------------------------------
\input{Settings/General} % General document settings (title, author, etc.) \input{Settings/General} % General document settings (title, author, etc.)
\input{Settings/Logos} % Logo configuration and positioning \input{Settings/Logos} % Logo configuration and positioning
\input{Settings/CleverefNames} % Cleveref cross-reference names configuration
% ------------------------------------------------------------------------------ % ------------------------------------------------------------------------------
% Custom Commands and Macros (Optional) % Custom Commands and Macros (Optional)

127
Settings/CleverefNames.tex Normal file
View File

@ -0,0 +1,127 @@
% !TEX root = ../Main.tex
% ==============================================================================
% Cleveref Names Configuration
% ==============================================================================
% Description: This file configures the names used by the cleveref package
% for cross-references. These appear when using \cref{} or \Cref{}
% commands in the document.
% Usage: This file is loaded in the preamble after cleveref is loaded.
% Modify the names below to customize how references appear.
% Author: [Your Name]
% Date: [Date]
% ==============================================================================
% ------------------------------------------------------------------------------
% Cleveref Language-Specific Names
% ------------------------------------------------------------------------------
% Configure the names for German language cross-references
% Format: \crefname{type}{singular}{plural}
% \Crefname{type}{Singular}{Plural} (for capitalized version)
% ------------------------------------------------------------------------------
% --- Figure References ---
\crefname{figure}{Abbildung}{Abbildungen}
\Crefname{figure}{Abbildung}{Abbildungen}
% --- Table References ---
\crefname{table}{Tabelle}{Tabellen}
\Crefname{table}{Tabelle}{Tabellen}
% --- Equation References ---
\crefname{equation}{Gleichung}{Gleichungen}
\Crefname{equation}{Gleichung}{Gleichungen}
% --- Chapter References ---
\crefname{chapter}{Kapitel}{Kapitel}
\Crefname{chapter}{Kapitel}{Kapitel}
% --- Section References ---
\crefname{section}{Abschnitt}{Abschnitte}
\Crefname{section}{Abschnitt}{Abschnitte}
% --- Subsection References ---
\crefname{subsection}{Unterabschnitt}{Unterabschnitte}
\Crefname{subsection}{Unterabschnitt}{Unterabschnitte}
% --- Subsubsection References ---
\crefname{subsubsection}{Unterunterabschnitt}{Unterunterabschnitte}
\Crefname{subsubsection}{Unterunterabschnitt}{Unterunterabschnitte}
% --- Listing References ---
\crefname{listing}{Listing}{Codeblock}
\Crefname{listing}{Listing}{Codeblock}
% --- Appendix References ---
\crefname{appendix}{Anhang}{Anhänge}
\Crefname{appendix}{Anhang}{Anhänge}
% --- Algorithm References (if algorithms package is used) ---
\crefname{algorithm}{Algorithmus}{Algorithmen}
\Crefname{algorithm}{Algorithmus}{Algorithmen}
% --- Theorem-like Environments (if defined) ---
\crefname{theorem}{Theorem}{Theoreme}
\Crefname{theorem}{Theorem}{Theoreme}
\crefname{lemma}{Lemma}{Lemmata}
\Crefname{lemma}{Lemma}{Lemmata}
\crefname{corollary}{Korollar}{Korollare}
\Crefname{corollary}{Korollar}{Korollare}
\crefname{proposition}{Proposition}{Propositionen}
\Crefname{proposition}{Proposition}{Propositionen}
\crefname{definition}{Definition}{Definitionen}
\Crefname{definition}{Definition}{Definitionen}
\crefname{example}{Beispiel}{Beispiele}
\Crefname{example}{Beispiel}{Beispiele}
\crefname{remark}{Bemerkung}{Bemerkungen}
\Crefname{remark}{Bemerkung}{Bemerkungen}
% --- Footnote References ---
\crefname{footnote}{Fußnote}{Fußnoten}
\Crefname{footnote}{Fußnote}{Fußnoten}
% --- Item References (for enumerate environments) ---
\crefname{enumi}{Punkt}{Punkte}
\Crefname{enumi}{Punkt}{Punkte}
\crefname{enumii}{Punkt}{Punkte}
\Crefname{enumii}{Punkt}{Punkte}
\crefname{enumiii}{Punkt}{Punkte}
\Crefname{enumiii}{Punkt}{Punkte}
\crefname{enumiv}{Punkt}{Punkte}
\Crefname{enumiv}{Punkt}{Punkte}
% --- Page References ---
\crefname{page}{Seite}{Seiten}
\Crefname{page}{Seite}{Seiten}
% --- Line References (if lineno package is used) ---
\crefname{line}{Zeile}{Zeilen}
\Crefname{line}{Zeile}{Zeilen}
% ------------------------------------------------------------------------------
% Cleveref Format Configuration (Optional)
% ------------------------------------------------------------------------------
% You can also customize the format of references here
% For example, to change how equation references appear:
% \crefformat{equation}{Gleichung~(#2#1#3)}
% \Crefformat{equation}{Gleichung~(#2#1#3)}
% ------------------------------------------------------------------------------
% ------------------------------------------------------------------------------
% Multi-reference Configuration (Optional)
% ------------------------------------------------------------------------------
% Configure how multiple references are formatted
% Example: \crefmultiformat{equation}{Gleichungen~#2#1#3}{ und~#2#1#3}{, #2#1#3}{ und~#2#1#3}
% ------------------------------------------------------------------------------
% ==============================================================================
% End of Cleveref Names Configuration
% ==============================================================================