Commit bbf9832f authored by Anonymous's avatar Anonymous Committed by overleaf
Browse files

Update on Overleaf.

parent 19e6a41c
This work is a colaborative effort in the spirit of Open culture.
The thanks belong to all contributors listed below.
Martin Ukrop
Martin Jonáš
Henrich Lauko
Petr Sojka
Vladimír Štill
Nikola Beneš
Jiří Barnat
Vojtěch Řehák
The MIT License (MIT)
Copyright (c) 2016 Martin Ukrop and other contributors (see 'AUTHORS' file)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
% fi-thesis-report.sty
% LaTeX style for theses reports at FI MU
% Released to public domain.
% Feel free to contribute or add bug reports in the form of issues
% 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}}
\DeclareOption{color}{} % the default
\newcommand{\ftr@lang}{czech}
\DeclareOption{english}{\renewcommand{\ftr@lang}{english}}
\DeclareOption{czech}{} % the default
% Based on 'article'
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
\ProcessOptions \relax
\LoadClass{article}
% Load necessary packages
\RequirePackage[utf8]{inputenc}
\RequirePackage[T1]{fontenc}
\RequirePackage{bera}
\RequirePackage{charter}
\RequirePackage{eulervm}
\RequirePackage[a4paper, top=30mm, bottom=35mm, left=30mm, right=30mm]{geometry}
\RequirePackage[final,kerning=true,spacing=true]{microtype}
\microtypecontext{spacing=nonfrench}
\RequirePackage[\ftr@lang]{babel}
\RequirePackage{color}
\RequirePackage{graphicx}
\RequirePackage{tabularx}
\RequirePackage{ifthen}
\RequirePackage{tikz}
\usetikzlibrary{positioning}
% Define colours
\definecolor{blue-mu}{RGB}{0,39,118}
\ifthenelse{\equal{\ftr@colorProfile}{bw}}{
\definecolor{ref-dark-red}{rgb}{0.3,0.3,0.3}
\definecolor{ref-dark-green}{rgb}{0.3,0.3,0.3}
\definecolor{ref-medium-blue}{rgb}{0.3,0.3,0.3}
}{
\definecolor{ref-dark-red}{rgb}{0.6,0.15,0.15}
\definecolor{ref-dark-green}{rgb}{0.15,0.4,0.15}
\definecolor{ref-medium-blue}{rgb}{0,0,0.5}
}
% setup hyperref
\RequirePackage[ colorlinks=true
, linkcolor={ref-dark-red}
, citecolor={ref-dark-green}
, urlcolor={ref-medium-blue}
]{hyperref}
% Define name strings and setting commands
\newcommand{\setColorProfile}[1]{\def\ftr@colorProfile{#1}%
\PackageWarning{fi-thesis-report}{setColorProfile is deprecated, please use bw documentclass option (colorprofile: bw for markdown)}}
\def\@reportType{}
\newcommand{\setReportType}[1]{\def\@reportType{#1}}
\def\@thesisType{}
\newcommand{\setThesisType}[1]{\def\@thesisType{#1}}
\def\@thesisName{}
\newcommand{\setThesisName}[1]{\def\@thesisName{#1}}
\def\@student{}
\newcommand{\setStudent}[1]{\def\@student{#1}}
\newcommand{\setSupervisor}[1]{\def\@supervisor{#1}}
\newcommand{\setConsultant}[1]{\def\@consultant{#1}}
\newcommand{\setReader}[1]{\def\@reader{#1}}
\newcommand{\setInterReader}[1]{\def\@interReader{#1}}
\def\@signature{%
\ifthenelse{\equal{\@reportType}{inter-reader}}{\@interReader}{%
\ifthenelse{\equal{\@reportType}{reader}}{\@reader}{\@supervisor}}%
}
\newcommand{\setSignature}[1]{\def\@signature{#1}}
% Helper for translation
\newcommand{\ftr@ite@czech}[2]{\ifthenelse{\equal{\ftr@lang}{czech}}{#1}{#2}}
% Determine correct title texts
\ftr@ite@czech{
\def\@titleFirst{Posudek
\ifthenelse{\equal{\@reportType}{inter-reader}}{interního oponenta}{
\ifthenelse{\equal{\@reportType}{reader}}{oponenta}{vedoucího}}
}
\def\@titleSecond{
\ifthenelse{\equal{\@thesisType}{phd}}{disertační}{%
\ifthenelse{\equal{\@thesisType}{bc}}{bakalářské}{diplomové}%
} práce}
}{
\def\@titleFirst{
\ifthenelse{\equal{\@thesisType}{phd}}{Disertation}{%
\ifthenelse{\equal{\@thesisType}{bc}}{Bachelor}{Master}%
} Thesis}
\def\@titleSecond{
\ifthenelse{\equal{\@reportType}{inter-reader}}{Internal}{
\ifthenelse{\equal{\@reportType}{reader}}{Reader's}{Supervisor's}
} Review}
}
% Document header (logo + table with names)
\AtBeginDocument{
\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{\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}}}%
};
\node[] (TopRight) at (current page.north east) {};
\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}}};
\end{tikzpicture}
\medskip
\noindent
{\def\arraystretch{1.3}\tabcolsep=10pt
\begin{tabularx}{\textwidth}{@{} l >{\it} X @{}}
\ftr@ite@czech{Název práce}{Title}: & \@thesisName \\
\ftr@ite@czech{Autor práce}{Author}: & \@student
\ifthenelse{\isundefined{\@supervisor}}{}{\\\ftr@ite@czech{Vedoucí práce}{Supervisor}: & \@supervisor}%
\ifthenelse{\isundefined{\@consultant}}{}{\\Konzultant: & \@consultant}%
\ifthenelse{\isundefined{\@reader}}{}{\\\ftr@ite@czech{Oponent}{Reader}: & \@reader}%
\ifthenelse{\isundefined{\@interReader}}{}{\\\ftr@ite@czech{Interní oponent}{Internal Reader}: & \@interReader}%
\end{tabularx}
}
\vspace{-0.5em}
\par\noindent
{%
\ifthenelse{\equal{\ftr@colorProfile}{bw}}{}{\color{blue-mu}}%
\rule{\textwidth}{0.3mm}
}
\vspace{-0.5em}
\par\@afterindentfalse\@afterheading
}
% Document footer (date, signature)
\AtEndDocument{
\vspace{2em}
\noindent
Brno \@date \hfill \@signature
}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
\documentclass[12pt]{fi-thesis-report}
% OPTIONAL: class options
% - bw: use black & white logo and link colors
% - english: use english for the report
% e.g. \documentclass[12pt, english, bw]
\usepackage{lipsum}
% MANDATORY: Choose color or black-and-white version
\setColorProfile{color} % 'color' or 'bw'
% DEPRECATED: Choose color or black-and-white version
% (use bw documentclass option for black & white design)
% \setColorProfile{color} % 'color' or 'bw'
% MANDATORY: Set report & thesis types, student and thesis names.
\setReportType{reader} % 'reader' or 'supervisor' or 'inter-reader'
......@@ -34,4 +39,4 @@
\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).
\end{document}
\end{document}
\ No newline at end of file
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