diff options
Diffstat (limited to 'macros/latex/contrib/fithesis/style/mu/base.dtx')
-rw-r--r-- | macros/latex/contrib/fithesis/style/mu/base.dtx | 110 |
1 files changed, 95 insertions, 15 deletions
diff --git a/macros/latex/contrib/fithesis/style/mu/base.dtx b/macros/latex/contrib/fithesis/style/mu/base.dtx index a6c43b158d..32a93f115b 100644 --- a/macros/latex/contrib/fithesis/style/mu/base.dtx +++ b/macros/latex/contrib/fithesis/style/mu/base.dtx @@ -9,7 +9,7 @@ % after \texttt{style/fithesis-base.sty}, regardless of the value % of the |\thesis@style| macro. % \begin{macrocode} -\ProvidesPackage{fithesis/style/mu/fithesis-mu-base}[2021/05/23] +\ProvidesPackage{fithesis/style/mu/fithesis-mu-base}[2022/08/15] \NeedsTeXFormat{LaTeX2e} % \end{macrocode} % The file recognizes the following options: \begin{itemize} @@ -65,6 +65,22 @@ \DeclareOption{palatino}{\thesis@palatino@true} \DeclareOption{nopalatino}{\thesis@palatino@false} % \end{macrocode} +% \item\texttt{neuehaas}, \texttt{noneuehaas} -- The sans serif +% text font family is going to be either set to Neue Haas +% (TeX Gyre Heros) or left untouched, respectively. The +% \DescribeMacro{\ifthesis@neuehaas@}|\ifthesis@|^^A +% \discretionary{}{}{}|neuehaas@| conditional is set to either +% \texttt{true} or \texttt{false}, respectively. The Neue Haas +% font is a sans serif font chosen to represent the Masaryk +% University in Brno as per its Graphic manual. +% \changes{v1.1.0}{2022/08/15}{^^A +% Added the \texttt{neuehas} and \texttt{noneuehaas} package options +% for the Masaryk University in Brno. [TV]} +% \begin{macrocode} +\newif\ifthesis@neuehaas@ +\DeclareOption{neuehaas}{\thesis@neuehaas@true} +\DeclareOption{noneuehaas}{\thesis@neuehaas@false} +% \end{macrocode} % \item\texttt{color}, \texttt{monochrome} -- Certain % typographical elements either are or aren't going to be % typeset in color, respectively. The @@ -76,6 +92,18 @@ \DeclareOption{monochrome}{\thesis@color@false} \DeclareOption{color}{\thesis@color@true} % \end{macrocode} +% \item\texttt{colorbold}, \texttt{nocolorbold} -- The bold text either +% is or isn't colored (black is used instead). The +% \DescribeMacro{\ifthesis@colorbold}|\ifthesis@colorbold@| conditional +% is set to either \texttt{true} or \texttt{false}, respectively. +% \changes{v1.1.0}{2022/08/15}{^^A +% Added the \texttt{colorbold} and \texttt{nocolorbold} package +% options for the Masaryk University in Brno. [TV]} +% \begin{macrocode} +\newif\ifthesis@colorbold@ +\DeclareOption{colorbold}{\thesis@colorbold@true} +\DeclareOption{nocolorbold}{\thesis@colorbold@false} +% \end{macrocode} % \item\texttt{microtype}, \texttt{nomicrotype} -- The % microtypographic extension of modern \TeX\ engines -- such as % \hologo{pdfTeX}, \Hologo{XeTeX}, or \Hologo{LuaTeX} -- is or isn't @@ -88,6 +116,19 @@ \DeclareOption{microtype}{\thesis@microtype@true} \DeclareOption{nomicrotype}{\thesis@microtype@false} % \end{macrocode} +% \item\texttt{sansbold}, \texttt{nosansbold} -- The \cs{bfseries} +% command for switching to the bold typeface is or isn't going to use +% the sans-serif type face, respectively. The +% \DescribeMacro{\ifthesis@sansbold@}|\ifthesis@sansbold@| conditional +% is set to either \texttt{true} or \texttt{false}, respectively. +% \changes{v1.1.0}{2022/08/02}{^^A +% Added the \texttt{sansbold} and \texttt{nosansbold} package options +% for the Masaryk University in Brno. [VN]} +% \begin{macrocode} +\newif\ifthesis@sansbold@ +\DeclareOption{sansbold}{\thesis@sansbold@true} +\DeclareOption{nosansbold}{\thesis@sansbold@false} +% \end{macrocode} % \item\texttt{table}, \texttt{oldtable} -- If the % |\ifthesis@color@| conditional is \texttt{true}, then the % definitions of the \texttt{tabular}, \texttt{tabularx}, and @@ -156,20 +197,26 @@ % \DescribeMacro{\ifthesis@digital@}|\ifthesis@digital@| % conditional is set to \texttt{true} or \texttt{false}, % respectively. +% \changes{v1.1.0}{2022/08/15}{^^A +% Added the \texttt{colorbold} and \texttt{nocolorbold} package +% options for the Masaryk University in Brno. [TV]} % \begin{macrocode} \newif\ifthesis@digital@ \DeclareOption{digital}{% - \ExecuteOptions{color,cover}% + \ExecuteOptions{color,cover,colorbold}% \thesis@digital@true} \DeclareOption{printed}{% - \ExecuteOptions{monochrome,nocover}% + \ExecuteOptions{monochrome,nocover,nocolorbold}% \thesis@digital@false} % \end{macrocode} % \end{itemize} % These are the default options: +% \changes{v1.1.0}{2022/08/02}{^^A +% Added the \texttt{sansbold} and \texttt{nosansbold} package options +% for the Masaryk University in Brno. [VN]} % \begin{macrocode} \ExecuteOptions{% - printed,12pt,twoside,final,microtype,palatino,oldtable,lot,lof} + printed,12pt,twoside,final,microtype,sansbold,palatino,neuehaas,oldtable,lot,lof} \ProcessOptions* % \end{macrocode} % The file uses English locale strings within the macros. @@ -260,19 +307,26 @@ % \changes{v1.0.0}{2018/11/18}{^^A % The \TeX{} Gyre Heros is used as the main sans serif font % instead of Latin Modern. [VN]} +% \changes{v1.1.0}{2022/08/15}{^^A +% Added the \texttt{neuehas} and \texttt{noneuehaas} package options +% for the Masaryk University in Brno. [TV]} % \begin{macrocode} \ifthesis@xeluatex \ifthesis@palatino@ \thesis@require{fontspec} \thesis@require{unicode-math} \setmainfont[Ligatures=TeX]{TeX Gyre Pagella} - \setsansfont[Ligatures=TeX,Scale=MatchLowercase]{TeX Gyre Heros} \setmathfont[math-style=ISO,bold-style=ISO]{texgyrepagella-math.otf} \fi + \ifthesis@neuehaas@ + \thesis@require{fontspec} + \setsansfont[Ligatures=TeX,Scale=MatchLowercase]{TeX Gyre Heros} + \fi % \end{macrocode} % The following packages get only loaded, when the document is not -% being typeset using the \Hologo{XeTeX} or \Hologo{LuaTeX} engine -% and the |\ifthesis@palatino@| conditional is \texttt{true}: +% being typeset using the \Hologo{XeTeX} or \Hologo{LuaTeX} engine, +% the |\ifthesis@palatino@| conditional is \texttt{true}, and the +% |\ifthesis@neuehaas@| conditional is \texttt{true}: % \begin{itemize} % \item\textsf{cmap} -- Places an explicit \texttt{ToUnicode} % map in the resulting PDF file, allowing for the extraction of @@ -298,6 +352,9 @@ \thesis@require{lmodern} \thesis@require{mathpazo} \thesis@require{tgpagella} + \RequirePackage[T1]{fontenc} + \fi + \ifthesis@neuehaas@ \thesis@require[scale=0.863]{tgheros} \RequirePackage[T1]{fontenc} \fi @@ -572,14 +629,21 @@ % and to the secondary color in the style files of the Masaryk % University in Brno, Czech Republic. [VN]} % The |\bfseries| macro is redefined to switch to the sans serif -% type face in the secondary color. The original definition of -% |\bfseries| is stored in the +% type face (conditional on \cs{ifthesis@sansbold@}) in the secondary color. +% The original definition of |\bfseries| is stored in the % \DescribeMacro{\thesis@bfseries@old}|\thesis@bfseries@old| % macro. +% \changes{v1.1.0}{2022/08/02}{^^A +% Added the \texttt{sansbold} and \texttt{nosansbold} package options +% for the Masaryk University in Brno. [VN]} +% \changes{v1.1.0}{2022/08/15}{^^A +% Added the \texttt{colorbold} and \texttt{nocolorbold} package +% options for the Masaryk University in Brno. [TV]} % \begin{macrocode} \let\thesis@bfseries@old\bfseries \def\bfseries{% - \sffamily\color{thesis@color@secondary}\thesis@bfseries@old} + \ifthesis@sansbold@\sffamily\fi + \ifthesis@colorbold@\color{thesis@color@secondary}\fi\thesis@bfseries@old} % \end{macrocode} % The file defines several blocks to be used in the redefinitions % of the |\thesis@blocks@preamble| and |\thesis@blocks@postamble| @@ -773,7 +837,14 @@ \vspace{0.75cm}% {\sf\thesis@titlePage@large\thesis@@upper{facultyName}\par}% \vfill - {\bf\thesis@titlePage@Huge\thesis@TeXtitle\par}% +% \end{macrocode} +% \changes{v1.1.0}{2022/08/17}{^^A +% Typeset thesis title on cover and title pages in sans serif typeface. [VN]} +% \begin{macrocode} + \begingroup + \thesis@colorbold@true + {\sffamily\bfseries\thesis@titlePage@Huge\thesis@TeXtitle\par}% + \endgroup \vspace{1.5cm}% {\sf\thesis@titlePage@Large\thesis@@{typeName}\par}% \vspace{1.5cm}% @@ -871,10 +942,17 @@ \par\vspace{0.75cm}% {\sf\thesis@titlePage@large\thesis@@upper{facultyName}\par}% \vfill - {\bf\thesis@titlePage@Huge\thesis@TeXtitle\par}% + \begingroup + \thesis@colorbold@true + {\sffamily\bfseries\thesis@titlePage@Huge\thesis@TeXtitle\par}% + \endgroup \vspace{1.5cm}% {\sf\thesis@titlePage@Large\thesis@@{typeName}\par}% \vspace{1.5cm}% +% \end{macrocode} +% \changes{v1.1.0}{2022/08/17}{^^A +% Typeset thesis title on cover and title pages in sans serif typeface. [VN]} +% \begin{macrocode} {\sf\thesis@titlePage@LARGE\thesis@upper{author}\par}% \vfill\vfill {\sf\thesis@titlePage@large\thesis@@{advisorTitle}: \thesis@advisor\par}% @@ -1618,12 +1696,14 @@ \if@twoside \oddsidemargin 0.75in \evensidemargin 0.4in - \marginparwidth 0pt \else \oddsidemargin 0.75in \evensidemargin 0.75in - \marginparwidth 0pt \fi +% \end{macrocode} +% \changes{v1.1.0}{2022/04/19}{Add space for margin notes. [VN]} +% \begin{macrocode} +\marginparwidth 2.75cm \marginparsep 10pt \topmargin 0.4in @@ -1781,7 +1861,7 @@ \reset@font\normalsize\bfseries}} \def\subsubsection{\@startsection{subsubsection}{3}{\z@}{% -3.25ex plus-1ex minus-.2ex}{1.5ex plus.2ex}{% - \reset@font\normalsize}} + \reset@font\normalsize\bfseries}} \def\paragraph{\@startsection{paragraph}{4}{\z@}{% 3.25ex plus1ex minus.2ex}{-1em}{% \reset@font\normalsize\bfseries}} |