Commit 5b3cb0c5 authored by Martin Ukrop's avatar Martin Ukrop
Browse files

Add support for PhD reports

- Types: reader, supervisor, inter-reader
- Code by Vojta.
parent 124a9f66
......@@ -8,3 +8,4 @@ Petr Sojka
Vladimír Štill
Nikola Beneš
Jiří Barnat
Vojtěch Řehák
......@@ -43,16 +43,22 @@
\newcommand{\setSupervisor}[1]{\def\@supervisor{#1}}
\newcommand{\setConsultant}[1]{\def\@consultant{#1}}
\newcommand{\setReader}[1]{\def\@reader{#1}}
\def\@signature{\ifthenelse{\equal{\@reportType}{reader}}{\@reader}{\@supervisor}}
\newcommand{\setInterReader}[1]{\def\@interReader{#1}}
\def\@signature{%
\ifthenelse{\equal{\@reportType}{inter-reader}}{\@interReader}{%
\ifthenelse{\equal{\@reportType}{reader}}{\@reader}{\@supervisor}}%
}
\newcommand{\setSignature}[1]{\def\@signature{#1}}
% Determine correct title texts
\def\@titleFirst{Posudek
\ifthenelse{\equal{\@reportType}{reader}}{oponenta}{vedoucího}
\ifthenelse{\equal{\@reportType}{inter-reader}}{interního oponenta}{
\ifthenelse{\equal{\@reportType}{reader}}{oponenta}{vedoucího}}
}
\def\@titleSecond{
\ifthenelse{\equal{\@thesisType}{bc}}{bakalářské}{diplomové}
práce}
\ifthenelse{\equal{\@thesisType}{phd}}{disertační}{%
\ifthenelse{\equal{\@thesisType}{bc}}{bakalářské}{diplomové}%
} práce}
% Document header (logo + table with names)
\AtBeginDocument{
......@@ -78,6 +84,7 @@ Autor práce: & \@student
\ifthenelse{\isundefined{\@supervisor}}{}{\\Vedoucí práce: & \@supervisor}%
\ifthenelse{\isundefined{\@consultant}}{}{\\Konzultant: & \@consultant}%
\ifthenelse{\isundefined{\@reader}}{}{\\Oponent: & \@reader}%
\ifthenelse{\isundefined{\@interReader}}{}{\\Interní oponent: & \@interReader}%
\end{tabularx}
}
\vspace{-0.5em}
......
......@@ -11,6 +11,7 @@ $if(student)$\setStudent{$student$}$endif$
$if(supervisor)$\setSupervisor{$supervisor$}$endif$
$if(consultant)$\setConsultant{$consultant$}$endif$
$if(reader)$\setReader{$reader$}$endif$
$if(inter-reader)$\setInterReader{$inter-reader$}$endif$
$if(signature)$\setSignature{$signature$}$endif$
$for(header-includes)$
......
---
colorprofile: color # 'color' or 'bw'
reporttype: reader # 'reader' or 'supervisor'
thesistype: bc # 'bc' or 'mgr'
reporttype: reader # 'reader' or 'supervisor' or 'inter-reader'
thesistype: bc # 'bc' or 'mgr' or 'phd'
thesisname: The Great Thesis
student: John Doe
supervisor: Mgr. Richard Roe, Ph.D. # comment to hide
consultant: Ing. Maggie Lane # comment to hide
reader: RNDr. John Smith # comment to hide
inter-reader: RNDr.\ Mary Poppins, Ph.D. # comment to hide
#signature: John Smith # uncomment for custom signature
header-includes:
- \usepackage{lipsum}
......
......@@ -6,8 +6,8 @@
\setColorProfile{color} % 'color' or 'bw'
% MANDATORY: Set report & thesis types, student and thesis names.
\setReportType{reader} % 'reader' or 'supervisor'
\setThesisType{bc} % 'bc' or 'mgr'
\setReportType{reader} % 'reader' or 'supervisor' or 'inter-reader'
\setThesisType{bc} % 'bc' or 'mgr' or 'phd'
\setThesisName{The Great Thesis} % can be multiline, just add '\newline'
\setStudent{John Doe}
......@@ -16,6 +16,7 @@
\setSupervisor{Mgr.\ Richard Roe, Ph.D.}
%\setConsultant{Ing.\ Maggie Lane}
\setReader{RNDr.\ John Smith}
%\setInterReader{RNDr.\ Mary Poppins, Ph.D.}
% OPTIONAL: Choose a custom signature (e.g. without tiles).
% If signature is not set, supervisor/reader name is taken.
......
Supports Markdown
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