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
|
% !TeX encoding = UTF-8
% !TeX program = pdflatex
% !TeX spellcheck = en_US
\documentclass[a4paper,binding=0.6cm]{unifith}
\usepackage{microtype}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage{hyperref}
\hypersetup{pdftitle={Usage example of the UniFiTh class for a PhD thesis},pdfauthor={Francesco Biccari}}
% Remove in a normal thesis
\usepackage{lipsum}
\usepackage{curve2e}
\definecolor{gray}{gray}{0.4}
\newcommand{\bs}{\textbackslash}
% Commands for the titlepage
\title{Usage example of the UniFiTh class\\ for a PhD thesis}
%\subtitle{Subtitle}
\alttitle{Optional alternative or translated title}
\author{Francesco Biccari}
\IDnumber{1234567}
\course{Corso di Dottorato\\ in Fisica e Astronomia}
\courseorganizer{Dipartimento di Fisica e Astronomia}
\cycle{Ciclo XXXV}
\advisor{Prof. Name Surname}
\advisor{Dr. Name Surname}
\coadvisor{Dr. Name Surname}
\AcademicYear{2018/2019}
\thesistype{PhD thesis}
\copyyear{2019}
\authoremail{biccari@email.com}
\examdate{16 April 2019}
\examiner{Prof. Name Surname}
\examiner{Prof. Name Surname}
\examiner{Dr. Name Surname}
\versiondate{\today}
\ISBN{000000000-0}
\website{http://biccari.altervista.org}
\director{Prof. Name Surname}
\begin{document}
\frontmatter
\maketitle
\dedication{Dedicated to\\ Donald Knuth}
\begin{abstract}
This document is an example which shows the main features of
the \LaTeXe\ class \texttt{unifith.cls} developed by Francesco Biccari
with the help of GuIT (Gruppo Utilizzatori Italiani di \TeX).
\end{abstract}
\begin{acknowledgments}[Ringraziamenti]
Ho deciso di scrivere i ringraziamenti in italiano
per dimostrare la mia gratitudine verso i membri
del GuIT, il Gruppo Utilizzatori Italiani di \TeX, e, in particolare,
verso il prof.\ Claudio Beccari e il prof.\ Enrico Gregorio.
\end{acknowledgments}
\tableofcontents
% Do not use the starred version of the chapter command!
\chapter{Non numbered chapter}
In this manual you can skip the gray text because it is just dummy text.%
\footnote{This is a footnote.}
\textcolor{gray}{\lipsum[1-22]}
\section*{Non numbered section}
In this manual you can skip the gray text because it is just dummy text.
\textcolor{gray}{\lipsum[1-22]}
\mainmatter
\chapter{Style features of \textsf{UniFiTh}}
In this chapter I will discuss my stylistic choices of \textsf{UniFiTh}.
I will show the page layout geometry and I will describe the page style.
\section{Page layout}
The page is fixed at the dimensions of an A4 paper, therefore you have to print your thesis on A4 paper to obtain the best results. The font dimension is fixed at 11\, pt. The text column and the margins are chosen to fill to the best an A4 paper while keeping a reasonable line length (396\, pt) for a good readability. The text height and the text width are in golden ratio (\textasciitilde 1.6180) as well as the outer and inner margins in a two-side document after binding margin removal. Also the top margin (excluding the header) and bottom margin are in the golden ratio. In Fig.~\ref{layout} a sketch of the \textsf{UniFiTh} page layout is shown.
\begin{figure}[h]
\centering
\setlength{\unitlength}{0.27mm}
\begin{picture}(420,297)(-210,0)
\polyline(-210,0)(210,0)(210,297)(-210,297)(-210,0)
\Line(0,0)(0,297)
\put(27.05,37.4){\polygon(0,0)(139.2,0)(139.2,223.8)(0,223.8)}
\put(-27.05,37.4){\polygon(0,0)(-139.2,0)(-139.2,223.8)(0,223.8)}
\put(27.05,268.16){\polygon(0,0)(139.2,0)(139.2,4.22)(0,4.22)}
\put(-27.05,268.16){\polygon(0,0)(-139.2,0)(-139.2,4.22)(0,4.22)}
\end{picture}
\caption{Page layout scheme of \textsf{UniFiTh} class using a zero binding margin.}
\label{layout}
\end{figure}
\section{Page style}
The captions have a smaller font respect to the text and the label is in boldface. The appearance of the margin notes has been improved.
They have the same font dimension of the footnotes and are typed in italics.
Moreover I defined a new command to typeset margin note aligned to the left on the right page and vice versa on the left page.
Notice that if a binding margin greater than 1.5\,cm is used, the dimensions of the margin notes become too small and very ugly.
Do not use them in this case.
The mathematical objects, figures and tables are numbered within the chapters (e.g. 1.1, 1.2,\ldots for the first chapter, 2.1, 2.2 for the second one and so on\ldots). See for example the number of this simple equation
\begin{equation}
x_{1,2}=\frac{-b\pm\sqrt{b^2-4ac}}{2a}
\end{equation}
The title page is automatically composed when the \texttt{\bs maketitle} command is given.
The parameters needed for the title page, author, title, etc\ldots , are supplied by dedicated commands explained in the next section.
A copy of the university logo in \texttt{pdf} format is supplied in the \textsf{UniFiTh} package (read the documentation for more details). The logo is shown in Fig.~\ref{fig:largenenough}.
\begin{figure}
\centering
\IfFileExists{unifilogo.pdf}{
\includegraphics[width=0.5\textwidth]{unifilogo.pdf}
}{\href{http://biccari.altervista.org/c/informatica/latex/unifilogo.pdf}{CLICK HERE TO DOWNLOAD THE LOGO}\\
COMPILE AGAIN AND THE LOGO WILL BE SHOWN HERE}
\caption{Logo of the University of Florence.}
\label{fig:largenenough}
\end{figure}
\section{About figures and tables}
As regards the image formats, please use vector images as much as possible! Use jpg images only for photographs! pdf\LaTeX\ supports the pdf, jpg and png formats.
A very simple table is show in Tab.~\ref{tab:letters}. Remember to typeset
always the table caption above the table. Do not use vertical lines.
\begin{table}[b]
\caption{This is a simple table.}
\label{tab:letters}
\centering
\begin{tabular}{lcc}
\toprule
Letter & Test & Test \\
\midrule
A & C & E \\
B & D & F \\
\bottomrule
\end{tabular}
\end{table}
\section{A section}
In this manual you can skip the gray text because it is just dummy text.
\textcolor{gray}{\lipsum[1-10]}
\section{Another section}
In this manual you can skip the gray text because it is just dummy text.
\textcolor{gray}{\lipsum}
\appendix
\chapter{Special commands provided by \textsf{UniFiTh}}
\textsf{UniFiTh} provides some special commands, particularly useful for scientific works. You can use for example the roman shape, instead of the italic, for the imaginary unit (\texttt{\bs iu}) and Napier's number (\texttt{\bs eu}):
\begin{equation}
\eu^{\iu\pi}+1=0
\end{equation}
There are also two commands to speed up the writing of derivatives. In the following example we have used the commands \texttt{\bs der} and \texttt{\bs pder}):
\begin{equation}
\der{f}{x} \qquad \pder{f}{*{2}{y}}
\end{equation}
\textsf{UniFiTh} provides also 4 commands to improve the writing of subscripts, \texttt{\bs rb} and \texttt{\bs tb}, and superscripts, \texttt{\bs rp} and \texttt{\bs tp}. Two of these commands, \texttt{\bs rb} and \texttt{\bs rp}, can be used both in text and in math mode and compose their argument in roman. The other two, \texttt{\bs tb} and \texttt{\bs tp}, can be used only in text mode and compose their argument as are. Here it is an usage example of \texttt{\bs rb} and \texttt{\bs rp}:
\[
a_b \neq a\rb{b}\qquad a^b \neq a\rp{b}
\]
And here it is an usage example of \texttt{\bs tb}: \emph{Cu\tb{It} indicates copper bought in Italy}. And a usage example of \texttt{\bs ts}: \emph{Cher G\tp{le} Napol\'eon}.
Then several commands for the correct typesetting of unit of measurements are provided. For example the command \texttt{\bs un} typesets its argument in roman and leaves a thin space between the number and the unit: $25\un{m}$, $3.5\un{m/s}$. Other commands are: (\texttt{\bs g}) 45\g, (\texttt{\bs C}) 30\,\C, (\texttt{\bs A}) 12\,\A, (\texttt{\bs micro}) 40\,\micro m, (\texttt{\bs ohm}) 27\,\ohm.
We have also \texttt{\bs x} as abbreviation of \texttt{\bs times}: \texttt{\$7 \bs x 10\^{}5\$} gives $7 \x 10^5$. Then \texttt{\bs di} is the differential symbol which automatically insert the correct spacing.
\[
\int x \di x
\]
Finally we have defined the color \textsf{unifiblue} which is the official color
of the University of Florence. It is defined as RGB(0,82.12,146.88). \textcolor{unifiblue}{This text is written with the color \textsf{unifiblue}.}
In the following dummy text you can observe the usage of \texttt{\bs mnote} command which typesets fancy margin notes.
\textcolor{gray}{\lipsum}
\marginpar{This is a fancy margin note!}
\textcolor{gray}{\lipsum}
\backmatter
% bibliography
%\cleardoublepage
%\phantomsection
%\bibliographystyle{UniFiTh} % BibTeX style
%\bibliography{bibliography} % BibTeX database without .bib extension
\end{document}
|