summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/sapthesis
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-01-08 21:34:14 +0000
committerKarl Berry <karl@freefriends.org>2022-01-08 21:34:14 +0000
commit4674b6b4c73f8fc8cbbcf07ddf24956d2eb16d80 (patch)
tree3b4e1dc1d54631c202e2d310e5316dc31c18b6f0 /Master/texmf-dist/tex/latex/sapthesis
parentec5f4af9bdabc124bbe09abfefdb38c50f2aa823 (diff)
sapthesis (8jan22)
git-svn-id: svn://tug.org/texlive/trunk@61534 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/sapthesis')
-rw-r--r--Master/texmf-dist/tex/latex/sapthesis/sapienza-MLblack-pos.pdfbin16817 -> 0 bytes
-rw-r--r--Master/texmf-dist/tex/latex/sapthesis/sapienza-MLred-pos.pdfbin16467 -> 0 bytes
-rw-r--r--Master/texmf-dist/tex/latex/sapthesis/sapthesis.cls1152
3 files changed, 505 insertions, 647 deletions
diff --git a/Master/texmf-dist/tex/latex/sapthesis/sapienza-MLblack-pos.pdf b/Master/texmf-dist/tex/latex/sapthesis/sapienza-MLblack-pos.pdf
deleted file mode 100644
index f8b64b193ec..00000000000
--- a/Master/texmf-dist/tex/latex/sapthesis/sapienza-MLblack-pos.pdf
+++ /dev/null
Binary files differ
diff --git a/Master/texmf-dist/tex/latex/sapthesis/sapienza-MLred-pos.pdf b/Master/texmf-dist/tex/latex/sapthesis/sapienza-MLred-pos.pdf
deleted file mode 100644
index 348c7c9c09b..00000000000
--- a/Master/texmf-dist/tex/latex/sapthesis/sapienza-MLred-pos.pdf
+++ /dev/null
Binary files differ
diff --git a/Master/texmf-dist/tex/latex/sapthesis/sapthesis.cls b/Master/texmf-dist/tex/latex/sapthesis/sapthesis.cls
index d420c4a6617..c1e330aff30 100644
--- a/Master/texmf-dist/tex/latex/sapthesis/sapthesis.cls
+++ b/Master/texmf-dist/tex/latex/sapthesis/sapthesis.cls
@@ -1,12 +1,12 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% sapthesis.cls %%
-%% version 4.1 %%
-%% 2018-08-07 %%
+%% version 5.0 %%
+%% date: see below %%
%% author: Francesco Biccari %%
%% contact: biccari@gmail.com %%
%% %%
%% This file is the LaTeX class for the thesis style %%
-%% of the "Sapienza -- University of Rome" %%
+%% of the "Sapienza University of Rome" %%
%% %%
%% see README for license information and installation %%
%% see sapthesis-doc.pdf for usage %%
@@ -20,9 +20,8 @@
\NeedsTeXFormat{LaTeX2e}[2009/01/01]
\ProvidesClass{sapthesis}%
-[2018/08/07 Sapienza - University of Rome thesis class]
+[2022/01/01 Sapienza University of Rome thesis class]
-\def\SAP@classVersion{4.1}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Options %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -32,72 +31,50 @@
\newif\ifSAP@nodefaultfont \SAP@nodefaultfontfalse
\newif\ifSAP@romandiff \SAP@romandifffalse
\newif\ifSAP@customlanguage \SAP@customlanguagefalse
-\newif\ifSAP@bn \SAP@bnfalse
-\newif\ifSAP@PhD \SAP@PhDfalse
-\newif\ifSAP@Specialization \SAP@Specializationfalse
-\newif\ifSAP@MasterP \SAP@MasterPfalse
-\newif\ifSAP@MasterS \SAP@MasterSfalse
-\newif\ifSAP@LaM \SAP@LaMfalse
-\newif\ifSAP@Lau \SAP@Laufalse
-\newif\ifSAP@TFA \SAP@TFAfalse
\newif\ifSAP@noexaminfo \SAP@noexaminfofalse
\newif\ifSAP@femaleauthor \SAP@femaleauthorfalse
-\newif\ifSAP@overridecourse \SAP@overridecoursefalse
+\def\SAP@paper{a4paper}
+\def\SAP@layout{a4paper}
+\def\SAP@fontsize{11pt}
\newcommand{\SAP@customlanguage}{}
-
-\define@key[sap]{}{noexaminfo}[]{\SAP@noexaminfotrue}
-\define@key[sap]{}{fem}[]{\SAP@femaleauthortrue}
-\define@key[sap]{}{nodefaultfont}[]{\SAP@nodefaultfonttrue}
-\define@key[sap]{}{romandiff}[]{\SAP@romandifftrue}
\define@key[sap]{}{italian}[]{\SAP@customlanguagetrue
\renewcommand{\SAP@customlanguage}{\SAP@italian}}
\define@key[sap]{}{english}[]{\SAP@customlanguagetrue
\renewcommand{\SAP@customlanguage}{\SAP@english}}
-\define@key[sap]{}{bn}[]{\SAP@bntrue
- \PassOptionsToPackage{monochrome}{color}
- \PassOptionsToPackage{monochrome}{xcolor}}
-\define@key[sap]{}{PhD}[]{\SAP@PhDtrue}
-\define@key[sap]{}{Specialization}[]{\SAP@Specializationtrue}
-\define@key[sap]{}{LaM}[]{\SAP@LaMtrue}
-\define@key[sap]{}{Lau}[]{\SAP@Lautrue}
-\define@key[sap]{}{TFA}[]{\SAP@TFAtrue}
-\define@key[sap]{}{MasterP}[]{\SAP@MasterPtrue\SAP@MasterPtrue}
-\define@key[sap]{}{MasterS}[]{\SAP@MasterStrue\SAP@MasterStrue}
+\define@key[sap]{}{noexaminfo}[]{\SAP@noexaminfotrue}
+\define@key[sap]{}{fem}[]{\SAP@femaleauthortrue}
+\define@key[sap]{}{nodefaultfont}[]{\SAP@nodefaultfonttrue}
+\define@key[sap]{}{romandiff}[]{\SAP@romandifftrue}
\define@key[sap]{}{binding}[0pt]{\setlength{\SAP@binding}{#1}}
-\define@key[sap]{}{draft}[]{\PassOptionsToClass{draft}{book}}
+\define@key[sap]{}{draft}[]{%
+\PassOptionsToClass{draft}{book}%
+%\PassOptionsToPackage{showframe}{geometry}
+}
\define@key[sap]{}{oneside}[]{\PassOptionsToClass{oneside}{book}}
\define@key[sap]{}{twoside}[]{}
+\define@key[sap]{}{a4paper}[]{\def\SAP@paper{a4paper}}
+\define@key[sap]{}{a5paper}[]{%
+\def\SAP@paper{a5paper}\def\SAP@layout{a5paper}\def\SAP@fontsize{10pt}}
+\define@key[sap]{}{b5paper}[]{%
+\def\SAP@paper{b5paper}\def\SAP@layout{b5paper}\def\SAP@fontsize{10pt}}
+\define@choicekey[sap]{}{layout}[]{a4paper,a5paper,b5paper}[]{%
+\def\SAP@layout{#1}\def\SAP@fontsize{10pt}}
\DeclareOptionX*{\ClassError{sapthesis}{Option '\CurrentOption'%
\MessageBreak is not valid}{Remove '\CurrentOption' %
from class options}}
\ProcessOptionsX[sap]<>
-\LoadClass[a4paper,11pt]{book}
-
-
-\ifSAP@PhD\relax\else
- \ifSAP@Specialization\relax\else
- \ifSAP@LaM\relax\else
- \ifSAP@Lau\relax\else
- \ifSAP@MasterP\relax\else
- \ifSAP@MasterS\relax\else
- \ifSAP@TFA\relax\else
- \ClassError{sapthesis}{You must specify the PhD, LaM, Lau, MasterP, %
- MasterS, Specialization or TFA option}{}
- \fi
- \fi
- \fi
- \fi
- \fi
- \fi
-\fi
-
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Page layout %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\RequirePackage[a4paper]{geometry}
+\LoadClass[\SAP@paper,\SAP@fontsize]{book}
+\RequirePackage[\SAP@paper]{geometry}
+
+% A4
+\def\SAP@layoutname{a4paper}
+\ifx\SAP@layout\SAP@layoutname %
\geometry{textwidth=396pt,
textheight=641pt,
marginparsep=12pt,
@@ -106,8 +83,43 @@
includehead,
marginparwidth=72pt,
heightrounded}
+\if@twoside\geometry{hmarginratio=55:89}\fi
+\fi
+% A5
+\def\SAP@layoutname{a5paper}
+\ifx\SAP@layout\SAP@layoutname %
+\geometry{textwidth=300pt,
+ textheight=485pt,
+ marginparsep=12pt,
+ bindingoffset=\SAP@binding,
+ vmarginratio=55:89,
+ includehead,
+ marginparwidth=42pt,
+ heightrounded}
+\if@twoside\geometry{hmarginratio=55:89}\fi
+\def\SAP@papername{a4paper}
+\ifx\SAP@paper\SAP@papername%
+\geometry{layout=\SAP@layout,layouthoffset=2cm,layoutvoffset=2cm,showcrop}\fi
+\fi
+
+% B5
+\def\SAP@layoutname{b5paper}
+\ifx\SAP@layout\SAP@layoutname %
+\geometry{textwidth=340pt,
+ textheight=550pt,
+ marginparsep=12pt,
+ bindingoffset=\SAP@binding,
+ vmarginratio=55:89,
+ includehead,
+ marginparwidth=42pt,
+ heightrounded}
\if@twoside\geometry{hmarginratio=55:89}\fi
+\def\SAP@papername{a4paper}
+\ifx\SAP@paper\SAP@papername%
+\geometry{layout=\SAP@layout,layouthoffset=2cm,layoutvoffset=2cm,showcrop}\fi
+\fi
+
@@ -116,7 +128,7 @@
%% Some settings%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\RequirePackage{ifxetex}
\ifxetex
- \RequirePackage{xltxtra}
+ \RequirePackage{fontspec}
\else
\ifSAP@nodefaultfont\relax\else
\RequirePackage[T1]{fontenc}
@@ -161,7 +173,7 @@
\renewcommand{\headrulewidth}{0.4pt}
\renewcommand{\footrulewidth}{0pt}}
-%% ri-definition of the plain style (first page of the chapters)
+%% re-definition of the plain style (first page of the chapters)
\fancypagestyle{plain}{%
\renewcommand{\headrulewidth}{0pt}
\fancyhf{}
@@ -177,28 +189,21 @@
\g@addto@macro\mainmatter{\pagestyle{SAP@mainstyle}}
% fancy marginnote
-
-% commands to redefine the marginpar command
-% maybe in future I will remove the mnote command?
-%\def \@marginparreset {%
-% \reset@font
-% \footnotesize
-% \itshape
-% \@setminipage
-%}
-%\long\def\@xmpar[#1]#2{%
-% \@savemarbox\@marbox{\raggedleft #1}%
-% \@savemarbox\@currbox{\raggedright #2}%
-% \@xympar}
-%\long\def\@ympar#1{%
-% \@savemarbox\@marbox{\raggedleft #1}%
-% \@savemarbox\@currbox{\raggedright #1}%
-% \@xympar}
-%
-% simpler version which cannot redefine marginpar. A new command
-% (mnote) is needed
-\g@addto@macro\@marginparreset{\footnotesize\itshape}
-\newcommand{\mnote}[1]{\marginpar[\raggedleft #1]{\raggedright #1}}
+% redefine the marginpar command
+\def \@marginparreset {%
+ \reset@font
+ \small
+ \itshape
+ \@setminipage
+}
+\long\def\@xmpar[#1]#2{%
+ \@savemarbox\@marbox{\raggedleft #1}%
+ \@savemarbox\@currbox{\raggedright #2}%
+ \@xympar}
+\long\def\@ympar#1{%
+ \@savemarbox\@marbox{\raggedleft #1}%
+ \@savemarbox\@currbox{\raggedright #1}%
+ \@xympar}
@@ -216,15 +221,24 @@
%% GENERAL COMMANDS
+% logo
+\newif\ifSAP@sapienzalogo \SAP@sapienzalogofalse
+\IfFileExists{sapienzalogo.pdf}{\SAP@sapienzalogotrue}{%
+\ClassWarningNoLine{sapthesis}{Logo not found! You have to download it
+manually. See the documentation or just the frontispiece.}
+\RequirePackage{hyperref}}
+
+
+
\def\SAP@subtitle{}
+\def\SAP@alttitle{}
\def\SAP@courseorganizerLabel{}
\def\SAP@courseLabel{}
\newcommand{\subtitle}[1]{\def\SAP@subtitle{#1}}
+\newcommand{\alttitle}[1]{\def\SAP@alttitle{#1}}
\newcommand{\courseorganizer}[1]{\def\SAP@courseorganizerLabel{#1}}
-\newcommand{\course}[2][]{%
- \def\SAP@courseLabel{#2}
- \ifstrequal{#1}{override}{\SAP@overridecoursetrue}{}}
+\newcommand{\course}[1]{\def\SAP@courseLabel{#1}}
\def\SAP@copyyear{}
\newcommand{\copyyear}[1]{\def\SAP@copyyear{#1}}
@@ -233,7 +247,7 @@
\newcommand{\cycle}[1]{\def\SAP@cycle{#1}}
\def\SAP@submitdate{}
-\newcommand{\submitdate}[1]{\def\SAP@submitdate{#1}}
+\newcommand{\submitdate}[1]{\def\SAP@AcademicYear{#1}}
\let\AcademicYear\submitdate
\def\SAP@IDnumber{}
@@ -246,24 +260,28 @@
\ifnum\SAP@advisorcount=\z@
\SAP@advisortoks={#1}%
\else
- \SAP@advisortoks=\expandafter{\the\SAP@advisortoks\\[0.75mm]#1}%
+ \SAP@advisortoks=\expandafter{\the\SAP@advisortoks\\[1mm]#1}%
\fi
\advance\SAP@advisorcount\@ne}
+\newcommand{\customadvisorlabel}[1]{%
+ \newcommand{\SAP@ThesisAdvisorLabel}{#1}
+ \newcommand{\SAP@ThesisAdvisorsLabel}{#1}}
+
%% Co-Advisors or External Advisor
\newcount\SAP@coadvisorcount
\newtoks\SAP@coadvisortoks
-\newif\ifSAP@ext \SAP@extfalse
-\newcommand{\coadvisor}[2][]{%
+\newcommand{\coadvisor}[1]{%
\ifnum\SAP@coadvisorcount=\z@
- \SAP@coadvisortoks={#2}%
+ \SAP@coadvisortoks={#1}%
\else
- \SAP@coadvisortoks=\expandafter{\the\SAP@coadvisortoks\\[0.75mm]#2}%
+ \SAP@coadvisortoks=\expandafter{\the\SAP@coadvisortoks\\[1mm]#1}%
\fi
- \advance\SAP@coadvisorcount\@ne
- \ifstrequal{#1}{ext}{\SAP@exttrue}{}}
-
+ \advance\SAP@coadvisorcount\@ne}
+\newcommand{\customcoadvisorlabel}[1]{%
+ \newcommand{\SAP@ThesisCoAdvisorLabel}{#1}
+ \newcommand{\SAP@ThesisCoAdvisorsLabel}{#1}}
%% Reviewers
\def\SAP@ReviewerLabel{}
@@ -275,7 +293,7 @@
\ifnum\SAP@reviewercount=\z@
\SAP@reviewertoks={#1}%
\else
- \SAP@reviewertoks=\expandafter{\the\SAP@reviewertoks\\[0.75mm]#1}%
+ \SAP@reviewertoks=\expandafter{\the\SAP@reviewertoks\\[1mm]#1}%
\fi
\advance\SAP@reviewercount\@ne}
@@ -292,27 +310,9 @@
\fi
\advance\SAP@directorcount\@ne}
-%% Tutor (TFA only)
-\newcount\SAP@tutorcount
-\newtoks\SAP@tutortoks
-\newcommand{\tutor}[1]{%
- \ifnum\SAP@tutorcount=\z@
- \SAP@tutortoks={#1}%
- \else
- \SAP@tutortoks=\expandafter{\the\SAP@tutortoks\\[0.75mm]#1}%
- \fi
- \advance\SAP@tutorcount\@ne}
-
-%% Tutor Coordinatori (TFA only)
-\newcount\SAP@tutorcoordcount
-\newtoks\SAP@tutorcoordtoks
-\newcommand{\tutorcoord}[1]{%
- \ifnum\SAP@tutorcoordcount=\z@
- \SAP@tutorcoordtoks={#1}%
- \else
- \SAP@tutorcoordtoks=\expandafter{\the\SAP@tutorcoordtoks\\[0.75mm]#1}%
- \fi
- \advance\SAP@tutorcoordcount\@ne}
+\newcommand{\customdirectorlabel}[1]{%
+ \newcommand{\SAP@ThesisDirectorLabel}{#1}
+ \newcommand{\SAP@ThesisDirectorsLabel}{#1}}
%% Examiners
\newcount\SAP@examinercount
@@ -328,6 +328,9 @@
\def\SAP@examdate{}
\newcommand{\examdate}[1]{\def\SAP@examdate{#1}}
+\def\SAP@thesistype{}
+\newcommand{\thesistype}[1]{\def\SAP@thesistype{#1}}
+
\def\SAP@versiondate{}
\newcommand{\versiondate}[1]{\def\SAP@versiondate{#1}}
@@ -343,542 +346,425 @@
\def\SAP@copyrightstatement{}
\newcommand{\copyrightstatement}[1]{\def\SAP@copyrightstatement{#1}}
-\def\SAP@schoolname{}
-\newcommand{\schoolname}[1]{\def\SAP@schoolname{#1}}
-
-\def\SAP@schooladdress{}
-\newcommand{\schooladdress}[1]{\def\SAP@schooladdress{#1}}
-
-\def\SAP@schoolwebsite{}
-\newcommand{\schoolwebsite}[1]{\def\SAP@schoolwebsite{#1}}
+\def\SAP@extrainfo{}
+\newcommand{\extrainfo}[1]{\def\SAP@extrainfo{#1}}
-\def\SAP@schoolprincipal{}
-\newcommand{\schoolprincipal}[1]{\def\SAP@schoolprincipal{#1}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% PhD maketitle
+%% maketitle commands for A4 (A), A5 (B), B5 (C) formats
-\newcommand{\SAP@maketitlePhD}{
+\newcommand{\SAP@maketitleA}{
-% Errors:
-
-\if|\SAP@courseorganizerLabel|\ClassError{sapthesis}{You must specify the Ph.D. %
- organizer}{Example: \protect\courseorganizer{Scuola di dottorato di ...}}\fi
-\if|\SAP@courseLabel|\ClassError{sapthesis}{You must specify the Ph.D. %
- course}{Example: \protect\course{Physics}}\fi
-\ifSAP@overridecourse\relax\else\if|\SAP@cycle|\ClassError{sapthesis}{You must specify the Ph.D. %
- cycle (cycle)}{Example: \protect\cycle{XXIII} The Ph.D. cycle must be in the roman numbers}\fi\fi
-\if|\SAP@submitdate|\ClassError{sapthesis}{You must specify the %
- thesis submission date}{Example: \protect\submitdate{August 2012} The date must be in the form Month(name) Year(number)}\fi
-\if|\SAP@copyyear|\ClassError{sapthesis}{You must specify the %
- copyright year}{Example: \protect\copyyear{2012}}\fi
-\if|\SAP@IDnumber|\ClassError{sapthesis}{You must specify your %
- ID number (matricola)}{Example: \protect\IDnumber{123456}}\fi
-\if|\SAP@authoremail|\ClassError{sapthesis}{You must specify the email of the author}{%
- Example: \protect\authoremail{author@email.com}}\fi
+\begin{titlepage}
-% Titlepage:
+\linespread{1}\selectfont
+\newlength{\SAP@parboxindent}
+\newlength{\SAP@parboxwidth}
+\setlength{\SAP@parboxindent}{1.72cm}
+\setlength{\SAP@parboxwidth}{\dimexpr\textwidth-\SAP@parboxindent\relax}
+\newcommand{\SAP@parbox}[2][]{\hspace{\SAP@parboxindent}%
+\parbox[t][##1][t]{\SAP@parboxwidth}{##2}}
+\parindent=0pt
+\sffamily
+
+\vspace*{-10mm}
+
+\ifSAP@sapienzalogo
+ \includegraphics[width=5cm]{sapienzalogo}
+\else
+ \parbox[b][3cm][c]{0.49\linewidth}{\hspace{-1cm}
+ \setlength{\unitlength}{1mm}
+ \begin{picture}(65,27.3)(0,0)
+ \small
+ \put(0,0){\framebox(65,27.3)[0,0]{}}
+ \put(2,23){\makebox(0,0)[l]{WARNING! ATTENZIONE!}}
+ \put(2,18){\makebox(0,0)[l]{Sapienza logo not found!}}
+ \put(2,11){\href{http://biccari.altervista.org/c/informatica/latex/sapienzalogo.pdf}{Click here to download the Sapienza logo}}
+ \put(2,5.5){Then copy sapienzalogo.pdf in the folder}
+ \put(2,1.5){of your main .tex file.}
+ \end{picture}
+ }
+\fi
- \begin{titlepage}
-
- \linespread{1}\selectfont
+\nointerlineskip
- \newcommand{\SAP@parbox}[2][]{\hspace{1.72cm}\parbox[t][##1][t]{11.9cm}{##2}}
- \parindent=0pt
- \sffamily
+%\nointerlineskip
+%\vspace{\stretch{1}}
+%\nointerlineskip
- \vspace*{-10mm}
- \ifSAP@bn
- \includegraphics[width=5cm]{sapienza-MLblack-pos}
+%\fbox{%
+\SAP@parbox[12.8cm]{
+ \nointerlineskip
+ \vspace*{7mm}
+ \vspace{\stretch{1}}
+ \nointerlineskip
+
+ {\LARGE\linespread{1.1}\selectfont\textcolor{sapred}{\@title}\par}
+
+ \if|\SAP@subtitle|
+ \if|\SAP@alttitle|
+ \relax
+ \else
+ \vspace{1cm}
+ {\LARGE\linespread{1.1}\selectfont\textcolor{sapred}{\SAP@alttitle}\par}
+ \fi
\else
- \includegraphics[width=5cm]{sapienza-MLred-pos}
+ \vspace{0.4cm}
+ {\large\linespread{1.1}\selectfont\textcolor{sapred}{\SAP@subtitle}\par}
\fi
-
+
\nointerlineskip
\vspace{\stretch{1}}
- \nointerlineskip
+ \vspace*{7mm}
+ \nointerlineskip}
+%}
- \SAP@parbox{\LARGE\textcolor{sapred}{\@title}\par}
-
- \if|\SAP@subtitle|
- \relax
- \else
- \vspace{0.4cm}
- \SAP@parbox{\linespread{1.2}\selectfont\textcolor{sapred}{\large\SAP@subtitle}\par}
- \fi
+\nointerlineskip
+%\vspace{\stretch{1}}
- \vspace{\stretch{1}}
+%\fbox{%
+\SAP@parbox{%
+\textcolor{sapred}{\SAP@courseorganizerLabel\\[1mm]
+\SAP@courseLabel\ \if|\SAP@cycle|\relax\else (\SAP@cycle\ \SAP@cycleLabel)\fi}
- \SAP@parbox[3cm]{%
- \textcolor{sapred}{\SAP@courseorganizerLabel\\[2mm]
- \ifSAP@overridecourse\SAP@courseLabel\else Dottorato di Ricerca in \SAP@courseLabel\ -- \SAP@cycle\ Ciclo\fi}}
+\vspace*{9mm}
- \SAP@parbox[3cm]{%
- \ifSAP@femaleauthor
- \SAP@CandidateLabelFemale\\[2mm]
+{\bfseries\@author}\\[1mm]
+\SAP@IDnumberLabel\ \SAP@IDnumber
+
+\vspace*{9mm}
+
+\makebox[11.9cm][l]{%
+ \parbox[t]{5.9cm}{%
+ \ifcase\SAP@advisorcount
+ \ClassError{sapthesis}{You must specify at least one advisor in the preamble}%
+ {E.g. \protect\advisor{Prof. Name Surname}}
+ \or
+ \SAP@ThesisAdvisorLabel\\[1mm]
\else
- \SAP@CandidateLabel\\[2mm]
+ \SAP@ThesisAdvisorsLabel\\[1mm]
\fi
- \@author\\[0.75mm]
- \SAP@IDnumberLabel\ \SAP@IDnumber}
-
-
-
-
- \SAP@parbox[4.5cm]{%
- \makebox[11.9cm][l]{%
- \parbox[t]{5.9cm}{%
- \ifcase\SAP@advisorcount
- \ClassError{sapthesis}{You must specify at least one advisor in the preamble}%
- {E.g. \protect\advisor{Prof. Name Surname}}
- \or
- \SAP@ThesisAdvisorLabel\\[2mm]
- \else
- \SAP@ThesisAdvisorsLabel\\[2mm]
- \fi
- \the\SAP@advisortoks}
- \hspace{1.5cm}
- \parbox[t]{5.9cm}{%
- \ifcase\SAP@coadvisorcount
- \relax
- \or
- \ifSAP@ext\SAP@ThesisExtAdvisorLabel\else\SAP@ThesisCoAdvisorLabel\fi\\[2mm]
- \else
- \ifSAP@ext\SAP@ThesisExtAdvisorsLabel\else\SAP@ThesisCoAdvisorsLabel\fi\\[2mm]
- \fi
- \the\SAP@coadvisortoks}
- }}
+ \the\SAP@advisortoks}
+ \hspace{15mm}
+ \parbox[t]{5.9cm}{%
+ \ifcase\SAP@coadvisorcount
+ \relax
+ \or
+ \SAP@ThesisCoAdvisorLabel\\[1mm]
+ \else
+ \SAP@ThesisCoAdvisorsLabel\\[1mm]
+ \fi
+ \the\SAP@coadvisortoks}
+}%
+
+\ifcase\SAP@directorcount
+ \relax
+\or
+ \vspace*{9mm}
+ \SAP@ThesisDirectorLabel\\[1mm]
+ \the\SAP@directortoks
+\else
+ \vspace*{9mm}
+ \SAP@ThesisDirectorsLabel\\[1mm]
+ \the\SAP@directortoks
+\fi
- \SAP@parbox{\SAP@submitdate}
-
- \end{titlepage}
-\clearpage
-\SAP@composebacktitlepage
}
+%}
+\nointerlineskip
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% Specialization maketitle
+\vfill
-\newcommand{\SAP@maketitleSpecialization}{
-% Errors:
+%\fbox{%
+\SAP@parbox{%
+%\ifnum\SAP@directorcount=\z@
+% \vspace*{20mm}
+%\else
+% \vspace*{10mm}
+%\fi
+\SAP@AcademicYearLabel\ \SAP@AcademicYear
+}
+%}
+\end{titlepage}
+}
-\if|\SAP@courseorganizerLabel|\ClassError{sapthesis}{You must specify the Specialization course %
- organizer}{Example: \protect\courseorganizer{Faculty of ...}}\fi
-\if|\SAP@courseLabel|\ClassError{sapthesis}{You must specify the %
- course}{Example: \protect\course{Fisica}}\fi
-\if|\SAP@submitdate|\ClassError{sapthesis}{You must specify the Academic %
- Year}{Example: \protect\submitdate{2011/2012}}\fi
-\if|\SAP@IDnumber|\ClassError{sapthesis}{You must specify your %
- ID number (matricola)}{E.g. 123456}\fi
-\if|\SAP@copyyear|\ClassError{sapthesis}{You must specify the %
- copyright year}{Example: \protect\copyyear{2012}}\fi
-\if|\SAP@authoremail|\ClassError{sapthesis}{You must specify the email of the author}{%
- Example: \protect\authoremail{author@email.com}}\fi
-% Titlepage:
+\newcommand{\SAP@maketitleB}{
+\begin{titlepage}
- \begin{titlepage}
-
- \linespread{1}\selectfont
+\linespread{1}\selectfont
+\newlength{\SAP@parboxindent}
+\newlength{\SAP@parboxwidth}
+\setlength{\SAP@parboxindent}{1.38cm}
+\setlength{\SAP@parboxwidth}{\dimexpr\textwidth-\SAP@parboxindent\relax}
+\newcommand{\SAP@parbox}[2][]{\hspace{\SAP@parboxindent}%
+\parbox[t][##1][t]{\SAP@parboxwidth}{##2}}
+\parindent=0pt
+\sffamily
+
+\vspace*{-10mm}
+
+\ifSAP@sapienzalogo
+ \includegraphics[width=4cm]{sapienzalogo}
+\else
+ \parbox[b][3cm][c]{0.49\linewidth}{\hspace{-1cm}
+ \setlength{\unitlength}{1mm}
+ \begin{picture}(65,27.3)(0,0)
+ \small
+ \put(0,0){\framebox(65,27.3)[0,0]{}}
+ \put(2,23){\makebox(0,0)[l]{WARNING! ATTENZIONE!}}
+ \put(2,18){\makebox(0,0)[l]{Sapienza logo not found!}}
+ \put(2,11){\href{http://biccari.altervista.org/c/informatica/latex/sapienzalogo.pdf}{Click here to download the Sapienza logo}}
+ \put(2,5.5){Then copy sapienzalogo.pdf in the folder}
+ \put(2,1.5){of your main .tex file.}
+ \end{picture}
+ }
+\fi
- \newcommand{\SAP@parbox}[2][]{\hspace{1.72cm}\parbox[t][##1][t]{11.9cm}{##2}}
- \parindent=0pt
- \sffamily
+\nointerlineskip
- \vspace*{-10mm}
- \ifSAP@bn
- \includegraphics[width=5cm]{sapienza-MLblack-pos}
- \else
- \includegraphics[width=5cm]{sapienza-MLred-pos}
- \fi
+%\nointerlineskip
+%\vspace{\stretch{1}}
+%\nointerlineskip
+%\fbox{%
+\SAP@parbox[9.3cm]{
\nointerlineskip
- \vspace{\stretch{0.9}}
+ \vspace*{7mm}
+ \vspace{\stretch{1}}
\nointerlineskip
-
- \SAP@parbox{\LARGE\textcolor{sapred}{\@title}\par}
-
- \if|\SAP@subtitle|
- \relax
- \else
- \vspace{0.4cm}
- \SAP@parbox{\linespread{1.2}\selectfont\textcolor{sapred}{\large\SAP@subtitle}\par}
- \fi
-
- \vspace{\stretch{0.9}}
-
- \SAP@parbox[3cm]{%
- \textcolor{sapred}{\SAP@courseorganizerLabel\\[2mm]
- \ifSAP@overridecourse\SAP@courseLabel\else Corso di specializzazione in \SAP@courseLabel\fi}}
-
- \SAP@parbox[3cm]{%
- \ifSAP@femaleauthor
- \SAP@CandidateLabelFemale\\[2mm]
- \else
- \SAP@CandidateLabel\\[2mm]
- \fi
- \@author\\[0.75mm]
- \SAP@IDnumberLabel\ \SAP@IDnumber}
-
- \SAP@parbox[4.5cm]{%
- \makebox[11.9cm][l]{%
- \parbox[t]{5.9cm}{%
- \ifcase\SAP@advisorcount
- \ClassError{sapthesis}{You must specify at least one advisor in the preamble}%
- {E.g. \protect\advisor{Prof. Name Surname}}
- \or
- \SAP@ThesisAdvisorLabel\\[2mm]
- \else
- \SAP@ThesisAdvisorsLabel\\[2mm]
- \fi
- \the\SAP@advisortoks}
- \hspace{1.5cm}
- \parbox[t]{5.9cm}{%
- \ifcase\SAP@directorcount
- \relax
- \or
- \SAP@ThesisDirectorLabel\\[2mm]
- \else
- \SAP@ThesisDirectorsLabel\\[2mm]
- \fi
- \the\SAP@directortoks}
- }
- \vspace{1cm}
+ {\Large\linespread{1.1}\selectfont\textcolor{sapred}{\@title}\par}
- \makebox[11.9cm][l]{%
- \parbox[t]{5.9cm}{%
- \ifcase\SAP@coadvisorcount
- \or
- \ifSAP@ext\SAP@ThesisExtAdvisorLabel\else\SAP@ThesisCoAdvisorLabel\fi\\[2mm]
- \else
- \ifSAP@ext\SAP@ThesisExtAdvisorsLabel\else\SAP@ThesisCoAdvisorsLabel\fi\\[2mm]
- \fi
- \the\SAP@coadvisortoks}
- }}
-
- \SAP@parbox{\SAP@AcademicYearLabel\ \SAP@submitdate}
+ \if|\SAP@subtitle|
+ \if|\SAP@alttitle|
+ \relax
+ \else
+ \vspace{7mm}
+ {\Large\linespread{1.1}\selectfont\textcolor{sapred}{\SAP@alttitle}\par}
+ \fi
+ \else
+ \vspace{0.4cm}
+ {\normalsize\linespread{1.1}\selectfont\textcolor{sapred}{\SAP@subtitle}\par}
+ \fi
- \end{titlepage}
-\clearpage
-\SAP@composebacktitlepage
-}
-%% Laurea and Laurea Magistrale maketitle
+ \nointerlineskip
+ \vspace{\stretch{1}}
+ \vspace*{7mm}
+ \nointerlineskip}
+%}
-\newcommand{\SAP@maketitleLaurea}{
+\nointerlineskip
+%\vspace{\stretch{1}}
-% Errors:
+%\fbox{%
+\SAP@parbox{%
+\textcolor{sapred}{\SAP@courseorganizerLabel\\[1mm]
+\SAP@courseLabel\ \if|\SAP@cycle|\relax\else (\SAP@cycle\ \SAP@cycleLabel)\fi}
-\if|\SAP@courseorganizerLabel|\ClassError{sapthesis}{You must specify the degree %
- organizer}{Example: \protect\courseorganizer{Faculty of ...}}\fi
-\if|\SAP@courseLabel|\ClassError{sapthesis}{You must specify the %
- course}{Example: \protect\course{Fisica}}\fi
-\if|\SAP@submitdate|\ClassError{sapthesis}{You must specify the Academic %
- Year}{Example: \protect\submitdate{2011/2012}}\fi
-\if|\SAP@IDnumber|\ClassError{sapthesis}{You must specify your %
- ID number (matricola)}{E.g. 123456}\fi
-\if|\SAP@copyyear|\ClassError{sapthesis}{You must specify the %
- copyright year}{Example: \protect\copyyear{2012}}\fi
-\if|\SAP@authoremail|\ClassError{sapthesis}{You must specify the email of the author}{%
- Example: \protect\authoremail{author@email.com}}\fi
-
-% Titlepage:
+\vspace*{7mm}
- \begin{titlepage}
-
- \linespread{1}\selectfont
+{\bfseries\@author}\\[1mm]
+\SAP@IDnumberLabel\ \SAP@IDnumber
- \newcommand{\SAP@parbox}[2][]{\hspace{1.72cm}\parbox[t][##1][t]{11.9cm}{##2}}
- \parindent=0pt
- \sffamily
+\vspace*{7mm}
- \vspace*{-10mm}
- \ifSAP@bn
- \includegraphics[width=5cm]{sapienza-MLblack-pos}
+\raggedright
+\makebox[0cm][l]{%
+ \parbox[t]{4cm}{%
+ \ifcase\SAP@advisorcount
+ \ClassError{sapthesis}{You must specify at least one advisor in the preamble}%
+ {E.g. \protect\advisor{Prof. Name Surname}}
+ \or
+ \SAP@ThesisAdvisorLabel\\[1mm]
\else
- \includegraphics[width=5cm]{sapienza-MLred-pos}
+ \SAP@ThesisAdvisorsLabel\\[1mm]
\fi
-
- \nointerlineskip
- \vspace{\stretch{0.9}}
- \nointerlineskip
-
- \SAP@parbox{\LARGE\textcolor{sapred}{\@title}\par}
-
- \if|\SAP@subtitle|
- \relax
- \else
- \vspace{0.4cm}
- \SAP@parbox{\linespread{1.2}\selectfont\textcolor{sapred}{\large\SAP@subtitle}\par}
- \fi
-
- \vspace{\stretch{0.9}}
-
- \SAP@parbox[3cm]{%
- \textcolor{sapred}{\SAP@courseorganizerLabel\\[2mm]
- \ifSAP@overridecourse\SAP@courseLabel\else Corso di Laurea \ifSAP@LaM Magistrale \fi in \SAP@courseLabel\fi}}
-
- \SAP@parbox[3cm]{%
- \ifSAP@femaleauthor
- \SAP@CandidateLabelFemale\\[2mm]
+ \the\SAP@advisortoks}
+ \hspace{2mm}
+ \parbox[t]{4cm}{%
+ \ifcase\SAP@coadvisorcount
+ \relax
+ \or
+ \SAP@ThesisCoAdvisorLabel\\[1mm]
\else
- \SAP@CandidateLabel\\[2mm]
+ \SAP@ThesisCoAdvisorsLabel\\[1mm]
\fi
- \@author\\[0.75mm]
- \SAP@IDnumberLabel\ \SAP@IDnumber}
-
- \SAP@parbox[4.5cm]{%
- \makebox[11.9cm][l]{%
- \parbox[t]{5.9cm}{%
- \ifcase\SAP@advisorcount
- \ClassError{sapthesis}{You must specify at least one advisor in the preamble}%
- {E.g. \protect\advisor{Prof. Name Surname}}
- \or
- \SAP@ThesisAdvisorLabel\\[2mm]
- \else
- \SAP@ThesisAdvisorsLabel\\[2mm]
- \fi
- \the\SAP@advisortoks}
- \hspace{1.5cm}
- \parbox[t]{5.9cm}{%
- \ifcase\SAP@coadvisorcount
- \relax
- \or
- \ifSAP@ext\SAP@ThesisExtAdvisorLabel\else\SAP@ThesisCoAdvisorLabel\fi\\[2mm]
- \else
- \ifSAP@ext\SAP@ThesisExtAdvisorsLabel\else\SAP@ThesisCoAdvisorsLabel\fi\\[2mm]
- \fi
- \the\SAP@coadvisortoks}
- }}
+ \the\SAP@coadvisortoks}
+}%
+
+\ifcase\SAP@directorcount
+ \relax
+\or
+ \vspace*{7mm}
+ \SAP@ThesisDirectorLabel\\[1mm]
+ \the\SAP@directortoks
+\else
+ \vspace*{7mm}
+ \SAP@ThesisDirectorsLabel\\[1mm]
+ \the\SAP@directortoks
+\fi
- \SAP@parbox{\SAP@AcademicYearLabel\ \SAP@submitdate}
-
- \end{titlepage}
-\clearpage
-\SAP@composebacktitlepage
}
+%}
+\nointerlineskip
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% Master di primo livello and
-%% Master di secondo livello maketitle
+\vfill
-\newcommand{\SAP@maketitleMaster}{
-% Errors:
+%\fbox{%
+\SAP@parbox{%
+%\ifnum\SAP@directorcount=\z@
+% \vspace*{20mm}
+%\else
+% \vspace*{10mm}
+%\fi
+\SAP@AcademicYearLabel\ \SAP@AcademicYear
+}
+%}
+\end{titlepage}
+}
-\if|\SAP@courseorganizerLabel|\ClassError{sapthesis}{You must specify the degree %
- organizer}{Example: \protect\courseorganizer{Faculty of ...}}\fi
-\if|\SAP@courseLabel|\ClassError{sapthesis}{You must specify the %
- course}{Example: \protect\course{Fisica}}\fi
-\if|\SAP@submitdate|\ClassError{sapthesis}{You must specify the Academic %
- Year}{Example: \protect\submitdate{2011/2012}}\fi
-\if|\SAP@IDnumber|\ClassError{sapthesis}{You must specify your %
- ID number (matricola)}{E.g. 123456}\fi
-\if|\SAP@copyyear|\ClassError{sapthesis}{You must specify the %
- copyright year}{Example: \protect\copyyear{2012}}\fi
-\if|\SAP@authoremail|\ClassError{sapthesis}{You must specify the email of the author}{%
- Example: \protect\authoremail{author@email.com}}\fi
-% Titlepage:
+\newcommand{\SAP@maketitleC}{
+\begin{titlepage}
- \begin{titlepage}
-
- \linespread{1}\selectfont
+\linespread{1}\selectfont
+\newlength{\SAP@parboxindent}
+\newlength{\SAP@parboxwidth}
+\setlength{\SAP@parboxindent}{1.38cm}
+\setlength{\SAP@parboxwidth}{\dimexpr\textwidth-\SAP@parboxindent\relax}
+\newcommand{\SAP@parbox}[2][]{\hspace{\SAP@parboxindent}%
+\parbox[t][##1][t]{\SAP@parboxwidth}{##2}}
+\parindent=0pt
+\sffamily
+
+\vspace*{-10mm}
+
+\ifSAP@sapienzalogo
+ \includegraphics[width=4cm]{sapienzalogo}
+\else
+ \parbox[b][3cm][c]{0.49\linewidth}{\hspace{-1cm}
+ \setlength{\unitlength}{1mm}
+ \begin{picture}(65,27.3)(0,0)
+ \small
+ \put(0,0){\framebox(65,27.3)[0,0]{}}
+ \put(2,23){\makebox(0,0)[l]{WARNING! ATTENZIONE!}}
+ \put(2,18){\makebox(0,0)[l]{Sapienza logo not found!}}
+ \put(2,11){\href{http://biccari.altervista.org/c/informatica/latex/sapienzalogo.pdf}{Click here to download the Sapienza logo}}
+ \put(2,5.5){Then copy sapienzalogo.pdf in the folder}
+ \put(2,1.5){of your main .tex file.}
+ \end{picture}
+ }
+\fi
- \newcommand{\SAP@parbox}[2][]{\hspace{1.72cm}\parbox[t][##1][t]{11.9cm}{##2}}
- \parindent=0pt
- \sffamily
+\nointerlineskip
- \vspace*{-10mm}
- \ifSAP@bn
- \includegraphics[width=5cm]{sapienza-MLblack-pos}
- \else
- \includegraphics[width=5cm]{sapienza-MLred-pos}
- \fi
+%\nointerlineskip
+%\vspace{\stretch{1}}
+%\nointerlineskip
+%\fbox{%
+\SAP@parbox[11.4cm]{
\nointerlineskip
- \vspace{\stretch{0.9}}
+ \vspace*{7mm}
+ \vspace{\stretch{1}}
\nointerlineskip
-
- \SAP@parbox{\LARGE\textcolor{sapred}{\@title}\par}
-
- \if|\SAP@subtitle|
- \relax
- \else
- \vspace{0.4cm}
- \SAP@parbox{\linespread{1.2}\selectfont\textcolor{sapred}{\large\SAP@subtitle}\par}
- \fi
-
- \vspace{\stretch{0.9}}
-
- \SAP@parbox[3cm]{%
- \textcolor{sapred}{\SAP@courseorganizerLabel\\[2mm]
- \ifSAP@overridecourse\SAP@courseLabel\else Master di \ifSAP@MasterP primo \fi \ifSAP@MasterS secondo \fi livello in \SAP@courseLabel\fi}}
-
- \SAP@parbox[3cm]{%
- \ifSAP@femaleauthor
- \SAP@CandidateLabelFemale\\[2mm]
- \else
- \SAP@CandidateLabel\\[2mm]
- \fi
- \@author\\[0.75mm]
- \SAP@IDnumberLabel\ \SAP@IDnumber}
-
- \SAP@parbox[4.5cm]{%
- \makebox[11.9cm][l]{%
- \parbox[t]{5.9cm}{%
- \ifcase\SAP@advisorcount
- \ClassError{sapthesis}{You must specify at least one advisor in the preamble}%
- {E.g. \protect\advisor{Prof. Name Surname}}
- \or
- \SAP@ThesisAdvisorLabel\\[2mm]
- \else
- \SAP@ThesisAdvisorsLabel\\[2mm]
- \fi
- \the\SAP@advisortoks}
- \hspace{1.5cm}
- \parbox[t]{5.9cm}{%
- \ifcase\SAP@coadvisorcount
- \relax
- \or
- \ifSAP@ext\SAP@ThesisExtAdvisorLabel\else\SAP@ThesisCoAdvisorLabel\fi\\[2mm]
+
+ {\Large\linespread{1.1}\selectfont\textcolor{sapred}{\@title}\par}
+
+ \if|\SAP@subtitle|
+ \if|\SAP@alttitle|
+ \relax
\else
- \ifSAP@ext\SAP@ThesisExtAdvisorsLabel\else\SAP@ThesisCoAdvisorsLabel\fi\\[2mm]
+ \vspace{1cm}
+ {\Large\linespread{1.1}\selectfont\textcolor{sapred}{\SAP@alttitle}\par}
\fi
- \the\SAP@coadvisortoks}
- }}
-
- \SAP@parbox{\SAP@AcademicYearLabel\ \SAP@submitdate}
+ \else
+ \vspace{0.4cm}
+ {\normalsize\linespread{1.1}\selectfont\textcolor{sapred}{\SAP@subtitle}\par}
+ \fi
- \end{titlepage}
-\clearpage
-\SAP@composebacktitlepage
-}
+ \nointerlineskip
+ \vspace{\stretch{1}}
+ \vspace*{7mm}
+ \nointerlineskip}
+%}
+\nointerlineskip
+%\vspace{\stretch{1}}
-%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-%% Tirocinio Formativo Attivo (TFA) maketitle
+%\fbox{%
+\SAP@parbox{%
+\textcolor{sapred}{\SAP@courseorganizerLabel\\[1mm]
+\SAP@courseLabel\ \if|\SAP@cycle|\relax\else (\SAP@cycle\ \SAP@cycleLabel)\fi}
-\newcommand{\SAP@maketitleTFA}{
+\vspace*{7mm}
-% Errors:
+{\bfseries\@author}\\[1mm]
+\SAP@IDnumberLabel\ \SAP@IDnumber
-\if|\SAP@courseorganizerLabel|\ClassError{sapthesis}{You must specify the degree %
- organizer}{Example: \protect\courseorganizer{Faculty of ...}}\fi
-\if|\SAP@submitdate|\ClassError{sapthesis}{You must specify the Academic %
- Year}{Example: \protect\submitdate{2011/2012}}\fi
-\if|\SAP@IDnumber|\ClassError{sapthesis}{You must specify your %
- ID number (matricola)}{E.g. 123456}\fi
-\if|\SAP@copyyear|\ClassError{sapthesis}{You must specify the %
- copyright year}{Example: \protect\copyyear{2012}}\fi
-\if|\SAP@authoremail|\ClassError{sapthesis}{You must specify the email of the author}{%
- Example: \protect\authoremail{author@email.com}}\fi
+\vspace*{7mm}
-% Titlepage:
+\raggedright
+\makebox[0cm][l]{%
+ \parbox[t]{5cm}{%
+ \ifcase\SAP@advisorcount
+ \ClassError{sapthesis}{You must specify at least one advisor in the preamble}%
+ {E.g. \protect\advisor{Prof. Name Surname}}
+ \or
+ \SAP@ThesisAdvisorLabel\\[1mm]
+ \else
+ \SAP@ThesisAdvisorsLabel\\[1mm]
+ \fi
+ \the\SAP@advisortoks}
+ \hspace{2mm}
+ \parbox[t]{5cm}{%
+ \ifcase\SAP@coadvisorcount
+ \relax
+ \or
+ \SAP@ThesisCoAdvisorLabel\\[1mm]
+ \else
+ \SAP@ThesisCoAdvisorsLabel\\[1mm]
+ \fi
+ \the\SAP@coadvisortoks}
+}%
+
+\ifcase\SAP@directorcount
+ \relax
+\or
+ \vspace*{7mm}
+ \SAP@ThesisDirectorLabel\\[1mm]
+ \the\SAP@directortoks
+\else
+ \vspace*{7mm}
+ \SAP@ThesisDirectorsLabel\\[1mm]
+ \the\SAP@directortoks
+\fi
- \begin{titlepage}
-
- \linespread{1}\selectfont
+}
+%}
- \newcommand{\SAP@parbox}[2][]{\hspace{1.72cm}\parbox[t][##1][t]{11.9cm}{##2}}
- \parindent=0pt
- \sffamily
+\nointerlineskip
- \vspace*{-10mm}
- \ifSAP@bn
- \includegraphics[width=5cm]{sapienza-MLblack-pos}
- \else
- \includegraphics[width=5cm]{sapienza-MLred-pos}
- \fi
+\vfill
- \nointerlineskip
- \vspace{\stretch{0.9}}
- \nointerlineskip
- \SAP@parbox{\LARGE\textcolor{sapred}{\@title}\par}
-
- \if|\SAP@subtitle|
- \relax
- \else
- \vspace{0.4cm}
- \SAP@parbox{\linespread{1.2}\selectfont\textcolor{sapred}{\large\SAP@subtitle}\par}
- \fi
-
- \vspace{\stretch{0.9}}
-
- \SAP@parbox[3cm]{%
- \textcolor{sapred}{\SAP@courseorganizerLabel\\[2mm]
- Tirocinio Formativo Attivo\\[2mm]
- \ifSAP@overridecourse\SAP@courseLabel\else Classe \SAP@courseLabel\fi}}
-
- \SAP@parbox[3cm]{%
- \ifSAP@femaleauthor
- \SAP@CandidateLabelFemale\\[2mm]
- \else
- \SAP@CandidateLabel\\[2mm]
- \fi
- \@author\\[0.75mm]
- \SAP@IDnumberLabel\ \SAP@IDnumber}
-
- \SAP@parbox[4.5cm]{%
- \makebox[11.9cm][l]{%
- \parbox[t]{5.9cm}{%
- \ifcase\SAP@advisorcount
- \ClassError{sapthesis}{You must specify at least one advisor in the preamble}%
- {E.g. \protect\advisor{Prof. Name Surname}}
- \or
- \SAP@ThesisAdvisorLabel\\[2mm]
- \else
- \SAP@ThesisAdvisorsLabel\\[2mm]
- \fi
- \the\SAP@advisortoks}
- \hspace{1.5cm}
- \parbox[t]{5.9cm}{%
- \ifcase\SAP@coadvisorcount
- \relax
- \or
- \ifSAP@ext\SAP@ThesisExtAdvisorLabel\else\SAP@ThesisCoAdvisorLabel\fi\\[2mm]
- \else
- \ifSAP@ext\SAP@ThesisExtAdvisorsLabel\else\SAP@ThesisCoAdvisorsLabel\fi\\[2mm]
- \fi
- \the\SAP@coadvisortoks}
- }
-
- \vspace{1cm}
-
- \makebox[11.9cm][l]{%
- \parbox[t]{5.9cm}{%
- \ifcase\SAP@tutorcount
- \ClassError{sapthesis}{You must specify at least one tutor in the preamble}%
- {E.g. \protect\tutor{Prof. Name Surname}}
- \or
- \SAP@ThesisTutorLabel\\[2mm]
- \else
- \SAP@ThesisTutorsLabel\\[2mm]
- \fi
- \the\SAP@tutortoks}
- \hspace{1.5cm}
- \parbox[t]{5.9cm}{%
- \ifcase\SAP@tutorcoordcount
- \ClassError{sapthesis}{You must specify at least one tutor coordinatore in the preamble}%
- {E.g. \protect\tutorcoord{Prof. Name Surname}}
- \or
- \SAP@ThesisTutorCoordLabel\\[2mm]
- \else
- \SAP@ThesisTutorCoordsLabel\\[2mm]
- \fi
- \the\SAP@tutorcoordtoks}
- }}
-
- \SAP@parbox{\SAP@AcademicYearLabel\ \SAP@submitdate}
-
- \end{titlepage}
-\clearpage
-\SAP@composebacktitlepage
+%\fbox{%
+\SAP@parbox{%
+%\ifnum\SAP@directorcount=\z@
+% \vspace*{20mm}
+%\else
+% \vspace*{10mm}
+%\fi
+\SAP@AcademicYearLabel\ \SAP@AcademicYear
+}
+%}
+\end{titlepage}
}
@@ -893,12 +779,8 @@
\null
\vspace*{1cm}
-\ifSAP@TFA
-\SAP@TFAschoolHeadLabel\\[2mm]
-\SAP@schoolname\\[0.1cm]
-\SAP@schooladdress\\[0.1cm]
-\@ifundefined{href}{\SAP@schoolwebsite}{\href{\SAP@schoolwebsite}{\SAP@schoolwebsite}}\\[0.1cm]
-\SAP@TFAschoolPrincipalLabel: \SAP@schoolprincipal
+\if|\SAP@extrainfo|\relax\else
+\SAP@extrainfo
\vspace*{1.5cm}
\fi
@@ -938,27 +820,10 @@
\small
\textbf{\def\\{}\def\newline{}\@title} \\[0.75mm]
-\ifSAP@PhD\SAP@PhDthesistype\fi
-\ifSAP@Specialization\SAP@Specializationthesistype\fi
-\ifSAP@LaM\SAP@LaMthesistype\fi
-\ifSAP@Lau\SAP@Lauthesistype\fi
-\ifSAP@MasterS\SAP@MasterSthesistype\fi
-\ifSAP@MasterP\SAP@MasterPthesistype\fi
-\ifSAP@TFA\SAP@TFAthesistype\fi
-. \SAP@sapienzaname \\[0.75mm]
+\if|\SAP@thesistype|\relax\else\SAP@thesistype.\fi\ \SAP@sapienzaname \\[0.75mm]
\if|\SAP@ISBN|\relax\else ISBN: \SAP@ISBN\fi\\[0.75mm]
\if|\SAP@copyrightstatement|\copyright\ \SAP@copyyear\ \@author. \SAP@allRightsReservedLabel\else\SAP@copyrightstatement\fi\\[1.5mm]
-%Material for which the author is the copyright owner cannot be
-%used without the written permission of the author.
-%The permission to reproduce copyright protected material does not extend
-%to any material that is copyright of a third party; authorization to
-%reproduce such material must be obtained from the copyright owners concerned.
-%If you believe that a copyright infringement is present in this thesis,
-%please contact the author, providing your name, contact details, full
-%details of the copyright infringement and advise whether you are the copyright
-%owner or a representative of the copyright owner.\\
-
\SAP@sapthesisInformationLabel.\\
\if|\SAP@versiondate|
@@ -982,13 +847,34 @@
%% Choosing the right \maketitle according to the thesis type %%%%%%%
\renewcommand{\maketitle}{%
- \ifSAP@PhD\SAP@maketitlePhD\fi
- \ifSAP@Specialization\SAP@maketitleSpecialization\fi
- \ifSAP@LaM\SAP@maketitleLaurea\fi
- \ifSAP@Lau\SAP@maketitleLaurea\fi
- \ifSAP@MasterS\SAP@maketitleMaster\fi
- \ifSAP@MasterP\SAP@maketitleMaster\fi
- \ifSAP@TFA\SAP@maketitleTFA\fi}
+% Errors:
+\if|\SAP@courseorganizerLabel|\ClassError{sapthesis}{You must specify the course %
+ organizer}{Example: \protect\courseorganizer{Scuola di dottorato di ...}}\fi
+\if|\SAP@courseLabel|\ClassError{sapthesis}{You must specify the %
+ course}{Example: \protect\course{Corso di Laurea Magistrale in Fisica}}\fi
+\if|\SAP@AcademicYear|\ClassError{sapthesis}{You must specify the %
+ thesis submission date}{Example: \protect\submitdate{August 2012} The date must be in the form Month(name) Year(number)}\fi
+\if|\SAP@copyyear|\ClassError{sapthesis}{You must specify the %
+ copyright year}{Example: \protect\copyyear{2012}}\fi
+\if|\SAP@IDnumber|\ClassError{sapthesis}{You must specify your %
+ ID number (matricola)}{Example: \protect\IDnumber{123456}}\fi
+\if|\SAP@authoremail|\ClassError{sapthesis}{You must specify the email of the author}{%
+ Example: \protect\authoremail{author@email.com}}\fi
+%titlepage
+\def\SAP@layoutname{a4paper}
+\ifx\SAP@layout\SAP@layoutname
+\SAP@maketitleA
+\fi
+\def\SAP@layoutname{a5paper}
+\ifx\SAP@layout\SAP@layoutname
+\SAP@maketitleB
+\fi
+\def\SAP@layoutname{b5paper}
+\ifx\SAP@layout\SAP@layoutname
+\SAP@maketitleC
+\fi
+\clearpage
+\SAP@composebacktitlepage}
@@ -1025,37 +911,23 @@
\newcommand{\SAP@CandidateLabel}{Candidate}
\newcommand{\SAP@CandidateLabelFemale}{Candidate}
\newcommand{\SAP@IDnumberLabel}{ID number}
- \newcommand{\SAP@ThesisAdvisorLabel}{Thesis Advisor}
- \newcommand{\SAP@ThesisAdvisorsLabel}{Thesis Advisors}
- \newcommand{\SAP@ThesisCoAdvisorLabel}{Co-Advisor}
- \newcommand{\SAP@ThesisCoAdvisorsLabel}{Co-Advisors}
- \newcommand{\SAP@ThesisExtAdvisorLabel}{External Advisor}
- \newcommand{\SAP@ThesisExtAdvisorsLabel}{External Advisors}
- \newcommand{\SAP@ThesisDirectorLabel}{Director}
- \newcommand{\SAP@ThesisDirectorsLabel}{Directors}
- \newcommand{\SAP@ThesisTutorLabel}{Trainee's Tutor}
- \newcommand{\SAP@ThesisTutorsLabel}{Trainee's Tutors}
- \newcommand{\SAP@ThesisTutorCoordLabel}{Coordinating Tutor}
- \newcommand{\SAP@ThesisTutorCoordsLabel}{Coordinating Tutors}
- \newcommand{\SAP@TFAschoolHeadLabel}{Training done at:}
- \newcommand{\SAP@TFAschoolPrincipalLabel}{Principal}
+ \newcommand{\SAP@ThesisAdvisorLabel}{Advisor}
+ \newcommand{\SAP@ThesisAdvisorsLabel}{Advisors}
+ \providecommand{\SAP@ThesisCoAdvisorLabel}{Co-Advisor}
+ \providecommand{\SAP@ThesisCoAdvisorsLabel}{Co-Advisors}
+ \providecommand{\SAP@ThesisDirectorLabel}{Director}
+ \providecommand{\SAP@ThesisDirectorsLabel}{Directors}
+ \newcommand{\SAP@cycleLabel}{cycle}
+ \newcommand{\SAP@AcademicYearLabel}{Academic Year}
\newcommand{\SAP@ThesisNotDefensedLabel}{Thesis not yet defended}
\newcommand{\SAP@ThesisDefensedLabelA}{Thesis defended on}
\newcommand{\SAP@ThesisDefensedLabelB}{in front of a Board of Examiners composed by}
\newcommand{\SAP@chairman}{chairman}
- \newcommand{\SAP@PhDthesistype}{Ph.D. thesis}
- \newcommand{\SAP@Specializationthesistype}{Specialization thesis}
- \newcommand{\SAP@LaMthesistype}{Master's thesis}
- \newcommand{\SAP@Lauthesistype}{Bachelor's thesis}
- \newcommand{\SAP@MasterPthesistype}{First level master's thesis}
- \newcommand{\SAP@MasterSthesistype}{Second level master's thesis}
- \newcommand{\SAP@TFAthesistype}{TFA report}
- \newcommand{\SAP@sapienzaname}{Sapienza -- University of Rome}
+ \newcommand{\SAP@sapienzaname}{Sapienza University of Rome}
\newcommand{\SAP@versionLabel}{Version}
\newcommand{\SAP@websiteLabel}{Website}
\newcommand{\SAP@AcknowledgmentsLabel}{Acknowledgments}
\newcommand{\SAP@AbstractLabel}{Abstract}
- \newcommand{\SAP@AcademicYearLabel}{Academic Year}
\newcommand{\SAP@allRightsReservedLabel}{All rights reserved}
\newcommand{\SAP@sapthesisInformationLabel}{This thesis has been typeset by \LaTeX\ and the Sapthesis class}
\newcommand{\SAP@emailLabel}{Author's email}}
@@ -1066,35 +938,21 @@
\newcommand{\SAP@IDnumberLabel}{Matricola}
\newcommand{\SAP@ThesisAdvisorLabel}{Relatore}
\newcommand{\SAP@ThesisAdvisorsLabel}{Relatori}
- \newcommand{\SAP@ThesisCoAdvisorLabel}{Correlatore}
- \newcommand{\SAP@ThesisCoAdvisorsLabel}{Correlatori}
- \newcommand{\SAP@ThesisExtAdvisorLabel}{Relatore esterno}
- \newcommand{\SAP@ThesisExtAdvisorsLabel}{Relatori esterni}
- \newcommand{\SAP@ThesisDirectorLabel}{Direttore}
- \newcommand{\SAP@ThesisDirectorsLabel}{Direttori}
- \newcommand{\SAP@ThesisTutorLabel}{Tutor del Tirocinante}
- \newcommand{\SAP@ThesisTutorsLabel}{Tutor del Tirocinante}
- \newcommand{\SAP@ThesisTutorCoordLabel}{Tutor Coordinatore}
- \newcommand{\SAP@ThesisTutorCoordsLabel}{Tutor Coordinatori}
- \newcommand{\SAP@TFAschoolHeadLabel}{Tirocinio svolto presso:}
- \newcommand{\SAP@TFAschoolPrincipalLabel}{Dirigente scolastico}
+ \providecommand{\SAP@ThesisCoAdvisorLabel}{Correlatore}
+ \providecommand{\SAP@ThesisCoAdvisorsLabel}{Correlatori}
+ \providecommand{\SAP@ThesisDirectorLabel}{Direttore}
+ \providecommand{\SAP@ThesisDirectorsLabel}{Direttori}
+ \newcommand{\SAP@cycleLabel}{ciclo}
+ \newcommand{\SAP@AcademicYearLabel}{Anno Accademico}
\newcommand{\SAP@ThesisNotDefensedLabel}{Tesi non ancora discussa}
\newcommand{\SAP@ThesisDefensedLabelA}{Tesi discussa il}
\newcommand{\SAP@ThesisDefensedLabelB}{di fronte a una commissione esaminatrice composta da}
\newcommand{\SAP@chairman}{presidente}
- \newcommand{\SAP@PhDthesistype}{Tesi di dottorato}
- \newcommand{\SAP@Specializationthesistype}{Tesi di Specializzazione}
- \newcommand{\SAP@LaMthesistype}{Tesi di Laurea Magistrale}
- \newcommand{\SAP@Lauthesistype}{Tesi di Laurea}
- \newcommand{\SAP@MasterPthesistype}{Tesi di Master di primo livello}
- \newcommand{\SAP@MasterSthesistype}{Tesi di Master di secondo livello}
- \newcommand{\SAP@TFAthesistype}{TFA. Relazione di tirocinio}
- \newcommand{\SAP@sapienzaname}{Sapienza -- Universit\`a di Roma}
+ \newcommand{\SAP@sapienzaname}{Sapienza Universit\`a di Roma}
\newcommand{\SAP@versionLabel}{Versione}
\newcommand{\SAP@websiteLabel}{Sito web}
\newcommand{\SAP@AcknowledgmentsLabel}{Ringraziamenti}
\newcommand{\SAP@AbstractLabel}{Sommario}
- \newcommand{\SAP@AcademicYearLabel}{Anno Accademico}
\newcommand{\SAP@allRightsReservedLabel}{Tutti i diritti riservati}
\newcommand{\SAP@sapthesisInformationLabel}{Questa tesi \`e stata composta con \LaTeX\ e la classe Sapthesis}
\newcommand{\SAP@emailLabel}{Email dell'autore}}
@@ -1176,8 +1034,8 @@
\else
\@tempswatrue
\fi
- \toks@=\expandafter{\the\expandafter\toks@\expandafter\partial\der@var}}%
- \frac{\partial\ifnum\count@=\@ne\else^{\number\count@}\fi#1}{\the\toks@}%
+ \toks@=\expandafter{\the\expandafter\toks@\expandafter\di\der@var}}%
+ \frac{\di\ifnum\count@=\@ne\else^{\number\count@}\fi#1}{\the\toks@}%
\endgroup}
\def\check@var{\@ifstar{\mult@var}{\one@var}}
\def\mult@var#1#2\@nil{\def\der@var{#2^{#1}}\def\der@exp{#1}}