Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Verschiedene Änderungen #151

Merged
merged 3 commits into from
Nov 10, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 18 additions & 15 deletions Latex/inhalt/Anhang.tex
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,33 @@
%! Section Befehl wird umgeschrieben, um Überschriften zu verbergen
%! Kann, falls Überschriften gewollt sind, entfernt oder erst später eingefügt werden.
% Beginn
\renewcommand{\section}[1]{
\par\refstepcounter{section}
\sectionmark{#1}
\addcontentsline{atoc}{section}{\bfseries\protect\numberline{\thesection}{\mdseries#1}}
\lohead{\textnormal{#1}}
\makeatletter
\renewcommand{\section}[1]{%
\par\refstepcounter{section}%
\sectionmark{#1}%
\NR@gettitle{#1}%<---------
\addcontentsline{atoc}{section}{\bfseries\protect\numberline{\thesection}{\mdseries#1}}%
\lohead{\textnormal{#1}}%
}
\makeatother
% Ende

%! Anpassung der Darstellung von Abbildungen im Anhang
%! Eine Variante auskommentieren
%? Möglichkeit 1: ohne Nummerierung und ohne "Abbildung"
%\renewcommand{\bild}[3][1.0]{\begin{figure}[H]
% \centering
% \includegraphics[width=#1\columnwidth]{bilder/#2}
% \caption*{#3}
% \label{#3}
% \end{figure}}
%? Möglichkeit 1: ohne Nummerierung
%\renewcommand{\bild}[4][1.0]{\begin{figure}[H]
%\centering
%\includegraphics[width=#1\columnwidth]{bilder/#2}
%\caption*{\bfseries Abbildung \mdseries #3}
%\label{#4}
%\end{figure}}

%? Möglichkeit 2: mit Nummerierung und "Abbildung", aber nicht im Abbildungsverzeichnis
\renewcommand{\bild}[3][1.0]{\begin{figure}[H]
%? Möglichkeit 2: mit Nummerierung aber nicht im Abbildungsverzeichnis
\renewcommand{\bild}[4][1.0]{\begin{figure}[H]
\centering
\includegraphics[width=#1\columnwidth]{bilder/#2}
\caption[]{#3}
\label{#3}
\label{#4}
\end{figure}}

%! Anhang 1
Expand Down
2 changes: 1 addition & 1 deletion Latex/vorlage/vorlage.tex
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@
\hypersetup{pdfsubject={\kurzbeschreibung}}
\hypersetup{pdfauthor={\autoren}}
\usepackage[numbered]{bookmark}
\usepackage{acronym}
\usepackage[printonlyused]{acronym}
\usepackage{enumitem}

%Abkürzungsverzeichnis - Formatierung (bspw. zur korrekten Anzeige von BASH-Befehlen)
Expand Down
4 changes: 2 additions & 2 deletions Latex/vorlage/vorlage_commands.tex
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@

% Anhänge - Sonderbehandlung, da nameref auf Anhänge nicht funktioniert
% https://github.com/DSczyrba/Vorlage-Latex/issues/29
\newcommand{\litearef}[1]{\emph{\hyperref[{#1}]{Anhang \ref{#1}}}}
\newcommand{\fullaref}[1]{(\emph{\hyperref[{#1}]{siehe Anhang \ref{#1}}})}
\newcommand{\litearef}[1]{\uniliteref{Anhang}{#1}}
\newcommand{\fullaref}[1]{\unifullref{Anhang}{#1}}
\newcommand{\aref}[1]{\litearef{#1}}
% Abbildungen
\newcommand{\litebref}[1]{\uniliteref{Abbildung}{#1}}
Expand Down