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
d904e808
Commit
d904e808
authored
Jun 06, 2019
by
Martin Ukrop
Browse files
Add Slovak version and mark macros
parent
e604828c
Changes
2
Show whitespace changes
Inline
Side-by-side
fi-thesis-report.cls
View file @
d904e808
...
@@ -11,6 +11,7 @@
...
@@ -11,6 +11,7 @@
\newcommand
{
\ftr
@lang
}{
czech
}
\newcommand
{
\ftr
@lang
}{
czech
}
\DeclareOption
{
english
}{
\renewcommand
{
\ftr
@lang
}{
english
}}
\DeclareOption
{
english
}{
\renewcommand
{
\ftr
@lang
}{
english
}}
\DeclareOption
{
slovak
}{
\renewcommand
{
\ftr
@lang
}{
slovak
}}
\DeclareOption
{
czech
}{}
% the default
\DeclareOption
{
czech
}{}
% the default
% Based on 'article'
% Based on 'article'
...
@@ -76,10 +77,10 @@
...
@@ -76,10 +77,10 @@
\newcommand
{
\setSignature
}
[1]
{
\def\@
signature
{
#1
}}
\newcommand
{
\setSignature
}
[1]
{
\def\@
signature
{
#1
}}
% Helper for translation
% Helper for translation
\newcommand
{
\ftr
@ite@
czech
}
[
2
]
{
\ifthenelse
{
\equal
{
\ftr
@lang
}{
czech
}}{
#1
}{
#2
}}
\newcommand
{
\ftr
@ite@
lang
}
[
3
]
{
\ifthenelse
{
\equal
{
\ftr
@lang
}{
czech
}}{
#1
}{
\ifthenelse
{
\equal
{
\ftr
@lang
}{
slovak
}}{
#2
}{
#3
}
}}
% Determine correct title texts
% Determine correct title texts
\ftr
@ite@
czech
{
\ftr
@ite@
lang
{
\def\@
titleFirst
{
Posudek
\def\@
titleFirst
{
Posudek
\ifthenelse
{
\equal
{
\@
reportType
}{
inter-reader
}}{
interního oponenta
}{
\ifthenelse
{
\equal
{
\@
reportType
}{
inter-reader
}}{
interního oponenta
}{
\ifthenelse
{
\equal
{
\@
reportType
}{
reader
}}{
oponenta
}{
vedoucího
}}
\ifthenelse
{
\equal
{
\@
reportType
}{
reader
}}{
oponenta
}{
vedoucího
}}
...
@@ -89,6 +90,15 @@
...
@@ -89,6 +90,15 @@
\ifthenelse
{
\equal
{
\@
thesisType
}{
bc
}}{
bakalářské
}{
diplomové
}
%
\ifthenelse
{
\equal
{
\@
thesisType
}{
bc
}}{
bakalářské
}{
diplomové
}
%
}
práce
}
}
práce
}
}{
}{
\def\@
titleFirst
{
Posudok
\ifthenelse
{
\equal
{
\@
reportType
}{
inter-reader
}}{
interného oponenta
}{
\ifthenelse
{
\equal
{
\@
reportType
}{
reader
}}{
oponenta
}{
vedúceho
}}
}
\def\@
titleSecond
{
\ifthenelse
{
\equal
{
\@
thesisType
}{
phd
}}{
disertačnej
}{
%
\ifthenelse
{
\equal
{
\@
thesisType
}{
bc
}}{
bakalárskej
}{
diplomovej
}
%
}
práce
}
}{
\def\@
titleFirst
{
\def\@
titleFirst
{
\ifthenelse
{
\equal
{
\@
thesisType
}{
phd
}}{
Disertation
}{
%
\ifthenelse
{
\equal
{
\@
thesisType
}{
phd
}}{
Disertation
}{
%
\ifthenelse
{
\equal
{
\@
thesisType
}{
bc
}}{
Bachelor
}{
Master
}
%
\ifthenelse
{
\equal
{
\@
thesisType
}{
bc
}}{
Bachelor
}{
Master
}
%
...
@@ -99,6 +109,12 @@
...
@@ -99,6 +109,12 @@
}
Review
}
}
Review
}
}
}
\newcommand
{
\markA
}{
\ftr
@ite@lang
{
výborně
}{
výborne
}{
excellent
}
(A)
}
\newcommand
{
\markB
}{
\ftr
@ite@lang
{
velmi dobře
}{
veľmi dobre
}{
very good
}
(B)
}
\newcommand
{
\markC
}{
\ftr
@ite@lang
{
dobře
}{
dobre
}{
good
}
(C)
}
\newcommand
{
\markD
}{
\ftr
@ite@lang
{
uspokojivě
}{
uspokojivo
}{
satisfactory
}
(D)
}
\newcommand
{
\markE
}{
\ftr
@ite@lang
{
vyhovující
}{
vyhovujúci
}{
sufficient
}
(E)
}
\newcommand
{
\markF
}{
\ftr
@ite@lang
{
nevyhovující
}{
nevyhovujúci
}{
failed
}
(F)
}
% Document header (logo + table with names)
% Document header (logo + table with names)
\AtBeginDocument
{
\AtBeginDocument
{
...
@@ -106,8 +122,8 @@
...
@@ -106,8 +122,8 @@
\node
[]
(TopLeft) at (current page.north west)
{}
;
\node
[]
(TopLeft) at (current page.north west)
{}
;
\node
[anchor=north west]
(FI-logo) [below right=11.5mm and 14mm of TopLeft]
{
%
\node
[anchor=north west]
(FI-logo) [below right=11.5mm and 14mm of TopLeft]
{
%
\ifthenelse
{
\equal
{
\ftr
@colorProfile
}{
bw
}}
%
\ifthenelse
{
\equal
{
\ftr
@colorProfile
}{
bw
}}
%
{
\ftr
@ite@
czech
{
\includegraphics
[scale=0.6]
{
logos/fi-cz-bw
}}{
\includegraphics
[scale=0.6]
{
logos/fi-en-bw
}}}
%
{
\ftr
@ite@
lang
{
\includegraphics
[scale=0.6]
{
logos/fi-cz-bw
}}
{
\includegraphics
[scale=0.6]
{
logos/fi-cz-bw
}}{
\includegraphics
[scale=0.6]
{
logos/fi-en-bw
}}}
%
{
\ftr
@ite@
czech
{
\includegraphics
[scale=0.6]
{
logos/fi-cz-color
}}{
\includegraphics
[scale=0.6]
{
logos/fi-en-color
}}}
%
{
\ftr
@ite@
lang
{
\includegraphics
[scale=0.6]
{
logos/fi-cz-color
}}
{
\includegraphics
[scale=0.6]
{
logos/fi-cz-color
}}{
\includegraphics
[scale=0.6]
{
logos/fi-en-color
}}}
%
}
;
}
;
\node
[]
(TopRight) at (current page.north east)
{}
;
\node
[]
(TopRight) at (current page.north east)
{}
;
...
@@ -119,12 +135,12 @@
...
@@ -119,12 +135,12 @@
\noindent
\noindent
{
\def\arraystretch
{
1.3
}
\tabcolsep
=10pt
{
\def\arraystretch
{
1.3
}
\tabcolsep
=10pt
\begin{tabularx}
{
\textwidth
}{
@
{}
l >
{
\it
}
X @
{}}
\begin{tabularx}
{
\textwidth
}{
@
{}
l >
{
\it
}
X @
{}}
\ftr
@ite@
czech
{
Náz
e
v práce
}{
Title
}
:
&
\@
thesisName
\\
\ftr
@ite@
lang
{
Název práce
}
{
Náz
o
v práce
}{
Title
}
:
&
\@
thesisName
\\
\ftr
@ite@
czech
{
Autor práce
}{
Author
}
:
&
\@
student
\ftr
@ite@
lang
{
Autor práce
}
{
Autor práce
}{
Author
}
:
&
\@
student
\ifthenelse
{
\isundefined
{
\@
supervisor
}}{}{
\\\ftr
@ite@
czech
{
Vedoucí práce
}{
Supervisor
}
:
&
\@
supervisor
}
%
\ifthenelse
{
\isundefined
{
\@
supervisor
}}{}{
\\\ftr
@ite@
lang
{
Vedoucí
práce
}{
Vedúci
práce
}{
Supervisor
}
:
&
\@
supervisor
}
%
\ifthenelse
{
\isundefined
{
\@
consultant
}}{}{
\\
Konzultant
:
&
\@
consultant
}
%
\ifthenelse
{
\isundefined
{
\@
consultant
}}{}{
\\
\ftr
@ite@lang
{
Konzultant
}{
Konzultant
}{
Consultant
}
:
&
\@
consultant
}
%
\ifthenelse
{
\isundefined
{
\@
reader
}}{}{
\\\ftr
@ite@
czech
{
Oponent
}{
Reader
}
:
&
\@
reader
}
%
\ifthenelse
{
\isundefined
{
\@
reader
}}{}{
\\\ftr
@ite@
lang
{
Oponent
}
{
Oponent
}{
Reader
}
:
&
\@
reader
}
%
\ifthenelse
{
\isundefined
{
\@
interReader
}}{}{
\\\ftr
@ite@
czech
{
Interní oponent
}{
Internal Reader
}
:
&
\@
interReader
}
%
\ifthenelse
{
\isundefined
{
\@
interReader
}}{}{
\\\ftr
@ite@
lang
{
Interní
oponent
}{
Interný
oponent
}{
Internal Reader
}
:
&
\@
interReader
}
%
\end{tabularx}
\end{tabularx}
}
}
\vspace
{
-0.5em
}
\vspace
{
-0.5em
}
...
...
thesis-report.tex
View file @
d904e808
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
% OPTIONAL: class options
% OPTIONAL: class options
% - bw: use black & white logo and link colors
% - bw: use black & white logo and link colors
% - english: use english for the report
% - english: use english for the report
% - slovak: use slovak for the report
% e.g. \documentclass[12pt, english, bw]
% e.g. \documentclass[12pt, english, bw]
\usepackage
{
lipsum
}
\usepackage
{
lipsum
}
...
@@ -32,7 +33,8 @@
...
@@ -32,7 +33,8 @@
\lipsum
\lipsum
% OPTIONAL: Use mark macros: \markA, \markB, \markC, \markD, \markE, \markF
\bigskip\noindent
\bigskip\noindent
S přihlédnutím k celkovému dosaženému výsledku navrhuji hodnotit práci známkou
velmi dobře (B)
.
S přihlédnutím k celkovému dosaženému výsledku navrhuji hodnotit práci známkou
\markB
.
\end{document}
\end{document}
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