texlive[61534] Master/texmf-dist: sapthesis (8jan22)

commits+karl at tug.org commits+karl at tug.org
Sat Jan 8 22:34:14 CET 2022


Revision: 61534
          http://tug.org/svn/texlive?view=revision&revision=61534
Author:   karl
Date:     2022-01-08 22:34:14 +0100 (Sat, 08 Jan 2022)
Log Message:
-----------
sapthesis (8jan22)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/sapthesis/README
    trunk/Master/texmf-dist/doc/latex/sapthesis/sapthesis-doc.pdf
    trunk/Master/texmf-dist/doc/latex/sapthesis/sapthesis-doc.tex
    trunk/Master/texmf-dist/tex/latex/sapthesis/sapthesis.cls

Added Paths:
-----------
    trunk/Master/texmf-dist/doc/latex/sapthesis/sapienzalogo.pdf

Removed Paths:
-------------
    trunk/Master/texmf-dist/doc/latex/sapthesis/examples/
    trunk/Master/texmf-dist/tex/latex/sapthesis/sapienza-MLblack-pos.pdf
    trunk/Master/texmf-dist/tex/latex/sapthesis/sapienza-MLred-pos.pdf

Modified: trunk/Master/texmf-dist/doc/latex/sapthesis/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/sapthesis/README	2022-01-08 21:20:29 UTC (rev 61533)
+++ trunk/Master/texmf-dist/doc/latex/sapthesis/README	2022-01-08 21:34:14 UTC (rev 61534)
@@ -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,16 +70,13 @@
         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
@@ -89,11 +83,9 @@
       (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

Added: trunk/Master/texmf-dist/doc/latex/sapthesis/sapienzalogo.pdf
===================================================================
(Binary files differ)

Index: trunk/Master/texmf-dist/doc/latex/sapthesis/sapienzalogo.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/sapthesis/sapienzalogo.pdf	2022-01-08 21:20:29 UTC (rev 61533)
+++ trunk/Master/texmf-dist/doc/latex/sapthesis/sapienzalogo.pdf	2022-01-08 21:34:14 UTC (rev 61534)

Property changes on: trunk/Master/texmf-dist/doc/latex/sapthesis/sapienzalogo.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Modified: trunk/Master/texmf-dist/doc/latex/sapthesis/sapthesis-doc.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/sapthesis/sapthesis-doc.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/sapthesis/sapthesis-doc.tex	2022-01-08 21:20:29 UTC (rev 61533)
+++ trunk/Master/texmf-dist/doc/latex/sapthesis/sapthesis-doc.tex	2022-01-08 21:34:14 UTC (rev 61534)
@@ -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 at gmail.com}{biccari at 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 @@
 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 @@
 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 \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,12 +179,10 @@
 \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}
@@ -186,34 +189,24 @@
 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,65 +216,72 @@
 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).
+\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 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 cycle\{\dots\}}] Mandatory only for PhD's. Use the form: \texttt{\bs cycle\{XXII\}}
 
-\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 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 AcademicYear\{\dots\}}] Alias for \texttt{\bs submitdate}. Academic Year.
+\item[\texttt{\bs AcademicYear\{\dots\}}] Academic Year.
 
-\item[\texttt{\bs copyyear\{\dots\}}] Mandatory. Copyright year (usually the 
-graduation 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 customcoadvisorlabel\{\dots\}}] Optional. Specify the label for co-advisors. It can be used to print ``external advisor'' or similar labels.
 
-\item[\texttt{\bs versiondate\{\dots\}}] Optional. Date version of the thesis.
+\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 website\{\dots\}}] Optional. Thesis website. Automatically 
-hyper-linked if \textsf{hyperref} package is loaded.
+\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 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 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 examdate\{\dots\}}] Optional. Date of the final exam.\\
-Example: \texttt{\bs examdate\{16 February 2010\}}.
+\item[\texttt{\bs website\{\dots\}}] Optional. Thesis website. Automatically 
+hyper-linked if \textsf{hyperref} package is loaded.
 
-\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 authoremail\{\dots\}}] Mandatory. Email of the thesis author.
+It is automatically hyper-linked if \textsf{hyperref} package is loaded.
 
-\item[\texttt{\bs cycle\{\dots\}}] Mandatory only for PhD's. Use the form: \texttt{\bs cycle\{XXII\}}
+\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 director\{\dots\}}] Only for Specialization. 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 tutor\{\dots\}} and \texttt{\bs tutorcoord\{\dots\}}] Only for TFA. Mandatory.
 
-\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 @@
 
 
 \end{description}
+\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\}}}
 
-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}
 
-
 \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 @@
 
 \end{itemize}
 
+\clearpage
+\section{Other useful commands}
+\label{sec:usefulcommands}
 
-\appendix
+\textsf{Sapthesis} provides several useful commands for scientific texts.
 
-\section{A very brief introduction to the \TeX\ world}
+\begin{description}
+\item[\texttt{\bs eu}] Napier's number, $\mathrm{e}$,  in roman.
 
-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.
+\item[\texttt{\bs iu}] Imaginary unit, $\mathrm{i}$,  in roman.
 
-\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.
+\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\}}.
 
-The following list of \LaTeX\ manuals, may be especially useful for Italian authors.
+\item[\texttt{\bs pder\{\dots\}\{\dots\}}] Partial derivative. Same syntax of the \texttt{\bs der} command.
 
-\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[\texttt{\bs rb\{\dots\}}] Roman suBscript
 
-\item \href{http://mirror.ctan.org/info/symbols/comprehensive/symbols-a4.pdf}{\textsc{S. Pakin}, \textit{The comprehensive} \LaTeX\ \textit{symbol list}, (2017)}
+\item[\texttt{\bs rp\{\dots\}}] Roman suPerscript
 
-\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}
+\item[\texttt{\bs tb\{\dots\}}] Text suBscript
 
-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).
+\item[\texttt{\bs tp\{\dots\}}] Text suPerscript
 
-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[\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 \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[\texttt{\bs g}] Shortcut for the \texttt{\bs degree} command. Example: \texttt{45\bs g} produces 45\g.
 
-\item \textbf{Avoid} other editors unless you know what you are doing!
+\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.
 
-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).
+\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.
 
-\section{Using LyX}
+\item[\texttt{\bs x}] Shortcut for the \texttt{\bs times} command. E.g.: \texttt{\$7 \bs x 10\^{}5\$} produces $7 \times 10^5$.
 
-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.
+\end{description}
 
-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{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 @@
 \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 at pippo.com}
+\copyyear{2022}
+\thesistype{PhD thesis}
 
 \begin{document}
 
@@ -483,8 +457,7 @@
 
 
 \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
@@ -491,7 +464,7 @@
 % !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 @@
 \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 at pippo.com}
+\coadvisor{Dr. Sempronio}
+\authoremail{francesco.biccari at pippo.com}
+\copyyear{2022}
+\thesistype{Tesi di Laurea Magistrale}
 
 \begin{document}
 
@@ -538,49 +512,49 @@
 
 
 \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 at pippo.com}
+\coadvisor{Dr. Sempronio}
+\director{Prof. Pippo}
+\customdirectorlabel{Direttore della Scuola di Specializzazione}
+\authoremail{francesco.biccari at pippo.com}
+\copyyear{2022}
+\thesistype{Specialization thesis}
 
-\schoolname{Liceo Scientifico Louis Pasteur}
-\schooladdress{Via G. Barellai 130, 00135 Roma}
-\schoolwebsite{http://www.liceopasteur.it/}
-\schoolprincipal{Prof. Diego Armando Maradona}
-
 \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 @@
 \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}

Deleted: trunk/Master/texmf-dist/tex/latex/sapthesis/sapienza-MLblack-pos.pdf
===================================================================
(Binary files differ)

Deleted: trunk/Master/texmf-dist/tex/latex/sapthesis/sapienza-MLred-pos.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/tex/latex/sapthesis/sapthesis.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/sapthesis/sapthesis.cls	2022-01-08 21:20:29 UTC (rev 61533)
+++ trunk/Master/texmf-dist/tex/latex/sapthesis/sapthesis.cls	2022-01-08 21:34:14 UTC (rev 61534)
@@ -1,12 +1,12 @@
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 %% sapthesis.cls                                                   %%
-%% version 4.1                                                     %%
-%% 2018-08-07                                                      %%
+%% version 5.0                                                     %%
+%% date: see below                                                 %%
 %% author: Francesco Biccari                                       %%
 %% contact: biccari at 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 at classVersion{4.1}
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 %% Options %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -32,72 +31,50 @@
 \newif\ifSAP at nodefaultfont \SAP at nodefaultfontfalse
 \newif\ifSAP at romandiff \SAP at romandifffalse
 \newif\ifSAP at customlanguage \SAP at customlanguagefalse
