From 7e65efa29ed45f5d27e8e02d30c8d330a27369fa Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sun, 15 Feb 2015 18:51:30 +0100 Subject: [PATCH] =?utf8?q?Poangli=C4=8Dt=C4=9Bn=C3=A1=20verze=20nov=C3=A9?= =?utf8?q?=20=C5=A1ablony?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Oproti prvnímu vydání šablony jsou anglicky i komentáře a jména maker. --- cs/prace.tex | 9 +- cs/titulka.tex | 2 +- en/Makefile | 20 +--- en/thesis.tex | 268 ++++++++++++++----------------------------------- en/title.tex | 176 ++++++++++++++++++++++++++++++++ 5 files changed, 260 insertions(+), 215 deletions(-) create mode 100644 en/title.tex diff --git a/cs/prace.tex b/cs/prace.tex index cd2c337..2abf25a 100644 --- a/cs/prace.tex +++ b/cs/prace.tex @@ -56,8 +56,9 @@ \def\Katedra{Název katedry nebo ústavu} \def\KatedraEN{Name of the department} -% Jedná se o katedru nebo o ústav? +% Jedná se o katedru (department) nebo o ústav (institute)? \def\TypPracoviste{Katedra} +\def\TypPracovisteEN{Department} % Vedoucí práce: Jméno a příjmení s~tituly \def\Vedouci{Vedoucí práce} @@ -72,15 +73,15 @@ % Nepovinné poděkování (vedoucímu práce, konzultantovi, tomu, kdo % zapůjčil software, literaturu apod.) -\def\Podekovani{ +\def\Podekovani{% Poděkování. } % Abstrakt (v rozsahu cca 80-200 slov; nejedná se o zadání práce) -\def\Abstrakt{ +\def\Abstrakt{% Abstrakt. } -\def\AbstraktEN{ +\def\AbstraktEN{% Abstract. } diff --git a/cs/titulka.tex b/cs/titulka.tex index a14ad82..7869ce3 100644 --- a/cs/titulka.tex +++ b/cs/titulka.tex @@ -155,7 +155,7 @@ Title: Author: \AutorPrace -Department: +\TypPracovisteEN: \KatedraEN Supervisor: diff --git a/en/Makefile b/en/Makefile index 8322ffd..0588378 100644 --- a/en/Makefile +++ b/en/Makefile @@ -1,20 +1,10 @@ all: thesis.pdf -# Vyroba PDF primo z DVI by byla prijemnejsi, ale vetsina verzi dvipdfm nici obrazky -# thesis.pdf: thesis.dvi -# dvipdfm -o $@ -p a4 -r 600 $< - -thesis.pdf: thesis.ps - ps2pdf $< $@ - -thesis.ps: thesis.dvi - dvips -o $@ -D600 -t a4 $< - -# LaTeX je potreba spustit dvakrat, aby spravne spocital odkazy -thesis.dvi: thesis.tex $(wildcard *.tex) - cslatex $< - cslatex $< +# LaTeX must be run twice to get references right +thesis.pdf: thesis.tex $(wildcard *.tex) + pdflatex $< + pdflatex $< clean: rm -f *.log *.dvi *.aux *.toc *.lof *.out - rm -f thesis.ps thesis.pdf + rm -f thesis.pdf diff --git a/en/thesis.tex b/en/thesis.tex index 15551c5..d141c7e 100644 --- a/en/thesis.tex +++ b/en/thesis.tex @@ -1,8 +1,8 @@ -%%% Hlavní soubor. Zde se definují základní parametry a odkazuje se na ostatní části. %%% +%%% The main file. It contains definitions of basic parameters and includes all other parts. -%% Verze pro jednostranný tisk: -% Okraje: levý 40mm, pravý 25mm, horní a dolní 25mm -% (ale pozor, LaTeX si sám přidává 1in) +%% Settings for single-side (simplex) printing +% Margins: left 40mm, right 25mm, top and bottom 25mm +% (but beware, LaTeX adds 1in implicitly) \documentclass[12pt,a4paper]{report} \setlength\textwidth{145mm} \setlength\textheight{247mm} @@ -11,248 +11,126 @@ \setlength\topmargin{0mm} \setlength\headsep{0mm} \setlength\headheight{0mm} -% \openright zařídí, aby následující text začínal na pravé straně knihy +% Recommended layout mentions line spacing 1.5, but this is not relevant to TeX. +% \openright makes the following text appear on a right-hand page \let\openright=\clearpage -%% Pokud tiskneme oboustranně: +%% Settings for two-sided (duplex) printing % \documentclass[12pt,a4paper,twoside,openright]{report} % \setlength\textwidth{145mm} % \setlength\textheight{247mm} -% \setlength\oddsidemargin{15mm} +% \setlength\oddsidemargin{14.2mm} % \setlength\evensidemargin{0mm} % \setlength\topmargin{0mm} % \setlength\headsep{0mm} % \setlength\headheight{0mm} % \let\openright=\cleardoublepage -%% Použité kódování znaků: obvykle latin2, cp1250 nebo utf8: -\usepackage[latin2]{inputenc} +%% Character encoding: usually latin2, cp1250 or utf8: +\usepackage[utf8]{inputenc} -%% Ostatní balíčky +%% Further packages \usepackage{graphicx} \usepackage{amsthm} -%% Balíček hyperref, kterým jdou vyrábět klikací odkazy v PDF, -%% ale hlavně ho používáme k uložení metadat do PDF (včetně obsahu). -%% POZOR, nezapomeňte vyplnit jméno práce a autora. -\usepackage[ps2pdf,unicode]{hyperref} % Musí být za všemi ostatními balíčky -\hypersetup{pdftitle=Název práce} -\hypersetup{pdfauthor=Jméno Příjmení} +%%% Basic information on the thesis -%%% Drobné úpravy stylu +% Thesis title in English (exactly as in the formal assignment) +\def\ThesisTitle{Thesis title} -% Tato makra přesvědčují mírně ošklivým trikem LaTeX, aby hlavičky kapitol -% sázel příčetněji a nevynechával nad nimi spoustu místa. Směle ignorujte. -\makeatletter -\def\@makechapterhead#1{ - {\parindent \z@ \raggedright \normalfont - \Huge\bfseries \thechapter. #1 - \par\nobreak - \vskip 20\p@ -}} -\def\@makeschapterhead#1{ - {\parindent \z@ \raggedright \normalfont - \Huge\bfseries #1 - \par\nobreak - \vskip 20\p@ -}} -\makeatother +% Translation of the title to Czech +\def\ThesisTitleCS{Název práce} -% Toto makro definuje kapitolu, která není očíslovaná, ale je uvedena v obsahu. -\def\chapwithtoc#1{ -\chapter*{#1} -\addcontentsline{toc}{chapter}{#1} -} - -\begin{document} - -% Trochu volnější nastavení dělení slov, než je default. -\lefthyphenmin=2 -\righthyphenmin=2 - -%%% Titulní strana práce - -\pagestyle{empty} -\begin{center} - -\large - -Charles University in Prague - -\medskip - -Faculty of Mathematics and Physics - -\vfill - -{\bf\Large BACHELOR THESIS} - -\vfill - -\centerline{\mbox{\includegraphics[width=60mm]{../img/logo.eps}}} +% Author of the thesis +\def\ThesisAuthor{Name Surname} -\vfill -\vspace{5mm} +% Year when the thesis is submitted +\def\YearSubmitted{YEAR} -{\LARGE First and last name of the author} +% Name of the department or institute, where the work was officially assigned +% (according to the Organizational Structure of MFF UK in English, +% or a full name of a department outside MFF) +\def\Department{Name of the department} +\def\DepartmentCS{Název katedry nebo ústavu} -\vspace{15mm} +% Is it a department (katedra), or an institute (ústav)? +\def\DeptType{Department} +\def\DeptTypeCS{Katedra} -% Název práce přesně podle zadání -{\LARGE\bfseries Title of the thesis} +% Thesis supervisor: name, surname and titles +\def\Supervisor{Supervisor's Name} -\vfill +% Supervisor's department (again according to Organizational structure of MFF) +\def\SupervisorsDepartment{department} +\def\SupervisorsDepartmentCS{pracoviště} -% Název katedry nebo ústavu, kde byla práce oficiálně zadána -% (dle Organizační struktury MFF UK) -Name of the department or institute +% Study programme and specialization +\def\StudyProgramme{study programme} +\def\Specialization{specialization} -\vfill - -\begin{tabular}{rl} - -Supervisor of the bachelor thesis: & First and last name \\ -\noalign{\vspace{2mm}} -Study programme: & programme \\ -\noalign{\vspace{2mm}} -Specialization: & specialization \\ -\end{tabular} - -\vfill - -% Zde doplňte rok -Prague YEAR - -\end{center} - -\newpage - -%%% Následuje vevázaný list -- kopie podepsaného "Zadání bakalářské práce". -%%% Toto zadání NENÍ součástí elektronické verze práce, nescanovat. - -%%% Na tomto místě mohou být napsána případná poděkování (vedoucímu práce, -%%% konzultantovi, tomu, kdo zapůjčil software, literaturu apod.) - -\openright - -\noindent +% An optional dedication: you can thank whomever you wish (your supervisor, +% consultant, a person who lent the software, etc.) +\def\Dedication{% Dedication. +} -\newpage - -%%% Strana s čestným prohlášením k bakalářské práci - -\vglue 0pt plus 1fill - -\noindent -I declare that I carried out this bachelor thesis independently, and only with the cited -sources, literature and other professional sources. - -\medskip\noindent -I understand that my work relates to the rights and obligations under the Act No. -121/2000 Sb., the Copyright Act, as amended, in particular the fact that the Charles -University in Prague has the right to conclude a license agreement on the use of this -work as a school work pursuant to Section 60 subsection 1 of the Copyright Act. - -\vspace{10mm} - -\hbox{\hbox to 0.5\hsize{% -In ........ date ............ -\hss}\hbox to 0.5\hsize{% -signature of the author -\hss}} - -\vspace{20mm} -\newpage - -%%% Povinná informační strana bakalářské práce - -\vbox to 0.5\vsize{ -\setlength\parindent{0mm} -\setlength\parskip{5mm} - -Název práce: -Název práce -% přesně dle zadání - -Autor: -Jméno a příjmení autora - -Katedra: % Případně Ústav: -Název katedry či ústavu, kde byla práce oficiálně zadána -% dle Organizační struktury MFF UK - -Vedoucí bakalářské práce: -Jméno a příjmení s tituly, pracoviště -% dle Organizační struktury MFF UK, případně plný název pracoviště mimo MFF UK - -Abstrakt: -% abstrakt v rozsahu 80-200 slov; nejedná se však o opis zadání bakalářské práce - -Klíčová slova: -% 3 až 5 klíčových slov - -\vss}\nobreak\vbox to 0.49\vsize{ -\setlength\parindent{0mm} -\setlength\parskip{5mm} - -Title: -% přesný překlad názvu práce v angličtině - -Author: -Jméno a příjmení autora - -Department: -Název katedry či ústavu, kde byla práce oficiálně zadána -% dle Organizační struktury MFF UK v angličtině - -Supervisor: -Jméno a příjmení s tituly, pracoviště -% dle Organizační struktury MFF UK, případně plný název pracoviště -% mimo MFF UK v angličtině - -Abstract: -% abstrakt v rozsahu 80-200 slov v angličtině; nejedná se však o překlad -% zadání bakalářské práce +% Abstract (around 80-200 words; this is not a copy of your thesis assignment!) +\def\Abstract{% +Abstract. +} +\def\AbstractCS{% +Abstract. +} -Keywords: -% 3 až 5 klíčových slov v angličtině +% 3 to 5 keywords, each enclosed in curly braces +\def\Keywords{% +{klíčová} {slova} +} +\def\KeywordsCS{% +{key} {words} +} -\vss} +%% The hyperref package for clickable links in PDF and also for storing +%% metadata to PDF (including the table of contents). +\usepackage[pdftex,unicode]{hyperref} % Must follow all other packages +\hypersetup{breaklinks=true} +\hypersetup{pdftitle={\ThesisTitle}} +\hypersetup{pdfauthor={\ThesisAuthor}} +\hypersetup{pdfkeywords=\Keywords} -\newpage +\input title.tex -%%% Strana s automaticky generovaným obsahem bakalářské práce. U matematických -%%% prací je přípustné, aby seznam tabulek a zkratek, existují-li, byl umístěn -%%% na začátku práce, místo na jejím konci. +%%% A page with automatically generated content of the bachelor thesis. For +%%% a mathematical thesis, it is permissible to have a list of tables and abbreviations, +%%% if any, at the beginning of the thesis instead of at its end. \openright \pagestyle{plain} \setcounter{page}{1} \tableofcontents -%%% Jednotlivé kapitoly práce jsou pro přehlednost uloženy v samostatných souborech +%%% Each chapter is kept in a separate file \include{preface} \include{chap1} \include{chap2} -% Ukázka použití některých konstrukcí LateXu (odkomentujte, chcete-li) +% An example of LaTeX use (uncomment, if you wish) % \include{example} \include{epilog} -%%% Seznam použité literatury +%%% Bibliography \include{bibliography} -%%% Tabulky v bakalářské práci, existují-li. +%%% Tables used in the thesis, if any \chapwithtoc{List of Tables} -%%% Použité zkratky v bakalářské práci, existují-li, včetně jejich vysvětlení. +%%% Abbreviations used in the thesis, if any, including their explanation \chapwithtoc{List of Abbreviations} -%%% Přílohy k bakalářské práci, existují-li (různé dodatky jako výpisy programů, -%%% diagramy apod.). Každá příloha musí být alespoň jednou odkazována z vlastního -%%% textu práce. Přílohy se číslují. +%%% Attachments to the bachelor thesis, if any (various additions such +%%% as programme extracts, diagrams, etc.). Each attachment must be referred to +%%% at least once from one's own text of the thesis. Attachments are numbered. \chapwithtoc{Attachments} \openright diff --git a/en/title.tex b/en/title.tex new file mode 100644 index 0000000..383acb5 --- /dev/null +++ b/en/title.tex @@ -0,0 +1,176 @@ +%%% Title page of the thesis and other mandatory pages + +%%% Minor tweaks of style + +% These macros employ a little dirty trick to convince LaTeX to typeset +% chapter headings sanely, without lots of empty space above them. +% Feel free to ignore. +\makeatletter +\def\@makechapterhead#1{ + {\parindent \z@ \raggedright \normalfont + \Huge\bfseries \thechapter. #1 + \par\nobreak + \vskip 20\p@ +}} +\def\@makeschapterhead#1{ + {\parindent \z@ \raggedright \normalfont + \Huge\bfseries #1 + \par\nobreak + \vskip 20\p@ +}} +\makeatother + +% This macro defines a chapter, which is not numbered, but is included +% in the table of contents. +\def\chapwithtoc#1{ +\chapter*{#1} +\addcontentsline{toc}{chapter}{#1} +} + +\begin{document} + +% Somewhat relaxed hyphenation +\lefthyphenmin=2 +\righthyphenmin=2 + +%%% Title page of the thesis + +\pagestyle{empty} +\hypersetup{pageanchor=false} +\begin{center} + +\large + +Charles University in Prague + +\medskip + +Faculty of Mathematics and Physics + +\vfill + +{\bf\Large BACHELOR THESIS} + +\vfill + +\centerline{\mbox{\includegraphics[width=60mm]{../img/logo.pdf}}} + +\vfill +\vspace{5mm} + +{\LARGE\ThesisAuthor} + +\vspace{15mm} + +{\LARGE\bfseries\ThesisTitle} + +\vfill + +\Department + +\vfill + +\begin{tabular}{rl} + +Supervisor of the bachelor thesis: & \Supervisor \\ +\noalign{\vspace{2mm}} +Study programme: & \StudyProgramme \\ +\noalign{\vspace{2mm}} +Specialization: & \Specialization \\ +\end{tabular} + +\vfill + +% Zde doplňte rok +Prague \YearSubmitted + +\end{center} + +\newpage + +%%% Here should be a bound sheet included -- a signed copy of the "bachelor +%%% thesis assignment". This assignment is NOT a part of the electronic +%%% version of the thesis. DO NOT SCAN. + +\openright + +\noindent +\Dedication + +\newpage + +%%% A page with a solemn declaration to the bachelor thesis + +\vglue 0pt plus 1fill + +\noindent +I declare that I carried out this bachelor thesis independently, and only with the cited +sources, literature and other professional sources. + +\medskip\noindent +I understand that my work relates to the rights and obligations under the Act No.~121/2000 Sb., +the Copyright Act, as amended, in particular the fact that the Charles +University in Prague has the right to conclude a license agreement on the use of this +work as a school work pursuant to Section 60 subsection 1 of the Copyright Act. + +\vspace{10mm} + +\hbox{\hbox to 0.5\hsize{% +In ........ date ............ % FIXME! +\hss}\hbox to 0.5\hsize{% +signature of the author +\hss}} + +\vspace{20mm} +\newpage + +%%% Mandatory information page of the thesis + +\vbox to 0.5\vsize{ +\setlength\parindent{0mm} +\setlength\parskip{5mm} + +Název práce: +\ThesisTitleCS + +Autor: +\ThesisAuthor + +\DeptTypeCS: +\DepartmentCS + +Vedoucí bakalářské práce: +\Supervisor, \SupervisorsDepartmentCS + +Abstract: +\AbstractCS + +Klíčová slova: +\KeywordsCS + +\vss}\nobreak\vbox to 0.49\vsize{ +\setlength\parindent{0mm} +\setlength\parskip{5mm} + +Title: +\ThesisTitle + +Author: +\ThesisAuthor + +\DeptType: +\Department + +Supervisor: +\Supervisor, \SupervisorsDepartment + +Abstract: +\Abstract + +Keywords: +\Keywords + +\vss} + +\newpage +\hypersetup{pageanchor=true} -- 2.39.2