Skip to content
Snippets Groups Projects
Commit 3e218d74 authored by Martin Ukrop's avatar Martin Ukrop
Browse files

Possibility for black-and-white version.

* Color profile setting (color/bw) added.
* Polising of Tikz code.
* Handles issue #5.
parent 4589b157
No related branches found
No related tags found
No related merge requests found
This diff is collapsed.
File moved
...@@ -28,6 +28,8 @@ ...@@ -28,6 +28,8 @@
\definecolor{blue-mu}{RGB}{0,39,118} \definecolor{blue-mu}{RGB}{0,39,118}
% Define name strings and setting commands % Define name strings and setting commands
\def\@colorProfile{}
\newcommand{\setColorProfile}[1]{\def\@colorProfile{#1}}
\def\@reportType{} \def\@reportType{}
\newcommand{\setReportType}[1]{\def\@reportType{#1}} \newcommand{\setReportType}[1]{\def\@reportType{#1}}
\def\@thesisType{} \def\@thesisType{}
...@@ -58,11 +60,15 @@ práce} ...@@ -58,11 +60,15 @@ práce}
% Document header (logo + table with names) % Document header (logo + table with names)
\AtBeginDocument{ \AtBeginDocument{
\begin{tikzpicture}[remember picture,overlay] \begin{tikzpicture}[remember picture,overlay]
\node[] (A) at (current page.north west) {}; \node[] (TopLeft) at (current page.north west) {};
\node[anchor=north west](FI-stitok) [below right=-3mm and 11.5mm of A] {\includegraphics{fi-stitok}}; \node[anchor=north west](FI-logo) [below right=-3mm and 11.5mm of TopLeft] {%
\ifthenelse{\equal{\@colorProfile}{bw}}%
{\includegraphics{fi-logo-bw}}%
{\includegraphics{fi-logo-color}}%
};
\node[] (B) at (current page.north east) {}; \node[] (TopRight) at (current page.north east) {};
\node[below left=14.3mm and 27mm of B](posudek){{\large \textsc{\@titleFirst}}}; \node[below left=14.3mm and 27mm of TopRight](posudek){{\large \textsc{\@titleFirst}}};
\node[below=4.9mm of posudek.east,anchor=east]{{\large \textsc{\@titleSecond}}}; \node[below=4.9mm of posudek.east,anchor=east]{{\large \textsc{\@titleSecond}}};
\end{tikzpicture} \end{tikzpicture}
\medskip \medskip
......
...@@ -2,6 +2,9 @@ ...@@ -2,6 +2,9 @@
\usepackage{lipsum} \usepackage{lipsum}
% MANDATORY: Choose color or black-and-white version
\setColorProfile{color} % 'color' or 'bw'
% MANDATORY: Set report & thesis types, student and thesis names. % MANDATORY: Set report & thesis types, student and thesis names.
\setReportType{reader} % 'reader' or 'supervisor' \setReportType{reader} % 'reader' or 'supervisor'
\setThesisType{bc} % 'bc' or 'mgr' \setThesisType{bc} % 'bc' or 'mgr'
......
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