-\newif\ifSAP at bn \SAP at bnfalse
-\newif\ifSAP at PhD \SAP at PhDfalse
-\newif\ifSAP at Specialization \SAP at Specializationfalse
-\newif\ifSAP at MasterP \SAP at MasterPfalse
-\newif\ifSAP at MasterS \SAP at MasterSfalse
-\newif\ifSAP at LaM \SAP at LaMfalse
-\newif\ifSAP at Lau \SAP at Laufalse
-\newif\ifSAP at TFA \SAP at TFAfalse
 \newif\ifSAP at noexaminfo \SAP at noexaminfofalse
 \newif\ifSAP at femaleauthor \SAP at femaleauthorfalse
-\newif\ifSAP at overridecourse \SAP at overridecoursefalse
+\def\SAP at paper{a4paper}
+\def\SAP at layout{a4paper}
+\def\SAP at fontsize{11pt}
 
 \newcommand{\SAP at customlanguage}{}
-
+\define at key[sap]{}{italian}[]{\SAP at customlanguagetrue
+  \renewcommand{\SAP at customlanguage}{\SAP at italian}}
+\define at key[sap]{}{english}[]{\SAP at customlanguagetrue
+  \renewcommand{\SAP at customlanguage}{\SAP at english}}
 \define at key[sap]{}{noexaminfo}[]{\SAP at noexaminfotrue}
 \define at key[sap]{}{fem}[]{\SAP at femaleauthortrue}
 \define at key[sap]{}{nodefaultfont}[]{\SAP at nodefaultfonttrue}
 \define at key[sap]{}{romandiff}[]{\SAP at romandifftrue}
