From 23fec857e8f705b5595264d42d1265077d09654d Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 7 Aug 2018 22:05:57 +0000 Subject: sapthesis (7aug18) git-svn-id: svn://tug.org/texlive/trunk@48365 c570f23f-e606-0410-a88d-b1316a301751 --- .../texmf-dist/tex/latex/sapthesis/sapthesis.cls | 173 +++++++++++++++------ 1 file changed, 123 insertions(+), 50 deletions(-) (limited to 'Master/texmf-dist/tex/latex/sapthesis') diff --git a/Master/texmf-dist/tex/latex/sapthesis/sapthesis.cls b/Master/texmf-dist/tex/latex/sapthesis/sapthesis.cls index d776340f628..d420c4a6617 100644 --- a/Master/texmf-dist/tex/latex/sapthesis/sapthesis.cls +++ b/Master/texmf-dist/tex/latex/sapthesis/sapthesis.cls @@ -1,7 +1,7 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% sapthesis.cls %% -%% version 3.8 %% -%% 2015-12-04 %% +%% version 4.1 %% +%% 2018-08-07 %% %% author: Francesco Biccari %% %% contact: biccari@gmail.com %% %% %% @@ -20,9 +20,9 @@ \NeedsTeXFormat{LaTeX2e}[2009/01/01] \ProvidesClass{sapthesis}% -[2015/12/04 Sapienza - University of Rome thesis class] +[2018/08/07 Sapienza - University of Rome thesis class] -\def\SAP@classVersion{3.8} +\def\SAP@classVersion{4.1} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% Options %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -42,6 +42,7 @@ \newif\ifSAP@TFA \SAP@TFAfalse \newif\ifSAP@noexaminfo \SAP@noexaminfofalse \newif\ifSAP@femaleauthor \SAP@femaleauthorfalse +\newif\ifSAP@overridecourse \SAP@overridecoursefalse \newcommand{\SAP@customlanguage}{} @@ -130,6 +131,7 @@ \RequirePackage{color} \RequirePackage{booktabs} \RequirePackage{amsmath} +\RequirePackage{etoolbox} @@ -214,14 +216,15 @@ %% GENERAL COMMANDS +\def\SAP@subtitle{} \def\SAP@courseorganizerLabel{} \def\SAP@courseLabel{} -\def\SAP@PhDcourseDeclarationLabel{} +\newcommand{\subtitle}[1]{\def\SAP@subtitle{#1}} \newcommand{\courseorganizer}[1]{\def\SAP@courseorganizerLabel{#1}} \newcommand{\course}[2][]{% \def\SAP@courseLabel{#2} - \def\SAP@PhDcourseDeclarationLabel{\if?#1?\SAP@courseLabel\else#1\fi}} + \ifstrequal{#1}{override}{\SAP@overridecoursetrue}{}} \def\SAP@copyyear{} \newcommand{\copyyear}[1]{\def\SAP@copyyear{#1}} @@ -247,17 +250,37 @@ \fi \advance\SAP@advisorcount\@ne} -%% Co-Advisors +%% Co-Advisors or External Advisor \newcount\SAP@coadvisorcount \newtoks\SAP@coadvisortoks -\newcommand{\coadvisor}[1]{% +\newif\ifSAP@ext \SAP@extfalse +\newcommand{\coadvisor}[2][]{% \ifnum\SAP@coadvisorcount=\z@ - \SAP@coadvisortoks={#1}% + \SAP@coadvisortoks={#2}% \else - \SAP@coadvisortoks=\expandafter{\the\SAP@coadvisortoks\\[0.75mm]#1}% + \SAP@coadvisortoks=\expandafter{\the\SAP@coadvisortoks\\[0.75mm]#2}% \fi - \advance\SAP@coadvisorcount\@ne} + \advance\SAP@coadvisorcount\@ne + \ifstrequal{#1}{ext}{\SAP@exttrue}{}} + + +%% Reviewers +\def\SAP@ReviewerLabel{} +\newcommand{\reviewerlabel}[1]{\def\SAP@ReviewerLabel{#1}} + +\newcount\SAP@reviewercount +\newtoks\SAP@reviewertoks +\newcommand{\reviewer}[1]{% + \ifnum\SAP@reviewercount=\z@ + \SAP@reviewertoks={#1}% + \else + \SAP@reviewertoks=\expandafter{\the\SAP@reviewertoks\\[0.75mm]#1}% + \fi + \advance\SAP@reviewercount\@ne} + + + %% Directors \newcount\SAP@directorcount \newtoks\SAP@directortoks @@ -294,11 +317,11 @@ %% Examiners \newcount\SAP@examinercount \newtoks\SAP@examinertoks -\newcommand{\examiner}[1]{% +\newcommand{\examiner}[2][]{% \ifnum\SAP@examinercount=\z@ - \SAP@examinertoks={#1 (\SAP@chairman)}% + \SAP@examinertoks={#2 (\SAP@chairman\if|#1|\relax\else, #1\fi)}% \else - \SAP@examinertoks=\expandafter{\the\SAP@examinertoks\\[0.75mm]#1}% + \SAP@examinertoks=\expandafter{\the\SAP@examinertoks\\[0.75mm]#2 \if|#1|\relax\else (#1)\fi}% \fi \advance\SAP@examinercount\@ne} @@ -317,6 +340,9 @@ \def\SAP@ISBN{} \newcommand{\ISBN}[1]{\def\SAP@ISBN{#1}} +\def\SAP@copyrightstatement{} +\newcommand{\copyrightstatement}[1]{\def\SAP@copyrightstatement{#1}} + \def\SAP@schoolname{} \newcommand{\schoolname}[1]{\def\SAP@schoolname{#1}} @@ -340,9 +366,9 @@ \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[Fisica]{Physics}}\fi -\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 + 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 % @@ -374,12 +400,19 @@ \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{1}} \SAP@parbox[3cm]{% \textcolor{sapred}{\SAP@courseorganizerLabel\\[2mm] - Dottorato di Ricerca in \SAP@courseLabel\ -- \SAP@cycle\ Ciclo}} + \ifSAP@overridecourse\SAP@courseLabel\else Dottorato di Ricerca in \SAP@courseLabel\ -- \SAP@cycle\ Ciclo\fi}} \SAP@parbox[3cm]{% \ifSAP@femaleauthor @@ -410,15 +443,14 @@ \ifcase\SAP@coadvisorcount \relax \or - \SAP@ThesisCoAdvisorLabel\\[2mm] + \ifSAP@ext\SAP@ThesisExtAdvisorLabel\else\SAP@ThesisCoAdvisorLabel\fi\\[2mm] \else - \SAP@ThesisCoAdvisorsLabel\\[2mm] + \ifSAP@ext\SAP@ThesisExtAdvisorsLabel\else\SAP@ThesisCoAdvisorsLabel\fi\\[2mm] \fi \the\SAP@coadvisortoks} }} - \SAP@parbox{\SAP@DeclarationLabel\ \SAP@PhDcourseDeclarationLabel\\[2mm] - \SAP@submitdate} + \SAP@parbox{\SAP@submitdate} \end{titlepage} \clearpage @@ -435,6 +467,8 @@ \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 % @@ -466,12 +500,19 @@ \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] - Corso di specializzazione in \SAP@courseLabel}} + \ifSAP@overridecourse\SAP@courseLabel\else Corso di specializzazione in \SAP@courseLabel\fi}} \SAP@parbox[3cm]{% \ifSAP@femaleauthor @@ -512,9 +553,9 @@ \parbox[t]{5.9cm}{% \ifcase\SAP@coadvisorcount \or - \SAP@ThesisCoAdvisorLabel\\[2mm] - \else - \SAP@ThesisCoAdvisorsLabel\\[2mm] + \ifSAP@ext\SAP@ThesisExtAdvisorLabel\else\SAP@ThesisCoAdvisorLabel\fi\\[2mm] + \else + \ifSAP@ext\SAP@ThesisExtAdvisorsLabel\else\SAP@ThesisCoAdvisorsLabel\fi\\[2mm] \fi \the\SAP@coadvisortoks} }} @@ -533,6 +574,8 @@ \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 % @@ -564,12 +607,19 @@ \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] - Corso di Laurea \ifSAP@LaM Magistrale \fi in \SAP@courseLabel}} + \ifSAP@overridecourse\SAP@courseLabel\else Corso di Laurea \ifSAP@LaM Magistrale \fi in \SAP@courseLabel\fi}} \SAP@parbox[3cm]{% \ifSAP@femaleauthor @@ -597,9 +647,9 @@ \ifcase\SAP@coadvisorcount \relax \or - \SAP@ThesisCoAdvisorLabel\\[2mm] + \ifSAP@ext\SAP@ThesisExtAdvisorLabel\else\SAP@ThesisCoAdvisorLabel\fi\\[2mm] \else - \SAP@ThesisCoAdvisorsLabel\\[2mm] + \ifSAP@ext\SAP@ThesisExtAdvisorsLabel\else\SAP@ThesisCoAdvisorsLabel\fi\\[2mm] \fi \the\SAP@coadvisortoks} }} @@ -622,6 +672,8 @@ \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 % @@ -653,12 +705,19 @@ \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] - Master di \ifSAP@MasterP primo \fi \ifSAP@MasterS secondo \fi livello in \SAP@courseLabel}} + \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 @@ -686,9 +745,9 @@ \ifcase\SAP@coadvisorcount \relax \or - \SAP@ThesisCoAdvisorLabel\\[2mm] + \ifSAP@ext\SAP@ThesisExtAdvisorLabel\else\SAP@ThesisCoAdvisorLabel\fi\\[2mm] \else - \SAP@ThesisCoAdvisorsLabel\\[2mm] + \ifSAP@ext\SAP@ThesisExtAdvisorsLabel\else\SAP@ThesisCoAdvisorsLabel\fi\\[2mm] \fi \the\SAP@coadvisortoks} }} @@ -741,13 +800,20 @@ \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] - Classe \SAP@courseLabel}} + \ifSAP@overridecourse\SAP@courseLabel\else Classe \SAP@courseLabel\fi}} \SAP@parbox[3cm]{% \ifSAP@femaleauthor @@ -775,9 +841,9 @@ \ifcase\SAP@coadvisorcount \relax \or - \SAP@ThesisCoAdvisorLabel\\[2mm] + \ifSAP@ext\SAP@ThesisExtAdvisorLabel\else\SAP@ThesisCoAdvisorLabel\fi\\[2mm] \else - \SAP@ThesisCoAdvisorsLabel\\[2mm] + \ifSAP@ext\SAP@ThesisExtAdvisorsLabel\else\SAP@ThesisCoAdvisorsLabel\fi\\[2mm] \fi \the\SAP@coadvisortoks} } @@ -856,6 +922,15 @@ \fi \fi +\vspace{1cm} + +\ifcase\SAP@reviewercount + \relax +\else + \SAP@ReviewerLabel:\\[2mm] + \the\SAP@reviewertoks% +\fi + \vfill \hrulefill @@ -872,7 +947,7 @@ \ifSAP@TFA\SAP@TFAthesistype\fi . \SAP@sapienzaname \\[0.75mm] \if|\SAP@ISBN|\relax\else ISBN: \SAP@ISBN\fi\\[0.75mm] -\copyright\ \SAP@copyyear\ \@author. \SAP@allRightsReservedLabel\\[1.5mm] +\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. @@ -954,6 +1029,8 @@ \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} @@ -962,19 +1039,16 @@ \newcommand{\SAP@ThesisTutorCoordsLabel}{Coordinating Tutors} \newcommand{\SAP@TFAschoolHeadLabel}{Training done at:} \newcommand{\SAP@TFAschoolPrincipalLabel}{Principal} - \newcommand{\SAP@DeclarationLabel}{A thesis - submitted in partial fulfillment of the requirements\\ - for the degree of Doctor of Philosophy in} \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 thesis} - \newcommand{\SAP@Lauthesistype}{Bachelor thesis} - \newcommand{\SAP@MasterPthesistype}{First level master thesis} - \newcommand{\SAP@MasterSthesistype}{Second level master 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@versionLabel}{Version} @@ -994,6 +1068,8 @@ \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} @@ -1002,9 +1078,6 @@ \newcommand{\SAP@ThesisTutorCoordsLabel}{Tutor Coordinatori} \newcommand{\SAP@TFAschoolHeadLabel}{Tirocinio svolto presso:} \newcommand{\SAP@TFAschoolPrincipalLabel}{Dirigente scolastico} - \newcommand{\SAP@DeclarationLabel}{Tesi presentata - in parziale adempimento dei requisiti necessari\\ - per conseguire il titolo di Dottore di Ricerca in} \newcommand{\SAP@ThesisNotDefensedLabel}{Tesi non ancora discussa} \newcommand{\SAP@ThesisDefensedLabelA}{Tesi discussa il} \newcommand{\SAP@ThesisDefensedLabelB}{di fronte a una commissione esaminatrice composta da} -- cgit v1.2.3