Commit 19031a76 authored by Martin Ukrop's avatar Martin Ukrop
Browse files

Add thesis report version 2018-01-29

parent c71b8a40
# TeX documents for individual students
*.tex
# compiled documents
*.pdf
# TeX intermediary files
*.aux
*.dvi
*.log
*.synctex.gz
*.out
*.nav
*.toc
*.snm
*.run.xml
*-blx.bib
*.bbl
*.blg
*.bcf
# other files
*.txss
forcefile
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.
TEXS=$(wildcard *.tex)
PDFS=$(TEXS:.tex=.pdf)
all: $(PDFS) clean
clean:
rm -f *.aux *.dvi *.log *.synctex.gz *.out *.nav *.toc *.snm *.run.xml *-blx.bib *.bbl *.blg *.bcf
%.pdf : %.tex fi-thesis-report.cls
pdflatex $<
pdflatex $<
.PHONY: all clean
FI thesis report
================
Unofficial LaTeX template for thesis reports at FI MU. Uses the new faculty visual style.
## Usage
* The project defines a new LaTeX document style 'fi-thesis-report' based on the traditional TeX class 'article'.
* The easiest way how to use the existing example file *thesis-report.tex*. Documentation of the important commands is provided in comments.
* To build the report correctly, it is necessary to **run the build twice** (faculty logo is included as PDF).
* The included Makefile builds all '.tex' files in the current directory (so it is convenient to store multiple reports right there).
## Tips and tricks
* All options passed to 'fi-thesis-report' are passed to the underlying 'article' class.
* If you prefer pandoc and markdown, see `pandoc/`
% 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]
% 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}
\RequirePackage[czech]{babel}
\RequirePackage{color}
\RequirePackage{graphicx}
\RequirePackage{tabularx}
\RequirePackage{ifthen}
\RequirePackage{tikz}
\usetikzlibrary{positioning}
% Define colours
\definecolor{blue-mu}{RGB}{0,39,118}
% Define name strings and setting commands
\def\@colorProfile{}
\newcommand{\setColorProfile}[1]{\def\@colorProfile{#1}}
\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}}
% Determine correct title texts
\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}
% 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{\@colorProfile}{bw}}%
{\includegraphics{fi-logo-bw}}%
{\includegraphics{fi-logo-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 @{}}
Název práce: & \@thesisName \\
Autor práce: & \@student
\ifthenelse{\isundefined{\@supervisor}}{}{\\Vedoucí práce: & \@supervisor}%
\ifthenelse{\isundefined{\@consultant}}{}{\\Konzultant: & \@consultant}%
\ifthenelse{\isundefined{\@reader}}{}{\\Oponent: & \@reader}%
\ifthenelse{\isundefined{\@interReader}}{}{\\Interní oponent: & \@interReader}%
\end{tabularx}
}
\vspace{-0.5em}
\par\noindent
{%
\ifthenelse{\equal{\@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
}
\documentclass{article}
\usepackage[utf8]{inputenc}
\begin{document}
(Type your content here.)
\end{document}
MDS=$(wildcard *.md)
PDFS=$(MDS:.md=.pdf)
all : $(PDFS)
TEXDEPS=../fi-thesis-report.cls
TEMPLATE=template.tex
%.pdf : %.md $(TEXDEPS) $(TEMPLATE)
env TEXINPUTS=..:.: pandoc --template=$(TEMPLATE) $< -o $@
---
colorprofile: color # 'color' or 'bw'
reporttype: reader # 'reader' or 'supervisor' or 'inter-reader'
thesistype: bc # 'bc' or 'mgr' or 'phd'
thesisname: The Great Thesis
student: John Doe
supervisor: Mgr. Richard Roe, Ph.D. # comment to hide
consultant: Ing. Maggie Lane # comment to hide
reader: RNDr. John Smith # comment to hide
inter-reader: RNDr.\ Mary Poppins, Ph.D. # comment to hide
#signature: John Smith # uncomment for custom signature
#date: 1\. 4. 2020 # uncomment for custom date
# Note: Escaping the the first '.' via '\.' is necessary, otherwise pandoc
# gets confused and assumes this is an enumerated list.
header-includes:
- \usepackage{lipsum}
...
\lipsum
S přihlédnutím k celkovému dosaženému výsledku navrhuji hodnotit práci známkou velmi dobře (B).
\documentclass[12pt]{fi-thesis-report}
\usepackage{lipsum}
% MANDATORY: Choose color or black-and-white version
\setColorProfile{color} % 'color' or 'bw'
% MANDATORY: Set report & thesis types, student and thesis names.
\setReportType{reader} % 'reader' or 'supervisor' or 'inter-reader'
\setThesisType{bc} % 'bc' or 'mgr' or 'phd'
\setThesisName{The Great Thesis} % can be multiline, just add '\newline'
\setStudent{John Doe}
% SELECTIVE: Set supervisor/consultant/reader names.
% Those not set will not be displayed
\setSupervisor{Mgr.\ Richard Roe, Ph.D.}
%\setConsultant{Ing.\ Maggie Lane}
\setReader{RNDr.\ John Smith}
%\setInterReader{RNDr.\ Mary Poppins, Ph.D.}
% OPTIONAL: Choose a custom signature (e.g. without tiles).
% If signature is not set, supervisor/reader name is taken.
\setSignature{John Smith}
% OPTIONAL: Set the date using \date{...}.
% If the date is not set, uses \today.
% \date{1. ledna 2017}
% Thesis report begin
\begin{document}
\lipsum
\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}
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