-\define at key[sap]{}{italian}[]{\SAP at customlanguagetrue
-  \renewcommand{\SAP at customlanguage}{\SAP at italian}}
-\define at key[sap]{}{english}[]{\SAP at customlanguagetrue
-  \renewcommand{\SAP at customlanguage}{\SAP at english}}
-\define at key[sap]{}{bn}[]{\SAP at bntrue
-  \PassOptionsToPackage{monochrome}{color}
-  \PassOptionsToPackage{monochrome}{xcolor}}
-\define at key[sap]{}{PhD}[]{\SAP at PhDtrue}
-\define at key[sap]{}{Specialization}[]{\SAP at Specializationtrue}
-\define at key[sap]{}{LaM}[]{\SAP at LaMtrue}
-\define at key[sap]{}{Lau}[]{\SAP at Lautrue}
-\define at key[sap]{}{TFA}[]{\SAP at TFAtrue}
-\define at key[sap]{}{MasterP}[]{\SAP at MasterPtrue\SAP at MasterPtrue}
-\define at key[sap]{}{MasterS}[]{\SAP at MasterStrue\SAP at MasterStrue}
 \define at key[sap]{}{binding}[0pt]{\setlength{\SAP at binding}{#1}}
-\define at key[sap]{}{draft}[]{\PassOptionsToClass{draft}{book}}
+\define at key[sap]{}{draft}[]{%
+\PassOptionsToClass{draft}{book}%
+%\PassOptionsToPackage{showframe}{geometry}
+}
 \define at key[sap]{}{oneside}[]{\PassOptionsToClass{oneside}{book}}
 \define at key[sap]{}{twoside}[]{}
+\define at key[sap]{}{a4paper}[]{\def\SAP at paper{a4paper}}
+\define at key[sap]{}{a5paper}[]{%
+\def\SAP at paper{a5paper}\def\SAP at layout{a5paper}\def\SAP at fontsize{10pt}}
+\define at key[sap]{}{b5paper}[]{%
+\def\SAP at paper{b5paper}\def\SAP at layout{b5paper}\def\SAP at fontsize{10pt}}
+\define at choicekey[sap]{}{layout}[]{a4paper,a5paper,b5paper}[]{%
+\def\SAP at layout{#1}\def\SAP at fontsize{10pt}}
 \DeclareOptionX*{\ClassError{sapthesis}{Option '\CurrentOption'%
   \MessageBreak is not valid}{Remove '\CurrentOption' %
   from class options}}
 \ProcessOptionsX[sap]<>
-\LoadClass[a4paper,11pt]{book}
 
 
-\ifSAP at PhD\relax\else
-  \ifSAP at Specialization\relax\else
-    \ifSAP at LaM\relax\else
-      \ifSAP at Lau\relax\else
-        \ifSAP at MasterP\relax\else
-          \ifSAP at MasterS\relax\else
-            \ifSAP at 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 at paper,\SAP at fontsize]{book}
+\RequirePackage[\SAP at paper]{geometry}
+
+% A4
+\def\SAP at layoutname{a4paper}
+\ifx\SAP at layout\SAP at layoutname %
 \geometry{textwidth=396pt,
   textheight=641pt,
   marginparsep=12pt,
@@ -106,8 +83,43 @@
   includehead,
   marginparwidth=72pt,
   heightrounded}
+\if at twoside\geometry{hmarginratio=55:89}\fi
+\fi
   
+% A5
+\def\SAP at layoutname{a5paper}
+\ifx\SAP at layout\SAP at layoutname %
+\geometry{textwidth=300pt,
+  textheight=485pt,
+  marginparsep=12pt,
+  bindingoffset=\SAP at binding,
+  vmarginratio=55:89,
+  includehead,
+  marginparwidth=42pt,
+  heightrounded}
 \if at twoside\geometry{hmarginratio=55:89}\fi
+\def\SAP at papername{a4paper}
+\ifx\SAP at paper\SAP at papername%
+\geometry{layout=\SAP at layout,layouthoffset=2cm,layoutvoffset=2cm,showcrop}\fi
+\fi
+
+% B5
+\def\SAP at layoutname{b5paper}
+\ifx\SAP at layout\SAP at layoutname %
+\geometry{textwidth=340pt,
+  textheight=550pt,
+  marginparsep=12pt,
+  bindingoffset=\SAP at binding,
+  vmarginratio=55:89,
+  includehead,
+  marginparwidth=42pt,
+  heightrounded}
+\if at twoside\geometry{hmarginratio=55:89}\fi
+\def\SAP at papername{a4paper}
+\ifx\SAP at paper\SAP at papername%
+\geometry{layout=\SAP at layout,layouthoffset=2cm,layoutvoffset=2cm,showcrop}\fi
+\fi
+
   
 
 
@@ -116,7 +128,7 @@
 %% Some settings%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 \RequirePackage{ifxetex}
 \ifxetex
-  \RequirePackage{xltxtra}
+  \RequirePackage{fontspec}
 \else
   \ifSAP at 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,31 +189,24 @@
 \g at addto@macro\mainmatter{\pagestyle{SAP at mainstyle}}
 
 % fancy marginnote
+% redefine the marginpar command
+\def \@marginparreset {%
+        \reset at 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}
 
-% commands to redefine the marginpar command
-% maybe in future I will remove the mnote command?
-%\def \@marginparreset {%
-%        \reset at 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 at addto@macro\@marginparreset{\footnotesize\itshape}
-\newcommand{\mnote}[1]{\marginpar[\raggedleft #1]{\raggedright #1}}
 
 
-
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 %% numbering objects per chapters (e.g. 1.1, 1.2, ...) %%%%%%%%%%%%%%
 
@@ -216,15 +221,24 @@
 
 %% GENERAL COMMANDS
 
+% logo
+\newif\ifSAP at sapienzalogo \SAP at sapienzalogofalse
+\IfFileExists{sapienzalogo.pdf}{\SAP at sapienzalogotrue}{%
+\ClassWarningNoLine{sapthesis}{Logo not found! You have to download it
+manually. See the documentation or just the frontispiece.}
+\RequirePackage{hyperref}}
+
+
+
 \def\SAP at subtitle{}
+\def\SAP at alttitle{}
 \def\SAP at courseorganizerLabel{}
 \def\SAP at courseLabel{}
 
 \newcommand{\subtitle}[1]{\def\SAP at subtitle{#1}}
+\newcommand{\alttitle}[1]{\def\SAP at alttitle{#1}}
 \newcommand{\courseorganizer}[1]{\def\SAP at courseorganizerLabel{#1}}
-\newcommand{\course}[2][]{%
-  \def\SAP at courseLabel{#2}
-  \ifstrequal{#1}{override}{\SAP at overridecoursetrue}{}}
+\newcommand{\course}[1]{\def\SAP at courseLabel{#1}}
 
 \def\SAP at copyyear{}
 \newcommand{\copyyear}[1]{\def\SAP at copyyear{#1}}
@@ -233,7 +247,7 @@
 \newcommand{\cycle}[1]{\def\SAP at cycle{#1}}
 
 \def\SAP at submitdate{}
-\newcommand{\submitdate}[1]{\def\SAP at submitdate{#1}}
+\newcommand{\submitdate}[1]{\def\SAP at AcademicYear{#1}}
 \let\AcademicYear\submitdate
 
 \def\SAP at IDnumber{}
@@ -246,25 +260,29 @@
   \ifnum\SAP at advisorcount=\z@ 
     \SAP at advisortoks={#1}% 
   \else 
-    \SAP at advisortoks=\expandafter{\the\SAP at advisortoks\\[0.75mm]#1}% 
+    \SAP at advisortoks=\expandafter{\the\SAP at advisortoks\\[1mm]#1}% 
   \fi 
   \advance\SAP at advisorcount\@ne}
 
+\newcommand{\customadvisorlabel}[1]{%
+    \newcommand{\SAP at ThesisAdvisorLabel}{#1}
+    \newcommand{\SAP at ThesisAdvisorsLabel}{#1}}
+    
 %% Co-Advisors or External Advisor 
 \newcount\SAP at coadvisorcount
 \newtoks\SAP at coadvisortoks
-\newif\ifSAP at ext \SAP at extfalse
-\newcommand{\coadvisor}[2][]{%
+\newcommand{\coadvisor}[1]{%
   \ifnum\SAP at coadvisorcount=\z@ 
-    \SAP at coadvisortoks={#2}% 
+    \SAP at coadvisortoks={#1}% 
   \else 
-    \SAP at coadvisortoks=\expandafter{\the\SAP at coadvisortoks\\[0.75mm]#2}% 
+    \SAP at coadvisortoks=\expandafter{\the\SAP at coadvisortoks\\[1mm]#1}% 
   \fi 
-  \advance\SAP at coadvisorcount\@ne
-  \ifstrequal{#1}{ext}{\SAP at exttrue}{}}
+  \advance\SAP at coadvisorcount\@ne}
 
+\newcommand{\customcoadvisorlabel}[1]{%
+    \newcommand{\SAP at ThesisCoAdvisorLabel}{#1}
+    \newcommand{\SAP at ThesisCoAdvisorsLabel}{#1}}
 
-
 %% Reviewers
 \def\SAP at ReviewerLabel{}
 \newcommand{\reviewerlabel}[1]{\def\SAP at ReviewerLabel{#1}}
@@ -275,7 +293,7 @@
   \ifnum\SAP at reviewercount=\z@ 
     \SAP at reviewertoks={#1}% 
   \else 
-    \SAP at reviewertoks=\expandafter{\the\SAP at reviewertoks\\[0.75mm]#1}% 
+    \SAP at reviewertoks=\expandafter{\the\SAP at reviewertoks\\[1mm]#1}% 
   \fi 
   \advance\SAP at reviewercount\@ne}  
   
@@ -292,28 +310,10 @@
   \fi 
   \advance\SAP at directorcount\@ne}
 
-%% Tutor (TFA only)
-\newcount\SAP at tutorcount
-\newtoks\SAP at tutortoks
-\newcommand{\tutor}[1]{% 
-  \ifnum\SAP at tutorcount=\z@ 
-    \SAP at tutortoks={#1}% 
-  \else 
-    \SAP at tutortoks=\expandafter{\the\SAP at tutortoks\\[0.75mm]#1}% 
-  \fi 
-  \advance\SAP at tutorcount\@ne}
+\newcommand{\customdirectorlabel}[1]{%
+    \newcommand{\SAP at ThesisDirectorLabel}{#1}
+    \newcommand{\SAP at ThesisDirectorsLabel}{#1}}
 
-%% Tutor Coordinatori (TFA only)
-\newcount\SAP at tutorcoordcount
-\newtoks\SAP at tutorcoordtoks
-\newcommand{\tutorcoord}[1]{% 
-  \ifnum\SAP at tutorcoordcount=\z@ 
-    \SAP at tutorcoordtoks={#1}% 
-  \else 
-    \SAP at tutorcoordtoks=\expandafter{\the\SAP at tutorcoordtoks\\[0.75mm]#1}% 
-  \fi 
-  \advance\SAP at tutorcoordcount\@ne}
-
 %% Examiners
 \newcount\SAP at examinercount
 \newtoks\SAP at examinertoks
@@ -328,6 +328,9 @@
 \def\SAP at examdate{}
 \newcommand{\examdate}[1]{\def\SAP at examdate{#1}}
 
+\def\SAP at thesistype{}
+\newcommand{\thesistype}[1]{\def\SAP at thesistype{#1}}
+
 \def\SAP at versiondate{}
 \newcommand{\versiondate}[1]{\def\SAP at versiondate{#1}}
 
@@ -343,543 +346,426 @@
 \def\SAP at copyrightstatement{}
 \newcommand{\copyrightstatement}[1]{\def\SAP at copyrightstatement{#1}}
 
-\def\SAP at schoolname{}
-\newcommand{\schoolname}[1]{\def\SAP at schoolname{#1}}
+\def\SAP at extrainfo{}
+\newcommand{\extrainfo}[1]{\def\SAP at extrainfo{#1}}
 
-\def\SAP at schooladdress{}
-\newcommand{\schooladdress}[1]{\def\SAP at schooladdress{#1}}
 
-\def\SAP at schoolwebsite{}
-\newcommand{\schoolwebsite}[1]{\def\SAP at schoolwebsite{#1}}
 
-\def\SAP at schoolprincipal{}
-\newcommand{\schoolprincipal}[1]{\def\SAP at schoolprincipal{#1}}
-
-
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% PhD maketitle
+%% maketitle commands for A4 (A), A5 (B), B5 (C) formats 
 
-\newcommand{\SAP at maketitlePhD}{
+\newcommand{\SAP at maketitleA}{
 
-% Errors:
+\begin{titlepage}
 
-\if|\SAP at courseorganizerLabel|\ClassError{sapthesis}{You must specify the Ph.D. %
-  organizer}{Example: \protect\courseorganizer{Scuola di dottorato di ...}}\fi
-\if|\SAP at courseLabel|\ClassError{sapthesis}{You must specify the Ph.D. %
-  course}{Example: \protect\course{Physics}}\fi
-\ifSAP at overridecourse\relax\else\if|\SAP at 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 at 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 at copyyear|\ClassError{sapthesis}{You must specify the %
-  copyright year}{Example: \protect\copyyear{2012}}\fi
-\if|\SAP at IDnumber|\ClassError{sapthesis}{You must specify your %
-  ID number (matricola)}{Example: \protect\IDnumber{123456}}\fi
-\if|\SAP at authoremail|\ClassError{sapthesis}{You must specify the email of the author}{%
-  Example: \protect\authoremail{author at email.com}}\fi
+\linespread{1}\selectfont
+\newlength{\SAP at parboxindent}
+\newlength{\SAP at parboxwidth}
+\setlength{\SAP at parboxindent}{1.72cm}
+\setlength{\SAP at parboxwidth}{\dimexpr\textwidth-\SAP at parboxindent\relax}
+\newcommand{\SAP at parbox}[2][]{\hspace{\SAP at parboxindent}%
+\parbox[t][##1][t]{\SAP at parboxwidth}{##2}}
+\parindent=0pt
+\sffamily
 
-% Titlepage:
+\vspace*{-10mm}
 
-	\begin{titlepage}
-	
-	\linespread{1}\selectfont
+\ifSAP at 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
 
-    \newcommand{\SAP at parbox}[2][]{\hspace{1.72cm}\parbox[t][##1][t]{11.9cm}{##2}}
-    \parindent=0pt
-    \sffamily
+\nointerlineskip
 
-    \vspace*{-10mm}
-    \ifSAP at bn
-      \includegraphics[width=5cm]{sapienza-MLblack-pos}
-    \else
-      \includegraphics[width=5cm]{sapienza-MLred-pos}
-    \fi
+%\nointerlineskip
+%\vspace{\stretch{1}}
+%\nointerlineskip
 
+%\fbox{%
+\SAP at parbox[12.8cm]{
     \nointerlineskip
+    \vspace*{7mm}
     \vspace{\stretch{1}}
     \nointerlineskip
-
-    \SAP at parbox{\LARGE\textcolor{sapred}{\@title}\par}
-	
-	\if|\SAP at subtitle|
-	  \relax
-	\else
-	  \vspace{0.4cm}
-	  \SAP at parbox{\linespread{1.2}\selectfont\textcolor{sapred}{\large\SAP at subtitle}\par}
-	\fi
-
-    \vspace{\stretch{1}}
-
-    \SAP at parbox[3cm]{%
-    \textcolor{sapred}{\SAP at courseorganizerLabel\\[2mm]
-    \ifSAP at overridecourse\SAP at courseLabel\else Dottorato di Ricerca in \SAP at courseLabel\ -- \SAP at cycle\ Ciclo\fi}}
-
-    \SAP at parbox[3cm]{%
-    \ifSAP at femaleauthor
-      \SAP at CandidateLabelFemale\\[2mm]
-    \else
-      \SAP at CandidateLabel\\[2mm]
-    \fi
-    \@author\\[0.75mm]
-    \SAP at IDnumberLabel\ \SAP at IDnumber}
-
     
+    {\LARGE\linespread{1.1}\selectfont\textcolor{sapred}{\@title}\par}
     
-    
-    \SAP at parbox[4.5cm]{%
-    \makebox[11.9cm][l]{%
-      \parbox[t]{5.9cm}{%
-        \ifcase\SAP at advisorcount
-          \ClassError{sapthesis}{You must specify at least one advisor in the preamble}%
-          {E.g. \protect\advisor{Prof. Name Surname}}
-        \or
-          \SAP at ThesisAdvisorLabel\\[2mm]
+    \if|\SAP at subtitle|
+        \if|\SAP at alttitle|
+            \relax
         \else
-          \SAP at ThesisAdvisorsLabel\\[2mm]
+            \vspace{1cm}
+            {\LARGE\linespread{1.1}\selectfont\textcolor{sapred}{\SAP at alttitle}\par}
         \fi
-        \the\SAP at advisortoks}
-        \hspace{1.5cm}
-        \parbox[t]{5.9cm}{%
-        \ifcase\SAP at coadvisorcount
-          \relax
-        \or
-          \ifSAP at ext\SAP at ThesisExtAdvisorLabel\else\SAP at ThesisCoAdvisorLabel\fi\\[2mm]
-        \else
-          \ifSAP at ext\SAP at ThesisExtAdvisorsLabel\else\SAP at ThesisCoAdvisorsLabel\fi\\[2mm]
-        \fi
-        \the\SAP at coadvisortoks}
-    }}
-
-    \SAP at parbox{\SAP at submitdate}
+    \else
+        \vspace{0.4cm}
+        {\large\linespread{1.1}\selectfont\textcolor{sapred}{\SAP at subtitle}\par}
+    \fi
     
-	\end{titlepage}
-\clearpage
-\SAP at composebacktitlepage
-}
+    \nointerlineskip
+    \vspace{\stretch{1}}
+    \vspace*{7mm}
+    \nointerlineskip}
+%}
 
+\nointerlineskip
+%\vspace{\stretch{1}}
 
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% Specialization maketitle
+%\fbox{%
+\SAP at parbox{%
+\textcolor{sapred}{\SAP at courseorganizerLabel\\[1mm]
+\SAP at courseLabel\ \if|\SAP at cycle|\relax\else (\SAP at cycle\ \SAP at cycleLabel)\fi}
 
-\newcommand{\SAP at maketitleSpecialization}{
+\vspace*{9mm}
 
-% Errors:
+{\bfseries\@author}\\[1mm]
+\SAP at IDnumberLabel\ \SAP at IDnumber
 
-\if|\SAP at courseorganizerLabel|\ClassError{sapthesis}{You must specify the Specialization course %
-  organizer}{Example: \protect\courseorganizer{Faculty of ...}}\fi
-\if|\SAP at courseLabel|\ClassError{sapthesis}{You must specify the %
-  course}{Example: \protect\course{Fisica}}\fi
-\if|\SAP at submitdate|\ClassError{sapthesis}{You must specify the Academic %
-  Year}{Example: \protect\submitdate{2011/2012}}\fi
-\if|\SAP at IDnumber|\ClassError{sapthesis}{You must specify your %
-  ID number (matricola)}{E.g. 123456}\fi
-\if|\SAP at copyyear|\ClassError{sapthesis}{You must specify the %
-  copyright year}{Example: \protect\copyyear{2012}}\fi
-\if|\SAP at authoremail|\ClassError{sapthesis}{You must specify the email of the author}{%
-  Example: \protect\authoremail{author at email.com}}\fi
+\vspace*{9mm}
 
-% Titlepage:
-
-	\begin{titlepage}
-	
-	\linespread{1}\selectfont
-
-    \newcommand{\SAP at parbox}[2][]{\hspace{1.72cm}\parbox[t][##1][t]{11.9cm}{##2}}
-    \parindent=0pt
-    \sffamily
-
-    \vspace*{-10mm}
-    \ifSAP at bn
-      \includegraphics[width=5cm]{sapienza-MLblack-pos}
+\makebox[11.9cm][l]{%
+  \parbox[t]{5.9cm}{%
+    \ifcase\SAP at advisorcount
+      \ClassError{sapthesis}{You must specify at least one advisor in the preamble}%
+      {E.g. \protect\advisor{Prof. Name Surname}}
+    \or
+      \SAP at ThesisAdvisorLabel\\[1mm]
     \else
-      \includegraphics[width=5cm]{sapienza-MLred-pos}
+      \SAP at ThesisAdvisorsLabel\\[1mm]
     \fi
+    \the\SAP at advisortoks}
+    \hspace{15mm}
+    \parbox[t]{5.9cm}{%
+    \ifcase\SAP at coadvisorcount
+      \relax
+    \or
+      \SAP at ThesisCoAdvisorLabel\\[1mm]
+    \else
+      \SAP at ThesisCoAdvisorsLabel\\[1mm]
+    \fi
+    \the\SAP at coadvisortoks}
+}%
 
-    \nointerlineskip
-    \vspace{\stretch{0.9}}
-    \nointerlineskip
+\ifcase\SAP at directorcount
+    \relax
+\or
+    \vspace*{9mm}
+    \SAP at ThesisDirectorLabel\\[1mm]
+    \the\SAP at directortoks
+\else
+    \vspace*{9mm}
+    \SAP at ThesisDirectorsLabel\\[1mm]
+    \the\SAP at directortoks
+\fi
 
-    \SAP at parbox{\LARGE\textcolor{sapred}{\@title}\par}
-	
-	\if|\SAP at subtitle|
-	  \relax
-	\else
-	  \vspace{0.4cm}
-	  \SAP at parbox{\linespread{1.2}\selectfont\textcolor{sapred}{\large\SAP at subtitle}\par}
-	\fi
-	
-    \vspace{\stretch{0.9}}
+}
+%}
 
-    \SAP at parbox[3cm]{%
-    \textcolor{sapred}{\SAP at courseorganizerLabel\\[2mm]
-    \ifSAP at overridecourse\SAP at courseLabel\else Corso di specializzazione in \SAP at courseLabel\fi}}
+\nointerlineskip
 
-    \SAP at parbox[3cm]{%
-    \ifSAP at femaleauthor
-      \SAP at CandidateLabelFemale\\[2mm]
-    \else
-      \SAP at CandidateLabel\\[2mm]
-    \fi
-    \@author\\[0.75mm]
-    \SAP at IDnumberLabel\ \SAP at IDnumber}
+\vfill
 
-    \SAP at parbox[4.5cm]{%
-    \makebox[11.9cm][l]{%
-      \parbox[t]{5.9cm}{%
-        \ifcase\SAP at advisorcount
-          \ClassError{sapthesis}{You must specify at least one advisor in the preamble}%
-          {E.g. \protect\advisor{Prof. Name Surname}}
-        \or
-          \SAP at ThesisAdvisorLabel\\[2mm]
-        \else
-          \SAP at ThesisAdvisorsLabel\\[2mm]
-        \fi
-        \the\SAP at advisortoks}
-        \hspace{1.5cm}
-        \parbox[t]{5.9cm}{%
-        \ifcase\SAP at directorcount
-          \relax
-        \or
-          \SAP at ThesisDirectorLabel\\[2mm]
-        \else
-          \SAP at ThesisDirectorsLabel\\[2mm]
-        \fi
-        \the\SAP at directortoks}
-    }
-    
-    \vspace{1cm}
-    
-    \makebox[11.9cm][l]{%
-          \parbox[t]{5.9cm}{%
-            \ifcase\SAP at coadvisorcount
-            \or
-              \ifSAP at ext\SAP at ThesisExtAdvisorLabel\else\SAP at ThesisCoAdvisorLabel\fi\\[2mm]
-			\else
-			  \ifSAP at ext\SAP at ThesisExtAdvisorsLabel\else\SAP at ThesisCoAdvisorsLabel\fi\\[2mm]
-            \fi
-            \the\SAP at coadvisortoks}
-        }}
 
-    \SAP at parbox{\SAP at AcademicYearLabel\ \SAP at submitdate}
-    
-	\end{titlepage}
-\clearpage
-\SAP at composebacktitlepage
+%\fbox{%
+\SAP at parbox{%
+%\ifnum\SAP at directorcount=\z@
+%    \vspace*{20mm}
+%\else
+%    \vspace*{10mm}
+%\fi
+\SAP at AcademicYearLabel\ \SAP at AcademicYear
 }
-%% Laurea and Laurea Magistrale maketitle
+%}
+\end{titlepage}
+}
 
-\newcommand{\SAP at maketitleLaurea}{
 
-% Errors:
+\newcommand{\SAP at maketitleB}{
+\begin{titlepage}
 
-\if|\SAP at courseorganizerLabel|\ClassError{sapthesis}{You must specify the degree %
-  organizer}{Example: \protect\courseorganizer{Faculty of ...}}\fi
-\if|\SAP at courseLabel|\ClassError{sapthesis}{You must specify the %
-    course}{Example: \protect\course{Fisica}}\fi
-\if|\SAP at submitdate|\ClassError{sapthesis}{You must specify the Academic %
-  Year}{Example: \protect\submitdate{2011/2012}}\fi
-\if|\SAP at IDnumber|\ClassError{sapthesis}{You must specify your %
-  ID number (matricola)}{E.g. 123456}\fi
-\if|\SAP at copyyear|\ClassError{sapthesis}{You must specify the %
-  copyright year}{Example: \protect\copyyear{2012}}\fi
-\if|\SAP at authoremail|\ClassError{sapthesis}{You must specify the email of the author}{%
-  Example: \protect\authoremail{author at email.com}}\fi
+\linespread{1}\selectfont
+\newlength{\SAP at parboxindent}
+\newlength{\SAP at parboxwidth}
+\setlength{\SAP at parboxindent}{1.38cm}
+\setlength{\SAP at parboxwidth}{\dimexpr\textwidth-\SAP at parboxindent\relax}
+\newcommand{\SAP at parbox}[2][]{\hspace{\SAP at parboxindent}%
+\parbox[t][##1][t]{\SAP at parboxwidth}{##2}}
+\parindent=0pt
+\sffamily
 
-% Titlepage:
+\vspace*{-10mm}
 
-	\begin{titlepage}
-	
-	\linespread{1}\selectfont
+\ifSAP at 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 at parbox}[2][]{\hspace{1.72cm}\parbox[t][##1][t]{11.9cm}{##2}}
-    \parindent=0pt
-    \sffamily
+\nointerlineskip
 
-    \vspace*{-10mm}
-    \ifSAP at bn
-      \includegraphics[width=5cm]{sapienza-MLblack-pos}
+%\nointerlineskip
+%\vspace{\stretch{1}}
+%\nointerlineskip
+
+%\fbox{%
+\SAP at parbox[9.3cm]{
+    \nointerlineskip
+    \vspace*{7mm}
+    \vspace{\stretch{1}}
+    \nointerlineskip
+    
+    {\Large\linespread{1.1}\selectfont\textcolor{sapred}{\@title}\par}
+    
+    \if|\SAP at subtitle|
+        \if|\SAP at alttitle|
+            \relax
+        \else
+            \vspace{7mm}
+            {\Large\linespread{1.1}\selectfont\textcolor{sapred}{\SAP at alttitle}\par}
+        \fi
     \else
-      \includegraphics[width=5cm]{sapienza-MLred-pos}
+        \vspace{0.4cm}
+        {\normalsize\linespread{1.1}\selectfont\textcolor{sapred}{\SAP at subtitle}\par}
     \fi
-
+    
     \nointerlineskip
-    \vspace{\stretch{0.9}}
-    \nointerlineskip
+    \vspace{\stretch{1}}
+    \vspace*{7mm}
+    \nointerlineskip}
+%}
 
-    \SAP at parbox{\LARGE\textcolor{sapred}{\@title}\par}
-	
-	\if|\SAP at subtitle|
-	  \relax
-	\else
-	  \vspace{0.4cm}
-	  \SAP at parbox{\linespread{1.2}\selectfont\textcolor{sapred}{\large\SAP at subtitle}\par}
-	\fi
-	
-    \vspace{\stretch{0.9}}
+\nointerlineskip
+%\vspace{\stretch{1}}
 
-    \SAP at parbox[3cm]{%
-    \textcolor{sapred}{\SAP at courseorganizerLabel\\[2mm]
-    \ifSAP at overridecourse\SAP at courseLabel\else Corso di Laurea \ifSAP at LaM Magistrale \fi in \SAP at courseLabel\fi}}
+%\fbox{%
+\SAP at parbox{%
+\textcolor{sapred}{\SAP at courseorganizerLabel\\[1mm]
+\SAP at courseLabel\ \if|\SAP at cycle|\relax\else (\SAP at cycle\ \SAP at cycleLabel)\fi}
 
-    \SAP at parbox[3cm]{%
-    \ifSAP at femaleauthor
-      \SAP at CandidateLabelFemale\\[2mm]
+\vspace*{7mm}
+
+{\bfseries\@author}\\[1mm]
+\SAP at IDnumberLabel\ \SAP at IDnumber
+
+\vspace*{7mm}
+
+\raggedright
+\makebox[0cm][l]{%
+  \parbox[t]{4cm}{%
+    \ifcase\SAP at advisorcount
+      \ClassError{sapthesis}{You must specify at least one advisor in the preamble}%
+      {E.g. \protect\advisor{Prof. Name Surname}}
+    \or
+      \SAP at ThesisAdvisorLabel\\[1mm]
     \else
-      \SAP at CandidateLabel\\[2mm]
+      \SAP at ThesisAdvisorsLabel\\[1mm]
     \fi
-    \@author\\[0.75mm]
-    \SAP at IDnumberLabel\ \SAP at IDnumber}
+    \the\SAP at advisortoks}
+    \hspace{2mm}
+    \parbox[t]{4cm}{%
+    \ifcase\SAP at coadvisorcount
+      \relax
+    \or
+      \SAP at ThesisCoAdvisorLabel\\[1mm]
+    \else
+      \SAP at ThesisCoAdvisorsLabel\\[1mm]
+    \fi
+    \the\SAP at coadvisortoks}
+}%
 
-    \SAP at parbox[4.5cm]{%
-    \makebox[11.9cm][l]{%
-      \parbox[t]{5.9cm}{%
-        \ifcase\SAP at advisorcount
-          \ClassError{sapthesis}{You must specify at least one advisor in the preamble}%
-          {E.g. \protect\advisor{Prof. Name Surname}}
-        \or
-          \SAP at ThesisAdvisorLabel\\[2mm]
-        \else
-          \SAP at ThesisAdvisorsLabel\\[2mm]
-        \fi
-        \the\SAP at advisortoks}
-        \hspace{1.5cm}
-        \parbox[t]{5.9cm}{%
-        \ifcase\SAP at coadvisorcount
-          \relax
-        \or
-          \ifSAP at ext\SAP at ThesisExtAdvisorLabel\else\SAP at ThesisCoAdvisorLabel\fi\\[2mm]
-        \else
-          \ifSAP at ext\SAP at ThesisExtAdvisorsLabel\else\SAP at ThesisCoAdvisorsLabel\fi\\[2mm]
-        \fi
-        \the\SAP at coadvisortoks}
-    }}
+\ifcase\SAP at directorcount
+    \relax
+\or
+    \vspace*{7mm}
+    \SAP at ThesisDirectorLabel\\[1mm]
+    \the\SAP at directortoks
+\else
+    \vspace*{7mm}
+    \SAP at ThesisDirectorsLabel\\[1mm]
+    \the\SAP at directortoks
+\fi
 
-    \SAP at parbox{\SAP at AcademicYearLabel\ \SAP at submitdate}
-    
-	\end{titlepage}
-\clearpage
-\SAP at composebacktitlepage
 }
+%}
 
+\nointerlineskip
 
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% Master di primo livello and
-%% Master di secondo livello maketitle
+\vfill
 
-\newcommand{\SAP at maketitleMaster}{
 
-% Errors:
+%\fbox{%
+\SAP at parbox{%
+%\ifnum\SAP at directorcount=\z@
+%    \vspace*{20mm}
+%\else
+%    \vspace*{10mm}
+%\fi
+\SAP at AcademicYearLabel\ \SAP at AcademicYear
+}
+%}
+\end{titlepage}
+}
 
-\if|\SAP at courseorganizerLabel|\ClassError{sapthesis}{You must specify the degree %
-  organizer}{Example: \protect\courseorganizer{Faculty of ...}}\fi
-\if|\SAP at courseLabel|\ClassError{sapthesis}{You must specify the %
-  course}{Example: \protect\course{Fisica}}\fi
-\if|\SAP at submitdate|\ClassError{sapthesis}{You must specify the Academic %
-  Year}{Example: \protect\submitdate{2011/2012}}\fi
-\if|\SAP at IDnumber|\ClassError{sapthesis}{You must specify your %
-  ID number (matricola)}{E.g. 123456}\fi
-\if|\SAP at copyyear|\ClassError{sapthesis}{You must specify the %
-  copyright year}{Example: \protect\copyyear{2012}}\fi
-\if|\SAP at authoremail|\ClassError{sapthesis}{You must specify the email of the author}{%
-  Example: \protect\authoremail{author at email.com}}\fi
 
-% Titlepage:
+\newcommand{\SAP at maketitleC}{
+\begin{titlepage}
 
-	\begin{titlepage}
-	
-	\linespread{1}\selectfont
+\linespread{1}\selectfont
+\newlength{\SAP at parboxindent}
+\newlength{\SAP at parboxwidth}
+\setlength{\SAP at parboxindent}{1.38cm}
+\setlength{\SAP at parboxwidth}{\dimexpr\textwidth-\SAP at parboxindent\relax}
+\newcommand{\SAP at parbox}[2][]{\hspace{\SAP at parboxindent}%
+\parbox[t][##1][t]{\SAP at parboxwidth}{##2}}
+\parindent=0pt
+\sffamily
 
-    \newcommand{\SAP at parbox}[2][]{\hspace{1.72cm}\parbox[t][##1][t]{11.9cm}{##2}}
-    \parindent=0pt
-    \sffamily
+\vspace*{-10mm}
 
-    \vspace*{-10mm}
-    \ifSAP at bn
-      \includegraphics[width=5cm]{sapienza-MLblack-pos}
-    \else
-      \includegraphics[width=5cm]{sapienza-MLred-pos}
-    \fi
+\ifSAP at 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
 
+\nointerlineskip
+
+%\nointerlineskip
+%\vspace{\stretch{1}}
+%\nointerlineskip
+
+%\fbox{%
+\SAP at parbox[11.4cm]{
     \nointerlineskip
-    \vspace{\stretch{0.9}}
+    \vspace*{7mm}
+    \vspace{\stretch{1}}
     \nointerlineskip
-
-    \SAP at parbox{\LARGE\textcolor{sapred}{\@title}\par}
-	
-	\if|\SAP at subtitle|
-	  \relax
-	\else
-	  \vspace{0.4cm}
-	  \SAP at parbox{\linespread{1.2}\selectfont\textcolor{sapred}{\large\SAP at subtitle}\par}
-	\fi
-	
-    \vspace{\stretch{0.9}}
-
-    \SAP at parbox[3cm]{%
-    \textcolor{sapred}{\SAP at courseorganizerLabel\\[2mm]
-    \ifSAP at overridecourse\SAP at courseLabel\else Master di \ifSAP at MasterP primo \fi \ifSAP at MasterS secondo \fi livello in \SAP at courseLabel\fi}}
-
-    \SAP at parbox[3cm]{%
-    \ifSAP at femaleauthor
-      \SAP at CandidateLabelFemale\\[2mm]
+    
+    {\Large\linespread{1.1}\selectfont\textcolor{sapred}{\@title}\par}
+    
+    \if|\SAP at subtitle|
+        \if|\SAP at alttitle|
+            \relax
+        \else
+            \vspace{1cm}
+            {\Large\linespread{1.1}\selectfont\textcolor{sapred}{\SAP at alttitle}\par}
+        \fi
     \else
-      \SAP at CandidateLabel\\[2mm]
+        \vspace{0.4cm}
+        {\normalsize\linespread{1.1}\selectfont\textcolor{sapred}{\SAP at subtitle}\par}
     \fi
-    \@author\\[0.75mm]
-    \SAP at IDnumberLabel\ \SAP at IDnumber}
-
-    \SAP at parbox[4.5cm]{%
-    \makebox[11.9cm][l]{%
-      \parbox[t]{5.9cm}{%
-        \ifcase\SAP at advisorcount
-          \ClassError{sapthesis}{You must specify at least one advisor in the preamble}%
-          {E.g. \protect\advisor{Prof. Name Surname}}
-        \or
-          \SAP at ThesisAdvisorLabel\\[2mm]
-        \else
-          \SAP at ThesisAdvisorsLabel\\[2mm]
-        \fi
-        \the\SAP at advisortoks}
-        \hspace{1.5cm}
-        \parbox[t]{5.9cm}{%
-        \ifcase\SAP at coadvisorcount
-          \relax
-        \or
-          \ifSAP at ext\SAP at ThesisExtAdvisorLabel\else\SAP at ThesisCoAdvisorLabel\fi\\[2mm]
-        \else
-          \ifSAP at ext\SAP at ThesisExtAdvisorsLabel\else\SAP at ThesisCoAdvisorsLabel\fi\\[2mm]
-        \fi
-        \the\SAP at coadvisortoks}
-    }}
-
-    \SAP at parbox{\SAP at AcademicYearLabel\ \SAP at submitdate}
     
-	\end{titlepage}
-\clearpage
-\SAP at composebacktitlepage
-}
+    \nointerlineskip
+    \vspace{\stretch{1}}
+    \vspace*{7mm}
+    \nointerlineskip}
+%}
 
+\nointerlineskip
+%\vspace{\stretch{1}}
 
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% Tirocinio Formativo Attivo (TFA) maketitle
+%\fbox{%
+\SAP at parbox{%
+\textcolor{sapred}{\SAP at courseorganizerLabel\\[1mm]
+\SAP at courseLabel\ \if|\SAP at cycle|\relax\else (\SAP at cycle\ \SAP at cycleLabel)\fi}
 
-\newcommand{\SAP at maketitleTFA}{
+\vspace*{7mm}
 
-% Errors:
+{\bfseries\@author}\\[1mm]
+\SAP at IDnumberLabel\ \SAP at IDnumber
 
-\if|\SAP at courseorganizerLabel|\ClassError{sapthesis}{You must specify the degree %
-  organizer}{Example: \protect\courseorganizer{Faculty of ...}}\fi
-\if|\SAP at submitdate|\ClassError{sapthesis}{You must specify the Academic %
-  Year}{Example: \protect\submitdate{2011/2012}}\fi
-\if|\SAP at IDnumber|\ClassError{sapthesis}{You must specify your %
-  ID number (matricola)}{E.g. 123456}\fi
-\if|\SAP at copyyear|\ClassError{sapthesis}{You must specify the %
-  copyright year}{Example: \protect\copyyear{2012}}\fi
-\if|\SAP at authoremail|\ClassError{sapthesis}{You must specify the email of the author}{%
-  Example: \protect\authoremail{author at email.com}}\fi
+\vspace*{7mm}
 
-% Titlepage:
-
-	\begin{titlepage}
-	
-	\linespread{1}\selectfont
-
-    \newcommand{\SAP at parbox}[2][]{\hspace{1.72cm}\parbox[t][##1][t]{11.9cm}{##2}}
-    \parindent=0pt
-    \sffamily
-
-    \vspace*{-10mm}
-    \ifSAP at bn
-      \includegraphics[width=5cm]{sapienza-MLblack-pos}
+\raggedright
+\makebox[0cm][l]{%
+  \parbox[t]{5cm}{%
+    \ifcase\SAP at advisorcount
+      \ClassError{sapthesis}{You must specify at least one advisor in the preamble}%
+      {E.g. \protect\advisor{Prof. Name Surname}}
+    \or
+      \SAP at ThesisAdvisorLabel\\[1mm]
     \else
-      \includegraphics[width=5cm]{sapienza-MLred-pos}
+      \SAP at ThesisAdvisorsLabel\\[1mm]
     \fi
+    \the\SAP at advisortoks}
+    \hspace{2mm}
+    \parbox[t]{5cm}{%
+    \ifcase\SAP at coadvisorcount
+      \relax
+    \or
+      \SAP at ThesisCoAdvisorLabel\\[1mm]
+    \else
+      \SAP at ThesisCoAdvisorsLabel\\[1mm]
+    \fi
+    \the\SAP at coadvisortoks}
+}%
 
-    \nointerlineskip
-    \vspace{\stretch{0.9}}
-    \nointerlineskip
+\ifcase\SAP at directorcount
+    \relax
+\or
+    \vspace*{7mm}
+    \SAP at ThesisDirectorLabel\\[1mm]
+    \the\SAP at directortoks
+\else
+    \vspace*{7mm}
+    \SAP at ThesisDirectorsLabel\\[1mm]
+    \the\SAP at directortoks
+\fi
 
-    \SAP at parbox{\LARGE\textcolor{sapred}{\@title}\par}
-	
-	\if|\SAP at subtitle|
-	  \relax
-	\else
-	  \vspace{0.4cm}
-	  \SAP at parbox{\linespread{1.2}\selectfont\textcolor{sapred}{\large\SAP at subtitle}\par}
-	\fi
-	
-    \vspace{\stretch{0.9}}
+}
+%}
 
-    \SAP at parbox[3cm]{%
-    \textcolor{sapred}{\SAP at courseorganizerLabel\\[2mm]
-    Tirocinio Formativo Attivo\\[2mm]
-    \ifSAP at overridecourse\SAP at courseLabel\else Classe \SAP at courseLabel\fi}}
+\nointerlineskip
 
-    \SAP at parbox[3cm]{%
-    \ifSAP at femaleauthor
-      \SAP at CandidateLabelFemale\\[2mm]
-    \else
-      \SAP at CandidateLabel\\[2mm]
-    \fi
-    \@author\\[0.75mm]
-    \SAP at IDnumberLabel\ \SAP at IDnumber}
+\vfill
 
-    \SAP at parbox[4.5cm]{%
-    \makebox[11.9cm][l]{%
-      \parbox[t]{5.9cm}{%
-        \ifcase\SAP at advisorcount
-          \ClassError{sapthesis}{You must specify at least one advisor in the preamble}%
-          {E.g. \protect\advisor{Prof. Name Surname}}
-        \or
-          \SAP at ThesisAdvisorLabel\\[2mm]
-        \else
-          \SAP at ThesisAdvisorsLabel\\[2mm]
-        \fi
-        \the\SAP at advisortoks}
-        \hspace{1.5cm}
-        \parbox[t]{5.9cm}{%
-        \ifcase\SAP at coadvisorcount
-          \relax
-        \or
-          \ifSAP at ext\SAP at ThesisExtAdvisorLabel\else\SAP at ThesisCoAdvisorLabel\fi\\[2mm]
-        \else
-          \ifSAP at ext\SAP at ThesisExtAdvisorsLabel\else\SAP at ThesisCoAdvisorsLabel\fi\\[2mm]
-        \fi
-        \the\SAP at coadvisortoks}
-    }
-    
-    \vspace{1cm}
-    
-    \makebox[11.9cm][l]{%
-          \parbox[t]{5.9cm}{%
-            \ifcase\SAP at tutorcount
-              \ClassError{sapthesis}{You must specify at least one tutor in the preamble}%
-              {E.g. \protect\tutor{Prof. Name Surname}}
-            \or
-              \SAP at ThesisTutorLabel\\[2mm]
-            \else
-              \SAP at ThesisTutorsLabel\\[2mm]
-            \fi
-            \the\SAP at tutortoks}
-            \hspace{1.5cm}
-            \parbox[t]{5.9cm}{%
-            \ifcase\SAP at tutorcoordcount
-              \ClassError{sapthesis}{You must specify at least one tutor coordinatore in the preamble}%
-              {E.g. \protect\tutorcoord{Prof. Name Surname}}
-            \or
-              \SAP at ThesisTutorCoordLabel\\[2mm]
-            \else
-              \SAP at ThesisTutorCoordsLabel\\[2mm]
-            \fi
-            \the\SAP at tutorcoordtoks}
-        }}
 
-    \SAP at parbox{\SAP at AcademicYearLabel\ \SAP at submitdate}
-    
-	\end{titlepage}
-\clearpage
-\SAP at composebacktitlepage
+%\fbox{%
+\SAP at parbox{%
+%\ifnum\SAP at directorcount=\z@
+%    \vspace*{20mm}
+%\else
+%    \vspace*{10mm}
+%\fi
+\SAP at AcademicYearLabel\ \SAP at AcademicYear
 }
+%}
+\end{titlepage}
+}
 
 
 
@@ -893,12 +779,8 @@
 
 \null
 \vspace*{1cm}
-\ifSAP at TFA
-\SAP at TFAschoolHeadLabel\\[2mm]
-\SAP at schoolname\\[0.1cm]
-\SAP at schooladdress\\[0.1cm]
-\@ifundefined{href}{\SAP at schoolwebsite}{\href{\SAP at schoolwebsite}{\SAP at schoolwebsite}}\\[0.1cm]
-\SAP at TFAschoolPrincipalLabel: \SAP at schoolprincipal
+\if|\SAP at extrainfo|\relax\else
+\SAP at extrainfo
 \vspace*{1.5cm}
 \fi
 
@@ -938,27 +820,10 @@
 
 \small
 \textbf{\def\\{}\def\newline{}\@title} \\[0.75mm]
-\ifSAP at PhD\SAP at PhDthesistype\fi
-\ifSAP at Specialization\SAP at Specializationthesistype\fi
-\ifSAP at LaM\SAP at LaMthesistype\fi
-\ifSAP at Lau\SAP at Lauthesistype\fi
-\ifSAP at MasterS\SAP at MasterSthesistype\fi
-\ifSAP at MasterP\SAP at MasterPthesistype\fi
-\ifSAP at TFA\SAP at TFAthesistype\fi
-. \SAP at sapienzaname \\[0.75mm]
+\if|\SAP at thesistype|\relax\else\SAP at thesistype.\fi\ \SAP at sapienzaname \\[0.75mm]
 \if|\SAP at ISBN|\relax\else ISBN: \SAP at ISBN\fi\\[0.75mm]
 \if|\SAP at copyrightstatement|\copyright\ \SAP at copyyear\ \@author. \SAP at allRightsReservedLabel\else\SAP at 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 at sapthesisInformationLabel.\\
 
 \if|\SAP at versiondate|
@@ -982,13 +847,34 @@
 %% Choosing the right \maketitle according to the thesis type %%%%%%%
 
 \renewcommand{\maketitle}{%
-  \ifSAP at PhD\SAP at maketitlePhD\fi
-  \ifSAP at Specialization\SAP at maketitleSpecialization\fi
-  \ifSAP at LaM\SAP at maketitleLaurea\fi
-  \ifSAP at Lau\SAP at maketitleLaurea\fi
-  \ifSAP at MasterS\SAP at maketitleMaster\fi
-  \ifSAP at MasterP\SAP at maketitleMaster\fi
-  \ifSAP at TFA\SAP at maketitleTFA\fi}
+% Errors:
+\if|\SAP at courseorganizerLabel|\ClassError{sapthesis}{You must specify the course %
+  organizer}{Example: \protect\courseorganizer{Scuola di dottorato di ...}}\fi
+\if|\SAP at courseLabel|\ClassError{sapthesis}{You must specify the %
+  course}{Example: \protect\course{Corso di Laurea Magistrale in Fisica}}\fi
+\if|\SAP at 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 at copyyear|\ClassError{sapthesis}{You must specify the %
+  copyright year}{Example: \protect\copyyear{2012}}\fi
+\if|\SAP at IDnumber|\ClassError{sapthesis}{You must specify your %
+  ID number (matricola)}{Example: \protect\IDnumber{123456}}\fi
+\if|\SAP at authoremail|\ClassError{sapthesis}{You must specify the email of the author}{%
+  Example: \protect\authoremail{author at email.com}}\fi
+%titlepage
+\def\SAP at layoutname{a4paper}
+\ifx\SAP at layout\SAP at layoutname
+\SAP at maketitleA
+\fi
+\def\SAP at layoutname{a5paper}
+\ifx\SAP at layout\SAP at layoutname
+\SAP at maketitleB
+\fi
+\def\SAP at layoutname{b5paper}
+\ifx\SAP at layout\SAP at layoutname
+\SAP at maketitleC
+\fi
+\clearpage
+\SAP at composebacktitlepage}
 
 
 
@@ -1025,37 +911,23 @@
   \newcommand{\SAP at CandidateLabel}{Candidate}
   \newcommand{\SAP at CandidateLabelFemale}{Candidate}
   \newcommand{\SAP at IDnumberLabel}{ID number}
-  \newcommand{\SAP at ThesisAdvisorLabel}{Thesis Advisor}
-  \newcommand{\SAP at ThesisAdvisorsLabel}{Thesis Advisors}
-  \newcommand{\SAP at ThesisCoAdvisorLabel}{Co-Advisor}
-  \newcommand{\SAP at ThesisCoAdvisorsLabel}{Co-Advisors}
-  \newcommand{\SAP at ThesisExtAdvisorLabel}{External Advisor}
-  \newcommand{\SAP at ThesisExtAdvisorsLabel}{External Advisors}
-  \newcommand{\SAP at ThesisDirectorLabel}{Director}
-  \newcommand{\SAP at ThesisDirectorsLabel}{Directors}
-  \newcommand{\SAP at ThesisTutorLabel}{Trainee's Tutor}
-  \newcommand{\SAP at ThesisTutorsLabel}{Trainee's Tutors}
-  \newcommand{\SAP at ThesisTutorCoordLabel}{Coordinating Tutor}
-  \newcommand{\SAP at ThesisTutorCoordsLabel}{Coordinating Tutors}
-  \newcommand{\SAP at TFAschoolHeadLabel}{Training done at:}
-  \newcommand{\SAP at TFAschoolPrincipalLabel}{Principal}
+  \newcommand{\SAP at ThesisAdvisorLabel}{Advisor}
+  \newcommand{\SAP at ThesisAdvisorsLabel}{Advisors}
+  \providecommand{\SAP at ThesisCoAdvisorLabel}{Co-Advisor}
+  \providecommand{\SAP at ThesisCoAdvisorsLabel}{Co-Advisors}
+  \providecommand{\SAP at ThesisDirectorLabel}{Director}
+  \providecommand{\SAP at ThesisDirectorsLabel}{Directors}
+  \newcommand{\SAP at cycleLabel}{cycle}
+  \newcommand{\SAP at AcademicYearLabel}{Academic Year}
   \newcommand{\SAP at ThesisNotDefensedLabel}{Thesis not yet defended}
   \newcommand{\SAP at ThesisDefensedLabelA}{Thesis defended on}
   \newcommand{\SAP at ThesisDefensedLabelB}{in front of a Board of Examiners composed by}
   \newcommand{\SAP at chairman}{chairman}
-  \newcommand{\SAP at PhDthesistype}{Ph.D. thesis}
-  \newcommand{\SAP at Specializationthesistype}{Specialization thesis}
-  \newcommand{\SAP at LaMthesistype}{Master's thesis}
-  \newcommand{\SAP at Lauthesistype}{Bachelor's thesis}
-  \newcommand{\SAP at MasterPthesistype}{First level master's thesis}
-  \newcommand{\SAP at MasterSthesistype}{Second level master's thesis}
-  \newcommand{\SAP at TFAthesistype}{TFA report}
-  \newcommand{\SAP at sapienzaname}{Sapienza -- University of Rome}
+  \newcommand{\SAP at sapienzaname}{Sapienza University of Rome}
   \newcommand{\SAP at versionLabel}{Version}
   \newcommand{\SAP at websiteLabel}{Website}
   \newcommand{\SAP at AcknowledgmentsLabel}{Acknowledgments}
   \newcommand{\SAP at AbstractLabel}{Abstract}
-  \newcommand{\SAP at AcademicYearLabel}{Academic Year}
   \newcommand{\SAP at allRightsReservedLabel}{All rights reserved}
   \newcommand{\SAP at sapthesisInformationLabel}{This thesis has been typeset by \LaTeX\ and the Sapthesis class}
   \newcommand{\SAP at emailLabel}{Author's email}}
@@ -1066,35 +938,21 @@
   \newcommand{\SAP at IDnumberLabel}{Matricola}
   \newcommand{\SAP at ThesisAdvisorLabel}{Relatore}
   \newcommand{\SAP at ThesisAdvisorsLabel}{Relatori}
-  \newcommand{\SAP at ThesisCoAdvisorLabel}{Correlatore}
-  \newcommand{\SAP at ThesisCoAdvisorsLabel}{Correlatori}
-  \newcommand{\SAP at ThesisExtAdvisorLabel}{Relatore esterno}
-  \newcommand{\SAP at ThesisExtAdvisorsLabel}{Relatori esterni}
-  \newcommand{\SAP at ThesisDirectorLabel}{Direttore}
-  \newcommand{\SAP at ThesisDirectorsLabel}{Direttori}
-  \newcommand{\SAP at ThesisTutorLabel}{Tutor del Tirocinante}
-  \newcommand{\SAP at ThesisTutorsLabel}{Tutor del Tirocinante}
-  \newcommand{\SAP at ThesisTutorCoordLabel}{Tutor Coordinatore}
-  \newcommand{\SAP at ThesisTutorCoordsLabel}{Tutor Coordinatori}
-  \newcommand{\SAP at TFAschoolHeadLabel}{Tirocinio svolto presso:}
-  \newcommand{\SAP at TFAschoolPrincipalLabel}{Dirigente scolastico}
+  \providecommand{\SAP at ThesisCoAdvisorLabel}{Correlatore}
+  \providecommand{\SAP at ThesisCoAdvisorsLabel}{Correlatori}
+  \providecommand{\SAP at ThesisDirectorLabel}{Direttore}
+  \providecommand{\SAP at ThesisDirectorsLabel}{Direttori}
+  \newcommand{\SAP at cycleLabel}{ciclo}
+  \newcommand{\SAP at AcademicYearLabel}{Anno Accademico}
   \newcommand{\SAP at ThesisNotDefensedLabel}{Tesi non ancora discussa}
   \newcommand{\SAP at ThesisDefensedLabelA}{Tesi discussa il}
   \newcommand{\SAP at ThesisDefensedLabelB}{di fronte a una commissione esaminatrice composta da}
   \newcommand{\SAP at chairman}{presidente}
-  \newcommand{\SAP at PhDthesistype}{Tesi di dottorato}
-  \newcommand{\SAP at Specializationthesistype}{Tesi di Specializzazione}
-  \newcommand{\SAP at LaMthesistype}{Tesi di Laurea Magistrale}
-  \newcommand{\SAP at Lauthesistype}{Tesi di Laurea}
-  \newcommand{\SAP at MasterPthesistype}{Tesi di Master di primo livello}
-  \newcommand{\SAP at MasterSthesistype}{Tesi di Master di secondo livello}
-  \newcommand{\SAP at TFAthesistype}{TFA. Relazione di tirocinio}
-  \newcommand{\SAP at sapienzaname}{Sapienza -- Universit\`a di Roma}
+  \newcommand{\SAP at sapienzaname}{Sapienza Universit\`a di Roma}
   \newcommand{\SAP at versionLabel}{Versione}
   \newcommand{\SAP at websiteLabel}{Sito web}
   \newcommand{\SAP at AcknowledgmentsLabel}{Ringraziamenti}
   \newcommand{\SAP at AbstractLabel}{Sommario}
-  \newcommand{\SAP at AcademicYearLabel}{Anno Accademico}
   \newcommand{\SAP at allRightsReservedLabel}{Tutti i diritti riservati}
   \newcommand{\SAP at sapthesisInformationLabel}{Questa tesi \`e stata composta con \LaTeX\ e la classe Sapthesis}
   \newcommand{\SAP at emailLabel}{Email dell'autore}}
@@ -1176,8 +1034,8 @@
        \else 
          \@tempswatrue 
        \fi 
-       \toks@=\expandafter{\the\expandafter\toks@\expandafter\partial\der at var}}%
-    \frac{\partial\ifnum\count@=\@ne\else^{\number\count@}\fi#1}{\the\toks@}% 
+       \toks@=\expandafter{\the\expandafter\toks@\expandafter\di\der at var}}%
+    \frac{\di\ifnum\count@=\@ne\else^{\number\count@}\fi#1}{\the\toks@}% 
     \endgroup} 
   \def\check at var{\@ifstar{\mult at var}{\one at var}} 
   \def\mult at var#1#2\@nil{\def\der at var{#2^{#1}}\def\der at exp{#1}} 



More information about the tex-live-commits mailing list.