Commit ca7b6c4b authored by Vladimír Štill's avatar Vladimír Štill
Browse files

Add bw class option

parent 5ef991bb
......@@ -5,8 +5,12 @@
% in the project's repository at https://gitlab.fi.muni.cz/xukrop/fi-thesis-report/
\ProvidesClass{fi-thesis-report}[2017/06/09 v1.2 FI thesis report template]
\newcommand{\ftr@colorProfile}{color}
\DeclareOption{bw}{\renewcommand{\ftr@colorProfile}{bw}}
\newcommand{\ftr@lang}{czech}
\DeclareOption{english}{\renewcommand{\ftr@lang}{english}}
% Based on 'article'
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
\ProcessOptions \relax
......@@ -43,8 +47,7 @@
]{hyperref}
% Define name strings and setting commands
\def\@colorProfile{}
\newcommand{\setColorProfile}[1]{\def\@colorProfile{#1}}
\newcommand{\setColorProfile}[1]{\def\ftr@colorProfile{#1}}
\def\@reportType{}
\newcommand{\setReportType}[1]{\def\@reportType{#1}}
\def\@thesisType{}
......@@ -93,7 +96,7 @@
\begin{tikzpicture}[remember picture,overlay]
\node[] (TopLeft) at (current page.north west) {};
\node[anchor=north west](FI-logo) [below right=-3mm and 11.5mm of TopLeft] {%
\ifthenelse{\equal{\@colorProfile}{bw}}%
\ifthenelse{\equal{\ftr@colorProfile}{bw}}%
{\ftr@ite@czech{\includegraphics{logos/fi-cz-bw}}{\includegraphics{logos/fi-en-bw}}}%
{\ftr@ite@czech{\includegraphics{logos/fi-cz-color}}{\includegraphics{logos/fi-en-color}}}%
};
......@@ -118,7 +121,7 @@
\vspace{-0.5em}
\par\noindent
{%
\ifthenelse{\equal{\@colorProfile}{bw}}{}{\color{blue-mu}}%
\ifthenelse{\equal{\ftr@colorProfile}{bw}}{}{\color{blue-mu}}%
\rule{\textwidth}{0.3mm}
}
\vspace{-0.5em}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment