Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
External Relations
Document Templates
FI thesis report template
Commits
ca7b6c4b
Commit
ca7b6c4b
authored
Jun 14, 2018
by
Vladimír Štill
Browse files
Add bw class option
parent
5ef991bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
fi-thesis-report.cls
View file @
ca7b6c4b
...
...
@@ -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
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment