summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/sapthesis
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2022-01-09 03:00:53 +0000
committerNorbert Preining <norbert@preining.info>2022-01-09 03:00:53 +0000
commitfbacb8167ccd172bb0b177974778f228ad41691d (patch)
tree8ad1c76a4dabddbc25abf75b1bc14238e811e9c4 /macros/latex/contrib/sapthesis
parentcd2e7ab7ef89a5c3c1935281009729bff0f357e2 (diff)
CTAN sync 202201090300
Diffstat (limited to 'macros/latex/contrib/sapthesis')
-rw-r--r--macros/latex/contrib/sapthesis/README24
-rw-r--r--macros/latex/contrib/sapthesis/examples/LaureaMagistrale_eng.tex216
-rw-r--r--macros/latex/contrib/sapthesis/examples/LaureaMagistrale_ita.tex221
-rw-r--r--macros/latex/contrib/sapthesis/examples/Laurea_ita.tex218
-rw-r--r--macros/latex/contrib/sapthesis/examples/Master.tex219
-rw-r--r--macros/latex/contrib/sapthesis/examples/PhD.tex221
-rw-r--r--macros/latex/contrib/sapthesis/examples/Specialization.tex220
-rw-r--r--macros/latex/contrib/sapthesis/examples/TFA.tex229
-rw-r--r--macros/latex/contrib/sapthesis/sapienza-MLblack-pos.pdfbin16817 -> 0 bytes
-rw-r--r--macros/latex/contrib/sapthesis/sapienzalogo.pdf (renamed from macros/latex/contrib/sapthesis/sapienza-MLred-pos.pdf)bin16467 -> 16467 bytes
-rw-r--r--macros/latex/contrib/sapthesis/sapthesis-doc.pdfbin233337 -> 365890 bytes
-rw-r--r--macros/latex/contrib/sapthesis/sapthesis-doc.tex532
-rw-r--r--macros/latex/contrib/sapthesis/sapthesis.cls1152
13 files changed, 863 insertions, 2389 deletions
diff --git a/macros/latex/contrib/sapthesis/README b/macros/latex/contrib/sapthesis/README
index a3abe94360..0201d87517 100644
--- a/macros/latex/contrib/sapthesis/README
+++ b/macros/latex/contrib/sapthesis/README
@@ -10,7 +10,7 @@
** License **********************************************************
- Copyright (c) 2008-2018 by Francesco Biccari.
+ Copyright (c) 2008-2022 by Francesco Biccari.
This work (specified below) may be distributed and/or
modified under the conditions of the
@@ -40,9 +40,6 @@
Sapthesis is a LaTeX class to typeset theses that adhere to
"Sapienza - University of Rome"'s guidelines for publishing.
- The supported types of theses are: Laurea, LaureaMagistrale,
- Dottorato di Ricerca, Master di primo livello, Master di
- secondo livello, TFA, Specializzazione.
It is compatible with two compilation methods:
pdflatex and xelatex.
@@ -63,7 +60,7 @@
of your TeX distribution (TeX Live, MiKTeX or MacTeX).
2. Instead, if you want to install sapthesis manually, you have to
- download the sapthesis.zip archive from CTAN or, better, from
+ download the sapthesis.zip archive from CTAN or from
the official sapthesis website
http://biccari.altervista.org/c/informatica/latex/sapthesis.php
@@ -73,27 +70,22 @@
2. sapthesis-doc.pdf (manual of sapthesis.cls)
3. sapthesis-doc.tex (source of the manual)
4. README (this file)
- 5. sapienza-MLred-pos.pdf (red university logo)
- 6. sapienza-MLblack-pos.pdf (black university logo)
- 7. examples folder with several examples of usage
- 8. sapthesis.bst (an english BibTeX style)
- 9. sapthesis.layout (sapthesis layout file for LyX)
+ 5. sapienzalogo.pdf (university logo)
+ 6. sapthesis.bst (an english BibTeX style)
+ 7. sapthesis.layout (sapthesis layout file for LyX)
You can simply copy sapthesis.cls and sapthesis.bst
- together with sapienza-MLred-pos.pdf and
- sapienza-MLblack-pos.pdf into your local work directory where
- your thesis files will live.
+ together with sapienzalogo.pdf into your local
+ work directory where your thesis files will live.
3. The last possibility is copying the files of Sapthesis
(discussed in the previous point) into your texmf tree
(or your localtexmf tree) at these locations:
<texmf>/tex/latex/sapthesis/sapthesis.cls
- <texmf>/tex/latex/sapthesis/sapienza-MLred-pos.pdf
- <texmf>/tex/latex/sapthesis/sapienza-MLblack-pos.pdf
+ <texmf>/tex/latex/sapthesis/sapienzalogo.pdf
<texmf>/doc/latex/sapthesis/sapthesis-doc.pdf
<texmf>/doc/latex/sapthesis/sapthesis-doc.tex
- <texmf>/doc/latex/sapthesis/examples/*.tex
<texmf>/doc/latex/sapthesis/README
<texmf>/bibtex/bst/sapthesis/sapthesis.bst
<texmf>/doc/latex/sapthesis/sapthesis.layout
diff --git a/macros/latex/contrib/sapthesis/examples/LaureaMagistrale_eng.tex b/macros/latex/contrib/sapthesis/examples/LaureaMagistrale_eng.tex
deleted file mode 100644
index 363702f64e..0000000000
--- a/macros/latex/contrib/sapthesis/examples/LaureaMagistrale_eng.tex
+++ /dev/null
@@ -1,216 +0,0 @@
-% !TeX encoding = UTF-8
-% !TeX program = pdflatex
-% !TeX spellcheck = en_US
-
-\documentclass[LaM,binding=0.6cm]{sapthesis}
-
-\usepackage{microtype}
-
-\usepackage{hyperref}
-\hypersetup{pdftitle={Usage example of the Sapthesis class for a Laurea Magistrale thesis in English},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 Sapthesis class\\ for a Laurea Magistrale thesis in English}
-\author{Francesco Biccari}
-\IDnumber{1234567}
-\course{Fisica}
-\courseorganizer{Facolt\`{a} di Scienze Matematiche, Fisiche e Naturali}
-\AcademicYear{2012/2013}
-\copyyear{2013}
-\advisor{Prof. Nome Cognome}
-\advisor{Dr. Nome Cognome}
-\coadvisor{Dr. Nome Cognome}
-\authoremail{biccari@email.com}
-
-\examdate{16 April 2013}
-\examiner{Prof. Nome Cognome}
-\examiner{Prof. Nome Cognome}
-\examiner{Dr. Nome Cognome}
-\versiondate{\today}
-
-
-
-\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{sapthesis.cls} developed by Francesco Biccari
-with the help of GuIT (Gruppo Utilizzatori Italiani di \TeX).
-\end{abstract}
-
-\begin{acknowledgments}
-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. Enrico Gregorio.
-\end{acknowledgments}
-
-\tableofcontents
-
-% Do not use the starred version of the chapter command!
-\chapter{Capitolo non numerato}
-
-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*{Paragrafo non numerato}
-
-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{sapthesis}}
-
-In this chapter I will discuss my stylistic choices of \textsf{sapthesis}.
-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{sapthesis} 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{sapthesis 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.
-Two copies of the university logo in \texttt{pdf} format, one for color printing and the other one for black and white printing, are supplied in the \textsf{sapthesis} package. They are shown in Fig.~\ref{fig:largenenough}.
-
-\begin{figure}
-\centering
-\includegraphics[width=0.7\textwidth]{sapienza-MLred-pos}\\[3ex]
-\includegraphics[width=0.7\textwidth]{sapienza-MLblack-pos}
-\caption{Logo of the Sapienza -- University of Rome.}
-\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}
-\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{sapthesis}}
-
-\textsf{Sapthesis} 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{Sapthesis} 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{sapred} which is the official color
-of Sapienza -- University of Rome. It is defined as RGB(130,36,51). \textcolor{sapred}{This text is written with the color \textsf{sapred}.}
-
-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{sapthesis} % BibTeX style
-%\bibliography{bibliography} % BibTeX database without .bib extension
-
-\end{document}
diff --git a/macros/latex/contrib/sapthesis/examples/LaureaMagistrale_ita.tex b/macros/latex/contrib/sapthesis/examples/LaureaMagistrale_ita.tex
deleted file mode 100644
index 425de42d61..0000000000
--- a/macros/latex/contrib/sapthesis/examples/LaureaMagistrale_ita.tex
+++ /dev/null
@@ -1,221 +0,0 @@
-% !TeX encoding = UTF-8
-% !TeX program = pdflatex
-% !TeX spellcheck = it_IT
-
-\documentclass[LaM,binding=0.6cm]{../sapthesis}
-
-\usepackage{microtype}
-\usepackage[italian]{babel}
-\usepackage[utf8]{inputenc}
-%\input{ix-utf8enc.dfu}
-
-
-\usepackage{hyperref}
-\hypersetup{pdftitle={Esempio d'uso della classe Sapthesis per una tesi di Laurea Magistrale},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{Esempio d'uso della classe Sapthesis\\
-per una tesi di Laurea Magistrale}
-\author{Francesco Biccari}
-\IDnumber{1234567}
-\course{Fisica}
-\courseorganizer{Facoltà di Scienze Matematiche, Fisiche e Naturali}
-\AcademicYear{2012/2013}
-\copyyear{2013}
-\advisor{Prof. Nome Cognome}
-\advisor{Dr. Nome Cognome}
-\coadvisor{Dr. Nome Cognome}
-\authoremail{biccari@email.com}
-
-\examdate{16 April 2013}
-\examiner{Prof. Nome Cognome}
-\examiner{Prof. Nome Cognome}
-\examiner{Dr. Nome Cognome}
-\versiondate{\today}
-
-
-
-\begin{document}
-
-\frontmatter
-
-\maketitle
-
-\dedication{Dedicato a\\ Donald Knuth}
-
-\begin{abstract}
-This document is an example which shows the main features of
-the \LaTeXe\ class \texttt{sapthesis.cls} developed by Francesco Biccari
-with the help of GuIT (Gruppo Utilizzatori Italiani di \TeX).
-\end{abstract}
-
-\begin{acknowledgments}
-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. Enrico Gregorio.
-\end{acknowledgments}
-
-\tableofcontents
-
-% Do not use the starred version of the chapter command!
-\chapter{Capitolo non numerato}
-
-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*{Paragrafo non numerato}
-
-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{sapthesis}}
-
-In this chapter I will discuss my stylistic choices of \textsf{sapthesis}.
-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{sapthesis} 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{sapthesis 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.
-Two copies of the university logo in \texttt{pdf} format, one for color printing and the other one for black and white printing, are supplied in the \textsf{sapthesis} package. They are shown in Fig.~\ref{fig:largenenough}.
-
-\begin{figure}
-\centering
-\includegraphics[width=0.7\textwidth]{sapienza-MLred-pos}\\[3ex]
-\includegraphics[width=0.7\textwidth]{sapienza-MLblack-pos}
-\caption{Logo of the Sapienza -- University of Rome.}
-\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}
-\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{sapthesis}}
-
-\textsf{Sapthesis} 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{Sapthesis} 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{sapred} which is the official color
-of Sapienza -- University of Rome. It is defined as RGB(130,36,51). \textcolor{sapred}{This text is written with the color \textsf{sapred}.}
-
-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{sapthesis} % BibTeX style
-%\bibliography{bibliography} % BibTeX database without .bib extension
-
-\end{document}
diff --git a/macros/latex/contrib/sapthesis/examples/Laurea_ita.tex b/macros/latex/contrib/sapthesis/examples/Laurea_ita.tex
deleted file mode 100644
index 851ae6b35f..0000000000
--- a/macros/latex/contrib/sapthesis/examples/Laurea_ita.tex
+++ /dev/null
@@ -1,218 +0,0 @@
-% !TeX encoding = UTF-8
-% !TeX program = pdflatex
-% !TeX spellcheck = it_IT
-
-\documentclass[Lau,binding=0.6cm]{sapthesis}
-
-\usepackage{microtype}
-\usepackage[italian]{babel}
-\usepackage[utf8]{inputenx}
-
-\usepackage{hyperref}
-\hypersetup{pdftitle={Sapthesis class example},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{Esempio d'uso della classe Sapthesis\\ per una tesi di Laurea}
-\author{Francesco Biccari}
-\IDnumber{1234567}
-\course{Fisica}
-\courseorganizer{Facoltà di Scienze Matematiche, Fisiche e Naturali}
-\AcademicYear{2012/2013}
-\copyyear{2013}
-\advisor{Prof. Nome Cognome}
-\advisor{Dr. Nome Cognome}
-\coadvisor{Dr. Nome Cognome}
-\authoremail{biccari@email.com}
-
-\examdate{16 April 2013}
-\examiner{Prof. Nome Cognome}
-\examiner{Prof. Nome Cognome}
-\examiner{Dr. Nome Cognome}
-\versiondate{\today}
-
-
-
-\begin{document}
-
-\frontmatter
-
-\maketitle
-
-\dedication{Dedicato a\\ Donald Knuth}
-
-\begin{abstract}
-This document is an example which shows the main features of
-the \LaTeXe\ class \texttt{sapthesis.cls} developed by Francesco Biccari
-with the help of GuIT (Gruppo Utilizzatori Italiani di \TeX).
-\end{abstract}
-
-\begin{acknowledgments}
-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. Enrico Gregorio.
-\end{acknowledgments}
-
-\tableofcontents
-
-% Do not use the starred version of the chapter command!
-\chapter{Capitolo non numerato}
-
-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*{Paragrafo non numerato}
-
-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{sapthesis}}
-
-In this chapter I will discuss my stylistic choices of \textsf{sapthesis}.
-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{sapthesis} 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{sapthesis 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.
-Two copies of the university logo in \texttt{pdf} format, one for color printing and the other one for black and white printing, are supplied in the \textsf{sapthesis} package. They are shown in Fig.~\ref{fig:largenenough}.
-
-\begin{figure}
-\centering
-\includegraphics[width=0.7\textwidth]{sapienza-MLred-pos}\\[3ex]
-\includegraphics[width=0.7\textwidth]{sapienza-MLblack-pos}
-\caption{Logo of the Sapienza -- University of Rome.}
-\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}
-\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{sapthesis}}
-
-\textsf{Sapthesis} 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{Sapthesis} 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{sapred} which is the official color
-of Sapienza -- University of Rome. It is defined as RGB(130,36,51). \textcolor{sapred}{This text is written with the color \textsf{sapred}.}
-
-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{sapthesis} % BibTeX style
-%\bibliography{bibliography} % BibTeX database without .bib extension
-
-\end{document}
diff --git a/macros/latex/contrib/sapthesis/examples/Master.tex b/macros/latex/contrib/sapthesis/examples/Master.tex
deleted file mode 100644
index c780e79ee8..0000000000
--- a/macros/latex/contrib/sapthesis/examples/Master.tex
+++ /dev/null
@@ -1,219 +0,0 @@
-% !TeX encoding = UTF-8
-% !TeX program = pdflatex
-% !TeX spellcheck = it_IT
-
-\documentclass[MasterS,binding=0.6cm]{sapthesis}
-% use MasterP option, instead of MasterS, for a ``Master di primo livello''
-
-\usepackage{microtype}
-\usepackage[italian]{babel}
-\usepackage[utf8]{inputenx}
-
-\usepackage{hyperref}
-\hypersetup{pdftitle={Esempio d'uso della classe Sapthesis per una tesi di Master},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{Esempio d'uso della classe Sapthesis\\ per una tesi di Master}
-\author{Francesco Biccari}
-\IDnumber{1234567}
-\course{Fisica}
-\courseorganizer{Facoltà di Scienze Matematiche, Fisiche e Naturali}
-\AcademicYear{2012/2013}
-\copyyear{2013}
-\advisor{Prof. Nome Cognome}
-\advisor{Dr. Nome Cognome}
-\coadvisor{Dr. Nome Cognome}
-\authoremail{biccari@email.com}
-
-\examdate{16 April 2013}
-\examiner{Prof. Nome Cognome}
-\examiner{Prof. Nome Cognome}
-\examiner{Dr. Nome Cognome}
-\versiondate{\today}
-
-
-
-\begin{document}
-
-\frontmatter
-
-\maketitle
-
-\dedication{Dedicato a\\ Donald Knuth}
-
-\begin{abstract}
-This document is an example which shows the main features of
-the \LaTeXe\ class \texttt{sapthesis.cls} developed by Francesco Biccari
-with the help of GuIT (Gruppo Utilizzatori Italiani di \TeX).
-\end{abstract}
-
-\begin{acknowledgments}
-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. Enrico Gregorio.
-\end{acknowledgments}
-
-\tableofcontents
-
-% Do not use the starred version of the chapter command!
-\chapter{Capitolo non numerato}
-
-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*{Paragrafo non numerato}
-
-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{sapthesis}}
-
-In this chapter I will discuss my stylistic choices of \textsf{sapthesis}.
-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{sapthesis} 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{sapthesis 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.
-Two copies of the university logo in \texttt{pdf} format, one for color printing and the other one for black and white printing, are supplied in the \textsf{sapthesis} package. They are shown in Fig.~\ref{fig:largenenough}.
-
-\begin{figure}
-\centering
-\includegraphics[width=0.7\textwidth]{sapienza-MLred-pos}\\[3ex]
-\includegraphics[width=0.7\textwidth]{sapienza-MLblack-pos}
-\caption{Logo of the Sapienza -- University of Rome.}
-\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}
-\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{sapthesis}}
-
-\textsf{Sapthesis} 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{Sapthesis} 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{sapred} which is the official color
-of Sapienza -- University of Rome. It is defined as RGB(130,36,51). \textcolor{sapred}{This text is written with the color \textsf{sapred}.}
-
-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{sapthesis} % BibTeX style
-%\bibliography{bibliography} % BibTeX database without .bib extension
-
-\end{document}
diff --git a/macros/latex/contrib/sapthesis/examples/PhD.tex b/macros/latex/contrib/sapthesis/examples/PhD.tex
deleted file mode 100644
index 20dadb8c81..0000000000
--- a/macros/latex/contrib/sapthesis/examples/PhD.tex
+++ /dev/null
@@ -1,221 +0,0 @@
-% !TeX encoding = UTF-8
-% !TeX program = pdflatex
-% !TeX spellcheck = en_US
-
-\documentclass[PhD,binding=0.6cm]{../sapthesis}
-
-\usepackage{microtype}
-% if you write in italian:
-%\usepackage[italian]{babel}
-\usepackage[utf8]{inputenx}
-
-\usepackage{hyperref}
-\hypersetup{pdftitle={Usage example of the Sapthesis 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 Sapthesis class\\ for a PhD thesis}
-\author{Francesco Biccari}
-\IDnumber{1234567}
-\course[Physics]{Fisica}
-\courseorganizer{Scuola di dottorato Vito Volterra}
-\cycle{XXV}
-\submitdate{April 2013}
-\copyyear{2013}
-\advisor{Prof. Nome Cognome}
-\advisor{Dr. Nome Cognome}
-\coadvisor{Dr. Nome Cognome}
-\authoremail{biccari@email.com}
-
-\examdate{16 April 2013}
-\examiner{Prof. Nome Cognome}
-\examiner{Prof. Nome Cognome}
-\examiner{Dr. Nome Cognome}
-\versiondate{\today}
-\ISBN{000000000-0}
-
-
-
-\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{sapthesis.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. 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{sapthesis}}
-
-In this chapter I will discuss my stylistic choices of \textsf{sapthesis}.
-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{sapthesis} 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{sapthesis 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.
-Two copies of the university logo in \texttt{pdf} format, one for color printing and the other one for black and white printing, are supplied in the \textsf{sapthesis} package. They are shown in Fig.~\ref{fig:largenenough}.
-
-\begin{figure}
-\centering
-\includegraphics[width=0.7\textwidth]{sapienza-MLred-pos}\\[3ex]
-\includegraphics[width=0.7\textwidth]{sapienza-MLblack-pos}
-\caption{Logo of the Sapienza -- University of Rome.}
-\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}
-\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{sapthesis}}
-
-\textsf{Sapthesis} 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{Sapthesis} 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{sapred} which is the official color
-of Sapienza -- University of Rome. It is defined as RGB(130,36,51). \textcolor{sapred}{This text is written with the color \textsf{sapred}.}
-
-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{sapthesis} % BibTeX style
-%\bibliography{bibliography} % BibTeX database without .bib extension
-
-\end{document}
diff --git a/macros/latex/contrib/sapthesis/examples/Specialization.tex b/macros/latex/contrib/sapthesis/examples/Specialization.tex
deleted file mode 100644
index db99767f6b..0000000000
--- a/macros/latex/contrib/sapthesis/examples/Specialization.tex
+++ /dev/null
@@ -1,220 +0,0 @@
-% !TeX encoding = UTF-8
-% !TeX program = pdflatex
-% !TeX spellcheck = en_US
-
-\documentclass[Specialization,binding=0.6cm]{sapthesis}
-
-\usepackage{microtype}
-\usepackage[utf8]{inputenx}
-
-\usepackage{hyperref}
-\hypersetup{pdftitle={Usage example of Sapthesis class for Specialization 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 Sapthesis class for\\ Specialization thesis}
-\author{Francesco Biccari}
-\IDnumber{1234567}
-\course{Fisica Medica}
-\courseorganizer{Facoltà di Medicina e Chirurgia}
-\AcademicYear{2012/2013}
-\copyyear{2013}
-\advisor{Prof. Nome Cognome}
-\advisor{Dr. Nome Cognome}
-\coadvisor{Dr. Nome Cognome}
-\director{Prof. Nome Cognome}
-\authoremail{biccari@email.com}
-
-\examdate{16 April 2013}
-\examiner{Prof. Nome Cognome}
-\examiner{Prof. Nome Cognome}
-\examiner{Dr. Nome Cognome}
-\versiondate{\today}
-\website{biccari.altervista.org}
-\ISBN{000000000-0}
-
-
-
-\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{sapthesis.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. 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{sapthesis}}
-
-In this chapter I will discuss my stylistic choices of \textsf{sapthesis}.
-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{sapthesis} 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{sapthesis 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.
-Two copies of the university logo in \texttt{pdf} format, one for color printing and the other one for black and white printing, are supplied in the \textsf{sapthesis} package. They are shown in Fig.~\ref{fig:largenenough}.
-
-\begin{figure}
-\centering
-\includegraphics[width=0.7\textwidth]{sapienza-MLred-pos}\\[3ex]
-\includegraphics[width=0.7\textwidth]{sapienza-MLblack-pos}
-\caption{Logo of the Sapienza -- University of Rome.}
-\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}
-\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{sapthesis}}
-
-\textsf{Sapthesis} 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{Sapthesis} 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{sapred} which is the official color
-of Sapienza -- University of Rome. It is defined as RGB(130,36,51). \textcolor{sapred}{This text is written with the color \textsf{sapred}.}
-
-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{sapthesis} % BibTeX style
-%\bibliography{bibliography} % BibTeX database without .bib extension
-
-\end{document}
diff --git a/macros/latex/contrib/sapthesis/examples/TFA.tex b/macros/latex/contrib/sapthesis/examples/TFA.tex
deleted file mode 100644
index ddebabbf4d..0000000000
--- a/macros/latex/contrib/sapthesis/examples/TFA.tex
+++ /dev/null
@@ -1,229 +0,0 @@
-% !TeX encoding = UTF-8
-% !TeX program = pdflatex
-% !TeX spellcheck = it_IT
-
-\documentclass[TFA,oneside]{sapthesis}
-
-% READ THE DOCUMENTATION!
-
-\usepackage{microtype}
-\usepackage[italian]{babel}
-\usepackage[utf8]{inputenx}
-
-\usepackage{hyperref}
-\hypersetup{pdftitle={Esempio relazione TFA},pdfauthor={Francesco Biccari}}
-
-% If you need to increase the line spacing (interlinea)
-%\usepackage{setspace}
-%\onehalfspacing
-
-% Remove in a normal thesis
-\usepackage{lipsum}
-\usepackage{curve2e}
-\definecolor{gray}{gray}{0.4}
-\newcommand{\bs}{\textbackslash}
-
-
-% Commands for the titlepage
-\title{Esempio d'uso della classe Sapthesis\\ per la relazione di tirocinio del TFA}
-\author{Francesco Biccari}
-\IDnumber{1234567}
-\course{A027 Matematica e Fisica}
-\courseorganizer{Facoltà di Scienze Matematiche, Fisiche e Naturali}
-\AcademicYear{2012/2013}
-\copyyear{2013}
-\advisor{Prof. Nome Cognome}
-\tutor{Prof.ssa Nome Cognome}
-\tutorcoord{Prof.ssa Nome Cognome}
-\authoremail{biccari@email.com}
-\schoolname{Liceo Scientifico Louis Pasteur}
-\schooladdress{Via G. Barellai 130, 00135 Roma}
-\schoolwebsite{http://www.liceopasteur.it/}
-\schoolprincipal{Prof.ssa Nome Cognome}
-
-\examdate{9 luglio 2013}
-\examiner{Prof. Nome Cognome}
-\examiner{Prof. Nome Cognome}
-\examiner{Prof. Nome Cognome}
-\examiner{Prof. Nome Cognome}
-\examiner{Prof. Nome Cognome (tutor coord.)}
-\examiner{Prof. Nome Cognome (tutor)}
-\examiner{Prof. Nome Cognome (dirigente scolastico nominato dall'USR)}
-\examiner{Prof. Nome Cognome (tutor coord. supplente)}
-
-\versiondate{\today}
-
-
-
-\begin{document}
-
-\frontmatter
-
-\maketitle
-
-\dedication{Dedicato a\\ Donald Knuth}
-
-\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. Enrico Gregorio.
-\end{acknowledgments}
-
-\tableofcontents
-
-% Do not use the starred version of the chapter command!
-\chapter{Capitolo non numerato}
-
-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*{Paragrafo non numerato}
-
-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{sapthesis}}
-
-In this chapter I will discuss my stylistic choices of \textsf{sapthesis}.
-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{sapthesis} 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{sapthesis 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.
-Two copies of the university logo in \texttt{pdf} format, one for color printing and the other one for black and white printing, are supplied in the \textsf{sapthesis} package. They are shown in Fig.~\ref{fig:largenenough}.
-
-\begin{figure}
-\centering
-\includegraphics[width=0.7\textwidth]{sapienza-MLred-pos}\\[3ex]
-\includegraphics[width=0.7\textwidth]{sapienza-MLblack-pos}
-\caption{Logo of the Sapienza -- University of Rome.}
-\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}
-\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{sapthesis}}
-
-\textsf{Sapthesis} 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{Sapthesis} 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{sapred} which is the official color
-of Sapienza -- University of Rome. It is defined as RGB(130,36,51). \textcolor{sapred}{This text is written with the color \textsf{sapred}.}
-
-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{sapthesis} % BibTeX style
-%\bibliography{bibliography} % BibTeX database without .bib extension
-
-\end{document}
diff --git a/macros/latex/contrib/sapthesis/sapienza-MLblack-pos.pdf b/macros/latex/contrib/sapthesis/sapienza-MLblack-pos.pdf
deleted file mode 100644
index f8b64b193e..0000000000
--- a/macros/latex/contrib/sapthesis/sapienza-MLblack-pos.pdf
+++ /dev/null
Binary files differ
diff --git a/macros/latex/contrib/sapthesis/sapienza-MLred-pos.pdf b/macros/latex/contrib/sapthesis/sapienzalogo.pdf
index 348c7c9c09..348c7c9c09 100644
--- a/macros/latex/contrib/sapthesis/sapienza-MLred-pos.pdf
+++ b/macros/latex/contrib/sapthesis/sapienzalogo.pdf
Binary files differ
diff --git a/macros/latex/contrib/sapthesis/sapthesis-doc.pdf b/macros/latex/contrib/sapthesis/sapthesis-doc.pdf
index 80268090c7..18c215ee6c 100644
--- a/macros/latex/contrib/sapthesis/sapthesis-doc.pdf
+++ b/macros/latex/contrib/sapthesis/sapthesis-doc.pdf
Binary files differ
diff --git a/macros/latex/contrib/sapthesis/sapthesis-doc.tex b/macros/latex/contrib/sapthesis/sapthesis-doc.tex
index 67c736eceb..ce2ce1811e 100644
--- a/macros/latex/contrib/sapthesis/sapthesis-doc.tex
+++ b/macros/latex/contrib/sapthesis/sapthesis-doc.tex
@@ -16,6 +16,7 @@
\usepackage{color}
\definecolor{gray}{gray}{0.4}
\definecolor{sfondoblu}{rgb}{0.94,0.97,1}
+\usepackage{curve2e}
\usepackage{listings}
\lstset{language=[LaTeX]TeX,
basicstyle=\scriptsize\ttfamily,
@@ -25,10 +26,12 @@
frameround=tttt,
frame=tlrb,
escapechar=|,
- morekeywords={submitdate, cycle, courseorganizer, AcademicYear, copyyear, Faculty, course, PhDorganizer, IDnumber, advisor, examdate, examiner, authoremail, frontmatter, mainmatter, maketitle, tableofcontents, chapter, appendix, backmatter, dedication, selectlanguage, tutor, tutorcoord, schoolname, schooladdress, schoolwebsite, schoolprincipal},
+ morekeywords={submitdate, cycle, courseorganizer, AcademicYear, copyyear, Faculty, course, PhDorganizer, IDnumber, advisor, coadvisor, examdate, examiner, authoremail, frontmatter, mainmatter, maketitle, tableofcontents, chapter, appendix, backmatter, dedication, selectlanguage, tutor, tutorcoord, thesistype, customdirectorlabel, schoolname, schooladdress, schoolwebsite, schoolprincipal, phantomsection, director, hypersetup},
columns=flexible
}
+\definecolor{sapred}{rgb}{0.5098039,0.1411765,0.2}
+
\usepackage{multicol}
% eliminate dots in the table of contents
@@ -53,7 +56,7 @@
\author{\small Francesco Biccari\thanks{\href{mailto:biccari@gmail.com}{biccari@gmail.com}}}
\title{\small Documentation of the \LaTeX\ class\\
\Large \textbf{\texttt{sapthesis.cls}}\\
- \small \vspace{0.2cm} Version 4.1, 2018-08-07
+ \small \vspace{0.2cm} Version 5.0, 2022-01-01
}
\date{}
@@ -104,7 +107,7 @@
\maketitle
\begin{abstract}\noindent
-This document describes how to use \texttt{sapthesis.cls}, a \LaTeX\ document class for the typesetting of the theses of the ``Sapienza -- University of Rome''. The official web page of \textsf{sapthesis} is\\
+This document describes how to use \texttt{sapthesis.cls}, a \LaTeX\ document class for the typesetting of the theses of the ``Sapienza University of Rome''. The official web page of \textsf{sapthesis} is\\
{\footnotesize\url{http://biccari.altervista.org/c/informatica/latex/sapthesis.php}}.
\end{abstract}
@@ -126,7 +129,7 @@ Apart from the time spent, the resulting documents are obviously all different f
This has a negative impact both on the student's work and on the university.
Moreover in 2007 the Sapienza university changed completely its
logo and a lot of strict graphic rules for official documents were introduced.%
-\footnote{A thesis is not an official document and therefore these guidelines can not be applied (private communication with Laura Gobbo, Ufficio Stampa e Comunicazione Sapienza -- Universit\`a di Roma).
+\footnote{A thesis is not an official document and therefore these guidelines can not be applied (private communication with Laura Gobbo, Ufficio Stampa e Comunicazione Sapienza Universit\`a di Roma).
However some Microsoft Word templates, with a completely different style, are provided.
To give a look to the new Sapienza style see
\href{https://www.uniroma1.it/it/pagina/marchio-identita-visiva-e-sistema-grafico}{Marchio, identità visiva e sistema grafico} and \href{https://www.uniroma1.it/it/pagina/impaginazione-della-tesi-e-logo}{Template tesi}.}
@@ -134,11 +137,13 @@ To give a look to the new Sapienza style see
For these reasons I thought that a \LaTeX\ class for the theses of my
university would have been a good idea.
\textsf{Sapthesis} is the result of my work.
-To give a look to a document composed by \textsf{sapthesis} class, compile one of the several examples in the \texttt{examples} directory.
-In those files the page layout and the layout choices are explained.
+Its official web page is
+{\footnotesize\url{http://biccari.altervista.org/c/informatica/latex/sapthesis.php}}.
\textsf{Sapthesis} is released under the terms of the latest version of the
\href{http://www.latex-project.org/lppl/}{\LaTeX\ Project Public License}.
+To give a look to a document composed by \textsf{sapthesis} class, compile one of the several examples reported in App.\,\ref{sec:examples}.
+
I would like to thank the Italian \TeX\ user group (\href{http://www.guitex.org/}{GuIT}) for the help provided, in particular Enrico Gregorio and Claudio Beccari. I would also thank all the users who reported bugs and suggestions.
\section[Requirements\\ and installation]{Requirements and installation}
@@ -150,8 +155,8 @@ the \texttt{README} file.
The \textsf{sapthesis} package provides: the
\texttt{sapthesis.cls} class file; the documentation
-\texttt{sapthesis-doc.pdf} (this file) and its source code; the logos of
-Sapienza university; several usage examples; an English Bib\TeX\ style, called
+\texttt{sapthesis-doc.pdf} (this file) and its source code; the logo of
+Sapienza university; an English Bib\TeX\ style, called
\texttt{sapthesis.bst}, which can be used, obviously, only if you use the
Bib\TeX\ way to compose your bibliography and if your thesis is written in
English (its usage is not mandatory).
@@ -174,46 +179,34 @@ As usual, in order to use this class, you need to call it by
\begin{lstlisting}
\documentclass[|\textit{\texttt{options}}|]{sapthesis}
\end{lstlisting}
-You have to specify the class options for your case (see Sec.~\ref{class_options}). Then you have to provide some fundamental information (title, author, etc\ldots) by specific commands in the preamble (see Sec.~\ref{commands_titlepage}). Finally, remember to follow a source code structure similar to those of the examples given in App.~\ref{sec:PhDexample} and~\ref{sec:LaMexample}.
+You have to specify the class options for your case (see Sec.~\ref{class_options}). Then you have to provide some fundamental information (title, author, etc\ldots) by specific commands in the preamble (see Sec.~\ref{commands_titlepage}). Finally, remember to follow a source code structure similar to those of the examples given in App.~\ref{sec:examples}.
Especially the usage of the commands \texttt{\bs frontmatter}, \texttt{\bs mainmatter} and \texttt{\bs backmatter} is mandatory, otherwise the page style of the document will be wrong!
-This class supports, at the moment, two languages: Italian and English. English is the default.
-If your thesis contains only English or very few paragraphs in another language, do not use the \texttt{babel} package because completely useless. Instead, if you write in italian, load the \texttt{babel} package with the
-\texttt{italian} option: \texttt{\bs usepackage[italian]\{babel\}}.
+This class supports, at the moment, two languages: Italian and English. The choice of the language is automatic according to the \texttt{babel} package settings. If babel is not loaded, english is used. See below to override the automatic choice.
\subsection{Class options}
\label{class_options}
The following options can be passed to the \texttt{\bs documentclass} command.
\begin{description}
-\item[\texttt{PhD}] Option to typeset a \textit{Dottorato di Ricerca} (PhD) thesis.
-\item[\texttt{LaM}] Option to typeset a \textit{Laurea Magistrale} (Master's degree) thesis.
-\item[\texttt{Lau}] Option to typeset a \textit{Laurea} (Bachelor's degree) thesis.
-\item[\texttt{MasterP}] Option to typeset a thesis for a \textit{Master di primo livello} (First level master).
-\item[\texttt{MasterS}] Option to typeset a thesis for a \textit{Master di secondo livello} (Second level master).
-\item[\texttt{TFA}] Option to typeset the final report for a \textit{Tirocinio Formativo Attivo}.
-\item[\texttt{Specialization}] Option to typeset a thesis for a \textit{Specializzazione}.
+\item[\texttt{a4paper/a5paper/b5paper}] Choose one of these three options to set the paper format. The default value is \texttt{a4paper}.
+\item[\texttt{layout=\textsl{a5paper/b5paper}}] If, for some reason, it is impossible to print on A5 or B5 directly (printer not supporting these formats, paper not available, ...), it is possible to specify the A5 or B5 layout, maintaining the A4 paper format: some cropmarks will be printed to show where the page should be cut.
\item[\texttt{draft}] The usual \texttt{draft} option of the \LaTeX\ Standard Classes.
\item[\texttt{oneside}] The usual \texttt{oneside} option of the \LaTeX\ Standard Classes.
\item[\texttt{twoside}] (default) The usual \texttt{twoside} option of the \LaTeX\ Standard Classes.
-\item[\texttt{bn}] This option typesets the title page in black and white
-(using the b/w logo, \texttt{sapienza-MLblack-pos.pdf}, instead of the colored one) and passes the \texttt{monochrome} option to \textsf{color} and
-\textsf{xcolor} packages.
-
\item[\texttt{binding=\textsl{length}}] (zero default binding)
The value of this option is an offset of the text column.
It is useful to take into account the margin for the binding (ask to your bookbinder for information).
-\item[\texttt{noexaminfo}] Suppress all the final exam informations. Indeed, by default, \textsf{sapthesis} shows some information about the final thesis discussion on the back of the title page. By default it shows the phrase ``Thesis not yet defended''. Otherwise, as explained later, giving the commands
+\item[\texttt{noexaminfo}] Suppress all the final exam informations. Indeed, by default, \textsf{Sapthesis} shows some information about the final thesis discussion on the back of the title page. By default it shows the phrase ``Thesis not yet defended''. Otherwise, as explained later, giving the commands
\texttt{\bs examdate\{\dots\}} and \texttt{\bs examiner\{\dots\}} the date and
the examiners list are shown.
-\item[\texttt{italian} or \texttt{english}] Explicitly declare the language of
-the title page. Useful when you want to write the title page in a language
-and the thesis in a different language.
\item[\texttt{nodefaultfont}] Avoid the loading of packages \textsf{fontenc}, \textsf{textcomp} and \textsf{lmodern}.
\item[\texttt{romandiff}] See App.~\ref{sec:usefulcommands}.
-\item[\texttt{fem}] Use the feminine (only Italian): shows ``candidata'' instead of ``candidato''.
+\item[\texttt{italian} / \texttt{english}] Explicitly declare the language of
+the title page. Useful to write the title page in a language
+and the thesis in a different language.
\end{description}
\subsection[Commands for the\\ title page]{Commands for the title page}
@@ -223,64 +216,71 @@ As usual, the title page is generated by the \texttt{\bs maketitle} command.
It needs some information that you can supply by the following commands
in the preamble.
\begin{description}
-\item[\texttt{\bs title\{\dots\}}] Mandatory. Title.
+\item[\texttt{\bs title\{\dots\}}] Mandatory. Title of the thesis. The text is justified, however it is recommended to insert manual linebreaks (\bs\bs) to compose a beautiful title.
+
+\item[\texttt{\bs subtitle\{\dots\}}] Optional. Subtitle (try to avoid a subtitle). If both\\ \texttt{\bs subtitle\{\dots\}} and \texttt{\bs alttitle\{\dots\}} are used, the latter is discarded.
-\item[\texttt{\bs subtitle\{\dots\}}] Optional. Subtitle (try to avoid a subtitle).
+\item[\texttt{\bs alttitle\{\dots\}}] Optional. Alternative title (try to avoid an alternative title). This command, together with the \texttt{\bs title\{\dots\}} command, is typically used to insert in the frontispiece the title in another language. If both \texttt{\bs subtitle\{\dots\}} and \texttt{\bs alttitle\{\dots\}} are used, the latter is discarded.
\item[\texttt{\bs author\{\dots\}}] Mandatory. Author (student's name).
\item[\texttt{\bs IDnumber\{\dots\}}] Mandatory. ID number (\textit{matricola} in Italian).
-\item[\texttt{\bs course[\dots]\{\dots\}}] Mandatory. Use the official Italian name of the course. If the optional argument \texttt{override} is specified, the mandatory argument is used to specify the entire course line in the frontispiece. In this way it is possible to override the behavior of the class (not recommended!).
+\item[\texttt{\bs course\{\dots\}}] Mandatory. Use the official Italian name of the course.
+Even though your thesis is in English you should write here the official name of the course, which normally is in Italian.
-\item[\texttt{\bs courseorganizer\{\dots\}}] Mandatory. Course organizer.
-
-\item[\texttt{\bs submitdate\{\dots\}}] Mandatory. Use the form \texttt{\bs submitdate\{April 2009\}} for PhD's and the form \texttt{\bs submitdate\{2009/2010\}} for Laurea theses.
+\item[\texttt{\bs cycle\{\dots\}}] Mandatory only for PhD's. Use the form: \texttt{\bs cycle\{XXII\}}
-\item[\texttt{\bs AcademicYear\{\dots\}}] Alias for \texttt{\bs submitdate}. Academic Year.
+\item[\texttt{\bs courseorganizer\{\dots\}}] Mandatory. Course organizer (for example Scuola di Scienze Matematiche Fisiche e Naturali). Use \bs\bs\ to properly break the lines.
-\item[\texttt{\bs copyyear\{\dots\}}] Mandatory. Copyright year (usually the
-graduation year).
+\item[\texttt{\bs AcademicYear\{\dots\}}] Academic Year.
\item[\texttt{\bs advisor\{\dots\}}] You must specify at least one advisor.
If you have more than one advisor, put several advisor commands in the correct order:\\
\texttt{\bs advisor\{Prof.~Pippo\}} \texttt{\bs advisor\{Dr.~Pluto\}}
-\item[\texttt{\bs coadvisor[\dots]\{\dots\}}] Optional. Co-advisors of the thesis.
-Same syntax of the \texttt{\bs advisor} command. If the optional argument \texttt{ext} is specified, ``External advisor'' will be printed instead of ``Co-Advisor''.
+\item[\texttt{\bs customadvisorlabel\{\dots\}}] Optional. Specify the label for advisors. It can be used, for example, to print ``Relatrice'' instead of ``Relatore''.
-\item[\texttt{\bs reviewer\{\dots\}}] Optional. Reviewers of the thesis.
-Same syntax of the \texttt{\bs advisor} command. The list of the reviewer is preceded by the a text which can be specified by the \texttt{\bs reviewerlabel\{\dots\}} command.
+\item[\texttt{\bs coadvisor\{\dots\}}] Optional. Co-advisors of the thesis.
+Same syntax of the \texttt{\bs advisor} command.
-\item[\texttt{\bs authoremail\{\dots\}}] Mandatory. Email of the thesis author.
-It is automatically hyper-linked if \textsf{hyperref} package is loaded.
-
-\item[\texttt{\bs versiondate\{\dots\}}] Optional. Date version of the thesis.
+\item[\texttt{\bs customcoadvisorlabel\{\dots\}}] Optional. Specify the label for co-advisors. It can be used to print ``external advisor'' or similar labels.
-\item[\texttt{\bs website\{\dots\}}] Optional. Thesis website. Automatically
-hyper-linked if \textsf{hyperref} package is loaded.
-
-\item[\texttt{\bs ISBN\{\dots\}}] Optional. ISBN
+\item[\texttt{\bs director\{\dots\}}] Optional. Director of the PhD program, head of the Specialization degree, or similar. Same syntax of the \texttt{\bs advisor} command. Avoid its usage if possible.
-\item[\texttt{\bs copyrightstatement\{\dots\}}] Optional. Specify a copyright statement that will be printed in place of the default one.
+\item[\texttt{\bs customdirectorlabel\{\dots\}}] Optional. Specify the label for director.
+\end{description}
+Together with the title page, \textsf{Sapthesis} will also compose an information page just after the title page. See also the \texttt{\bs noexaminfo} class option described in a previous section. Here follow the necessary commands to compose this page.
+\begin{description}
\item[\texttt{\bs examdate\{\dots\}}] Optional. Date of the final exam.\\
-Example: \texttt{\bs examdate\{16 February 2010\}}.
+Example: \texttt{\bs examdate\{16 February 2020\}}.
\item[\texttt{\bs examiner[\dots]\{\dots\}}] Optional. Specifies the members of the
board of examiners of the final exam. Usage similar to \texttt{\bs advisor} command. The optional argument can be used to specify the role of that examiner in the commission.
-\item[\texttt{\bs cycle\{\dots\}}] Mandatory only for PhD's. Use the form: \texttt{\bs cycle\{XXII\}}
+\item[\texttt{\bs thesistype\{\dots\}}] Optional. Type of thesis (usually PhD thesis, Master thesis, and so on).
+
+\item[\texttt{\bs ISBN\{\dots\}}] Optional. ISBN
+
+\item[\texttt{\bs copyyear\{\dots\}}] Mandatory. Copyright year (usually the
+graduation year).
+
+\item[\texttt{\bs copyrightstatement\{\dots\}}] Optional. Specify a copyright statement that will be printed in place of the default one.
+
+\item[\texttt{\bs versiondate\{\dots\}}] Optional. Date version of the thesis.
+
+\item[\texttt{\bs website\{\dots\}}] Optional. Thesis website. Automatically
+hyper-linked if \textsf{hyperref} package is loaded.
+
+\item[\texttt{\bs authoremail\{\dots\}}] Mandatory. Email of the thesis author.
+It is automatically hyper-linked if \textsf{hyperref} package is loaded.
-\item[\texttt{\bs director\{\dots\}}] Only for Specialization. Mandatory.
+\item[\texttt{\bs reviewer\{\dots\}}] Optional. Reviewers of the thesis (typically this applies to PhD theses only). Same syntax of the \texttt{\bs advisor} command. The list of the reviewer is preceded by the a text which can be specified by the \texttt{\bs reviewerlabel\{\dots\}} command.
-\item[\texttt{\bs tutor\{\dots\}} and \texttt{\bs tutorcoord\{\dots\}}] Only for TFA. Mandatory.
+\item[\texttt{\bs extrainfo\{\dots\}}] Optional. This command can be used to insert an arbitraly long text at the top of the back of the titlepage. For example, in the past it was used to provide some information for TFA theses (tutor, tutor coordinator, principal of the school, name of the school, and so on).
-\item[\texttt{\bs schoolname\{\dots\}}] Only for TFA. Mandatory. Name of the school.
-\item[\texttt{\bs schooladdress\{\dots\}}] Only for TFA. Mandatory. School's address.
-\item[\texttt{\bs schoolwebsite\{\dots\}}] Only for TFA. Optional. School's website.
-\item[\texttt{\bs schoolprincipal\{\dots\}}] Only for TFA. Mandatory. School's principal.
\end{description}
@@ -300,21 +300,20 @@ If you use a language for the acknowledgments different from that of the thesis,
\end{description}
-
-The \texttt{sapthesis} class defines also the color \texttt{sapred} which is the \emph{Sapienza red}: RGB(130,36,51).
-This color is switched to black if the \texttt{bn} option is in use. Example of usage: \texttt{\ldots \bs textcolor\{sapred\}\{blah blah blah\}\ldots}
+\textcolor{sapred}{%
+The \texttt{sapthesis} class defines also the color \texttt{sapred} which is the \emph{Sapienza red}: RGB(130,36,51). Example of usage: \texttt{\bs textcolor\{sapred\}\{blah blah\}}}
\section{Recommendations}
\begin{itemize}
-\item Do \textbf{not} change the default layout. If you want to change the interline spacing, do not use the \texttt{\bs linespread} command. Load instead the \textsf{setspace} package and use, for example, the \texttt{\bs onehalfspacing} command.
+\item Do \textbf{not} change the default layout.
\item Do \textbf{not} load the packages already loaded by \textsf{sapthesis} (see Sec.~\ref{requirements_installation}).
\item As you already should know, \LaTeX\ can process only documents
-in pure ASCII. If you want to insert \emph{directly} other characters, not included in the 128 ASCII characters (for example accented letters), you have to use a particular text encoding for your source file. Then you have to ``tell'' to \LaTeX\ which encoding you have chosen by the packages \texttt{inputenc}. It is always recommended to use UTF-8 character encoding and specify this choice also by the \emph{magic lines} at the beginning of the source code (see the examples in App.~\ref{sec:PhDexample} and~\ref{sec:LaMexample}).
+in pure ASCII. If you want to insert \emph{directly} other characters, not included in the 128 ASCII characters (for example accented letters), you have to use a particular text encoding for your source file. Then you have to ``tell'' to \LaTeX\ which encoding you have chosen by the packages \texttt{inputenc}. It is always recommended to use UTF-8 character encoding and specify this choice also by the \emph{magic lines} at the beginning of the source code (see the examples in App.~\ref{sec:examples}).
\item Respect the following thesis structure:
@@ -354,90 +353,64 @@ first author surname: this order is very useful, contrary to the other typical o
\end{itemize}
+\clearpage
+\section{Other useful commands}
+\label{sec:usefulcommands}
-\appendix
-
-\section{A very brief introduction to the \TeX\ world}
-
-Many people want to (or are compelled to) write in \LaTeX\ without studying
-a basic manual. Here follows a very brief introduction to the \TeX\ world.
-
-\TeX, the document preparation system designed by Donald Knuth in 1978, is a program to typeset documents.
-It is a mark-up language: you write a simple text decorated with \TeX\ commands (source code) which is then compiled to obtain the final product, a document in pdf format.
-\LaTeX\ is just a set of macros, written in \TeX, to simplify the writing of the source code: it can be thought as a simpler programming language with respect to \TeX. A source code written in \LaTeX\ can be compiled by several ``compilers'': \texttt{pdflatex} (the most common), or \texttt{xelatex}, or others.
-
-The following list of \LaTeX\ manuals, may be especially useful for Italian authors.
-
-\begin{itemize}
-\item \href{http://www.lorenzopantieri.net/LaTeX_files/ArteLaTeX.pdf}{\textsc{L.
-Pantieri \& T. Gordini}, \textit{L'arte di scrivere con} \LaTeX, (2017)}
-
-\item \href{http://mirror.ctan.org/info/symbols/comprehensive/symbols-a4.pdf}{\textsc{S. Pakin}, \textit{The comprehensive} \LaTeX\ \textit{symbol list}, (2017)}
-
-\item \href{http://profs.sci.univr.it/~gregorio/breveguida.pdf}{\textsc{E. Gregorio}, \LaTeX\textit{: breve guida ai pacchetti di uso pi\`u comune}, (2010)}
-\end{itemize}
-
-In order to use \LaTeX, you have to install a \TeX\ distribution. It contains the compilers, several fonts and other files needed by the compilers and also many \emph{packages}, which can be thought as libraries or extensions of \LaTeX. The most famous distributions are \href{http://miktex.org/}{MiKTeX} (available only for Windows), \href{http://www.tug.org/texlive/}{TeX Live} (available both for Windows and Linux) and \href{http://www.tug.org/mactex/2011/}{MacTeX} (available only for Mac OS).
-
-Finally we discuss the editor, that is the program used to write your source file. Since a source file written in \LaTeX, like in any other programming language, is a simple text file, you can write your code with any text editor you want (for example Notepad in Windows). However the suggested editors are:
-\begin{itemize}
-\item \href{http://tug.org/texworks/}{TeXworks}. Already installed with any \TeX\ distribution. Very simple and powerful. Use TeXworks if you are not an expert. Enrico Gregorio has written a very good and brief TeXworks manual in Italian, which can be found at: {\small \url{http://profs.sci.univr.it/~gregorio/introtexworks.pdf}}.
-
-\item \href{http://texstudio.sourceforge.net/}{TeXstudio} (cross-platform), \href{http://www.xm1math.net/texmaker/}{TeXmaker} (cross-platform), \href{http://pages.uoregon.edu/koch/texshop/}{TeXshop} (only for Mac), \href{http://kile.sourceforge.net/}{Kile} (only for Linux). Powerful editors.
-
-\item \textbf{Avoid} other editors unless you know what you are doing!
-
-\end{itemize}
+\textsf{Sapthesis} provides several useful commands for scientific texts.
-Finally we explain how to compile the example documents provided in the \textsf{sapthesis} package. Double click on one of the \texttt{.tex} file in the \texttt{examples} folder.
-TeXworks should start showing the content of that file.
-The \texttt{pdflatex} compiler should be automatically selected thanks to the \emph{magic lines} placed at the beginning of the file.
-Now, in order to compile, press the green button.
-At the end of the compilation the resulting pdf appears in a separate window. Remember to compile at least three times, because \LaTeX\ needs more than one compilation to correctly resolve the internal cross references (for example for the table of contents composition, or when you refer to a figure by the \texttt{\bs label}\,--\,\texttt{\bs ref}\,/\,\texttt{\bs pageref} mechanism).
+\begin{description}
+\item[\texttt{\bs eu}] Napier's number, $\mathrm{e}$, in roman.
+\item[\texttt{\bs iu}] Imaginary unit, $\mathrm{i}$, in roman.
+\item[\texttt{\bs der\{\dots\}\{\dots\}}] Derivative. The first argument represents the function to derive while the second the variables separated by commas. The differential symbol is automatically inserted. Examples:
+\texttt{\bs der\{f\}\{x\}}, \texttt{\bs der\{f\}\{x,y\}}, \texttt{\bs der\{f\}\{*\{3\}\{x\}\}},
+\texttt{\bs der\{f\}\{*\{2\}\{x\},*\{2\}\{y\},z\}}.
-\section{Using LyX}
+\item[\texttt{\bs pder\{\dots\}\{\dots\}}] Partial derivative. Same syntax of the \texttt{\bs der} command.
-LyX is an advanced \LaTeX\ editor which does not simply show the source code like any text editor, but instead it renders maths, images, tables and some text formatting commands. However this ``layer'' between the writer and the real source code is sometimes frustrating and many authors discourage the usage of LyX.
+\item[\texttt{\bs rb\{\dots\}}] Roman suBscript
-Using \textsf{sapthesis} with LyX is quite straightforward.
-\begin{itemize}
-\item
-Install \textsf{sapthesis} by the package manager of your \TeX\ distribution or manually.
+\item[\texttt{\bs rp\{\dots\}}] Roman suPerscript
-\item
-Copy the file \texttt{sapthesis.layout} in the directory\\ \texttt{C:\bs Program Files\bs Lyx20\bs Resources\bs layouts\bs}\\ and then, in LyX, click on \textsf{Tools > Reconfigure}. This will add the \textsf{sapthesis} class in the list of LyX available classes.
+\item[\texttt{\bs tb\{\dots\}}] Text suBscript
-\item
-In LyX, first of all, go in \textsf{Tools > Preferences > Language Settings > Language} and choose ``none'' in Language package. This step is necessary because LyX not only loads babel with the desired language, but it passes the language also as an option for the class! This triggers an error in many classes.
+\item[\texttt{\bs tp\{\dots\}}] Text suPerscript
-\item
-Create a new document and go in \textsf{Document > Settings > Document Class}. Here you can choose \textsf{sapthesis} as the class for the document and write the class options.
+\item[\texttt{\bs un\{\dots\}}] Useful command to typeset measurement units in the correct way, e.g. \texttt{25\bs un\{m/s\}},
+\texttt{13\bs un\{kg\bs ,cm\^{}\{-3\}\}}. It can be used both inside or outside the math environment.
+For heavy usage of measurement units and to insert numbers in the form
+\texttt{1.4e-5}, the package \textsf{siunitx} is recommended.
-\item
-Write the preamble in \textsf{Document > Settings > LaTeX Preamble}.
+\item[\texttt{\bs g}] Shortcut for the \texttt{\bs degree} command. Example: \texttt{45\bs g} produces 45\g.
-\item Create the titlepage inserting the title by the \textsf{Title} item in the LyX left menu.
+\item[\texttt{\bs C}] Shortcut for the \texttt{\bs celsius} command. Example: \texttt{37\bs ,\bs C} produces 37\,\C. (Not available in math mode compiling with \texttt{xelatex}).
-\end{itemize}
+\item[\texttt{\bs A}] Angstrom. Example: \texttt{10\bs ,\bs A} produces 10\,\A.
-It is recommended to activate \textsf{View > Source Pane}. This step is not necessary but it is very useful to observe the \LaTeX\ code produced by LyX (on the right choose ``Complete source'' or ``Preamble'').
+\item[\texttt{\bs micro}] Micro prefix. Example: \texttt{7\bs ,\bs micro m} produces 7\,\micro m.
+\item[\texttt{\bs ohm}] Ohm. Example: \texttt{100\bs ,\bs ohm} produces 100\,\ohm.
+\item[\texttt{\bs di}] Differential symbol with automatic spacing. Example:
+\texttt{\$\bs int x \bs di x\$} produces $\int x \di x$. If you prefer the differential symbol in roman ($\mathrm{d}$), you can use the \texttt{romandiff} document class option.
+\item[\texttt{\bs x}] Shortcut for the \texttt{\bs times} command. E.g.: \texttt{\$7 \bs x 10\^{}5\$} produces $7 \times 10^5$.
+\end{description}
\clearpage
-\section{PhD thesis example}
-\label{sec:PhDexample}
+\section{Examples}
+\label{sec:examples}
+\subsection*{PhD thesis in English}
\begin{lstlisting}
% !TeX encoding = UTF-8
% !TeX program = pdflatex
% !TeX spellcheck = en_US
-\documentclass[binding=0.6cm,PhD]{sapthesis}
+\documentclass[binding=0.6cm]{sapthesis}
\usepackage{microtype}
\usepackage{hyperref}
@@ -446,14 +419,15 @@ It is recommended to activate \textsf{View > Source Pane}. This step is not nece
\title{My thesis}
\author{Francesco Biccari}
\IDnumber{123456}
-\course[Philology]{Filologia}
+\course{Dottorato di Ricerca in Filologia}
\courseorganizer{Scuola di Dottorato in Scienze Filologiche}
-\cycle{XXII}
-\submitdate{October 2009}
-\copyyear{2009}
+\cycle{XXXVII}
+\AcademicYear{2021/2022}
\advisor{Prof. Caio}
-\advisor{Dr. Sempronio}
+\coadvisor{Dr. Sempronio}
\authoremail{pippo@pippo.com}
+\copyyear{2022}
+\thesistype{PhD thesis}
\begin{document}
@@ -483,15 +457,14 @@ This thesis deals with myself.
\clearpage
-\section[Laurea (Magistrale)\\ thesis example]{Laurea (Magistrale) thesis example}
-\label{sec:LaMexample}
+\subsection*{Master thesis (Laurea/Laurea Magistrale) in Italian}
\begin{lstlisting}
% !TeX encoding = UTF-8
% !TeX program = pdflatex
% !TeX spellcheck = it_IT
-\documentclass[binding=0.6cm,Lau]{sapthesis} % LaM for a Laurea Magistrale
+\documentclass[binding=0.6cm]{sapthesis}
\usepackage{microtype}
\usepackage[italian]{babel}
@@ -502,13 +475,14 @@ This thesis deals with myself.
\title{La mia tesi}
\author{Francesco Biccari}
\IDnumber{123456}
-\course{Fisica}
+\course{Laurea Magistrale in Fisica}
\courseorganizer{Facolt|\`a| di Scienze Matematiche, Fisiche e Naturali}
-\AcademicYear{2011/2012}
-\copyyear{2012}
+\AcademicYear{2021/2022}
\advisor{Prof. Caio}
-\advisor{Dr. Sempronio}
-\authoremail{pippo@pippo.com}
+\coadvisor{Dr. Sempronio}
+\authoremail{francesco.biccari@pippo.com}
+\copyyear{2022}
+\thesistype{Tesi di Laurea Magistrale}
\begin{document}
@@ -538,49 +512,49 @@ Questa tesi parla di me.
\clearpage
-\section{TFA thesis example}
-\label{sec:TFAexample}
+\subsection*{Specialization thesis in English}
\begin{lstlisting}
% !TeX encoding = UTF-8
% !TeX program = pdflatex
-% !TeX spellcheck = it_IT
+% !TeX spellcheck = en_US
-\documentclass[binding=0.6cm,TFA]{sapthesis}
+\documentclass[binding=0.6cm]{sapthesis}
\usepackage{microtype}
-\usepackage[italian]{babel}
+\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage{hyperref}
-\hypersetup{pdftitle={La mia tesi},pdfauthor={Francesco Biccari}}
+\hypersetup{pdftitle={My thesis},pdfauthor={Francesco Biccari}}
-\title{La mia tesi}
+\title{My thesis}
\author{Francesco Biccari}
\IDnumber{123456}
-\course{A049 Matematica e Fisica}
-\courseorganizer{Facolt|\`a| di Scienze Matematiche, Fisiche e Naturali}
-\AcademicYear{2012/2013}
-\copyyear{2013}
+\course{Specializzazione in Fisica Medica}
+\courseorganizer{Facolt|\`a| di Medicina e Chirurgia}
+\AcademicYear{2021/2022}
\advisor{Prof. Caio}
-\tutor{Dr. Sempronio}
-\tutorcoord{Dr. Sempronio}
-\authoremail{pippo@pippo.com}
-
-\schoolname{Liceo Scientifico Louis Pasteur}
-\schooladdress{Via G. Barellai 130, 00135 Roma}
-\schoolwebsite{http://www.liceopasteur.it/}
-\schoolprincipal{Prof. Diego Armando Maradona}
+\coadvisor{Dr. Sempronio}
+\director{Prof. Pippo}
+\customdirectorlabel{Direttore della Scuola di Specializzazione}
+\authoremail{francesco.biccari@pippo.com}
+\copyyear{2022}
+\thesistype{Specialization thesis}
\begin{document}
\frontmatter
\maketitle
-\dedication{Dedicato a\\ Donald Knuth}
+\dedication{Dedicated to\\ Donald Knuth}
+
+\begin{abstract}
+This thesis deals with myself.
+\end{abstract}
\tableofcontents
\mainmatter
-\chapter{Introduzione}
+\chapter{Introduction}
...
\backmatter
@@ -593,57 +567,251 @@ Questa tesi parla di me.
\end{document}
\end{lstlisting}
+
+\appendix
+
+\section{A very brief introduction to the \TeX\ world}
+
+Many people want to (or are compelled to) write in \LaTeX\ without studying
+a basic manual. Here follows a very brief introduction to the \TeX\ world.
+
+\TeX, the document preparation system designed by Donald Knuth in 1978, is a program to typeset documents.
+It is a mark-up language: you write a simple text decorated with \TeX\ commands (source code) which is then compiled to obtain the final product, a document in pdf format.
+\LaTeX\ is just a set of macros, written in \TeX, to simplify the writing of the source code: it can be thought as a simpler programming language with respect to \TeX. A source code written in \LaTeX\ can be compiled by several ``compilers'': \texttt{pdflatex} (the most common), or \texttt{xelatex}, or others.
+
+The following list of \LaTeX\ manuals, may be especially useful for Italian authors.
+
+\begin{itemize}
+\item \href{http://www.lorenzopantieri.net/LaTeX_files/ArteLaTeX.pdf}{\textsc{L.
+Pantieri \& T. Gordini}, \textit{L'arte di scrivere con} \LaTeX, (2017)}
+
+\item \href{http://mirror.ctan.org/info/symbols/comprehensive/symbols-a4.pdf}{\textsc{S. Pakin}, \textit{The comprehensive} \LaTeX\ \textit{symbol list}, (2021)}
+
+\item \href{http://profs.sci.univr.it/~gregorio/breveguida.pdf}{\textsc{E. Gregorio}, \LaTeX\textit{: breve guida ai pacchetti di uso pi\`u comune}, (2010)}
+\end{itemize}
+
+In order to use \LaTeX, you have to install a \TeX\ distribution. It contains the compilers, several fonts and other files needed by the compilers and also many \emph{packages}, which can be thought as libraries or extensions of \LaTeX. The most famous distributions are \href{http://miktex.org/}{MiKTeX} (available only for Windows, Linux, and Mac), \href{http://www.tug.org/texlive/}{TeX Live} (available for Windows, Linux, and Mac) and \href{https://tug.org/mactex/}{MacTeX} (available only for Mac OS).
+
+Finally we discuss the editor, that is the program used to write your source file. Since a source file written in \LaTeX, like in any other programming language, is a simple text file, you can write your code with any text editor you want (for example Notepad in Windows). However the suggested editors are:
+\begin{itemize}
+\item \href{http://tug.org/texworks/}{TeXworks}. Already installed with any \TeX\ distribution. Very simple and powerful. Use TeXworks if you are not an expert. Enrico Gregorio has written a very good and brief TeXworks manual in Italian, which can be found at: {\small \url{http://profs.sci.univr.it/~gregorio/introtexworks.pdf}}.
+
+\item \href{http://texstudio.sourceforge.net/}{TeXstudio} (cross-platform), \href{http://www.xm1math.net/texmaker/}{TeXmaker} (cross-platform), \href{http://pages.uoregon.edu/koch/texshop/}{TeXshop} (only for Mac), \href{http://kile.sourceforge.net/}{Kile} (only for Linux). Powerful editors.
+
+\item \textbf{Avoid} other editors unless you know what you are doing!
+
+\end{itemize}
+
+Finally we explain how to compile the example documents provided in the \textsf{sapthesis} package. Double click on one of the \texttt{.tex} file in the \texttt{examples} folder.
+TeXworks should start showing the content of that file.
+The \texttt{pdflatex} compiler should be automatically selected thanks to the \emph{magic lines} placed at the beginning of the file.
+Now, in order to compile, press the green button.
+At the end of the compilation the resulting pdf appears in a separate window. Remember to compile at least three times, because \LaTeX\ needs more than one compilation to correctly resolve the internal cross references (for example for the table of contents composition, or when you refer to a figure by the \texttt{\bs label}\,--\,\texttt{\bs ref}\,/\,\texttt{\bs pageref} mechanism).
+
+
+\subsection*{Using Overleaf}
+
+\href{https://www.overleaf.com/}{Overleaf} is a collaborative cloud-based online text editor, specifically designed for \LaTeX. The compilation of the source file is performed remotely on the Overleaf servers, by a TeXLive distribution. Therefore, using \textsf{sapthesis} in Overleaf is straightforward. You don't need to do anything, the package is already available. For any reason \textsf{sapthesis} is not available or the version present in Overleaf is outdated, just copy the files of \textsf{sapthesis } in your remote working directory in Overleaf. Local files have always precedence with respect to global files.
+
+\subsection*{Using LyX}
+
+\href{https://www.lyx.org/}{LyX} is an advanced \LaTeX\ editor which does not simply show the source code like any text editor, but instead it renders maths, images, tables and some text formatting commands. However this ``layer'' between the writer and the real source code is sometimes frustrating and many authors discourage the usage of LyX.
+
+Using \textsf{sapthesis} with LyX is quite straightforward.
+\begin{itemize}
+\item
+Install \textsf{sapthesis} by the package manager of your \TeX\ distribution or manually.
+
+\item
+Copy the file \texttt{sapthesis.layout} in the directory\\ \texttt{C:\bs Program Files\bs Lyx20\bs Resources\bs layouts\bs}\\ and then, in LyX, click on \textsf{Tools > Reconfigure}. This will add the \textsf{sapthesis} class in the list of LyX available classes.
+
+\item
+In LyX, first of all, go in \textsf{Tools > Preferences > Language Settings > Language} and choose ``none'' in Language package. This step is necessary because LyX not only loads babel with the desired language, but it passes the language also as an option for the class! This triggers an error in many classes.
+
+\item
+Create a new document and go in \textsf{Document > Settings > Document Class}. Here you can choose \textsf{sapthesis} as the class for the document and write the class options.
+
+\item
+Write the preamble in \textsf{Document > Settings > LaTeX Preamble}.
+
+\item Create the titlepage inserting the title by the \textsf{Title} item in the LyX left menu.
+
+\end{itemize}
+
+It is recommended to activate \textsf{View > Source Pane}. This step is not necessary but it is very useful to observe the \LaTeX\ code produced by LyX (on the right choose ``Complete source'' or ``Preamble'').
+
+
+
+
+
+
+
+
+
\clearpage
-\section{Other useful commands}
-\label{sec:usefulcommands}
+\section{Frequently Asked Questions}
-\begin{description}
-\item[\texttt{\bs eu}] Napier's number, $\mathrm{e}$, in roman.
+\subsection{How can I increase the font size?}
-\item[\texttt{\bs iu}] Imaginary unit, $\mathrm{i}$, in roman.
+The default font used in \textsf{Sapthesis} is Latin Modern. The default font size is 11\,pt using A4 and 10\,pt using A5 and B5. At the moment it is impossible to change the font size unless you modify the \textsf{Sapthesis} class file (\texttt{sapthesis.cls}). The reason for this choice is to maintain a common format for all the theses.
-\item[\texttt{\bs der\{\dots\}\{\dots\}}] Derivative. The first argument represents the function to derive while the second the variables separated by commas. The differential symbol is automatically inserted. Examples:
-\texttt{\bs der\{f\}\{x\}}, \texttt{\bs der\{f\}\{x,y\}}, \texttt{\bs der\{f\}\{*\{3\}\{x\}\}},
-\texttt{\bs der\{f\}\{*\{2\}\{x\},*\{2\}\{y\},z\}}.
-\item[\texttt{\bs pder\{\dots\}\{\dots\}}] Partial derivative. Same syntax of the \texttt{\bs der} command.
+\subsection{How can I increase the line-spacing?}
-\item[\texttt{\bs rb\{\dots\}}] Roman suBscript
+The line-spacing in typography is defined as the distance between two lines. A strange ``tradition'' in Italy is to write the thesis with a double line-spacing. This is an incredibly large number. The lines are so separated that the effect is very ugly. Two reasons are behind this choice. The first one is that a lot of space is available for your professor to comment your text. The second one is that, in this way, the thesis is thicker.
-\item[\texttt{\bs rp\{\dots\}}] Roman suPerscript
+This effect is amplified when you use Microsoft Word because Word defines the line-spacing in a different way with respect to the typical definition. And usually people do not know that. Therefore, when you set the value of 2 for the line-spacing in Word, actually you obtain a line-spacing of 2.34 according to the normal definition of the term! (Word adds an extra 17\% of space, I do not know why).
-\item[\texttt{\bs tb\{\dots\}}] Text suBscript
+Of course this large value of the line-spacing is a nonsense. It is known in typography that the best value ranges between 1.20 and 1.45. In \LaTeX\ the default line-spacing is 1.20, which means that, if you use a font size of 10\,pt, the line-spacing is 12\,pt. In \textsf{Sapthesis} the line-spacing is set to 1.20. Nowadays, professors typically correct a thesis by using the comment tools of the their pdf viewer. There are still some who want to print it and want a double line-spacing. In that case, give them a copy with a double line-spacing but ask them to have the permission to print it in a more normal line-spacing, in order to save paper.
-\item[\texttt{\bs tp\{\dots\}}] Text suPerscript
+If you want to change the line-spacing, do not use the \texttt{\bs linespread} command. Load instead the \textsf{setspace} package and use, for example, the \texttt{\bs onehalfspacing} command.
-\item[\texttt{\bs un\{\dots\}}] Useful command to typeset measurement units in the correct way, e.g. \texttt{25\bs un\{m/s\}},
-\texttt{13\bs un\{kg\bs ,cm\^{}\{-3\}\}}. It can be used both inside or outside the math environment.
-For heavy usage of measurement units and to insert numbers in the form
-\texttt{1.4e-5}, the package \textsf{siunitx} is recommended.
-\item[\texttt{\bs mnote\{\dots\}}] Fancy margin notes
-\item[\texttt{\bs g}] Shortcut for the \texttt{\bs degree} command. Example: \texttt{45\bs g} produces 45\g.
+\subsection{Single sided or double sided printing?}
-\item[\texttt{\bs C}] Shortcut for the \texttt{\bs celsius} command. Example: \texttt{37\bs ,\bs C} produces 37\,\C. (Not available in math mode compiling with \texttt{xelatex}).
+A strange ``tradition'' in Italy is to print the theses only on one side of the paper sheets. In the past this was justified because a thesis was manually typed by a \href{https://en.wikipedia.org/wiki/Typewriter}{typewriter machine}.
+Today, where the theses are all composed by a computer, this ``tradition'' is kept mainly because in this way the professors and the students are happy to see a thicker book.
-\item[\texttt{\bs A}] Angstrom. Example: \texttt{10\bs ,\bs A} produces 10\,\A.
+Of course this is a nonsense. Not only because the bulky effect is only aesthetic (if you open the thesis you can see that only one side is printed), but especially because it is a waste of paper. Moreover, reading a book where only the right page is printed is quite ugly and strange, isn't it? (Have you ever seen a book, containing mainly text, printed single sided?)
-\item[\texttt{\bs micro}] Micro prefix. Example: \texttt{7\bs ,\bs micro m} produces 7\,\micro m.
+The only real reason to print single sided is when a good paper is not available. Indeed, a low quality paper, like the one typically used for photocopies, has a grammage of 80\,g/m$^2$. It is a little bit semitransparent and this can be a problem when you print double sided, especially if you have many color images. The best approach is using a proper paper grammage of 90\,g/m$^2$ or 100\,g/m$^2$. Ask to the printing service which type of paper is more suitable to print your thesis double sided.
-\item[\texttt{\bs ohm}] Ohm. Example: \texttt{100\bs ,\bs ohm} produces 100\,\ohm.
-\item[\texttt{\bs di}] Differential symbol with automatic spacing.\\ Example:
-\texttt{\$\bs int x \bs di x\$} produces $\int x \di x$. If you prefer the differential symbol in roman ($\mathrm{d}$) you can give the option \texttt{romandiff} in the document class options.
+\subsection{Inverted margins? How much space for binding?}
-\item[\texttt{\bs x}] Shortcut for the \texttt{\bs times} command. E.g.: \texttt{\$7 \bs x 10\^{}5\$} produces $7 \times 10^5$.
+Another typical question regards the margins of the thesis. Quite often the students (and incredibly also the printing services) complain about the margins of the thesis. They think that the margins are reversed because in \LaTeX\ standard classes, by default, the inner margin is smaller than the outer margin. The same behaviour, but with slightly different proportions, is adopted in \textsf{Sapthesis} (see Figure\,\ref{layout}). Of course, they are wrong. This is the correct behavior! Indeed, as you can see in any book, the sum of the two inner margins should be more or less equal to the width of a single outer margin. This is for an aesthetic reason. Otherwise the two columns of text would be too much separated when the book is open.
-\end{description}
+\begin{figure}[!b]
+\centering
+\setlength{\unitlength}{0.12mm}
+\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{A4 page layout scheme of \textsf{UniFiTh} class using a zero binding margin.}
+\label{layout}
+\end{figure}
+
+
+At this point the students usually reply ``what about the binding margin? The inner margin should be larger because some space is used by the binding process!'' This is partially true. The effect described above in Figure\,\ref{layout} is what should happen \emph{after} the binding process. For this reason there is the documentclass \texttt{binding} option in \textsf{Sapthesis} (see Section\,\ref{class_options}). Typical values are 6 or 7\,mm but it is always preferable to ask the printing service which is the correct value according to the binding method (be careful because many printing services are not professional and suggest arbitrarly binding margin values).
+\subsection{Numbered introduction and conclusions?}
+There is a strange ``tradition'' in Italy to not attribute a number to the Introduction and Conclusions of a thesis. Probably, only because they are usually short chapters. So it seems that they do not deserve a proper number like any other chapter.
+In my (and not only mine) opinion this is a nonsense. The Introduction and Conclusions chapters are part of the thesis, and they should be read to properly understand the thesis. They cannot be skipped. So why don't attribute a number to those chapters?
+Therefore I suggest to use the following structure of the thesis (which is the same reported in the examples in Appendix \ref{sec:examples}).
+
+\begin{lstlisting}
+...
+
+\frontmatter
+\maketitle
+...
+
+% The chapters after the mainmatter command are numbered
+\mainmatter
+\chapter{Introduction}
+\chapter{...}
+\chapter{...}
+\chapter{...}
+\chapter{Conclusions}
+
+\backmatter
+...
+\end{lstlisting}
+
+However, if you really want to follow the nonsense of not giving a number to the Introduction and Conclusions chapter, you can do it in the following way. But keep in mind that \emph{if you do not number the Introduction and Conclusions, you cannot insert any numbered equation, table, or picture in these chapters}. Indeed, all these objects are numbered with the chapter number: Fig.\,1.2, Tab.\,3.2, Eq.\,(4.1), etc. If the chapter does not have a number, how can we assign a number to Figures, Tables, or Equations?
+
+\begin{lstlisting}
+...
+
+\frontmatter
+\maketitle
+
+% The chapters after the mainmatter command are numbered
+\mainmatter
+\chapter*{Introduction} % The chapter* does not attribute a number
+\markboth{Introduction}{} % This command is necessary for the headings
+\chapter{...}
+\chapter{...}
+\chapter{...}
+\chapter*{Conclusions} % The chapter* does not attribute a number
+\markboth{Conclusions}{} % This command is necessary for the headings
+
+\backmatter
+...
+\end{lstlisting}
+
+Finally, it is worth noting that the first and last chapter of a thesis must not to be always called Introduction and Conclusions!
+
+\subsection{How to reduce the size of the pdf?}
+
+Usually, students do not optimize the images of their thesis. This is a very bad practice and one of the typical consequences is the excessive large size of the final pdf. The topic is too long to be covered here, however I want to provide a simple way to reduce \textit{a posteriori} the file size of the pdf.
+
+Using \href{https://www.ghostscript.com/}{Ghostscript} we can ``distill'' a pdf file, which means interpreting it and re-enconding it again. This is just a small list of possible commands (commands are intended for Windows 64 bit but they can easily applied to other operating systems changing the name of the Ghostscript executable):
+
+\begin{lstlisting}
+BEST QUALITY (Flate image encoding)
+
+gswin64c.exe -q -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -sOutputFile=output.pdf
+-dAutoFilterColorImages=false -dAutoFilterGrayImages=false
+-dColorImageFilter=/FlateEncode -dGrayImageFilter=/FlateEncode
+-dPDFSETTINGS=/prepress -dCompatibilityLevel=1.5 input.pdf
+\end{lstlisting}
+
+\begin{lstlisting}
+BEST QUALITY (DECT image encoding)
+
+gswin64c.exe -q -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -sOutputFile=output.pdf
+-dPDFSETTINGS=/prepress -dCompatibilityLevel=1.5 input.pdf
+\end{lstlisting}
+
+\begin{lstlisting}
+LOWER QUALITY (DECT image encoding)
+Substitute XXXXXXX with one of the following settings (order of descending quality):
+/printer /ebook /screen
+
+gswin64c.exe -q -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -sOutputFile=output.pdf
+-dPDFSETTINGS=XXXXXXX -dCompatibilityLevel=1.5 input.pdf
+\end{lstlisting}
+
+\subsection{How to create an archivable pdf?}
+
+\href{https://en.wikipedia.org/wiki/PDF/A}{PDF/A} is a particular PDF format, standardized by ISO, specialized for use in the archiving and long-term preservation of electronic documents. Public and private institutions, including universities, increasingly require this form to archive electronic documents. There are several levels of PDF/A. The suggested format for a thesis is the PDF/A-2b.
+
+The best and free way to check if a pdf file is compliant to one of the PDF/A levels is to use \href{https://verapdf.org/}{veraPDF}, an open source software supported by the most important PDF associations in the world and funded by the European Commission. This software is freely available for Windows, Linux, and Mac.
+
+A PDF/A file can be generated directly in \LaTeX, properly following some rules (see ``Creare file archiviabili con pdf\LaTeX\ e Lua\LaTeX'' by Claudio Beccari) however we do not have enough space to cover this topic here.
+A faster way is to transform the file of the thesis in a PDF/A compliant pdf file using \href{https://www.ghostscript.com/}{Ghostscript}. Follow the following steps:
+
+\begin{enumerate}
+\item Copy in your working directory an \texttt{icc} color profile. Since the pdf file will be viewed mainly on electronic screen, you can use a generic sRGB color profile. You can download one here: \url{https://www.color.org/srgbprofiles.xalter}. Rename it, for example, in \texttt{srgb.icc}.
+
+\item Copy a PostScript definition file, with the instructions to convert the file in PDF/A, in your working directory. This file, containing all the proper commands, can be found in your computer.
+You can find it under the name \texttt{PDFA\_def.ps} in the \texttt{lib} folder of your Ghostscript installation directory (for example \texttt{C:\bs Program Files\bs gs\bs gs9.22\bs lib\bs}typically in the lib subfolder). Copy this file in your working directory and rename it! Let us suppose to rename it in \texttt{PDFArenamed.ps}.
+
+\item Modify the PostScript definition file. Open the \texttt{PDFArenamed.ps} file and specify the color profile (\texttt{srgb.icc}) and the title of your pdf file. To do that use the text editor you prefer. The variables to modify are intuitive and easily identifiable: \texttt{/ICCProfile} and \texttt{/Title}.
+
+\item Open a terminal and launch the following command
+\begin{lstlisting}
+gswin64.exe -q -dNOPAUSE -dBATCH -dNOSAFER
+-sDEVICE=pdfwrite -sOutputFile=output.pdf
+-dPDFA=2 -dPDFACompatibilityPolicy=1
+-sColorConversionStrategy=UseDeviceIndependentColor
+-sProcessColorModel=DeviceRGB
+PDFArenamed.ps input.pdf
+\end{lstlisting}
+\item Finally, control that the converted file correctly adheres to the PDF/A format using the VeraPDF software.
+
+\end{enumerate}
\addtocontents{toc}{\protect\end{multicols}}
\end{document}
diff --git a/macros/latex/contrib/sapthesis/sapthesis.cls b/macros/latex/contrib/sapthesis/sapthesis.cls
index d420c4a661..c1e330aff3 100644
--- a/macros/latex/contrib/sapthesis/sapthesis.cls
+++ b/macros/latex/contrib/sapthesis/sapthesis.cls
@@ -1,12 +1,12 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% sapthesis.cls %%
-%% version 4.1 %%
-%% 2018-08-07 %%
+%% version 5.0 %%
+%% date: see below %%
%% author: Francesco Biccari %%
%% contact: biccari@gmail.com %%
%% %%
%% This file is the LaTeX class for the thesis style %%
-%% of the "Sapienza -- University of Rome" %%
+%% of the "Sapienza University of Rome" %%
%% %%
%% see README for license information and installation %%
%% see sapthesis-doc.pdf for usage %%
@@ -20,9 +20,8 @@
\NeedsTeXFormat{LaTeX2e}[2009/01/01]
\ProvidesClass{sapthesis}%
-[2018/08/07 Sapienza - University of Rome thesis class]
+[2022/01/01 Sapienza University of Rome thesis class]
-\def\SAP@classVersion{4.1}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Options %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -32,72 +31,50 @@
\newif\ifSAP@nodefaultfont \SAP@nodefaultfontfalse
\newif\ifSAP@romandiff \SAP@romandifffalse
\newif\ifSAP@customlanguage \SAP@customlanguagefalse
-\newif\ifSAP@bn \SAP@bnfalse
-\newif\ifSAP@PhD \SAP@PhDfalse
-\newif\ifSAP@Specialization \SAP@Specializationfalse
-\newif\ifSAP@MasterP \SAP@MasterPfalse
-\newif\ifSAP@MasterS \SAP@MasterSfalse
-\newif\ifSAP@LaM \SAP@LaMfalse
-\newif\ifSAP@Lau \SAP@Laufalse
-\newif\ifSAP@TFA \SAP@TFAfalse
\newif\ifSAP@noexaminfo \SAP@noexaminfofalse
\newif\ifSAP@femaleauthor \SAP@femaleauthorfalse
-\newif\ifSAP@overridecourse \SAP@overridecoursefalse
+\def\SAP@paper{a4paper}
+\def\SAP@layout{a4paper}
+\def\SAP@fontsize{11pt}
\newcommand{\SAP@customlanguage}{}
-
-\define@key[sap]{}{noexaminfo}[]{\SAP@noexaminfotrue}
-\define@key[sap]{}{fem}[]{\SAP@femaleauthortrue}
-\define@key[sap]{}{nodefaultfont}[]{\SAP@nodefaultfonttrue}
-\define@key[sap]{}{romandiff}[]{\SAP@romandifftrue}
\define@key[sap]{}{italian}[]{\SAP@customlanguagetrue
\renewcommand{\SAP@customlanguage}{\SAP@italian}}
\define@key[sap]{}{english}[]{\SAP@customlanguagetrue
\renewcommand{\SAP@customlanguage}{\SAP@english}}
-\define@key[sap]{}{bn}[]{\SAP@bntrue
- \PassOptionsToPackage{monochrome}{color}
- \PassOptionsToPackage{monochrome}{xcolor}}
-\define@key[sap]{}{PhD}[]{\SAP@PhDtrue}
-\define@key[sap]{}{Specialization}[]{\SAP@Specializationtrue}
-\define@key[sap]{}{LaM}[]{\SAP@LaMtrue}
-\define@key[sap]{}{Lau}[]{\SAP@Lautrue}
-\define@key[sap]{}{TFA}[]{\SAP@TFAtrue}
-\define@key[sap]{}{MasterP}[]{\SAP@MasterPtrue\SAP@MasterPtrue}
-\define@key[sap]{}{MasterS}[]{\SAP@MasterStrue\SAP@MasterStrue}
+\define@key[sap]{}{noexaminfo}[]{\SAP@noexaminfotrue}
+\define@key[sap]{}{fem}[]{\SAP@femaleauthortrue}
+\define@key[sap]{}{nodefaultfont}[]{\SAP@nodefaultfonttrue}
+\define@key[sap]{}{romandiff}[]{\SAP@romandifftrue}
\define@key[sap]{}{binding}[0pt]{\setlength{\SAP@binding}{#1}}
-\define@key[sap]{}{draft}[]{\PassOptionsToClass{draft}{book}}
+\define@key[sap]{}{draft}[]{%
+\PassOptionsToClass{draft}{book}%
+%\PassOptionsToPackage{showframe}{geometry}
+}
\define@key[sap]{}{oneside}[]{\PassOptionsToClass{oneside}{book}}
\define@key[sap]{}{twoside}[]{}
+\define@key[sap]{}{a4paper}[]{\def\SAP@paper{a4paper}}
+\define@key[sap]{}{a5paper}[]{%
+\def\SAP@paper{a5paper}\def\SAP@layout{a5paper}\def\SAP@fontsize{10pt}}
+\define@key[sap]{}{b5paper}[]{%
+\def\SAP@paper{b5paper}\def\SAP@layout{b5paper}\def\SAP@fontsize{10pt}}
+\define@choicekey[sap]{}{layout}[]{a4paper,a5paper,b5paper}[]{%
+\def\SAP@layout{#1}\def\SAP@fontsize{10pt}}
\DeclareOptionX*{\ClassError{sapthesis}{Option '\CurrentOption'%
\MessageBreak is not valid}{Remove '\CurrentOption' %
from class options}}
\ProcessOptionsX[sap]<>
-\LoadClass[a4paper,11pt]{book}
-
-
-\ifSAP@PhD\relax\else
- \ifSAP@Specialization\relax\else
- \ifSAP@LaM\relax\else
- \ifSAP@Lau\relax\else
- \ifSAP@MasterP\relax\else
- \ifSAP@MasterS\relax\else
- \ifSAP@TFA\relax\else
- \ClassError{sapthesis}{You must specify the PhD, LaM, Lau, MasterP, %
- MasterS, Specialization or TFA option}{}
- \fi
- \fi
- \fi
- \fi
- \fi
- \fi
-\fi
-
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Page layout %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\RequirePackage[a4paper]{geometry}
+\LoadClass[\SAP@paper,\SAP@fontsize]{book}
+\RequirePackage[\SAP@paper]{geometry}
+
+% A4
+\def\SAP@layoutname{a4paper}
+\ifx\SAP@layout\SAP@layoutname %
\geometry{textwidth=396pt,
textheight=641pt,
marginparsep=12pt,
@@ -106,8 +83,43 @@
includehead,
marginparwidth=72pt,
heightrounded}
+\if@twoside\geometry{hmarginratio=55:89}\fi
+\fi
+% A5
+\def\SAP@layoutname{a5paper}
+\ifx\SAP@layout\SAP@layoutname %
+\geometry{textwidth=300pt,
+ textheight=485pt,
+ marginparsep=12pt,
+ bindingoffset=\SAP@binding,
+ vmarginratio=55:89,
+ includehead,
+ marginparwidth=42pt,
+ heightrounded}
+\if@twoside\geometry{hmarginratio=55:89}\fi
+\def\SAP@papername{a4paper}
+\ifx\SAP@paper\SAP@papername%
+\geometry{layout=\SAP@layout,layouthoffset=2cm,layoutvoffset=2cm,showcrop}\fi
+\fi
+
+% B5
+\def\SAP@layoutname{b5paper}
+\ifx\SAP@layout\SAP@layoutname %
+\geometry{textwidth=340pt,
+ textheight=550pt,
+ marginparsep=12pt,
+ bindingoffset=\SAP@binding,
+ vmarginratio=55:89,
+ includehead,
+ marginparwidth=42pt,
+ heightrounded}
\if@twoside\geometry{hmarginratio=55:89}\fi
+\def\SAP@papername{a4paper}
+\ifx\SAP@paper\SAP@papername%
+\geometry{layout=\SAP@layout,layouthoffset=2cm,layoutvoffset=2cm,showcrop}\fi
+\fi
+
@@ -116,7 +128,7 @@
%% Some settings%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\RequirePackage{ifxetex}
\ifxetex
- \RequirePackage{xltxtra}
+ \RequirePackage{fontspec}
\else
\ifSAP@nodefaultfont\relax\else
\RequirePackage[T1]{fontenc}
@@ -161,7 +173,7 @@
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0pt}}
-%% ri-definition of the plain style (first page of the chapters)
+%% re-definition of the plain style (first page of the chapters)
\fancypagestyle{plain}{%
\renewcommand{\headrulewidth}{0pt}
\fancyhf{}
@@ -177,28 +189,21 @@
\g@addto@macro\mainmatter{\pagestyle{SAP@mainstyle}}
% fancy marginnote
-
-% commands to redefine the marginpar command
-% maybe in future I will remove the mnote command?
-%\def \@marginparreset {%
-% \reset@font
-% \footnotesize
-% \itshape
-% \@setminipage
-%}
-%\long\def\@xmpar[#1]#2{%
-% \@savemarbox\@marbox{\raggedleft #1}%
-% \@savemarbox\@currbox{\raggedright #2}%
-% \@xympar}
-%\long\def\@ympar#1{%
-% \@savemarbox\@marbox{\raggedleft #1}%
-% \@savemarbox\@currbox{\raggedright #1}%
-% \@xympar}
-%
-% simpler version which cannot redefine marginpar. A new command
-% (mnote) is needed
-\g@addto@macro\@marginparreset{\footnotesize\itshape}
-\newcommand{\mnote}[1]{\marginpar[\raggedleft #1]{\raggedright #1}}
+% redefine the marginpar command
+\def \@marginparreset {%
+ \reset@font
+ \small
+ \itshape
+ \@setminipage
+}
+\long\def\@xmpar[#1]#2{%
+ \@savemarbox\@marbox{\raggedleft #1}%
+ \@savemarbox\@currbox{\raggedright #2}%
+ \@xympar}
+\long\def\@ympar#1{%
+ \@savemarbox\@marbox{\raggedleft #1}%
+ \@savemarbox\@currbox{\raggedright #1}%
+ \@xympar}
@@ -216,15 +221,24 @@
%% GENERAL COMMANDS
+% logo
+\newif\ifSAP@sapienzalogo \SAP@sapienzalogofalse
+\IfFileExists{sapienzalogo.pdf}{\SAP@sapienzalogotrue}{%
+\ClassWarningNoLine{sapthesis}{Logo not found! You have to download it
+manually. See the documentation or just the frontispiece.}
+\RequirePackage{hyperref}}
+
+
+
\def\SAP@subtitle{}
+\def\SAP@alttitle{}
\def\SAP@courseorganizerLabel{}
\def\SAP@courseLabel{}
\newcommand{\subtitle}[1]{\def\SAP@subtitle{#1}}
+\newcommand{\alttitle}[1]{\def\SAP@alttitle{#1}}
\newcommand{\courseorganizer}[1]{\def\SAP@courseorganizerLabel{#1}}
-\newcommand{\course}[2][]{%
- \def\SAP@courseLabel{#2}
- \ifstrequal{#1}{override}{\SAP@overridecoursetrue}{}}
+\newcommand{\course}[1]{\def\SAP@courseLabel{#1}}
\def\SAP@copyyear{}
\newcommand{\copyyear}[1]{\def\SAP@copyyear{#1}}
@@ -233,7 +247,7 @@
\newcommand{\cycle}[1]{\def\SAP@cycle{#1}}
\def\SAP@submitdate{}
-\newcommand{\submitdate}[1]{\def\SAP@submitdate{#1}}
+\newcommand{\submitdate}[1]{\def\SAP@AcademicYear{#1}}
\let\AcademicYear\submitdate
\def\SAP@IDnumber{}
@@ -246,24 +260,28 @@
\ifnum\SAP@advisorcount=\z@
\SAP@advisortoks={#1}%
\else
- \SAP@advisortoks=\expandafter{\the\SAP@advisortoks\\[0.75mm]#1}%
+ \SAP@advisortoks=\expandafter{\the\SAP@advisortoks\\[1mm]#1}%
\fi
\advance\SAP@advisorcount\@ne}
+\newcommand{\customadvisorlabel}[1]{%
+ \newcommand{\SAP@ThesisAdvisorLabel}{#1}
+ \newcommand{\SAP@ThesisAdvisorsLabel}{#1}}
+
%% Co-Advisors or External Advisor
\newcount\SAP@coadvisorcount
\newtoks\SAP@coadvisortoks
-\newif\ifSAP@ext \SAP@extfalse
-\newcommand{\coadvisor}[2][]{%
+\newcommand{\coadvisor}[1]{%
\ifnum\SAP@coadvisorcount=\z@
- \SAP@coadvisortoks={#2}%
+ \SAP@coadvisortoks={#1}%
\else
- \SAP@coadvisortoks=\expandafter{\the\SAP@coadvisortoks\\[0.75mm]#2}%
+ \SAP@coadvisortoks=\expandafter{\the\SAP@coadvisortoks\\[1mm]#1}%
\fi
- \advance\SAP@coadvisorcount\@ne
- \ifstrequal{#1}{ext}{\SAP@exttrue}{}}
-
+ \advance\SAP@coadvisorcount\@ne}
+\newcommand{\customcoadvisorlabel}[1]{%
+ \newcommand{\SAP@ThesisCoAdvisorLabel}{#1}
+ \newcommand{\SAP@ThesisCoAdvisorsLabel}{#1}}
%% Reviewers
\def\SAP@ReviewerLabel{}
@@ -275,7 +293,7 @@
\ifnum\SAP@reviewercount=\z@
\SAP@reviewertoks={#1}%
\else
- \SAP@reviewertoks=\expandafter{\the\SAP@reviewertoks\\[0.75mm]#1}%
+ \SAP@reviewertoks=\expandafter{\the\SAP@reviewertoks\\[1mm]#1}%
\fi
\advance\SAP@reviewercount\@ne}
@@ -292,27 +310,9 @@
\fi
\advance\SAP@directorcount\@ne}
-%% Tutor (TFA only)
-\newcount\SAP@tutorcount
-\newtoks\SAP@tutortoks
-\newcommand{\tutor}[1]{%
- \ifnum\SAP@tutorcount=\z@
- \SAP@tutortoks={#1}%
- \else
- \SAP@tutortoks=\expandafter{\the\SAP@tutortoks\\[0.75mm]#1}%
- \fi
- \advance\SAP@tutorcount\@ne}
-
-%% Tutor Coordinatori (TFA only)
-\newcount\SAP@tutorcoordcount
-\newtoks\SAP@tutorcoordtoks
-\newcommand{\tutorcoord}[1]{%
- \ifnum\SAP@tutorcoordcount=\z@
- \SAP@tutorcoordtoks={#1}%
- \else
- \SAP@tutorcoordtoks=\expandafter{\the\SAP@tutorcoordtoks\\[0.75mm]#1}%
- \fi
- \advance\SAP@tutorcoordcount\@ne}
+\newcommand{\customdirectorlabel}[1]{%
+ \newcommand{\SAP@ThesisDirectorLabel}{#1}
+ \newcommand{\SAP@ThesisDirectorsLabel}{#1}}
%% Examiners
\newcount\SAP@examinercount
@@ -328,6 +328,9 @@
\def\SAP@examdate{}
\newcommand{\examdate}[1]{\def\SAP@examdate{#1}}
+\def\SAP@thesistype{}
+\newcommand{\thesistype}[1]{\def\SAP@thesistype{#1}}
+
\def\SAP@versiondate{}
\newcommand{\versiondate}[1]{\def\SAP@versiondate{#1}}
@@ -343,542 +346,425 @@
\def\SAP@copyrightstatement{}
\newcommand{\copyrightstatement}[1]{\def\SAP@copyrightstatement{#1}}
-\def\SAP@schoolname{}
-\newcommand{\schoolname}[1]{\def\SAP@schoolname{#1}}
-
-\def\SAP@schooladdress{}
-\newcommand{\schooladdress}[1]{\def\SAP@schooladdress{#1}}
-
-\def\SAP@schoolwebsite{}
-\newcommand{\schoolwebsite}[1]{\def\SAP@schoolwebsite{#1}}
+\def\SAP@extrainfo{}
+\newcommand{\extrainfo}[1]{\def\SAP@extrainfo{#1}}
-\def\SAP@schoolprincipal{}
-\newcommand{\schoolprincipal}[1]{\def\SAP@schoolprincipal{#1}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% PhD maketitle
+%% maketitle commands for A4 (A), A5 (B), B5 (C) formats
-\newcommand{\SAP@maketitlePhD}{
+\newcommand{\SAP@maketitleA}{
-% Errors:
-
-\if|\SAP@courseorganizerLabel|\ClassError{sapthesis}{You must specify the Ph.D. %
- organizer}{Example: \protect\courseorganizer{Scuola di dottorato di ...}}\fi
-\if|\SAP@courseLabel|\ClassError{sapthesis}{You must specify the Ph.D. %
- course}{Example: \protect\course{Physics}}\fi
-\ifSAP@overridecourse\relax\else\if|\SAP@cycle|\ClassError{sapthesis}{You must specify the Ph.D. %
- cycle (cycle)}{Example: \protect\cycle{XXIII} The Ph.D. cycle must be in the roman numbers}\fi\fi
-\if|\SAP@submitdate|\ClassError{sapthesis}{You must specify the %
- thesis submission date}{Example: \protect\submitdate{August 2012} The date must be in the form Month(name) Year(number)}\fi
-\if|\SAP@copyyear|\ClassError{sapthesis}{You must specify the %
- copyright year}{Example: \protect\copyyear{2012}}\fi
-\if|\SAP@IDnumber|\ClassError{sapthesis}{You must specify your %
- ID number (matricola)}{Example: \protect\IDnumber{123456}}\fi
-\if|\SAP@authoremail|\ClassError{sapthesis}{You must specify the email of the author}{%
- Example: \protect\authoremail{author@email.com}}\fi
+\begin{titlepage}
-% Titlepage:
+\linespread{1}\selectfont
+\newlength{\SAP@parboxindent}
+\newlength{\SAP@parboxwidth}
+\setlength{\SAP@parboxindent}{1.72cm}
+\setlength{\SAP@parboxwidth}{\dimexpr\textwidth-\SAP@parboxindent\relax}
+\newcommand{\SAP@parbox}[2][]{\hspace{\SAP@parboxindent}%
+\parbox[t][##1][t]{\SAP@parboxwidth}{##2}}
+\parindent=0pt
+\sffamily
+
+\vspace*{-10mm}
+
+\ifSAP@sapienzalogo
+ \includegraphics[width=5cm]{sapienzalogo}
+\else
+ \parbox[b][3cm][c]{0.49\linewidth}{\hspace{-1cm}
+ \setlength{\unitlength}{1mm}
+ \begin{picture}(65,27.3)(0,0)
+ \small
+ \put(0,0){\framebox(65,27.3)[0,0]{}}
+ \put(2,23){\makebox(0,0)[l]{WARNING! ATTENZIONE!}}
+ \put(2,18){\makebox(0,0)[l]{Sapienza logo not found!}}
+ \put(2,11){\href{http://biccari.altervista.org/c/informatica/latex/sapienzalogo.pdf}{Click here to download the Sapienza logo}}
+ \put(2,5.5){Then copy sapienzalogo.pdf in the folder}
+ \put(2,1.5){of your main .tex file.}
+ \end{picture}
+ }
+\fi
- \begin{titlepage}
-
- \linespread{1}\selectfont
+\nointerlineskip
- \newcommand{\SAP@parbox}[2][]{\hspace{1.72cm}\parbox[t][##1][t]{11.9cm}{##2}}
- \parindent=0pt
- \sffamily
+%\nointerlineskip
+%\vspace{\stretch{1}}
+%\nointerlineskip
- \vspace*{-10mm}
- \ifSAP@bn
- \includegraphics[width=5cm]{sapienza-MLblack-pos}
+%\fbox{%
+\SAP@parbox[12.8cm]{
+ \nointerlineskip
+ \vspace*{7mm}
+ \vspace{\stretch{1}}
+ \nointerlineskip
+
+ {\LARGE\linespread{1.1}\selectfont\textcolor{sapred}{\@title}\par}
+
+ \if|\SAP@subtitle|
+ \if|\SAP@alttitle|
+ \relax
+ \else
+ \vspace{1cm}
+ {\LARGE\linespread{1.1}\selectfont\textcolor{sapred}{\SAP@alttitle}\par}
+ \fi
\else
- \includegraphics[width=5cm]{sapienza-MLred-pos}
+ \vspace{0.4cm}
+ {\large\linespread{1.1}\selectfont\textcolor{sapred}{\SAP@subtitle}\par}
\fi
-
+
\nointerlineskip
\vspace{\stretch{1}}
- \nointerlineskip
+ \vspace*{7mm}
+ \nointerlineskip}
+%}
- \SAP@parbox{\LARGE\textcolor{sapred}{\@title}\par}
-
- \if|\SAP@subtitle|
- \relax
- \else
- \vspace{0.4cm}
- \SAP@parbox{\linespread{1.2}\selectfont\textcolor{sapred}{\large\SAP@subtitle}\par}
- \fi
+\nointerlineskip
+%\vspace{\stretch{1}}
- \vspace{\stretch{1}}
+%\fbox{%
+\SAP@parbox{%
+\textcolor{sapred}{\SAP@courseorganizerLabel\\[1mm]
+\SAP@courseLabel\ \if|\SAP@cycle|\relax\else (\SAP@cycle\ \SAP@cycleLabel)\fi}
- \SAP@parbox[3cm]{%
- \textcolor{sapred}{\SAP@courseorganizerLabel\\[2mm]
- \ifSAP@overridecourse\SAP@courseLabel\else Dottorato di Ricerca in \SAP@courseLabel\ -- \SAP@cycle\ Ciclo\fi}}
+\vspace*{9mm}
- \SAP@parbox[3cm]{%
- \ifSAP@femaleauthor
- \SAP@CandidateLabelFemale\\[2mm]
+{\bfseries\@author}\\[1mm]
+\SAP@IDnumberLabel\ \SAP@IDnumber
+
+\vspace*{9mm}
+
+\makebox[11.9cm][l]{%
+ \parbox[t]{5.9cm}{%
+ \ifcase\SAP@advisorcount
+ \ClassError{sapthesis}{You must specify at least one advisor in the preamble}%
+ {E.g. \protect\advisor{Prof. Name Surname}}
+ \or
+ \SAP@ThesisAdvisorLabel\\[1mm]
\else
- \SAP@CandidateLabel\\[2mm]
+ \SAP@ThesisAdvisorsLabel\\[1mm]
\fi
- \@author\\[0.75mm]
- \SAP@IDnumberLabel\ \SAP@IDnumber}
-
-
-
-
- \SAP@parbox[4.5cm]{%
- \makebox[11.9cm][l]{%
- \parbox[t]{5.9cm}{%
- \ifcase\SAP@advisorcount
- \ClassError{sapthesis}{You must specify at least one advisor in the preamble}%
- {E.g. \protect\advisor{Prof. Name Surname}}
- \or
- \SAP@ThesisAdvisorLabel\\[2mm]
- \else
- \SAP@ThesisAdvisorsLabel\\[2mm]
- \fi
- \the\SAP@advisortoks}
- \hspace{1.5cm}
- \parbox[t]{5.9cm}{%
- \ifcase\SAP@coadvisorcount
- \relax
- \or
- \ifSAP@ext\SAP@ThesisExtAdvisorLabel\else\SAP@ThesisCoAdvisorLabel\fi\\[2mm]
- \else
- \ifSAP@ext\SAP@ThesisExtAdvisorsLabel\else\SAP@ThesisCoAdvisorsLabel\fi\\[2mm]
- \fi
- \the\SAP@coadvisortoks}
- }}
+ \the\SAP@advisortoks}
+ \hspace{15mm}
+ \parbox[t]{5.9cm}{%
+ \ifcase\SAP@coadvisorcount
+ \relax
+ \or
+ \SAP@ThesisCoAdvisorLabel\\[1mm]
+ \else
+ \SAP@ThesisCoAdvisorsLabel\\[1mm]
+ \fi
+ \the\SAP@coadvisortoks}
+}%
+
+\ifcase\SAP@directorcount
+ \relax
+\or
+ \vspace*{9mm}
+ \SAP@ThesisDirectorLabel\\[1mm]
+ \the\SAP@directortoks
+\else
+ \vspace*{9mm}
+ \SAP@ThesisDirectorsLabel\\[1mm]
+ \the\SAP@directortoks
+\fi
- \SAP@parbox{\SAP@submitdate}
-
- \end{titlepage}
-\clearpage
-\SAP@composebacktitlepage
}
+%}
+\nointerlineskip
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% Specialization maketitle
+\vfill
-\newcommand{\SAP@maketitleSpecialization}{
-% Errors:
+%\fbox{%
+\SAP@parbox{%
+%\ifnum\SAP@directorcount=\z@
+% \vspace*{20mm}
+%\else
+% \vspace*{10mm}
+%\fi
+\SAP@AcademicYearLabel\ \SAP@AcademicYear
+}
+%}
+\end{titlepage}
+}
-\if|\SAP@courseorganizerLabel|\ClassError{sapthesis}{You must specify the Specialization course %
- organizer}{Example: \protect\courseorganizer{Faculty of ...}}\fi
-\if|\SAP@courseLabel|\ClassError{sapthesis}{You must specify the %
- course}{Example: \protect\course{Fisica}}\fi
-\if|\SAP@submitdate|\ClassError{sapthesis}{You must specify the Academic %
- Year}{Example: \protect\submitdate{2011/2012}}\fi
-\if|\SAP@IDnumber|\ClassError{sapthesis}{You must specify your %
- ID number (matricola)}{E.g. 123456}\fi
-\if|\SAP@copyyear|\ClassError{sapthesis}{You must specify the %
- copyright year}{Example: \protect\copyyear{2012}}\fi
-\if|\SAP@authoremail|\ClassError{sapthesis}{You must specify the email of the author}{%
- Example: \protect\authoremail{author@email.com}}\fi
-% Titlepage:
+\newcommand{\SAP@maketitleB}{
+\begin{titlepage}
- \begin{titlepage}
-
- \linespread{1}\selectfont
+\linespread{1}\selectfont
+\newlength{\SAP@parboxindent}
+\newlength{\SAP@parboxwidth}
+\setlength{\SAP@parboxindent}{1.38cm}
+\setlength{\SAP@parboxwidth}{\dimexpr\textwidth-\SAP@parboxindent\relax}
+\newcommand{\SAP@parbox}[2][]{\hspace{\SAP@parboxindent}%
+\parbox[t][##1][t]{\SAP@parboxwidth}{##2}}
+\parindent=0pt
+\sffamily
+
+\vspace*{-10mm}
+
+\ifSAP@sapienzalogo
+ \includegraphics[width=4cm]{sapienzalogo}
+\else
+ \parbox[b][3cm][c]{0.49\linewidth}{\hspace{-1cm}
+ \setlength{\unitlength}{1mm}
+ \begin{picture}(65,27.3)(0,0)
+ \small
+ \put(0,0){\framebox(65,27.3)[0,0]{}}
+ \put(2,23){\makebox(0,0)[l]{WARNING! ATTENZIONE!}}
+ \put(2,18){\makebox(0,0)[l]{Sapienza logo not found!}}
+ \put(2,11){\href{http://biccari.altervista.org/c/informatica/latex/sapienzalogo.pdf}{Click here to download the Sapienza logo}}
+ \put(2,5.5){Then copy sapienzalogo.pdf in the folder}
+ \put(2,1.5){of your main .tex file.}
+ \end{picture}
+ }
+\fi
- \newcommand{\SAP@parbox}[2][]{\hspace{1.72cm}\parbox[t][##1][t]{11.9cm}{##2}}
- \parindent=0pt
- \sffamily
+\nointerlineskip
- \vspace*{-10mm}
- \ifSAP@bn
- \includegraphics[width=5cm]{sapienza-MLblack-pos}
- \else
- \includegraphics[width=5cm]{sapienza-MLred-pos}
- \fi
+%\nointerlineskip
+%\vspace{\stretch{1}}
+%\nointerlineskip
+%\fbox{%
+\SAP@parbox[9.3cm]{
\nointerlineskip
- \vspace{\stretch{0.9}}
+ \vspace*{7mm}
+ \vspace{\stretch{1}}
\nointerlineskip
-
- \SAP@parbox{\LARGE\textcolor{sapred}{\@title}\par}
-
- \if|\SAP@subtitle|
- \relax
- \else
- \vspace{0.4cm}
- \SAP@parbox{\linespread{1.2}\selectfont\textcolor{sapred}{\large\SAP@subtitle}\par}
- \fi
-
- \vspace{\stretch{0.9}}
-
- \SAP@parbox[3cm]{%
- \textcolor{sapred}{\SAP@courseorganizerLabel\\[2mm]
- \ifSAP@overridecourse\SAP@courseLabel\else Corso di specializzazione in \SAP@courseLabel\fi}}
-
- \SAP@parbox[3cm]{%
- \ifSAP@femaleauthor
- \SAP@CandidateLabelFemale\\[2mm]
- \else
- \SAP@CandidateLabel\\[2mm]
- \fi
- \@author\\[0.75mm]
- \SAP@IDnumberLabel\ \SAP@IDnumber}
-
- \SAP@parbox[4.5cm]{%
- \makebox[11.9cm][l]{%
- \parbox[t]{5.9cm}{%
- \ifcase\SAP@advisorcount
- \ClassError{sapthesis}{You must specify at least one advisor in the preamble}%
- {E.g. \protect\advisor{Prof. Name Surname}}
- \or
- \SAP@ThesisAdvisorLabel\\[2mm]
- \else
- \SAP@ThesisAdvisorsLabel\\[2mm]
- \fi
- \the\SAP@advisortoks}
- \hspace{1.5cm}
- \parbox[t]{5.9cm}{%
- \ifcase\SAP@directorcount
- \relax
- \or
- \SAP@ThesisDirectorLabel\\[2mm]
- \else
- \SAP@ThesisDirectorsLabel\\[2mm]
- \fi
- \the\SAP@directortoks}
- }
- \vspace{1cm}
+ {\Large\linespread{1.1}\selectfont\textcolor{sapred}{\@title}\par}
- \makebox[11.9cm][l]{%
- \parbox[t]{5.9cm}{%
- \ifcase\SAP@coadvisorcount
- \or
- \ifSAP@ext\SAP@ThesisExtAdvisorLabel\else\SAP@ThesisCoAdvisorLabel\fi\\[2mm]
- \else
- \ifSAP@ext\SAP@ThesisExtAdvisorsLabel\else\SAP@ThesisCoAdvisorsLabel\fi\\[2mm]
- \fi
- \the\SAP@coadvisortoks}
- }}
-
- \SAP@parbox{\SAP@AcademicYearLabel\ \SAP@submitdate}
+ \if|\SAP@subtitle|
+ \if|\SAP@alttitle|
+ \relax
+ \else
+ \vspace{7mm}
+ {\Large\linespread{1.1}\selectfont\textcolor{sapred}{\SAP@alttitle}\par}
+ \fi
+ \else
+ \vspace{0.4cm}
+ {\normalsize\linespread{1.1}\selectfont\textcolor{sapred}{\SAP@subtitle}\par}
+ \fi
- \end{titlepage}
-\clearpage
-\SAP@composebacktitlepage
-}
-%% Laurea and Laurea Magistrale maketitle
+ \nointerlineskip
+ \vspace{\stretch{1}}
+ \vspace*{7mm}
+ \nointerlineskip}
+%}
-\newcommand{\SAP@maketitleLaurea}{
+\nointerlineskip
+%\vspace{\stretch{1}}
-% Errors:
+%\fbox{%
+\SAP@parbox{%
+\textcolor{sapred}{\SAP@courseorganizerLabel\\[1mm]
+\SAP@courseLabel\ \if|\SAP@cycle|\relax\else (\SAP@cycle\ \SAP@cycleLabel)\fi}
-\if|\SAP@courseorganizerLabel|\ClassError{sapthesis}{You must specify the degree %
- organizer}{Example: \protect\courseorganizer{Faculty of ...}}\fi
-\if|\SAP@courseLabel|\ClassError{sapthesis}{You must specify the %
- course}{Example: \protect\course{Fisica}}\fi
-\if|\SAP@submitdate|\ClassError{sapthesis}{You must specify the Academic %
- Year}{Example: \protect\submitdate{2011/2012}}\fi
-\if|\SAP@IDnumber|\ClassError{sapthesis}{You must specify your %
- ID number (matricola)}{E.g. 123456}\fi
-\if|\SAP@copyyear|\ClassError{sapthesis}{You must specify the %
- copyright year}{Example: \protect\copyyear{2012}}\fi
-\if|\SAP@authoremail|\ClassError{sapthesis}{You must specify the email of the author}{%
- Example: \protect\authoremail{author@email.com}}\fi
-
-% Titlepage:
+\vspace*{7mm}
- \begin{titlepage}
-
- \linespread{1}\selectfont
+{\bfseries\@author}\\[1mm]
+\SAP@IDnumberLabel\ \SAP@IDnumber
- \newcommand{\SAP@parbox}[2][]{\hspace{1.72cm}\parbox[t][##1][t]{11.9cm}{##2}}
- \parindent=0pt
- \sffamily
+\vspace*{7mm}
- \vspace*{-10mm}
- \ifSAP@bn
- \includegraphics[width=5cm]{sapienza-MLblack-pos}
+\raggedright
+\makebox[0cm][l]{%
+ \parbox[t]{4cm}{%
+ \ifcase\SAP@advisorcount
+ \ClassError{sapthesis}{You must specify at least one advisor in the preamble}%
+ {E.g. \protect\advisor{Prof. Name Surname}}
+ \or
+ \SAP@ThesisAdvisorLabel\\[1mm]
\else
- \includegraphics[width=5cm]{sapienza-MLred-pos}
+ \SAP@ThesisAdvisorsLabel\\[1mm]
\fi
-
- \nointerlineskip
- \vspace{\stretch{0.9}}
- \nointerlineskip
-
- \SAP@parbox{\LARGE\textcolor{sapred}{\@title}\par}
-
- \if|\SAP@subtitle|
- \relax
- \else
- \vspace{0.4cm}
- \SAP@parbox{\linespread{1.2}\selectfont\textcolor{sapred}{\large\SAP@subtitle}\par}
- \fi
-
- \vspace{\stretch{0.9}}
-
- \SAP@parbox[3cm]{%
- \textcolor{sapred}{\SAP@courseorganizerLabel\\[2mm]
- \ifSAP@overridecourse\SAP@courseLabel\else Corso di Laurea \ifSAP@LaM Magistrale \fi in \SAP@courseLabel\fi}}
-
- \SAP@parbox[3cm]{%
- \ifSAP@femaleauthor
- \SAP@CandidateLabelFemale\\[2mm]
+ \the\SAP@advisortoks}
+ \hspace{2mm}
+ \parbox[t]{4cm}{%
+ \ifcase\SAP@coadvisorcount
+ \relax
+ \or
+ \SAP@ThesisCoAdvisorLabel\\[1mm]
\else
- \SAP@CandidateLabel\\[2mm]
+ \SAP@ThesisCoAdvisorsLabel\\[1mm]
\fi
- \@author\\[0.75mm]
- \SAP@IDnumberLabel\ \SAP@IDnumber}
-
- \SAP@parbox[4.5cm]{%
- \makebox[11.9cm][l]{%
- \parbox[t]{5.9cm}{%
- \ifcase\SAP@advisorcount
- \ClassError{sapthesis}{You must specify at least one advisor in the preamble}%
- {E.g. \protect\advisor{Prof. Name Surname}}
- \or
- \SAP@ThesisAdvisorLabel\\[2mm]
- \else
- \SAP@ThesisAdvisorsLabel\\[2mm]
- \fi
- \the\SAP@advisortoks}
- \hspace{1.5cm}
- \parbox[t]{5.9cm}{%
- \ifcase\SAP@coadvisorcount
- \relax
- \or
- \ifSAP@ext\SAP@ThesisExtAdvisorLabel\else\SAP@ThesisCoAdvisorLabel\fi\\[2mm]
- \else
- \ifSAP@ext\SAP@ThesisExtAdvisorsLabel\else\SAP@ThesisCoAdvisorsLabel\fi\\[2mm]
- \fi
- \the\SAP@coadvisortoks}
- }}
+ \the\SAP@coadvisortoks}
+}%
+
+\ifcase\SAP@directorcount
+ \relax
+\or
+ \vspace*{7mm}
+ \SAP@ThesisDirectorLabel\\[1mm]
+ \the\SAP@directortoks
+\else
+ \vspace*{7mm}
+ \SAP@ThesisDirectorsLabel\\[1mm]
+ \the\SAP@directortoks
+\fi
- \SAP@parbox{\SAP@AcademicYearLabel\ \SAP@submitdate}
-
- \end{titlepage}
-\clearpage
-\SAP@composebacktitlepage
}
+%}
+\nointerlineskip
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% Master di primo livello and
-%% Master di secondo livello maketitle
+\vfill
-\newcommand{\SAP@maketitleMaster}{
-% Errors:
+%\fbox{%
+\SAP@parbox{%
+%\ifnum\SAP@directorcount=\z@
+% \vspace*{20mm}
+%\else
+% \vspace*{10mm}
+%\fi
+\SAP@AcademicYearLabel\ \SAP@AcademicYear
+}
+%}
+\end{titlepage}
+}
-\if|\SAP@courseorganizerLabel|\ClassError{sapthesis}{You must specify the degree %
- organizer}{Example: \protect\courseorganizer{Faculty of ...}}\fi
-\if|\SAP@courseLabel|\ClassError{sapthesis}{You must specify the %
- course}{Example: \protect\course{Fisica}}\fi
-\if|\SAP@submitdate|\ClassError{sapthesis}{You must specify the Academic %
- Year}{Example: \protect\submitdate{2011/2012}}\fi
-\if|\SAP@IDnumber|\ClassError{sapthesis}{You must specify your %
- ID number (matricola)}{E.g. 123456}\fi
-\if|\SAP@copyyear|\ClassError{sapthesis}{You must specify the %
- copyright year}{Example: \protect\copyyear{2012}}\fi
-\if|\SAP@authoremail|\ClassError{sapthesis}{You must specify the email of the author}{%
- Example: \protect\authoremail{author@email.com}}\fi
-% Titlepage:
+\newcommand{\SAP@maketitleC}{
+\begin{titlepage}
- \begin{titlepage}
-
- \linespread{1}\selectfont
+\linespread{1}\selectfont
+\newlength{\SAP@parboxindent}
+\newlength{\SAP@parboxwidth}
+\setlength{\SAP@parboxindent}{1.38cm}
+\setlength{\SAP@parboxwidth}{\dimexpr\textwidth-\SAP@parboxindent\relax}
+\newcommand{\SAP@parbox}[2][]{\hspace{\SAP@parboxindent}%
+\parbox[t][##1][t]{\SAP@parboxwidth}{##2}}
+\parindent=0pt
+\sffamily
+
+\vspace*{-10mm}
+
+\ifSAP@sapienzalogo
+ \includegraphics[width=4cm]{sapienzalogo}
+\else
+ \parbox[b][3cm][c]{0.49\linewidth}{\hspace{-1cm}
+ \setlength{\unitlength}{1mm}
+ \begin{picture}(65,27.3)(0,0)
+ \small
+ \put(0,0){\framebox(65,27.3)[0,0]{}}
+ \put(2,23){\makebox(0,0)[l]{WARNING! ATTENZIONE!}}
+ \put(2,18){\makebox(0,0)[l]{Sapienza logo not found!}}
+ \put(2,11){\href{http://biccari.altervista.org/c/informatica/latex/sapienzalogo.pdf}{Click here to download the Sapienza logo}}
+ \put(2,5.5){Then copy sapienzalogo.pdf in the folder}
+ \put(2,1.5){of your main .tex file.}
+ \end{picture}
+ }
+\fi
- \newcommand{\SAP@parbox}[2][]{\hspace{1.72cm}\parbox[t][##1][t]{11.9cm}{##2}}
- \parindent=0pt
- \sffamily
+\nointerlineskip
- \vspace*{-10mm}
- \ifSAP@bn
- \includegraphics[width=5cm]{sapienza-MLblack-pos}
- \else
- \includegraphics[width=5cm]{sapienza-MLred-pos}
- \fi
+%\nointerlineskip
+%\vspace{\stretch{1}}
+%\nointerlineskip
+%\fbox{%
+\SAP@parbox[11.4cm]{
\nointerlineskip
- \vspace{\stretch{0.9}}
+ \vspace*{7mm}
+ \vspace{\stretch{1}}
\nointerlineskip
-
- \SAP@parbox{\LARGE\textcolor{sapred}{\@title}\par}
-
- \if|\SAP@subtitle|
- \relax
- \else
- \vspace{0.4cm}
- \SAP@parbox{\linespread{1.2}\selectfont\textcolor{sapred}{\large\SAP@subtitle}\par}
- \fi
-
- \vspace{\stretch{0.9}}
-
- \SAP@parbox[3cm]{%
- \textcolor{sapred}{\SAP@courseorganizerLabel\\[2mm]
- \ifSAP@overridecourse\SAP@courseLabel\else Master di \ifSAP@MasterP primo \fi \ifSAP@MasterS secondo \fi livello in \SAP@courseLabel\fi}}
-
- \SAP@parbox[3cm]{%
- \ifSAP@femaleauthor
- \SAP@CandidateLabelFemale\\[2mm]
- \else
- \SAP@CandidateLabel\\[2mm]
- \fi
- \@author\\[0.75mm]
- \SAP@IDnumberLabel\ \SAP@IDnumber}
-
- \SAP@parbox[4.5cm]{%
- \makebox[11.9cm][l]{%
- \parbox[t]{5.9cm}{%
- \ifcase\SAP@advisorcount
- \ClassError{sapthesis}{You must specify at least one advisor in the preamble}%
- {E.g. \protect\advisor{Prof. Name Surname}}
- \or
- \SAP@ThesisAdvisorLabel\\[2mm]
- \else
- \SAP@ThesisAdvisorsLabel\\[2mm]
- \fi
- \the\SAP@advisortoks}
- \hspace{1.5cm}
- \parbox[t]{5.9cm}{%
- \ifcase\SAP@coadvisorcount
- \relax
- \or
- \ifSAP@ext\SAP@ThesisExtAdvisorLabel\else\SAP@ThesisCoAdvisorLabel\fi\\[2mm]
+
+ {\Large\linespread{1.1}\selectfont\textcolor{sapred}{\@title}\par}
+
+ \if|\SAP@subtitle|
+ \if|\SAP@alttitle|
+ \relax
\else
- \ifSAP@ext\SAP@ThesisExtAdvisorsLabel\else\SAP@ThesisCoAdvisorsLabel\fi\\[2mm]
+ \vspace{1cm}
+ {\Large\linespread{1.1}\selectfont\textcolor{sapred}{\SAP@alttitle}\par}
\fi
- \the\SAP@coadvisortoks}
- }}
-
- \SAP@parbox{\SAP@AcademicYearLabel\ \SAP@submitdate}
+ \else
+ \vspace{0.4cm}
+ {\normalsize\linespread{1.1}\selectfont\textcolor{sapred}{\SAP@subtitle}\par}
+ \fi
- \end{titlepage}
-\clearpage
-\SAP@composebacktitlepage
-}
+ \nointerlineskip
+ \vspace{\stretch{1}}
+ \vspace*{7mm}
+ \nointerlineskip}
+%}
+\nointerlineskip
+%\vspace{\stretch{1}}
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% Tirocinio Formativo Attivo (TFA) maketitle
+%\fbox{%
+\SAP@parbox{%
+\textcolor{sapred}{\SAP@courseorganizerLabel\\[1mm]
+\SAP@courseLabel\ \if|\SAP@cycle|\relax\else (\SAP@cycle\ \SAP@cycleLabel)\fi}
-\newcommand{\SAP@maketitleTFA}{
+\vspace*{7mm}
-% Errors:
+{\bfseries\@author}\\[1mm]
+\SAP@IDnumberLabel\ \SAP@IDnumber
-\if|\SAP@courseorganizerLabel|\ClassError{sapthesis}{You must specify the degree %
- organizer}{Example: \protect\courseorganizer{Faculty of ...}}\fi
-\if|\SAP@submitdate|\ClassError{sapthesis}{You must specify the Academic %
- Year}{Example: \protect\submitdate{2011/2012}}\fi
-\if|\SAP@IDnumber|\ClassError{sapthesis}{You must specify your %
- ID number (matricola)}{E.g. 123456}\fi
-\if|\SAP@copyyear|\ClassError{sapthesis}{You must specify the %
- copyright year}{Example: \protect\copyyear{2012}}\fi
-\if|\SAP@authoremail|\ClassError{sapthesis}{You must specify the email of the author}{%
- Example: \protect\authoremail{author@email.com}}\fi
+\vspace*{7mm}
-% Titlepage:
+\raggedright
+\makebox[0cm][l]{%
+ \parbox[t]{5cm}{%
+ \ifcase\SAP@advisorcount
+ \ClassError{sapthesis}{You must specify at least one advisor in the preamble}%
+ {E.g. \protect\advisor{Prof. Name Surname}}
+ \or
+ \SAP@ThesisAdvisorLabel\\[1mm]
+ \else
+ \SAP@ThesisAdvisorsLabel\\[1mm]
+ \fi
+ \the\SAP@advisortoks}
+ \hspace{2mm}
+ \parbox[t]{5cm}{%
+ \ifcase\SAP@coadvisorcount
+ \relax
+ \or
+ \SAP@ThesisCoAdvisorLabel\\[1mm]
+ \else
+ \SAP@ThesisCoAdvisorsLabel\\[1mm]
+ \fi
+ \the\SAP@coadvisortoks}
+}%
+
+\ifcase\SAP@directorcount
+ \relax
+\or
+ \vspace*{7mm}
+ \SAP@ThesisDirectorLabel\\[1mm]
+ \the\SAP@directortoks
+\else
+ \vspace*{7mm}
+ \SAP@ThesisDirectorsLabel\\[1mm]
+ \the\SAP@directortoks
+\fi
- \begin{titlepage}
-
- \linespread{1}\selectfont
+}
+%}
- \newcommand{\SAP@parbox}[2][]{\hspace{1.72cm}\parbox[t][##1][t]{11.9cm}{##2}}
- \parindent=0pt
- \sffamily
+\nointerlineskip
- \vspace*{-10mm}
- \ifSAP@bn
- \includegraphics[width=5cm]{sapienza-MLblack-pos}
- \else
- \includegraphics[width=5cm]{sapienza-MLred-pos}
- \fi
+\vfill
- \nointerlineskip
- \vspace{\stretch{0.9}}
- \nointerlineskip
- \SAP@parbox{\LARGE\textcolor{sapred}{\@title}\par}
-
- \if|\SAP@subtitle|
- \relax
- \else
- \vspace{0.4cm}
- \SAP@parbox{\linespread{1.2}\selectfont\textcolor{sapred}{\large\SAP@subtitle}\par}
- \fi
-
- \vspace{\stretch{0.9}}
-
- \SAP@parbox[3cm]{%
- \textcolor{sapred}{\SAP@courseorganizerLabel\\[2mm]
- Tirocinio Formativo Attivo\\[2mm]
- \ifSAP@overridecourse\SAP@courseLabel\else Classe \SAP@courseLabel\fi}}
-
- \SAP@parbox[3cm]{%
- \ifSAP@femaleauthor
- \SAP@CandidateLabelFemale\\[2mm]
- \else
- \SAP@CandidateLabel\\[2mm]
- \fi
- \@author\\[0.75mm]
- \SAP@IDnumberLabel\ \SAP@IDnumber}
-
- \SAP@parbox[4.5cm]{%
- \makebox[11.9cm][l]{%
- \parbox[t]{5.9cm}{%
- \ifcase\SAP@advisorcount
- \ClassError{sapthesis}{You must specify at least one advisor in the preamble}%
- {E.g. \protect\advisor{Prof. Name Surname}}
- \or
- \SAP@ThesisAdvisorLabel\\[2mm]
- \else
- \SAP@ThesisAdvisorsLabel\\[2mm]
- \fi
- \the\SAP@advisortoks}
- \hspace{1.5cm}
- \parbox[t]{5.9cm}{%
- \ifcase\SAP@coadvisorcount
- \relax
- \or
- \ifSAP@ext\SAP@ThesisExtAdvisorLabel\else\SAP@ThesisCoAdvisorLabel\fi\\[2mm]
- \else
- \ifSAP@ext\SAP@ThesisExtAdvisorsLabel\else\SAP@ThesisCoAdvisorsLabel\fi\\[2mm]
- \fi
- \the\SAP@coadvisortoks}
- }
-
- \vspace{1cm}
-
- \makebox[11.9cm][l]{%
- \parbox[t]{5.9cm}{%
- \ifcase\SAP@tutorcount
- \ClassError{sapthesis}{You must specify at least one tutor in the preamble}%
- {E.g. \protect\tutor{Prof. Name Surname}}
- \or
- \SAP@ThesisTutorLabel\\[2mm]
- \else
- \SAP@ThesisTutorsLabel\\[2mm]
- \fi
- \the\SAP@tutortoks}
- \hspace{1.5cm}
- \parbox[t]{5.9cm}{%
- \ifcase\SAP@tutorcoordcount
- \ClassError{sapthesis}{You must specify at least one tutor coordinatore in the preamble}%
- {E.g. \protect\tutorcoord{Prof. Name Surname}}
- \or
- \SAP@ThesisTutorCoordLabel\\[2mm]
- \else
- \SAP@ThesisTutorCoordsLabel\\[2mm]
- \fi
- \the\SAP@tutorcoordtoks}
- }}
-
- \SAP@parbox{\SAP@AcademicYearLabel\ \SAP@submitdate}
-
- \end{titlepage}
-\clearpage
-\SAP@composebacktitlepage
+%\fbox{%
+\SAP@parbox{%
+%\ifnum\SAP@directorcount=\z@
+% \vspace*{20mm}
+%\else
+% \vspace*{10mm}
+%\fi
+\SAP@AcademicYearLabel\ \SAP@AcademicYear
+}
+%}
+\end{titlepage}
}
@@ -893,12 +779,8 @@
\null
\vspace*{1cm}
-\ifSAP@TFA
-\SAP@TFAschoolHeadLabel\\[2mm]
-\SAP@schoolname\\[0.1cm]
-\SAP@schooladdress\\[0.1cm]
-\@ifundefined{href}{\SAP@schoolwebsite}{\href{\SAP@schoolwebsite}{\SAP@schoolwebsite}}\\[0.1cm]
-\SAP@TFAschoolPrincipalLabel: \SAP@schoolprincipal
+\if|\SAP@extrainfo|\relax\else
+\SAP@extrainfo
\vspace*{1.5cm}
\fi
@@ -938,27 +820,10 @@
\small
\textbf{\def\\{}\def\newline{}\@title} \\[0.75mm]
-\ifSAP@PhD\SAP@PhDthesistype\fi
-\ifSAP@Specialization\SAP@Specializationthesistype\fi
-\ifSAP@LaM\SAP@LaMthesistype\fi
-\ifSAP@Lau\SAP@Lauthesistype\fi
-\ifSAP@MasterS\SAP@MasterSthesistype\fi
-\ifSAP@MasterP\SAP@MasterPthesistype\fi
-\ifSAP@TFA\SAP@TFAthesistype\fi
-. \SAP@sapienzaname \\[0.75mm]
+\if|\SAP@thesistype|\relax\else\SAP@thesistype.\fi\ \SAP@sapienzaname \\[0.75mm]
\if|\SAP@ISBN|\relax\else ISBN: \SAP@ISBN\fi\\[0.75mm]
\if|\SAP@copyrightstatement|\copyright\ \SAP@copyyear\ \@author. \SAP@allRightsReservedLabel\else\SAP@copyrightstatement\fi\\[1.5mm]
-%Material for which the author is the copyright owner cannot be
-%used without the written permission of the author.
-%The permission to reproduce copyright protected material does not extend
-%to any material that is copyright of a third party; authorization to
-%reproduce such material must be obtained from the copyright owners concerned.
-%If you believe that a copyright infringement is present in this thesis,
-%please contact the author, providing your name, contact details, full
-%details of the copyright infringement and advise whether you are the copyright
-%owner or a representative of the copyright owner.\\
-
\SAP@sapthesisInformationLabel.\\
\if|\SAP@versiondate|
@@ -982,13 +847,34 @@
%% Choosing the right \maketitle according to the thesis type %%%%%%%
\renewcommand{\maketitle}{%
- \ifSAP@PhD\SAP@maketitlePhD\fi
- \ifSAP@Specialization\SAP@maketitleSpecialization\fi
- \ifSAP@LaM\SAP@maketitleLaurea\fi
- \ifSAP@Lau\SAP@maketitleLaurea\fi
- \ifSAP@MasterS\SAP@maketitleMaster\fi
- \ifSAP@MasterP\SAP@maketitleMaster\fi
- \ifSAP@TFA\SAP@maketitleTFA\fi}
+% Errors:
+\if|\SAP@courseorganizerLabel|\ClassError{sapthesis}{You must specify the course %
+ organizer}{Example: \protect\courseorganizer{Scuola di dottorato di ...}}\fi
+\if|\SAP@courseLabel|\ClassError{sapthesis}{You must specify the %
+ course}{Example: \protect\course{Corso di Laurea Magistrale in Fisica}}\fi
+\if|\SAP@AcademicYear|\ClassError{sapthesis}{You must specify the %
+ thesis submission date}{Example: \protect\submitdate{August 2012} The date must be in the form Month(name) Year(number)}\fi
+\if|\SAP@copyyear|\ClassError{sapthesis}{You must specify the %
+ copyright year}{Example: \protect\copyyear{2012}}\fi
+\if|\SAP@IDnumber|\ClassError{sapthesis}{You must specify your %
+ ID number (matricola)}{Example: \protect\IDnumber{123456}}\fi
+\if|\SAP@authoremail|\ClassError{sapthesis}{You must specify the email of the author}{%
+ Example: \protect\authoremail{author@email.com}}\fi
+%titlepage
+\def\SAP@layoutname{a4paper}
+\ifx\SAP@layout\SAP@layoutname
+\SAP@maketitleA
+\fi
+\def\SAP@layoutname{a5paper}
+\ifx\SAP@layout\SAP@layoutname
+\SAP@maketitleB
+\fi
+\def\SAP@layoutname{b5paper}
+\ifx\SAP@layout\SAP@layoutname
+\SAP@maketitleC
+\fi
+\clearpage
+\SAP@composebacktitlepage}
@@ -1025,37 +911,23 @@
\newcommand{\SAP@CandidateLabel}{Candidate}
\newcommand{\SAP@CandidateLabelFemale}{Candidate}
\newcommand{\SAP@IDnumberLabel}{ID number}
- \newcommand{\SAP@ThesisAdvisorLabel}{Thesis Advisor}
- \newcommand{\SAP@ThesisAdvisorsLabel}{Thesis Advisors}
- \newcommand{\SAP@ThesisCoAdvisorLabel}{Co-Advisor}
- \newcommand{\SAP@ThesisCoAdvisorsLabel}{Co-Advisors}
- \newcommand{\SAP@ThesisExtAdvisorLabel}{External Advisor}
- \newcommand{\SAP@ThesisExtAdvisorsLabel}{External Advisors}
- \newcommand{\SAP@ThesisDirectorLabel}{Director}
- \newcommand{\SAP@ThesisDirectorsLabel}{Directors}
- \newcommand{\SAP@ThesisTutorLabel}{Trainee's Tutor}
- \newcommand{\SAP@ThesisTutorsLabel}{Trainee's Tutors}
- \newcommand{\SAP@ThesisTutorCoordLabel}{Coordinating Tutor}
- \newcommand{\SAP@ThesisTutorCoordsLabel}{Coordinating Tutors}
- \newcommand{\SAP@TFAschoolHeadLabel}{Training done at:}
- \newcommand{\SAP@TFAschoolPrincipalLabel}{Principal}
+ \newcommand{\SAP@ThesisAdvisorLabel}{Advisor}
+ \newcommand{\SAP@ThesisAdvisorsLabel}{Advisors}
+ \providecommand{\SAP@ThesisCoAdvisorLabel}{Co-Advisor}
+ \providecommand{\SAP@ThesisCoAdvisorsLabel}{Co-Advisors}
+ \providecommand{\SAP@ThesisDirectorLabel}{Director}
+ \providecommand{\SAP@ThesisDirectorsLabel}{Directors}
+ \newcommand{\SAP@cycleLabel}{cycle}
+ \newcommand{\SAP@AcademicYearLabel}{Academic Year}
\newcommand{\SAP@ThesisNotDefensedLabel}{Thesis not yet defended}
\newcommand{\SAP@ThesisDefensedLabelA}{Thesis defended on}
\newcommand{\SAP@ThesisDefensedLabelB}{in front of a Board of Examiners composed by}
\newcommand{\SAP@chairman}{chairman}
- \newcommand{\SAP@PhDthesistype}{Ph.D. thesis}
- \newcommand{\SAP@Specializationthesistype}{Specialization thesis}
- \newcommand{\SAP@LaMthesistype}{Master's thesis}
- \newcommand{\SAP@Lauthesistype}{Bachelor's thesis}
- \newcommand{\SAP@MasterPthesistype}{First level master's thesis}
- \newcommand{\SAP@MasterSthesistype}{Second level master's thesis}
- \newcommand{\SAP@TFAthesistype}{TFA report}
- \newcommand{\SAP@sapienzaname}{Sapienza -- University of Rome}
+ \newcommand{\SAP@sapienzaname}{Sapienza University of Rome}
\newcommand{\SAP@versionLabel}{Version}
\newcommand{\SAP@websiteLabel}{Website}
\newcommand{\SAP@AcknowledgmentsLabel}{Acknowledgments}
\newcommand{\SAP@AbstractLabel}{Abstract}
- \newcommand{\SAP@AcademicYearLabel}{Academic Year}
\newcommand{\SAP@allRightsReservedLabel}{All rights reserved}
\newcommand{\SAP@sapthesisInformationLabel}{This thesis has been typeset by \LaTeX\ and the Sapthesis class}
\newcommand{\SAP@emailLabel}{Author's email}}
@@ -1066,35 +938,21 @@
\newcommand{\SAP@IDnumberLabel}{Matricola}
\newcommand{\SAP@ThesisAdvisorLabel}{Relatore}
\newcommand{\SAP@ThesisAdvisorsLabel}{Relatori}
- \newcommand{\SAP@ThesisCoAdvisorLabel}{Correlatore}
- \newcommand{\SAP@ThesisCoAdvisorsLabel}{Correlatori}
- \newcommand{\SAP@ThesisExtAdvisorLabel}{Relatore esterno}
- \newcommand{\SAP@ThesisExtAdvisorsLabel}{Relatori esterni}
- \newcommand{\SAP@ThesisDirectorLabel}{Direttore}
- \newcommand{\SAP@ThesisDirectorsLabel}{Direttori}
- \newcommand{\SAP@ThesisTutorLabel}{Tutor del Tirocinante}
- \newcommand{\SAP@ThesisTutorsLabel}{Tutor del Tirocinante}
- \newcommand{\SAP@ThesisTutorCoordLabel}{Tutor Coordinatore}
- \newcommand{\SAP@ThesisTutorCoordsLabel}{Tutor Coordinatori}
- \newcommand{\SAP@TFAschoolHeadLabel}{Tirocinio svolto presso:}
- \newcommand{\SAP@TFAschoolPrincipalLabel}{Dirigente scolastico}
+ \providecommand{\SAP@ThesisCoAdvisorLabel}{Correlatore}
+ \providecommand{\SAP@ThesisCoAdvisorsLabel}{Correlatori}
+ \providecommand{\SAP@ThesisDirectorLabel}{Direttore}
+ \providecommand{\SAP@ThesisDirectorsLabel}{Direttori}
+ \newcommand{\SAP@cycleLabel}{ciclo}
+ \newcommand{\SAP@AcademicYearLabel}{Anno Accademico}
\newcommand{\SAP@ThesisNotDefensedLabel}{Tesi non ancora discussa}
\newcommand{\SAP@ThesisDefensedLabelA}{Tesi discussa il}
\newcommand{\SAP@ThesisDefensedLabelB}{di fronte a una commissione esaminatrice composta da}
\newcommand{\SAP@chairman}{presidente}
- \newcommand{\SAP@PhDthesistype}{Tesi di dottorato}
- \newcommand{\SAP@Specializationthesistype}{Tesi di Specializzazione}
- \newcommand{\SAP@LaMthesistype}{Tesi di Laurea Magistrale}
- \newcommand{\SAP@Lauthesistype}{Tesi di Laurea}
- \newcommand{\SAP@MasterPthesistype}{Tesi di Master di primo livello}
- \newcommand{\SAP@MasterSthesistype}{Tesi di Master di secondo livello}
- \newcommand{\SAP@TFAthesistype}{TFA. Relazione di tirocinio}
- \newcommand{\SAP@sapienzaname}{Sapienza -- Universit\`a di Roma}
+ \newcommand{\SAP@sapienzaname}{Sapienza Universit\`a di Roma}
\newcommand{\SAP@versionLabel}{Versione}
\newcommand{\SAP@websiteLabel}{Sito web}
\newcommand{\SAP@AcknowledgmentsLabel}{Ringraziamenti}
\newcommand{\SAP@AbstractLabel}{Sommario}
- \newcommand{\SAP@AcademicYearLabel}{Anno Accademico}
\newcommand{\SAP@allRightsReservedLabel}{Tutti i diritti riservati}
\newcommand{\SAP@sapthesisInformationLabel}{Questa tesi \`e stata composta con \LaTeX\ e la classe Sapthesis}
\newcommand{\SAP@emailLabel}{Email dell'autore}}
@@ -1176,8 +1034,8 @@
\else
\@tempswatrue
\fi
- \toks@=\expandafter{\the\expandafter\toks@\expandafter\partial\der@var}}%
- \frac{\partial\ifnum\count@=\@ne\else^{\number\count@}\fi#1}{\the\toks@}%
+ \toks@=\expandafter{\the\expandafter\toks@\expandafter\di\der@var}}%
+ \frac{\di\ifnum\count@=\@ne\else^{\number\count@}\fi#1}{\the\toks@}%
\endgroup}
\def\check@var{\@ifstar{\mult@var}{\one@var}}
\def\mult@var#1#2\@nil{\def\der@var{#2^{#1}}\def\der@exp{#1}}