Debian Codegraph @

texmf-dist/doc/latex/unifith/examples/Laurea.tex

raw
1 % !TeX encoding = UTF-8
2 % !TeX program = pdflatex
3 % !TeX spellcheck = it_IT
4
5 \documentclass[binding=0.6cm]{unifith}
6
7 \usepackage{microtype}
8 \usepackage[italian]{babel}
9 \usepackage[utf8]{inputenc}
10
11 \usepackage{hyperref}
12 \hypersetup{pdftitle={Esempio d'uso della classe UniFiTh per una tesi di Laurea Magistrale},pdfauthor={Francesco Biccari}}
13
14 % Remove in a normal thesis
15 \usepackage{lipsum}
16 \usepackage{curve2e}
17 \definecolor{gray}{gray}{0.4}
18 \newcommand{\bs}{\textbackslash}
19
20 % Commands for the titlepage
21 \title{Esempio d'uso della classe UniFiTh\\
22 per una tesi di Laurea Magistrale}
23 %\subtitle{Esempio di sottotitolo}
24 \alttitle{Titolo alternativo opzionale, di solito in inglese nelle facoltà scientifiche}
25 \author{Francesco Biccari}
26 \IDnumber{1234567}
27 \course{Corso di Laurea Magistrale\\ in Fisica}
28 \courseorganizer{Scuola di Scienze Matematiche,\\ Fisiche e Naturali}
29 \advisor{Prof. Nome Cognome}
30 \advisor{Dr. Nome Cognome}
31 \advisor{Dr. Nome Cognome}
32 \coadvisor{Dr. Nome Cognome}
33 \AcademicYear{2018/2019}
34
35 \thesistype{Tesi di Laurea Magistrale}
36 \copyyear{2019}
37 \authoremail{[email protected]}
38
39 \examdate{16 Aprile 2019}
40 \examiner{Prof. Nome Cognome}
41 \examiner{Prof. Nome Cognome}
42 \examiner{Dr. Nome Cognome}
43 \versiondate{\today}
44 \ISBN{000000000-0}
45
46
47
48 \begin{document}
49
50 \frontmatter
51
52 \maketitle
53
54 \dedication{Dedicato a\\ Donald Knuth}
55
56 \begin{abstract}
57 This document is an example which shows the main features of
58 the \LaTeXe\ class \texttt{unifith.cls} developed by Francesco Biccari
59 with the help of GuIT (Gruppo Utilizzatori Italiani di \TeX).
60 \end{abstract}
61
62 \begin{acknowledgments}
63 Ho deciso di scrivere i ringraziamenti in italiano
64 per dimostrare la mia gratitudine verso i membri
65 del GuIT, il Gruppo Utilizzatori Italiani di \TeX, e, in particolare,
66 verso il prof.\ Claudio Beccari e il prof.\ Enrico Gregorio.
67 \end{acknowledgments}
68
69 \tableofcontents
70
71 % Do not use the starred version of the chapter command!
72 \chapter{Capitolo non numerato}
73
74 In this manual you can skip the gray text because it is just dummy text.%
75 \footnote{This is a footnote.}
76
77 \textcolor{gray}{\lipsum[1-22]}
78
79
80 \section*{Paragrafo non numerato}
81
82 In this manual you can skip the gray text because it is just dummy text.
83
84 \textcolor{gray}{\lipsum[1-22]}
85
86
87
88
89 \mainmatter
90
91 \chapter{Style features of \textsf{UniFiTh}}
92
93 In this chapter I will discuss my stylistic choices of \textsf{UniFiTh}.
94 I will show the page layout geometry and I will describe the page style.
95
96 \section{Page layout}
97
98 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.
99
100 \begin{figure}[h]
101 \centering
102 \setlength{\unitlength}{0.27mm}
103 \begin{picture}(420,297)(-210,0)
104 \polyline(-210,0)(210,0)(210,297)(-210,297)(-210,0)
105 \Line(0,0)(0,297)
106 \put(27.05,37.4){\polygon(0,0)(139.2,0)(139.2,223.8)(0,223.8)}
107 \put(-27.05,37.4){\polygon(0,0)(-139.2,0)(-139.2,223.8)(0,223.8)}
108 \put(27.05,268.16){\polygon(0,0)(139.2,0)(139.2,4.22)(0,4.22)}
109 \put(-27.05,268.16){\polygon(0,0)(-139.2,0)(-139.2,4.22)(0,4.22)}
110 \end{picture}
111 \caption{Page layout scheme of \textsf{UniFiTh} class using a zero binding margin.}
112 \label{layout}
113 \end{figure}
114
115
116 \section{Page style}
117
118 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.
119 They have the same font dimension of the footnotes and are typed in italics.
120 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.
121 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.
122 Do not use them in this case.
123
124 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
125 \begin{equation}
126 x_{1,2}=\frac{-b\pm\sqrt{b^2-4ac}}{2a}
127 \end{equation}
128
129 The title page is automatically composed when the \texttt{\bs maketitle} command is given.
130 The parameters needed for the title page, author, title, etc\ldots , are supplied by dedicated commands explained in the next section.
131
132 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}.
133
134 \begin{figure}
135 \centering
136 \IfFileExists{unifilogo.pdf}{
137 \includegraphics[width=0.5\textwidth]{unifilogo.pdf}
138 }{\href{http://biccari.altervista.org/c/informatica/latex/unifilogo.pdf}{CLICK HERE TO DOWNLOAD THE LOGO}\\
139 COMPILE AGAIN AND THE LOGO WILL BE SHOWN HERE}
140 \caption{Logo of the University of Florence.}
141 \label{fig:largenenough}
142 \end{figure}
143
144
145
146 \section{About figures and tables}
147
148 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.
149
150 A very simple table is show in Tab.~\ref{tab:letters}. Remember to typeset
151 always the table caption above the table. Do not use vertical lines.
152
153 \begin{table}[b]
154 \caption{This is a simple table.}
155 \label{tab:letters}
156 \centering
157 \begin{tabular}{lcc}
158 \toprule
159 Letter & Test & Test \\
160 \midrule
161 A & C & E \\
162 B & D & F \\
163 \bottomrule
164 \end{tabular}
165 \end{table}
166
167
168 \section{A section}
169
170 In this manual you can skip the gray text because it is just dummy text.
171
172 \textcolor{gray}{\lipsum[1-10]}
173
174
175
176 \section{Another section}
177
178 In this manual you can skip the gray text because it is just dummy text.
179
180 \textcolor{gray}{\lipsum}
181
182
183 \appendix
184 \chapter{Special commands provided by \textsf{UniFiTh}}
185
186 \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}):
187 \begin{equation}
188 \eu^{\iu\pi}+1=0
189 \end{equation}
190
191 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}):
192 \begin{equation}
193 \der{f}{x} \qquad \pder{f}{*{2}{y}}
194 \end{equation}
195
196
197 \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}:
198 \[
199 a_b \neq a\rb{b}\qquad a^b \neq a\rp{b}
200 \]
201 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}.
202
203
204 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.
205
206 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.
207 \[
208 \int x \di x
209 \]
210
211 Finally we have defined the color \textsf{unifiblue} which is the official color
212 of the University of Florence. It is defined as RGB(0,82,147). \textcolor{unifiblue}{This text is written with the color \textsf{unifiblue}.}
213
214 In the following dummy text you can observe the usage of \texttt{\bs mnote} command which typesets fancy margin notes.
215
216 \textcolor{gray}{\lipsum}
217 \marginpar{This is a fancy margin note!}
218 \textcolor{gray}{\lipsum}
219
220 \backmatter
221 % bibliography
222 %\cleardoublepage
223 %\phantomsection
224 %\bibliographystyle{UniFiTh} % BibTeX style
225 %\bibliography{bibliography} % BibTeX database without .bib extension
226
227 \end{document}