-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathctustyle-ts.tex
237 lines (226 loc) · 7.31 KB
/
ctustyle-ts.tex
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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
% ctustyle-ts.tex -- the extended macros for ctustyle.tex
% Thesis Statement
% See the example-ts.tex for an example of usage
% -------------------------------------------------------
% Petr Olsak May 2014
\ifx\ctustyleversion\undefined \input ctustyle2 \fi
\margins/2 a5 (17,17,11,20)mm
\typosize[9.5/11]
\def\makeheadline{}
\def\titlepageA{
\insertoutline{\mtext{title0}}
\topskip=0pt\vglue5mm
\line{\locc \let\longlocalcolor=\localcolor
\Blue \vrule height 170mm width 4mm \Black \hss
\vbox to170mm{\advance\hsize by-8mm \parindent=0pt
\picw=2.8cm \def\picdir{}%
\line{\inspic ctulogo-new.pdf \hss
\vbox{\advance\hsize by-34mm
\baselineskip=17pt\secfont%\bf\thefontsize[15]
\Blue \mtext{ctu}\par
\kern.5pt}}
\vskip8mm
\line{\hbox{\bf\thefontsize[32] \printfaculty}\hss}
\vskip8mm
\leavevmode \bf
\ifcase\worktypenum
\the\workname \or \mtext{B}\or \mtext{M}\or \mtext{D}\fi
\vskip55mm
\rightskip=0pt plus1fil
{\secfont\Black \the\author \par}
\vss
\the\date\par
}}}
\def\titlepageB{{\bf \baselineskip=15pt
\leftskip=0pt plus1fill \rightskip=0pt plus1fill \parindent=0pt
\insertoutline{\mtext{title0}-2}
\vglue7mm
{\def\nl{ }\mtext{ctu}\par}
\mtext{\the\faculty}\par
\the\department\par
\vfill
\the\author\par
\vskip15mm
{\locc\nBlue {\secfont \the\title\nl \par}\medskip\the\subtitle\par}
\baselineskip=12pt
\vfill
\tenss \the\studyinfo \par
\vskip15mm
\the\titleinfo \par
\vskip15mm
\bf \the\date\par
}}
\def\infopage{{\hbadness=2000
\parindent=0pt
\the\infoA \par
\bigskip
\setright{\mtext{candidate}}{\the\candidate}
\bigskip
\setright{\mtext{supervisorD}}{\the\supervisor}
\if^\the\supervisorspec^\else
\bigskip
\setright{\mtext{supervisorS}}{\the\supervisorspec}\fi
\bigskip
\setright{\mtext{opponents}}{\the\opponents}
\vfill
\the\infoB \par
\bigskip
\the\infoC \par
\bigskip
\the\infoD \par
\vfill
\hfill\vbox{\advance\hsize by-3cm
\leftskip=0pt plus1fill \rightskip=0pt plus1fill
\the\orohead \par}
}}
\def\setright#1#2{\setbox0=\hbox{\bf#1:\enspace}%
\ifdim\wd0<5.8em \wd0=5.8em \fi
{\hangindent=\wd0 \noindent\box0\ignorespaces#2\par}%
}
\def\makefront{%
\everypar={}
\mandatorydecl\faculty
\edef\tmpa{:F1:F2:F3:F4:F5:F6:F7:F8:MUVS:}
\edef\tmpb{\noexpand\isinlist\noexpand\tmpa{:\the\faculty:}}\tmpb
\iftrue \else
\ctustyleERR {The \noexpand\faculty {\the\faculty}
is not in the list F1, F2, ..., F8, MUVS}%
\fi
\mandatorydecl\department
\mandatorydecl\title
\mandatorydecl\author
\mandatorydecl\date
\mandatorydecl\address
\mandatorydecl\studyspec
\mandatorydecl\studyform
\mandatorydecl\studyinfo
\mandatorydecl\orohead
\mandatorydecl\candidate
\mandatorydecl\supervisor
\pdfinfodata
\footline={\hss\drafttext}
\titlepageA \nextoddpage
\titlepageB \vfil\break
\infopage \vfil\break
\footline={\hss\tenss\thefontsize[9]\the\pageno\hss\drafttext}
}
\def\ddots{\leavevmode\hbox to2cm{\dotfill}}
\def\thetnum{\the\tnum}
\def\thefnum{\the\fnum}
\def\printsec#1{\removelastskip
\ifnum \lastpenalty<1000 \goodbreak \fi \bigskip\medskip\vskip.5\parskip
\line{\locc\Blue\vrule height 4.5mm width4mm depth.9mm
\hss\vtop{\locc\advance\hsize by-8mm
\secfont \noindent \Black\dotocnum{\thesecnum\quad}%
\nBlue#1\strut\nbpar}}%
\insertmark{#1}%
\nobreak\vskip-.5\parskip \medskip
\firstnoindent
}
\def\printsecc#1{\removelastskip
\ifnum \lastpenalty<1000 \goodbreak \fi \smallskip\medskip\vskip.5\parskip
\line{\locc\Blue\vrule height 3.3mm width4mm depth.3mm\Black
\hss\vtop{\locc\advance\hsize by-8mm
\seccfont \noindent \dotocnum{\theseccnum\quad}%
\nBlue#1\strut\nbpar\kern-4.5pt}}%
\nobreak\vskip-.5\parskip\smallskip\kern2pt
\firstnoindent
}
\def\captionhook#1{%\typosize[10/12]%
\ifx\clabeltext\undefined \else
\ifx#1t\edef\tmp{\noexpand\wref\noexpand\Xtab
{{\lastlabel}{\thetnum}{\clabeltext}}}\tmp
\else \edef\tmp{\noexpand\wref\noexpand\Xfig
{{\lastlabel}{\thefnum}{\clabeltext}}}\tmp
\fi\fi
\global\let\clabeltext=\undefined
\vskip-\parskip
}
\def\secfont{\typobase\typoscale[\magstep1/\magstep1]\bfshape}
\def\seccfont{\typobase\typoscale[1045/1045]\bfshape}
\sdef{wl:CZ}{\def\mainlanguage{CZ}\chyph \textCZ}
\def\facultygenitiv{\edef\tmpb{\mtext{\the\faculty} }%
\replacestrings{ulta }{ulty }%
\replacestrings{á }{é }%
\tmpb
}
\def\departmentlokal{\edef\tmpb{\the\department\space}%
\replacestrings{tedra }{tedře }%
\replacestrings{Ústav }{Ústavu }%
\tmpb
}
\mtdef {candidate} {Candidate} {Kandidát} {}
\mtdef {opponents} {Opponents} {Oponenti} {}
\mtdef {supervisorS} {Supervisor-Specialist}
{Školitel-specialista}
{Školiteľ-špecialista}
\newtoks\studyform
\newtoks\studyspec
\newtoks\address
\newtoks\candidate
\newtoks\supervisorspec
\newtoks\opponents
\newtoks\orohead
\newtoks\titleinfo
\newtoks\infoA
\newtoks\infoB
\newtoks\infoC
\newtoks\infoD
\workname {Doctoral Thesis Statement}
\titleinfo{%
Doctoral thesis statement for obtaining the academic title of ``Doctor'',
abbreviated to ``Ph.D.''
}
\infoA{%
The doctoral thesis was produced in \the\studyform\ manner of Ph.D. study at the
\the\department\ of the \mtext{\the\faculty} of the
CTU in Prague.
}
\infoB{%
The doctoral thesis statement was distributed on \ddots
}
\infoC{%
The defence of the doctoral thesis will be held on \ddots\ at \ddots\
a.m.\ / p.m.\ before the Board for the Defence of the Doctoral Thesis in the
branch of study \the\studyspec\ in the meeting room No. \ddots\ of
the \mtext{\the\faculty} of the CTU in Prague.
}
\infoD{%
Those interested may get acquainted with the doctoral thesis concerned at
the Dean Office of the \mtext{\the\faculty} of the CTU in Prague, at the
Department for Science and Research, \the\address.
}
\def\lorem{Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim
veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea
commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit
esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat
cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id
est laborum%
}
\def\textCZ {
\workname {Teze disertační práce}
\titleinfo {
Teze disertační práce k~získání akademického titulu \uv{doktor},\nl
ve zkratce \uv{Ph.D.}.
}
\infoA {
Disertační práce byla vypracována v~\the\studyform\ formě
doktorského studia na \departmentlokal \facultygenitiv ČVUT v Praze.
}
\infoB {
Teze byly rozeslány dne: \ddots
}
\infoC {
Obhajoba disertace se koná dne \ddots\ v~\ddots hod.
před komisí pro obhajobu disertační práce ve studijním oboru
\the\studyspec\ v~zasedací místnosti č~\ddots
\facultygenitiv ČVUT v~Praze.
}
\infoD {
S disertací je možno se seznámit na děkanátu
\facultygenitiv ČVUT v~Praze, na oddělení pro vědu,
výzkum a zahraniční styky, Technická 2, Praha~6.
}
}
\endinput