Commit b576e4d6 authored by Maximilian Kenfenheuer's avatar Maximilian Kenfenheuer
Browse files

Fix Appendix

parent cd73691b
......@@ -238,4 +238,5 @@ TSWLatexianTemp*
/auto/*
# expex forward references with \gathertags
*-tags.tex
\ No newline at end of file
*-tags.tex
main.ptc
%!TEX root = ../main.tex
\section{Example}
\label{app:example}
\ No newline at end of file
%!TEX root = ../main.tex
\addchap{Anhang}
\label{appendix}
% create a table of appendices here manually like this:
% \contentsline{section}{\numberline{1}AppendixTitle}{\pageref{app:appendixlabel}}{app:appendixlabel}
\newpage
% input the appendix files here like this:
% \input{appendix/appendix1.tex}
% \newpage
\input{appendix/01_example.tex}
\newpage
......@@ -21,6 +21,22 @@
bottom=25mm
]{geometry}
% Anhang inklusive Anhangsverzeichnis
\usepackage{titletoc}
\newenvironment{custom_appendix}{%
\renewcommand{\thechapter}{\MakeUppercase{\Alph{chapter}}}%
\setcounter{chapter}{1}
\addchap{Anhang}
\startcontents[sections]
\section*{Anhangsverzeichnis}
\printcontents[sections]{l}{1}{\setcounter{tocdepth}{2}}
\newpage
}{
\stopcontents[sections]
\renewcommand{\thechapter}{\arabic{chapter}}%
\setcounter{chapter}{1}
}
% Reduzierung der Abstände zwischen Überschriften und Text
\RedeclareSectionCommand[afterskip=.0001\baselineskip]{section}
\RedeclareSectionCommand[afterskip=.0001\baselineskip]{subsection}
......
......@@ -78,8 +78,10 @@
\newpage
% appendix - uncomment if needed
% \input{appendix/appendix.tex}
% \newpage
\begin{custom_appendix}
\input{appendix/appendix.tex}
\newpage
\end{custom_appendix}
% affirmation
\input{additionals/affirmation.tex}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment