Skip to content

Commit

Permalink
Merge pull request #151 from DSczyrba/dev-misc
Browse files Browse the repository at this point in the history
Verschiedene Änderungen
  • Loading branch information
TheColin21 committed Nov 10, 2021
2 parents c0c1ae4 + 502670e commit df0d431
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 18 deletions.
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

0 comments on commit df0d431

Please sign in to comment.