]> mj.ucw.cz Git - diplomky.git/commitdiff
Poangličtěná verze nové šablony
authorMartin Mares <mj@ucw.cz>
Sun, 15 Feb 2015 17:51:30 +0000 (18:51 +0100)
committerMartin Mares <mj@ucw.cz>
Sun, 15 Feb 2015 17:51:30 +0000 (18:51 +0100)
Oproti prvnímu vydání šablony jsou anglicky i komentáře
a jména maker.

cs/prace.tex
cs/titulka.tex
en/Makefile
en/thesis.tex
en/title.tex [new file with mode: 0644]

index cd2c337179325f872f2f4857a670c02fafcf04f9..2abf25aa1afffb58dc8da2fecd8e1e2d27437d21 100644 (file)
@@ -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}
 
 % 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.
 }
 
index a14ad8203793212e3fc7215b8f0150f52bbc9ea6..7869ce3da4c83ca84f13fc2b661fdc478dc5339e 100644 (file)
@@ -155,7 +155,7 @@ Title:
 Author:
 \AutorPrace
 
-Department:
+\TypPracovisteEN:
 \KatedraEN
 
 Supervisor:
index 8322ffd57f3ca4a651e26e435cceb0813a6ed7c1..0588378b37fd734e9c858f9799209aae88912993 100644 (file)
@@ -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
index 15551c52cde8126e65b781e4a12595a0eb96ba7f..d141c7e7542d0ac5053f048fa8989e38c12dd22a 100644 (file)
@@ -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}
 \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 (file)
index 0000000..383acb5
--- /dev/null
@@ -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}