From fda4948c167ebf1f79dc40c548e844f952bf66d3 Mon Sep 17 00:00:00 2001 From: witiko <witiko@gmail.com> Date: Sun, 26 Apr 2015 17:29:31 +0200 Subject: [PATCH] The `\thesis@blocks@*@header` macros, where `* = {cover,titlePage}` are configurable via `\ifthesis@blocks@*@header@{department,field}` --- fithesis.dtx | 3 ++ style/mu/base.dtx | 75 ++++++++++++++++++++++++++++++++++++++++++----- style/mu/ped.dtx | 9 ++---- style/mu/phil.dtx | 9 ++---- 4 files changed, 76 insertions(+), 20 deletions(-) diff --git a/fithesis.dtx b/fithesis.dtx index 0b716ed..6bf17fc 100644 --- a/fithesis.dtx +++ b/fithesis.dtx @@ -55,6 +55,9 @@ \MakeShortVerb{|} \EnableCrossrefs \DoNotIndex{} +\makeatletter +\c@IndexColumns = 1 +\makeatother \begin{document} \RecordChanges diff --git a/style/mu/base.dtx b/style/mu/base.dtx index 3bd32ea..1d5f2e4 100644 --- a/style/mu/base.dtx +++ b/style/mu/base.dtx @@ -176,9 +176,38 @@ \end{alwayssingle}% \ifthesis@twoside\@twosidetrue\fi % Re-enable twoside \fi} +% \end{macrocode} +% The output of the |\thesis@blocks@cover@header| private macro is +% controlled by the following conditional expressions: +% \begin{enumerate} +% \item|\ifthesis@blocks@cover@department@| -- This +% conditional expression determines, whether the department +% name is going to be included in the header of the cover. +% The default value of this conditional expression is false. +% \item|\ifthesis@blocks@cover@field@| -- This +% conditional expression determines, whether the field of +% study is going to be included in the header of the cover. +% The default value of this conditional expression is false. +% \end{enumerate} +% The sebsequently loaded style files can alter the value of these +% expressions to alter the output of the +% |\thesis@blocks@cover@header| private macro without altering its +% definition. +% \begin{macrocode} +\newif\ifthesis@blocks@cover@department@ +\thesis@blocks@cover@department@false +\newif\ifthesis@blocks@cover@field@ +\thesis@blocks@cover@field@false + \def\thesis@blocks@cover@header{% {\sc\thesis@titlePage@LARGE\thesis@@{universityName}\\% - \thesis@titlePage@Large\thesis@@{facultyName}\\[2em]}} + \thesis@titlePage@Large\thesis@@{facultyName}\\% + \ifthesis@blocks@cover@department@% + \vskip 0.3em\thesis@titlePage@large\thesis@department% + \fi} + \ifthesis@blocks@cover@field@% + {\thesis@titlePage@large\vskip 0.2em\thesis@field} + \fi\vskip 2em} \def\thesis@blocks@cover@content{% {\thesis@titlePage@Huge\bf\thesis@TeXtitle\par\vfil}% \vskip 0.8in% @@ -192,14 +221,11 @@ % The |\thesis@blocks@titlePage| private macro typesets the thesis % title page. It is composed of three private macros: % \begin{itemize} -% \item\DescribeMacro{\thesis@blocks@titlePage@header}^^A -% |\thesis@blocks@titlePage@header| -- The header of the +% \item|\thesis@blocks@titlePage@header| -- The header of the % cover page -% \item\DescribeMacro{\thesis@blocks@titlePage@content}^^A -% |\thesis@blocks@titlePage@content| -- The content of the +% \item|\thesis@blocks@titlePage@content| -- The content of the % cover page -% \item\DescribeMacro{\thesis@blocks@titlePage@footer}^^A -% |\thesis@blocks@titlePage@footer| -- The footer of the +% \item|\thesis@blocks@titlePage@footer| -- The footer of the % cover page % \end{itemize} % This allows the subsequently loaded style files to only redefine @@ -222,7 +248,40 @@ \thesis@blocks@titlePage@footer% \end{center}% \end{alwayssingle}} -\let\thesis@blocks@titlePage@header=\thesis@blocks@cover@header +% \end{macrocode} +% The output of the |\thesis@blocks@titlePage@header| private macro is +% controlled by the following conditional expressions: +% \begin{enumerate} +% \item|\ifthesis@blocks@titlePage@department@| -- This +% conditional expression determines, whether the department +% name is going to be included in the header of the title +% page. The default value of this conditional expression is +% false. +% \item|\ifthesis@blocks@titlePage@field@| -- This +% conditional expression determines, whether the field of +% study is going to be included in the header of the title +% page. +% The default value of this conditional expression is false. +% \end{enumerate} +% The sebsequently loaded style files can alter the value of these +% expressions to alter the output of the +% |\thesis@blocks@titlePage@header| private macro without altering +% its definition. +% \begin{macrocode} +\newif\ifthesis@blocks@titlePage@department@ +\thesis@blocks@titlePage@department@false +\newif\ifthesis@blocks@titlePage@field@ +\thesis@blocks@titlePage@field@false + +\def\thesis@blocks@titlePage@header{% + {\sc\thesis@titlePage@LARGE\thesis@@{universityName}\\% + \thesis@titlePage@Large\thesis@@{facultyName}\\% + \ifthesis@blocks@titlePage@department@% + \vskip 0.3em\thesis@titlePage@large\thesis@department\\% + \fi} + \ifthesis@blocks@titlePage@field@% + {\thesis@titlePage@large\vskip 0.2em\thesis@field} + \fi\vskip 2em} \let\thesis@blocks@titlePage@content=\thesis@blocks@cover@content \let\thesis@blocks@titlePage@footer=\thesis@blocks@cover@footer % \end{macrocode} diff --git a/style/mu/ped.dtx b/style/mu/ped.dtx index 662e317..993c8ce 100644 --- a/style/mu/ped.dtx +++ b/style/mu/ped.dtx @@ -3,7 +3,7 @@ % Education at the Masaryk University in Brno. It has been prepared % in accordance with the formal requirements published at the % website of the faculty\footnote{See \url{https://is.muni.cz/^^A -% auth/do/1421/4581421/Vzor_bakalarske_prace.pdf}}. +% do/ped/VPAN/pokdek/Pokyn_dekana_c._1-2010__2_.pdf}}. % \begin{macrocode} \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{fithesis3/style/mu/fithesis3-phil}[2015/04/26] @@ -13,14 +13,11 @@ % \begin{macrocode} \thesis@requireLocale{english} % \end{macrocode} -% The style file redefines the title page header to include the +% The style file configures the title page header to include the % department name and the the title page content to include % advisor's name. % \begin{macrocode} -\def\thesis@blocks@titlePage@header{% - {\sc\thesis@titlePage@LARGE\thesis@@{universityName}\\% - \thesis@titlePage@Large\thesis@@{facultyName}\\[0.3em]% - \thesis@titlePage@large\thesis@department\\[2em]}} +\thesis@blocks@titlePage@department@true \def\thesis@blocks@titlePage@content{% {\thesis@titlePage@Huge\bf\thesis@TeXtitle\par\vfil}\vskip 0.8in {\thesis@titlePage@normalsize\sc\thesis@@{typeName}\\[0.3in]} diff --git a/style/mu/phil.dtx b/style/mu/phil.dtx index e9be0b1..e2aba75 100644 --- a/style/mu/phil.dtx +++ b/style/mu/phil.dtx @@ -8,14 +8,11 @@ \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{fithesis3/style/mu/fithesis3-phil}[2015/04/26] % \end{macrocode} -% The style file redefines the title page header to include the +% The style file configures the title page header to include the % department and the field name. % \begin{macrocode} -\def\thesis@blocks@titlePage@header{% - {\sc\thesis@titlePage@LARGE\thesis@@{universityName}\\% - \thesis@titlePage@Large\thesis@@{facultyName}\\[0.3em]% - \thesis@titlePage@large\thesis@department\\[0.2em]} - {\thesis@titlePage@large\thesis@field\\[2em]}} +\thesis@blocks@titlePage@department@true +\thesis@blocks@titlePage@field@true % \end{macrocode} % The style file defines the autolayout preamble as the cover and % the title page followed by the declaration, acknowledgement -- GitLab