-
Notifications
You must be signed in to change notification settings - Fork 0
/
deistesi.layout
495 lines (437 loc) · 10 KB
/
deistesi.layout
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
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
#% Do not delete the line below; configure depends on this
# \DeclareLaTeXClass[book]{thesis (DEIS)}
# DEIS thesis textclass definition file.
# Author: Filippo Zangheri <[email protected]>
# Date: 08-jan-2008
#
# Heavily modified definition based on work by F. Callegati,
# C. Monti and others.
#
# Usage:
#
# 1. Copy this file to /usr/local/share/lyx/layouts, or
# wherever else LyX keeps .layout files in your system;
#
# 2. Reconfigure LyX and restart it.
#
# 3. Create a new file with LyX and assign it the document
# class provided by this file "thesis (DEIS)";
#
# 4. The only options you need to adjust by hand are,
# Character Size (12), Line Skip (one and a half),
# Page Style (plain) and Document on two sides (enable);
#
# 5. Have fun with LyX!
#
########## Read in LyX standard definitions
#Input book.layout
Input stdclass.inc
Input stdlists.inc
Input stdsections.inc
#Input stdstarsections.inc
# remove the layouts that do not make sense.
NoStyle Author
NoStyle Verse
NoStyle Date
NoStyle Abstract
NoStyle Part*
NoStyle Section*
NoStyle Subsection*
NoStyle Subsubsection*
NoStyle Paragraph*
NoStyle Subparagraph
NoStyle Subparagraph*
NoStyle Address
NoStyle Right_Address
NoStyle Left_Address
# General textclass parameters
Columns 1
Sides 2
PageStyle Plain
MaxCounter Counter_Subsubsection
DefaultFont
Family Roman
Series Medium
Shape Up
Size normal
Color none
EndFont
ClassOptions
FontSize 12
PageStyle plain
End
# LaTeX Preamble
Preamble
% Customized LaTeX preamble %%%%%%%%%%%%%%%%%%%%%%%%%%%
% --- Page geometry --- %
\usepackage{geometry}
\geometry{
verbose,a4paper,lmargin=0.17\paperwidth,
rmargin=0.1\paperwidth
}
% Vertical length parameters
% Text height
\setlength\textheight{0.7\paperheight}
% Space at top of page
\setlength\topmargin{0pt}
% Space beteen header and text
\setlength\headsep{0.08\textheight}
% Space between text and footer (not footnote!)
\setlength\footskip{0.08\textheight}
% 2.5 lines space between text and footnote
\renewcommand\footnoterule{
\vspace{2.5em}
\kern-3\p@\hrule\@width.4\columnwidth%
\kern2.6\p@}
% --- Common packages --- %
\usepackage{amsmath,amsfonts,amssymb,amsthm,multicol}
\usepackage{epsfig,verbatim}
\usepackage{ifthen}
% --- Big letters at the beginning of chapters --- %
% "ptmri" is the italic version of "ptmr"
\newfont{\iniziocap}{ptmri scaled 5000}
\newcommand{\primalettera}[1]{
{\iniziocap #1}
\vspace*{-4em}\hangindent=4em\hangafter=-3\hspace*{-1.5em}}
% --- Fonts --- %
%\usepackage{ae}
%\usepackage{aecompl}
%\usepackage{lmodern}
\renewcommand{\rmdefault}{ptm}
\renewcommand{\sfdefault}{phv}
\renewcommand{\ttdefault}{pcr}
\renewcommand{\sldefault}{it}
% --- For clickable URL's --- %
\usepackage{hyperref}
% --- Fancy headers --- %
\usepackage{fancyhdr}
% --- Useful commands --- %
\newcommand{\clearemptydoublepage}{
\newpage{\pagestyle{empty}
\cleardoublepage}
}
% --- Andrea: Add unnumbered chapters to index and fix the headers --- %
\newcommand{\aggiungiAIndice}[1]
{ %adds chapter to index with the chosen name
\addcontentsline{toc}{chapter}{\protect\numberline{}#1}
%adds the correct header check fancyhdr docs
\markboth{#1}{}
}
\newcommand{\@titolo}{?}
\newcommand{\@facolta}{?}
\newcommand{\@corso}{?}
\newcommand{\@annoaccademico}{?}
\newcommand{\@sessione}{i}
\newcommand{\@relatore}{?}
\newcommand{\@laureando}{?}
\newcommand{\facolta}[1]{
\renewcommand{\@facolta}{
\uppercase{facolt\`a di #1}}}
\newcommand{\corso}[1]{
\renewcommand{\@corso}{\uppercase{#1}}}
\newcommand{\annoaccademico}[1]{
\renewcommand{\@annoaccademico}{#1}}
\newcommand{\sessione}[1]{
\renewcommand{\@sessione}{\uppercase{#1}}}
\newcommand{\relatore}[2][Chiar.mo Prof. Ing.]{
\renewcommand{\@relatore}{#1\\ \uppercase{#2}}}
\newcommand{\laureando}[1]{
\renewcommand{\@laureando}{\uppercase{#1}}}
\newcommand{\titolo}[1]{
\renewcommand{\@titolo}{\uppercase{#1}}}
% --- Personalized title page --- %
\renewcommand{\maketitle}{
\begin{titlepage}{
\vspace*{-0.1\textheight}
\begin{center}\begin{large}
\uppercase{alma mater studiorum -- universit\`a di bologna\\}
\medskip\end{large}
\smallskip
\rule{\textwidth}{.4pt}\\
\vfill
\begin{large}
\uppercase{\@facolta\\}
\vfill
\ifthenelse{\not\isundefined{\@corsodilaureaspec}}
{\uppercase{corso di laurea specialistica in \@corsodilaureaspec\\}}
{\ifthenelse{\not\isundefined{\@corsodilaurea}}
{\uppercase{corso di laurea in \@corsodilaurea\\}}{}}\end{large}
\begin{large}
\ifthenelse{\isundefined{\@correlatorea}}{\vspace{16ex}}
{\ifthenelse{\isundefined{\@correlatoreb}}{\vspace{10ex}}{\vspace{6ex}}}
{\setlength{\baselineskip}{1.5\baselineskip}
\begin{huge}\@titolo\end{huge}\\}
\ifthenelse{\isundefined{\@correlatorea}}{\vspace{16ex}}
{\ifthenelse{\isundefined{\@correlatoreb}}{\vspace{10ex}}{\vspace{6ex}}}
Tesi in\\
\@corso\\
\vfill
\begin{multicols}{2}
\raggedright
\emph{Relatore}:\\
\@relatore\\
\ifthenelse{\isundefined{\@correlatorea}}{}{
\bigskip
\emph{Correlatore}:\\
\vfill
\@correlatorea\\
}
\ifthenelse{\isundefined{\@correlatoreb}}{}{
\bigskip
\emph{Correlatore}:\\
\vfill
\@correlatoreb\\
}
\columnbreak
\raggedleft
\emph{Presentata da}:\\
\@laureando\\
\end{multicols}
\vfill
\rule{\textwidth}{.4pt}\\
\vfill
Sessione \@sessione\\
\vfill
Anno Accademico \@annoaccademico\\
\end{large}\end{center}
}\end{titlepage}}
% --- Dedication command --- %
\newcommand{\dedica}[1]{
\clearemptydoublepage
\thispagestyle{empty}
\vspace*{10ex}
\begin{Large}
\begin{flushright}
\emph{#1}
\end{flushright}
\end{Large}
\vfill
\clearemptydoublepage
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
EndPreamble
# Standard style definition
Style Standard
Margin Static
LatexType Paragraph
LatexName dummy
ParIndent MM
ParSkip 0.4
Align Block
AlignPossible Block, Left, Right, Center
LabelType No_Label
End
Style 1._Facolta
LatexType Command
LatexName facolta
Margin Dynamic
InTitle 1
Align Block
BottomSep 0.5
LabelType Static
LabelString "1. Facolta:"
LabelSep xx
LabelFont
Series Bold
Size Large
Color Blue
EndFont
End
Style 2.a_Corso_di_laurea
LatexType Command
LatexName corsodilaurea
Margin Dynamic
InTitle 1
Align Block
BottomSep 0.5
LabelType Static
LabelString "2.a Corso di laurea:"
LabelSep xx
LabelFont
Series Bold
Size Large
Color Blue
EndFont
Preamble
\newcommand{\@corsodilaurea}{?}
\newcommand{\corsodilaurea}[1]{
\renewcommand{\@corsodilaurea}{\uppercase{#1}}}
EndPreamble
End
Style 2.b_Corso_di_laurea_spec.
LatexType Command
LatexName corsodilaureaspec
Margin Dynamic
InTitle 1
Align Block
BottomSep 0.5
LabelType Static
LabelString "2.b Corso di laurea specialistica:"
LabelSep xx
LabelFont
Series Bold
Size Large
Color Blue
EndFont
Preamble
\newcommand{\@corsodilaureaspec}{?}
\newcommand{\corsodilaureaspec}[1]{
\renewcommand{\@corsodilaureaspec}{\uppercase{#1}}}
EndPreamble
End
Style 3._Titolo
CopyStyle Title
LatexName titolo
Align Block
Margin Dynamic
BottomSep 0.5
LabelType Static
LabelString "3. Titolo della tesi:"
LabelSep xx
Font
Series Medium
Size Normal
EndFont
LabelFont
Series Bold
Size Large
Color Blue
EndFont
End
Style 4._Corso
LatexType Command
LatexName corso
Margin Dynamic
InTitle 1
Align Block
BottomSep 0.5
LabelType Static
LabelString "4. Corso:"
LabelSep xx
LabelFont
Series Bold
Size Large
Color Blue
EndFont
End
Style 5._Laureando
LatexType Command
LatexName laureando
Margin Dynamic
InTitle 1
Align Block
BottomSep 0.5
LabelType Static
LabelString "5. Laureando:"
LabelSep xx
LabelFont
Series Bold
Size Large
Color Blue
EndFont
End
Style 6.a_Relatore
LatexType Command
LatexName relatore
Margin Dynamic
InTitle 1
Align Block
BottomSep 0.5
LabelType Static
LabelString "6.a Relatore:"
LabelSep xx
LabelFont
Series Bold
Size Large
Color Blue
EndFont
End
Style 6.b_Correlatore_1
LatexType Command
LatexName correlatorea
Margin Dynamic
InTitle 1
Align Block
BottomSep 0.5
LabelType Static
LabelString "6.b Correlatore 1:"
LabelSep xx
LabelFont
Series Bold
Size Large
Color Blue
EndFont
Preamble
\newcommand{\@correlatorea}{?}
\newcommand{\correlatorea}[2][Prof. Ing.]{
\renewcommand{\@correlatorea}{#1\\ \uppercase{#2}}}
EndPreamble
End
Style 6.c_Correlatore_2
LatexType Command
LatexName correlatoreb
Margin Dynamic
InTitle 1
Align Block
BottomSep 0.5
LabelType Static
LabelString "6.c Correlatore 2:"
LabelSep xx
LabelFont
Series Bold
Size Large
Color Blue
EndFont
Preamble
\newcommand{\@correlatoreb}{?}
\newcommand{\correlatoreb}[2][Dott.]{
\renewcommand{\@correlatoreb}{#1\\ \uppercase{#2}}}
EndPreamble
End
Style 7._Sessione
LatexType Command
LatexName sessione
Margin Dynamic
Align Block
InTitle 1
BottomSep 0.5
LabelType Static
LabelString "7. Sessione:"
LabelSep xx
LabelFont
Series Bold
Size Large
Color Blue
EndFont
End
Style 8._Anno_Accademico
LatexType Command
LatexName annoaccademico
Margin Dynamic
InTitle 1
Align Block
BottomSep 0.5
LabelType Static
LabelString "8. Anno accademico:"
LabelSep xx
LabelFont
Series Bold
Size Large
Color Blue
EndFont
End
Style 9._Dedica
LatexType Command
LatexName dedica
Margin Dynamic
Align Block
BottomSep 0.5
LabelType Static
LabelString "9. Dedica:"
LabelSep xx
LabelFont
Series Bold
Size Large
Color Green
EndFont
End