Commit 9195f6ba authored by Tereza Vrabcová's avatar Tereza Vrabcová
Browse files

Merge branch 'feature/sansbold-option' into 'master'

Add `sansbold` and `nosansbold` options

See merge request !31
parents c5d31039 da046183
Loading
Loading
Loading
Loading
Loading
+26 −23
Original line number Diff line number Diff line
@@ -21,6 +21,9 @@
              %% for double-sided typesetting if you are planning to
              %% also print your thesis. For double-sided typesetting,
              %% use at least 120 g/m² paper to prevent show-through.
  nosansbold, %% The `nosansbold` option prevents the use of the
              %% sans-serif type face for bold text. Replace with
              %% `sansbold` to use sans-serif type face for bold text.
%</fi>
%<*econ,fsps,fss,law,med,ped,phil,sci,pharm>
  twoside,    %% The `twoside` option enables double-sided typesetting.
+1 −1
Original line number Diff line number Diff line
@@ -57,7 +57,7 @@
  \gdef\thesis@version@number{#1}
  \gdef\thesis@version@date{#2}
  \gdef\thesis@version{#2 #1 fithesis4 MU thesis class}}
\thesis@versiondef{v1.0.3-dev}{2022/04/19}}
\thesis@versiondef{v1.0.3-dev}{2022/08/02}}
% {\newwrite\f\openout\f=VERSION\write\f{\thesis@version}\closeout\f}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+25 −5
Original line number Diff line number Diff line
@@ -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/02]
\NeedsTeXFormat{LaTeX2e}
%    \end{macrocode}
% The file recognizes the following options: \begin{itemize}
@@ -88,6 +88,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.0.3}{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
@@ -167,9 +180,12 @@
%    \end{macrocode}
% \end{itemize}
% These are the default options:
% \changes{v1.0.3}{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,oldtable,lot,lof}
\ProcessOptions*
%    \end{macrocode}
% The file uses English locale strings within the macros.
@@ -572,14 +588,18 @@
%   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.0.3}{2022/08/02}{^^A
%   Added the \texttt{sansbold} and \texttt{nosansbold} package options
%   for the Masaryk University in Brno. [VN]}
% \begin{macrocode}
\let\thesis@bfseries@old\bfseries
\def\bfseries{%
  \sffamily\color{thesis@color@secondary}\thesis@bfseries@old}
  \ifthesis@sansbold@\sffamily\fi
  \color{thesis@color@secondary}\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|