diff --git a/README.md b/README.md index 9795306..9e737c6 100644 --- a/README.md +++ b/README.md @@ -5,9 +5,13 @@ What's new: - modern packages (biblatex, cleveref, better fonts) - less confusing directory structure -- slightly more useful examples (figures, diagrams, tables, code listings), structure hints, some goodies +- slightly more useful examples (figures, diagrams, tables, code listings), + structure hints, some goodies - autobuilding of abstract PDF/A files from metadata -- multiple variants of the front page (nature faculty&bioinformatics!) +- multiple variants of the front page + - MFF with the new logo + - "traditional" UK variant + - Nature faculty & bioinformatics - Czech localization with nicely named references - Dockerized & CI build options diff --git a/img/naturlogo.pdf b/img/naturlogo.pdf new file mode 100644 index 0000000..743e948 Binary files /dev/null and b/img/naturlogo.pdf differ diff --git a/metadata.tex b/metadata.tex index 8091a53..6e85201 100644 --- a/metadata.tex +++ b/metadata.tex @@ -8,10 +8,14 @@ %%% Configuration of the title page %%% -\newif\ifMFF -\MFFtrue % comment this out for the version with a big UK university logo -\def\UKName{Charles University in Prague} %this is only used in UK-logo-version +\def\ThesisTitleStyle{mff} % MFF style +%\def\ThesisTitleStyle{cuni} % uncomment for old-style with cuni.cz logo +%\def\ThesisTitleStyle{natur} % uncomment for nature faculty logo + \def\UKFaculty{Faculty of Mathematics and Physics} +%\def\UKFaculty{Faculty of Science} + +\def\UKName{Charles University in Prague} % this is not used in the "mff" style % Thesis type names, as used in several places in the title \def\ThesisTypeTitle{\ifEN BACHELOR THESIS \else BAKALÁŘSKÁ PRÁCE \fi} diff --git a/title.tex b/title.tex index 702028c..ea2b685 100644 --- a/title.tex +++ b/title.tex @@ -4,35 +4,40 @@ \hypersetup{pageanchor=false} \begin{center} -\ifMFF -\ifEN -\centerline{\mbox{\includegraphics[width=166mm]{img/logo-en.pdf}}} -\else -\centerline{\mbox{\includegraphics[width=166mm]{img/logo-cs.pdf}}} -\fi -\vspace{-8mm} -\else -{\large\noindent\UKName\par\medskip\par\UKFaculty } -\fi -\vfill +% top part of the layout, this actually differs between faculties -{\bf\Large\ThesisTypeTitle} +\def\ThesisTitleXmff{% + \ifEN + \centerline{\mbox{\includegraphics[width=166mm]{img/logo-en.pdf}}} + \else + \centerline{\mbox{\includegraphics[width=166mm]{img/logo-cs.pdf}}} + \fi + \vspace{-8mm}\vfill% + {\bf\Large\ThesisTypeTitle} + \vfill% + {\LARGE\ThesisAuthor}\par + \vspace{15mm}% + {\LARGE\bfseries\ThesisTitle} + \vfill% + \Department} +\def\ThesisTitleCuniLogo#1{% + {\large\UKName\par\medskip\par\UKFaculty } + \vfill% + {\bf\Large\ThesisTypeTitle} + \vfill% + \includegraphics[width=70mm]{#1} + \vfill% + {\LARGE\ThesisAuthor}\par + \vspace{15mm}% + {\LARGE\bfseries\ThesisTitle} + \vfill% + \Department\par} +\def\ThesisTitleXcuni{\ThesisTitleCuniLogo{img/uklogo.pdf}} +\def\ThesisTitleXnatur{\ThesisTitleCuniLogo{img/naturlogo.pdf}} -\vfill - -\ifMFF\relax\else\includegraphics[width=70mm]{img/uklogo.pdf} - -\vfill\fi - -{\LARGE\ThesisAuthor} - -\vspace{15mm} - -{\LARGE\bfseries\ThesisTitle} - -\vfill - -\Department +% choose the correct page and print it +\csname ThesisTitleX\ThesisTitleStyle\endcsname +% latex corner: X is the new @ \vfill