From d84a410f9a89eb27191d3b2ec713eec255ffa160 Mon Sep 17 00:00:00 2001 From: Tobias Hamann <tobias.hamann@rwth-aachen.de> Date: Thu, 27 Feb 2025 15:55:25 +0100 Subject: [PATCH] Create SET_Appendix.file and mv things there --- format/WZLTemplate.cls | 3 ++ format/WZLTemplate_files/SET_Appendix.tex | 21 +++++++++++ format/WZLTemplate_files/SET_Bibliography.tex | 15 ++++++++ format/functions.tex | 36 ------------------- 4 files changed, 39 insertions(+), 36 deletions(-) create mode 100644 format/WZLTemplate_files/SET_Appendix.tex diff --git a/format/WZLTemplate.cls b/format/WZLTemplate.cls index 1c1f10d..404375c 100644 --- a/format/WZLTemplate.cls +++ b/format/WZLTemplate.cls @@ -179,6 +179,9 @@ %%----SET UP BIBLIOGRAPHY---- \input{format/WZLTemplate_files/SET_Bibliography.tex} +%%----SET UP APPENDIX---- +\input{format/WZLTemplate_files/SET_Appendix.tex} + %%----MISCELLANEOUS---- \input{format/WZLTemplate_files/SET_Miscellaneous.tex} diff --git a/format/WZLTemplate_files/SET_Appendix.tex b/format/WZLTemplate_files/SET_Appendix.tex new file mode 100644 index 0000000..087fcdc --- /dev/null +++ b/format/WZLTemplate_files/SET_Appendix.tex @@ -0,0 +1,21 @@ + +% TODO +\newcommand{\appendixheadline}{ + \cleardoublepage + \stepcounter{romancounter} + \newcommand{\appendixhead}{\Roman{romancounter}\hspace{1em}Appendix} + \phantomsection\addcontentsline{toc}{chapter}{\appendixhead} + \thispagestyle{plain} + % \setcounter{section}{0} % Reset section counter + % \setcounter{subsection}{0} % Reset subsection counter + % \setcounter{subsubsection}{0} % Reset subsubsection counter + {\cftlottitlefont\appendixhead}{\cftafterlottitle} + % Redefine section numbering to include the Roman numeral + \renewcommand{\thesection}{\Roman{romancounter}.\arabic{section}} + % Redefine subsection numbering to include the new section number + \renewcommand{\thesubsection}{\thesection.\arabic{subsection}} + % Redefine subsubsection numbering accordingly + \renewcommand{\thesubsubsection}{\thesubsection.\arabic{subsubsection}} + % Redefine figure numbering if needed + \renewcommand{\thefigure}{\Roman{romancounter}.\arabic{figure}} +} diff --git a/format/WZLTemplate_files/SET_Bibliography.tex b/format/WZLTemplate_files/SET_Bibliography.tex index 325103c..bd8de93 100644 --- a/format/WZLTemplate_files/SET_Bibliography.tex +++ b/format/WZLTemplate_files/SET_Bibliography.tex @@ -72,3 +72,18 @@ \mkbibacro{URL}\addcolon\space \href{#1}{\nolinkurl{\thefield{verba}}} } + + +% TODO +\newcommand{\references}{ + \cleardoublepage + \sloppy + \stepcounter{romancounter} + \newcommand{\listreferencename}{\Roman{romancounter}\hspace{1em}\tmpreferencename} + \phantomsection\addcontentsline{toc}{chapter}{\listreferencename} + \thispagestyle{plain} + {\cftlottitlefont\listreferencename}{\cftafterlottitle} + \printbibliography[heading=none,title=\tmpreferencename] + % \printbibliography[heading=bibintoc,title=References] +} + diff --git a/format/functions.tex b/format/functions.tex index 7d6f379..4308423 100644 --- a/format/functions.tex +++ b/format/functions.tex @@ -12,8 +12,6 @@ \setlength{\cftchapnumwidth}{2em} } - - %% Start of main text \newcommand{\startmain} { @@ -25,40 +23,6 @@ } -% TODO -\newcommand{\references}{ - \cleardoublepage - \sloppy - \stepcounter{romancounter} - \newcommand{\listreferencename}{\Roman{romancounter}\hspace{1em}\tmpreferencename} - \phantomsection\addcontentsline{toc}{chapter}{\listreferencename} - \thispagestyle{plain} - {\cftlottitlefont\listreferencename}{\cftafterlottitle} - \printbibliography[heading=none,title=\tmpreferencename] - % \printbibliography[heading=bibintoc,title=References] -} - - -% TODO -\newcommand{\appendixheadline}{ - \cleardoublepage - \stepcounter{romancounter} - \newcommand{\appendixhead}{\Roman{romancounter}\hspace{1em}Appendix} - \phantomsection\addcontentsline{toc}{chapter}{\appendixhead} - \thispagestyle{plain} - % \setcounter{section}{0} % Reset section counter - % \setcounter{subsection}{0} % Reset subsection counter - % \setcounter{subsubsection}{0} % Reset subsubsection counter - {\cftlottitlefont\appendixhead}{\cftafterlottitle} - % Redefine section numbering to include the Roman numeral - \renewcommand{\thesection}{\Roman{romancounter}.\arabic{section}} - % Redefine subsection numbering to include the new section number - \renewcommand{\thesubsection}{\thesection.\arabic{subsection}} - % Redefine subsubsection numbering accordingly - \renewcommand{\thesubsubsection}{\thesubsection.\arabic{subsubsection}} - % Redefine figure numbering if needed - \renewcommand{\thefigure}{\Roman{romancounter}.\arabic{figure}} -} % TODO \newcommand{\markerbox}[2]{% -- GitLab