Skip to content

Commit

Permalink
Merge branch 'acknowledgements-environment'
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelroland committed Jul 11, 2023
2 parents 4f583a5 + 1316908 commit ba0cc9e
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
12 changes: 12 additions & 0 deletions acknowledgements.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% Acknowledgements for your thesis in default document language
%%

\cleardoubleoddpage% Make sure to start acknowledgements on a new odd page
\begin{acks*}
Space for your acknowledgements.
\end{acks*}

%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
20 changes: 20 additions & 0 deletions jkureport.sty
Original file line number Diff line number Diff line change
Expand Up @@ -1300,6 +1300,9 @@
\defcaptionname{english,USenglish,american,UKenglish,british,canadian,australian,newzealand}{\acronymname}{List of Acronyms}
\defcaptionname{german,germanb,ngerman,ngermanb,austrian,naustrian,swissgerman,nswissgerman}{\acronymname}{Abkürzungsverzeichnis}

\defcaptionname{english,USenglish,american,UKenglish,british,canadian,australian,newzealand}{\acksname}{Acknowledgements}
\defcaptionname{german,germanb,ngerman,ngermanb,austrian,naustrian,swissgerman,nswissgerman}{\acksname}{Danksagung}

% Autoref labels
\defcaptionname{english,USenglish,american,UKenglish,british,canadian,australian,newzealand}{\subsectionautorefname}{\sectionautorefname}
\defcaptionname{german,germanb,ngerman,ngermanb,austrian,naustrian,swissgerman,nswissgerman}{\subsectionautorefname}{\sectionautorefname}
Expand Down Expand Up @@ -1978,6 +1981,23 @@
% Command \setbottommark{text}: set the bottom mark (in document footer)
\newcommand{\setbottommark}[1]{\renewcommand{\jkureport@insertbottommark}{{#1}}}

% Environment acks: set the document acknowledgements on a dedicated page
% Environment acks*: set the document acknowledgements on a dedicated page without enforcing a page break
\newenvironment{acks*}{%
\ifdef{\chapter}{%
\addchap{\acksname}%
}{%
\addsec{\acksname}%
}%
}{%
}
\newenvironment{acks}{%
\csuse{acks*}
}{%
\csuse{acks*}%
\clearpage%
}


% Author metadata

Expand Down
11 changes: 11 additions & 0 deletions main-thesis.tex
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,17 @@
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% Include your acknowledgements into the frontmatter (optional and typically only
%% used to acknowledge external funding, discuss with your supvervisor if unsure)
%%

%\import{./}{acknowledgements}

%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% Add a table of contents (and optionally various other lists)
Expand Down

0 comments on commit ba0cc9e

Please sign in to comment.