-
Notifications
You must be signed in to change notification settings - Fork 0
/
k336_thesis_macros.sty
173 lines (154 loc) · 4.66 KB
/
k336_thesis_macros.sty
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
%%
% HISTORY:
%
% Daniel Sykora (26.12.2004)
%
% Pavel Tvrdik (17.12.2004)
%
% Michal Valenta (7.5. 2008)
%preamble declarations
%%%% 7.5.2009
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=%
\setlength\hoffset{-10pt}
\setlength\voffset{-\baselineskip}
\normalsize
\setlength\textwidth{40em}
%
\setlength\topmargin{0pt}
\setlength\headheight{\baselineskip}
\setlength\headsep{2\baselineskip}
\setlength\topskip{\baselineskip}
\setlength\textheight{45\baselineskip}
\addtolength\textheight{\topskip} %calc.sty avoided
\setlength\footskip{3\baselineskip}
%
\if@twoside
\typeout{Two side layout redefined.}
%
\setlength\evensidemargin{0pt}
\setlength\oddsidemargin{37.5pt}
\setlength\marginparsep{0pt}
\setlength\marginparwidth{0pt}
\else
\typeout{One side layout redefined.}
%
\setlength\evensidemargin{0pt}
\setlength\oddsidemargin{19pt}
\setlength\marginparsep{0pt}
\setlength\marginparwidth{0pt}
\fi
%=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=%
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}
\def\ifndef#1{\expandafter\ifx\csname#1\endcsname\relax} % check whether macro is defined
\newcommand\coverpagestarts
{\cleardoublepage
\pagenumbering{roman}\thispagestyle{empty}\setcounter{page}{3}
\begin{center}
\large\rmfamily
\University\\
\Faculty\\
\Department\\
\vglue 10mm
\includegraphics[width=50mm]{figures/LogoCVUT}
\vglue 30mm
{\large \TypeOfWork}\\
\bigskip
{\Large\bf \WorkTitle}\\
\bigskip
\bigskip
{\Large\it \FirstandFamilyName}\\
\vfill
\item[\labelSupervisor:]\ \Supervisor\\
\vglue 15mm
{\labelStudProgram: \StudProgram}\\
\bigskip
{\labelStudBranch: \StudBranch}\\
\bigskip
\Date\\
\end{center}
\newpage
}
\newcommand\mainbodystarts{
\cleardoublepage
\pagestyle{headings}\pagenumbering{arabic}\setcounter{page}{1}
}
%A list of user hyphenations.
\input{hyphen.tex}
%Chapters start at odd pages if you include:
%\newcommand\chapter{\if@openright\cleardoublepage\else\clearpage\fi
% into /usr/lib/texmf/tex/latex/latex/book.cls
%your specific macros
\newcommand{\bcen}{\begin{center}}
\newcommand{\ecen}{\end{center}}
\newcommand{\blem}{\begin{lemma}\sl}
\newcommand{\elem}{\end{lemma}\rm}
\newcommand{\bnote}{\begin{note}\rm}
\newcommand{\enote}{\end{note}}
\newcommand{\bcor}{\begin{corollary}\sl}
\newcommand{\ecor}{\end{corollary}\rm}
\newcommand{\bdefi}{\begin{definition}\rm}
\newcommand{\edefi}{\end{definition}}
\newcommand{\btheo}{\begin{theorem}\sl}
\newcommand{\etheo}{\end{theorem}\rm}
\newcommand{\bprop}{\begin{proposition}\sl}
\newcommand{\eprop}{\end{proposition}\rm}
\newcommand{\bexam}{\begin{example}\rm}
\newcommand{\eexam}{\end{example}}
%
\newcommand{\bfig}{\begin{figure}\begin{center}}
\newcommand{\efig}{\end{center}\end{figure}}
\newcommand{\btab}{\begin{table}\begin{center}}
\newcommand{\etab}{\end{center}\end{table}}
\newcommand{\benum}{\begin{enumerate}}
\newcommand{\eenum}{\end{enumerate}}
\newcommand{\bitem}{\begin{itemize}}
\newcommand{\eitem}{\end{itemize}}
\newcommand{\bflushr}{\begin{flushright}}
\newcommand{\eflushr}{\end{flushright}}
% ceske uvozovky
\chardef\clqq=18 \sfcode18=0
\chardef\crqq=16 \sfcode16=0
\def\uv#1{\clqq#1\crqq}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\acknowledgements}{
\cleardoublepage
\vspace*{\fill}
\noindent
{\huge \textbf{%
\iflanguage{slovak}{Poďakovanie}{Aknowledgements}%
}}
\vspace{3ex}\par
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\declaration}[1]{
\cleardoublepage
\vspace*{\fill}
\noindent
{\huge \textbf{%
\iflanguage{slovak}{Prehlásenie}{Declaration}%
}}
\vspace{3ex}\par
\noindent
\iflanguage{slovak}{%
Prehlasujem, že som svoju diplomovú prácu vypracoval samostatne a použil som iba podklady uvedené v priloženom zozname.\\
Nemám závažný dôvod proti užitiu tohto školského diela v zmysle \S 60 Zákona č.~121/2000 Sb., o autorskom práve, o právach súvisiacich s právom autorským a o zmene niektorých zákonov (autorský zákon).%
}{%
\noindent
I hereby declare that I have completed this master thesis independently and that I have listed all the literature and publications used.\\
I have no objection to usage of this work in compliance with the act \S 60 Zákon č.~121/2000Sb. (copyright law), and with the rights connected with the copyright act including the changes in the act.%
}
\\[15mm]
#1 \hfill \hbox to 70mm{\tiny\dotfill}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\abstractpage}{
\cleardoublepage
\noindent
%{\Huge \textbf{Abstract}}
%\vspace{8ex}
\chapter*{Abstract}
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% zada kapitolu s Literaturou do obsahu
\def\@openbib@code{\addcontentsline{toc}{chapter}{\bibname}}