Skip to content
Snippets Groups Projects
Unverified Commit f32db152 authored by Vít Starý Novotný's avatar Vít Starý Novotný
Browse files

Only apply `colorbold` package option when `color` is also enabled.

Closes #37.
parent e92bc012
No related branches found
No related tags found
1 merge request!42Only apply `colorbold` package option when `color` is also enabled.
Pipeline #
......@@ -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}[2022/08/15]
\ProvidesPackage{fithesis/style/mu/fithesis-mu-base}[2024/03/06]
\NeedsTeXFormat{LaTeX2e}
% \end{macrocode}
% The file recognizes the following options: \begin{itemize}
......@@ -639,11 +639,15 @@
% \changes{v1.1.0}{2022/08/15}{^^A
% Added the \texttt{colorbold} and \texttt{nocolorbold} package
% options for the Masaryk University in Brno. [TV]}
% \changes{v1.1.1}{2024/03/06}{^^A
% Only apply the \texttt{colorbold} package option if the \texttt{color}
% package option is also enabled. [VN]}
% \begin{macrocode}
\let\thesis@bfseries@old\bfseries
\def\bfseries{%
\ifthesis@sansbold@\sffamily\fi
\ifthesis@colorbold@\color{thesis@color@secondary}\fi\thesis@bfseries@old}
\ifthesis@color@\ifthesis@colorbold@\color{thesis@color@secondary}\fi\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|
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment