Skip to content

Commit

Permalink
Add some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mads256h committed Oct 2, 2020
1 parent 68c27db commit 8285376
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 4 deletions.
18 changes: 15 additions & 3 deletions setup/macro.tex
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
% Define built in chapters to respect danish/english setting

\if\useenglish0
\newcommand{\prefacename}{Forord}
\newcommand{\introductionname}{Indledning}
Expand All @@ -16,8 +15,10 @@
\newcommand{\solutionname}{Solution}
\fi

% newcommand/renewcommand convenience function
\newcommand{\neworrenewcommand}[1]{\providecommand{#1}{}\renewcommand{#1}}

% No indentation environment
\newlength\mystoreparindent
\newenvironment{noindentenv}{%
\setlength{\mystoreparindent}{\the\parindent}%
Expand All @@ -26,9 +27,11 @@
\setlength{\parindent}{\mystoreparindent}%
}

% Titlepage entry macros
\newcommand{\tpentry}[2]{\textbf{#1:}\\#2\bigskip\par}
\newcommand{\tpentryl}[2]{\textbf{#1:}\\#2}

% The danish titlepage
\newcommand{\titlepageda}{%
\titlepaget%
{AAU_STUDENTERRAPPORT_blue_rgb}%
Expand All @@ -47,6 +50,7 @@
{abstractda}%
}

% The english titlepage
\newcommand{\titlepageen}{%
\titlepaget%
{AAU_UK_STUDENTREPORT_blue_rgb}%
Expand All @@ -65,6 +69,7 @@
{abstracten}%
}

% Titlepage template
\newcommand{\titlepaget}[9]{%
\neworrenewcommand{\titlepagett}[8]{%
\begin{multicols}{2}%
Expand Down Expand Up @@ -98,20 +103,25 @@
\titlepagett%
}

% Clickable email
\newcommand{\emaillink}[1]{\href{mailto:#1}{#1}}

% Preface signature macro
\newcommand{\signature}[2]{%
\rule{\linewidth}{0.5pt}\\%
#1\\%
{\footnotesize <#2>}\\%
}

% Generate a list of authors
\newcommand{\authorlist}{%
\foreachitem\authoritem\in\authors{%
\IfStrEq{\authoritem}{\authors[-1]}{\authoritem}{\authoritem\\}%
}%
}

% Generate a comma seperated list of authors
% For use in hyperref setup
\def\authorcomma{}
\newcommand\authoradd[1]{\edef\authorcomma{\authorcomma{}#1}}
\foreachitem\authoritem\in\authors{%
Expand All @@ -122,6 +132,8 @@
}%
}

% Generate \maketitle \author list of authors
% Needs this special magic to work
\newcommand\authorn{}
\foreachitem\authoritem\in\authors{%
\IfStrEq{\authoritem}{\authors[-1]}{%
Expand All @@ -137,14 +149,14 @@

\author{\authorn}


% Generate a list of supervisors
\newcommand{\supervisorlist}{%
\foreachitem\supervisoritem\in\supervisors{%
\IfStrEq{\supervisoritem}{\supervisors[-1]}{\supervisoritem}{\supervisoritem\\}%
}%
}


% Generate the list of signatures on preface.tex
\newcommand{\signaturelist}{%
\vspace{3\baselineskip}%
\foreachitem\signatureitem\in\authors{%
Expand Down
1 change: 0 additions & 1 deletion setup/preamble.tex
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
% If then else
\usepackage{ifthen}


% Advanced patching of macros
\usepackage{xpatch}

Expand Down
16 changes: 16 additions & 0 deletions setup/user.tex
Original file line number Diff line number Diff line change
Expand Up @@ -45,23 +45,39 @@


% Document properties

% Title
\newcommand{\titleda}{Dansk titel}
\newcommand{\titleen}{English title}


% Subtitle
\newcommand{\subtitleda}{Dansk undertitel}
\newcommand{\subtitleen}{English subtitle}


% Semester theme
\newcommand{\semesterthemeda}{Indsæt semester tema her}
\newcommand{\semesterthemeen}{Insert semester theme here}


% Project period
\newcommand{\projectperiodda}{Efterårssemesteret 2020}
\newcommand{\projectperioden}{Autumn semester 2020}


% Project group
\newcommand{\projectgroup}{a400}


% Number of copies
\newcommand{\numcopies}{1}


% Due date
\newcommand{\duedate}{\today}


% Name of education
\newcommand{\edunameda}{Software}
\newcommand{\edunameen}{Software}

0 comments on commit 8285376

Please sign in to comment.