Skip to content
This repository has been archived by the owner on May 31, 2022. It is now read-only.

Commit

Permalink
Make \bfseries switch to secondary color and sans serif for mu
Browse files Browse the repository at this point in the history
  • Loading branch information
Witiko committed Dec 26, 2018
1 parent 81e0b4b commit 39fdb9d
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 2 deletions.
46 changes: 44 additions & 2 deletions style/mu/base.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
% after \texttt{style/fithesis-base.sty}, regardless of the value
% of the |\thesis@style| macro.
% \begin{macrocode}
\ProvidesPackage{fithesis/style/mu/fithesis-base}[2018/12/25]
\ProvidesPackage{fithesis/style/mu/fithesis-base}[2018/11/18]
\NeedsTeXFormat{LaTeX2e}
% \end{macrocode}
% The file recognizes the following options: \begin{itemize}
Expand Down Expand Up @@ -175,7 +175,13 @@
\thesis@requireLocale{english}
% \end{macrocode}
% The file loads the following packages: \begin{itemize}
% \item\textsf{xcolor} -- Adds support for color manipulation.
% \item\textsf{xcolor} -- Adds support for color.
% \changes{v0.4.0}{2018/11/18}{^^A
% The \cs{bfseries} command switches to the sans serif typeface
% and to the secondary color in the style files of the Masaryk
% University in Brno, Czech Republic. [VN]}
% \item\textsf{caption} -- Adds support for changing the
% formatting of float captions.
% \item\textsf{ifxetex} -- Used to detect the \Hologo{XeTeX}
% engine.
% \item\textsf{ifluatex} -- Used to detect the \Hologo{LuaTeX}
Expand All @@ -192,6 +198,7 @@
% \end{itemize}
% \begin{macrocode}
\thesis@require{xcolor}
\RequirePackage[labelfont=bf]{caption}
\thesis@require{graphicx}
\thesis@require{pdfpages}
\thesis@require{keyval}
Expand Down Expand Up @@ -505,6 +512,14 @@
% links to \textit{color} and stores it under the name
% \texttt{thesis@color@links}. The default color of links is
% specified by the \textsf{hyperref} package.
% \item\marg{\texttt{secondary}=color} -- Stores the secondary
% color that is used with the bold type face under the name
% \texttt{thesis@color@secondary}. The default secondary color
% for the Masaryk University is RGB 0, 0, 220.
% \changes{v0.4.0}{2018/11/18}{^^A
% The \cs{bfseries} command switches to the sans serif typeface
% and to the secondary color in the style files of the Masaryk
% University in Brno, Czech Republic. [VN]}
% \item\marg{\texttt{tableOdd}=color} -- Stores the color of the
% odd rows of the redefined \texttt{tabular} and
% \texttt{tabularx} environments under the name
Expand All @@ -522,13 +537,30 @@
\define@key{thesis@color}{links}{%
\definecolor{thesis@color@links}#1
\hypersetup{linkbordercolor=thesis@color@links}}
\define@key{thesis@color}{secondary}{%
\definecolor{thesis@color@secondary}#1}
\thesis@color@setup{secondary={RGB}{0, 0, 220}}
\define@key{thesis@color}{tableOdd}{%
\definecolor{thesis@color@tableOdd}#1}
\define@key{thesis@color}{tableEven}{%
\definecolor{thesis@color@tableEven}#1}
\define@key{thesis@color}{tableEmph}{%
\definecolor{thesis@color@tableEmph}#1}
% \end{macrocode}
% \changes{v0.4.0}{2018/11/18}{^^A
% The \cs{bfseries} command switches to the sans serif typeface
% 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
% \DescribeMacro{\thesis@bfseries@old}|\thesis@bfseries@old|
% macro.
% \begin{macrocode}
\let\thesis@bfseries@old\bfseries
\def\bfseries{%
\sffamily\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|
% macros by the subsequently loaded style files.
Expand Down Expand Up @@ -671,11 +703,16 @@
% \end{itemize}
% This allows the subsequently loaded style files to only redefine
% certain parts of the cover page.
% \changes{v0.4.0}{2018/11/18}{^^A
% The \cs{bfseries} command switches to the sans serif typeface
% and to the secondary color in the style files of the Masaryk
% University in Brno, Czech Republic. [VN]}
% \begin{macrocode}
\def\thesis@blocks@cover{%
\ifthesis@cover@
\thesis@blocks@clear
\begin{alwayssingle}%
\colorlet{thesis@color@secondary}{black}%
\thispagestyle{empty}%
\begin{center}%
\thesis@blocks@cover@header
Expand Down Expand Up @@ -757,10 +794,15 @@
% \end{itemize}
% This allows the subsequently loaded style files to only redefine
% certain parts of the title page.
% \changes{v0.4.0}{2018/11/18}{^^A
% The \cs{bfseries} command switches to the sans serif typeface
% and to the secondary color in the style files of the Masaryk
% University in Brno, Czech Republic. [VN]}
% \begin{macrocode}
\def\thesis@blocks@titlePage{%
\thesis@blocks@clear
\begin{alwayssingle}%
\color{thesis@color@secondary}%
\thispagestyle{empty}%
\begin{center}%
\thesis@blocks@titlePage@header
Expand Down
5 changes: 5 additions & 0 deletions style/mu/econ.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,16 @@
% \begin{macro}{\thesis@blocks@cover}
% The |\thesis@blocks@cover| macro typesets the thesis
% cover.
% \changes{v0.4.0}{2018/11/18}{^^A
% The \cs{bfseries} command switches to the sans serif typeface
% and to the secondary color in the style files of the Masaryk
% University in Brno, Czech Republic.}
% \begin{macrocode}
\def\thesis@blocks@cover{%
\ifthesis@cover@
\thesis@blocks@clear
\begin{alwayssingle}
\colorlet{thesis@color@secondary}{black}%
\thispagestyle{empty}
\begin{center}
{\sc\thesis@titlePage@LARGE\thesis@@{universityName}\\%
Expand Down
5 changes: 5 additions & 0 deletions style/mu/med.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,16 @@
% \begin{macro}{\thesis@blocks@cover}
% The |\thesis@blocks@cover| macro typesets the thesis
% cover.
% \changes{v0.4.0}{2018/11/18}{^^A
% The \cs{bfseries} command switches to the sans serif typeface
% and to the secondary color in the style files of the Masaryk
% University in Brno, Czech Republic.}
% \begin{macrocode}
\def\thesis@blocks@cover{%
\ifthesis@cover@
\thesis@blocks@clear
\begin{alwayssingle}
\colorlet{thesis@color@secondary}{black}%
\thispagestyle{empty}
\begin{center}
{\sc\thesis@titlePage@LARGE\thesis@@{universityName}\\%
Expand Down
10 changes: 10 additions & 0 deletions style/mu/sci.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,10 @@
% expand to |\thesis@department@name| if the main locale of the
% thesis is Czech.
% \end{itemize}
% \changes{v0.4.0}{2018/11/18}{^^A
% The \cs{bfseries} command switches to the sans serif typeface
% and to the secondary color in the style files of the Masaryk
% University in Brno, Czech Republic.}
% \begin{macrocode}
\thesis@def@extra[{
\ifthesis@czech
Expand All @@ -485,6 +489,7 @@
\ifthesis@cover@
\thesis@blocks@clear
\begin{alwayssingle}
\colorlet{thesis@color@secondary}{black}%
\begin{center}
{\sc\thesis@titlePage@LARGE\thesis@czech@universityName\\%
\thesis@titlePage@Large\thesis@czech@facultyName\\[0.3em]%
Expand All @@ -510,6 +515,10 @@
% typesetting. This extra data field will expand to
% |\thesis@TeXtitle| if the main locale of the thesis is Czech.
% \end{itemize}
% \changes{v0.4.0}{2018/11/18}{^^A
% The \cs{bfseries} command switches to the sans serif typeface
% and to the secondary color in the style files of the Masaryk
% University in Brno, Czech Republic.}
% \begin{macrocode}
\thesis@def@extra[{
\ifthesis@czech
Expand All @@ -522,6 +531,7 @@
\thesis@blocks@clear
\thesis@selectLocale{czech}
\begin{alwayssingle}
\color{thesis@color@secondary}%
% The top of the page
\begin{adjustwidth}{-12mm}{}
\begin{minipage}{30mm}
Expand Down

0 comments on commit 39fdb9d

Please sign in to comment.