Merge branch '14-toc-for-appendix-mk' into 'master'
Fix Appendix Closes #14 See merge request fastexitlane/latex-boilerplate!27
This commit is contained in:
commit
c766fd4699
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -238,4 +238,5 @@ TSWLatexianTemp*
|
||||||
/auto/*
|
/auto/*
|
||||||
|
|
||||||
# expex forward references with \gathertags
|
# expex forward references with \gathertags
|
||||||
*-tags.tex
|
*-tags.tex
|
||||||
|
main.ptc
|
||||||
|
|
4
appendix/01_example.tex
Normal file
4
appendix/01_example.tex
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
%!TEX root = ../main.tex
|
||||||
|
|
||||||
|
\section{Example}
|
||||||
|
\label{app:example}
|
|
@ -1,13 +1,5 @@
|
||||||
%!TEX root = ../main.tex
|
%!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 the appendix files here like this:
|
||||||
% \input{appendix/appendix1.tex}
|
\input{appendix/01_example.tex}
|
||||||
% \newpage
|
\newpage
|
||||||
|
|
16
config.tex
16
config.tex
|
@ -21,6 +21,22 @@
|
||||||
bottom=25mm
|
bottom=25mm
|
||||||
]{geometry}
|
]{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
|
% Reduzierung der Abstände zwischen Überschriften und Text
|
||||||
\RedeclareSectionCommand[afterskip=.0001\baselineskip]{section}
|
\RedeclareSectionCommand[afterskip=.0001\baselineskip]{section}
|
||||||
\RedeclareSectionCommand[afterskip=.0001\baselineskip]{subsection}
|
\RedeclareSectionCommand[afterskip=.0001\baselineskip]{subsection}
|
||||||
|
|
6
main.tex
6
main.tex
|
@ -78,8 +78,10 @@
|
||||||
\newpage
|
\newpage
|
||||||
|
|
||||||
% appendix - uncomment if needed
|
% appendix - uncomment if needed
|
||||||
% \input{appendix/appendix.tex}
|
% \begin{custom_appendix}
|
||||||
% \newpage
|
% \input{appendix/appendix.tex}
|
||||||
|
% \newpage
|
||||||
|
% \end{custom_appendix}
|
||||||
|
|
||||||
% affirmation
|
% affirmation
|
||||||
\input{additionals/affirmation.tex}
|
\input{additionals/affirmation.tex}
|
||||||
|
|
|
@ -74,8 +74,10 @@
|
||||||
\newpage
|
\newpage
|
||||||
|
|
||||||
% appendix - uncomment if needed
|
% appendix - uncomment if needed
|
||||||
% \input{appendix/appendix.tex}
|
% \begin{custom_appendix}
|
||||||
% \newpage
|
% \input{appendix/appendix.tex}
|
||||||
|
% \newpage
|
||||||
|
% \end{custom_appendix}
|
||||||
|
|
||||||
% affirmation
|
% affirmation
|
||||||
\input{additionals/affirmation.tex}
|
\input{additionals/affirmation.tex}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user