diff options
author | Karl Berry <karl@freefriends.org> | 2017-10-22 19:50:59 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-10-22 19:50:59 +0000 |
commit | b2fad8915b87bb45e4d3ffafd0f8119da45a921e (patch) | |
tree | f45834fea9954883b7fc8d5f4b85b956f7b6be4a /Master/texmf-dist/tex/latex/toptesi | |
parent | 96c2540c6bcd6585ee23a0d384bea78715befec8 (diff) |
toptesi (22oct17)
git-svn-id: svn://tug.org/texlive/trunk@45577 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/toptesi')
-rw-r--r-- | Master/texmf-dist/tex/latex/toptesi/topcoman.sty | 92 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/toptesi/topfront.sty | 196 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/toptesi/toptesi-dottorale.sty | 592 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/toptesi/toptesi-magistrale.sty | 537 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/toptesi/toptesi-monografia.sty | 372 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/toptesi/toptesi-scudo.sty | 301 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/toptesi/toptesi-sss.sty | 194 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/toptesi/toptesi.cfg | 99 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/toptesi/toptesi.cls | 68 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/toptesi/toptesi.sty | 398 |
10 files changed, 2598 insertions, 251 deletions
diff --git a/Master/texmf-dist/tex/latex/toptesi/topcoman.sty b/Master/texmf-dist/tex/latex/toptesi/topcoman.sty index c8f4ce98d0e..d784ac335a4 100644 --- a/Master/texmf-dist/tex/latex/toptesi/topcoman.sty +++ b/Master/texmf-dist/tex/latex/toptesi/topcoman.sty @@ -6,16 +6,17 @@ %% %% toptesi.dtx (with options: `topcmn') %% ______________________________________________________ -%% The TOPtesi package -%% Copyright (C) 2005-2016 Claudio Beccari +%% The TOPtesi bundle +%% Copyright (C) 2015-2017 Claudio Beccari %% All rights reserved %% %% License information appended %% -\NeedsTeXFormat{LaTeX2e}[2015/01/01] +\NeedsTeXFormat{LaTeX2e}[2016/01/01] \ProvidesPackage{topcoman}[% -2016/11/25 v.5.9.06 +2017/10/22 v.~6.1.09 Additional commands for the TOPtesi bundle] + \RequirePackage{iftex} \ifPDFTeX \newcommand*\DeclareSlantedCapitalGreekLetters{% @@ -30,7 +31,13 @@ Additional commands for the TOPtesi bundle] \mathchardef\Phi="7108 \mathchardef\Psi="7109 \mathchardef\Omega="710A -}\fi +}\else +\newcommand*\DeclareSlantedCapitalGreekLetters{% +\PackageWarning{toptesi}{% + When using LuaLaTeX or XeLaTeX specify\MessageBreak + option math-style=ISO to package unicode-math\MessageBreak} +} +\fi \providecommand*\ensuremath[1]{\ifmmode#1\else$#1$\fi}% \providecommand*\textormath{} \renewcommand*\textormath{\ifmmode\expandafter\@secondoftwo\else @@ -41,42 +48,29 @@ Additional commands for the TOPtesi bundle] \RequirePackage{textcomp} \fi \providecommand{\ohm}{\textormath{\textohm}{\mathrm{\Omega}}} -\providecommand{\ped}[1]{\textormath{\textsubscript{#1}}{_{\mathrm{#1}}}} -\providecommand{\ap}[1]{\textormath{\textsuperscript{#1}}{^{\mathrm{#1}}}} +\@ifpackageloaded{toptesi}{ +\providecommand\ped{}\providecommand\ap{} +\renewcommand*{\ped}[1]{\textormath{\textsubscript{#1}}{_{\mathrm{#1}}}} +\renewcommand*{\ap}[1]{\textormath{\textsuperscript{#1}}{^{\mathrm{#1}}}}}{% +\providecommand*{\ped}[1]{\textormath{\textsubscript{#1}}{_{\mathrm{#1}}}}% +\providecommand*{\ap}[1]{\textormath{\textsuperscript{#1}}{^{\mathrm{#1}}}}} \@ifpackageloaded{siunitx}{\def\unit#1{\si{\,#1}}}{% -\providecommand\unit[1]{\ensuremath{{\mathrm{\,#1}}}}} +\providecommand\unit{}% +\renewcommand\unit[1]{\ensuremath{{\mathrm{\,#1}}}} +} \providecommand{\gei}{\ensuremath{{\mathop{\mathrm{j}}\nolimits}}} \providecommand{\eu}{\ensuremath{{\mathop{\mathrm{e}}\nolimits}}} \providecommand{\micro}{\textormath{\textmu}{% \ifPDFTeX - \ifx\muup\undefined\mu\else\muup\fi + \ifdefined\muup\muup\else\mbox{\textmu}\fi \else \mathup{\mu}% \fi }} \providecommand{\gradi}{\textormath{\textdegree}{^\circ}} -\providecommand*{\programmafont}{\ttfamily\footnotesize} -\def\listing#1{\par\begingroup -\programma \input #1 \endgroup} -\def\uncatcodespecials{\def\do##1{\catcode`##1=12}\dospecials} -\def\programma{\programmafont \parindent 0pt -\def\par{\leavevmode\egroup\box0\endgraf} -\catcode`\`=\active \catcode`\^^I=\active \catcode`\^^L=\active -\obeylines \uncatcodespecials \obeyspaces -\begingroup\lccode`~=`\ \lowercase{\endgroup\global\let~}\ % -\everypar{\startbox}} -\newdimen\tabwidth -\setbox0=\hbox{\programmafont\space} -\tabwidth=8\wd0 -\def\startbox{\setbox0=\hbox\bgroup} -{\catcode`\`=\active \gdef`{\relax\lq}} -{\catcode`\^^I=\active -\gdef^^I{\leavevmode\egroup \dimen0=\wd0 -\divide\dimen0 by\tabwidth -\multiply\dimen0 by\tabwidth -\advance\dimen0 by\tabwidth -\wd0=\dimen0 \box0 \startbox}} -{\catcode`\^^L=\active \global\let^^L\newpage} +\RequirePackage{fancyvrb} +\fvset{fontsize=\small} +\let\listing\VerbatimInput \DeclareRobustCommand*{\simulatedSC}[1]{% {\mbox{$\relax$}\fontsize{\sf@size}{\f@baselineskip}\selectfont#1}}% \def\ft@figure{\iflanguage{italian}{\MakeLowercase{\figurename}}% @@ -89,7 +83,7 @@ Additional commands for the TOPtesi bundle] \let\p@figure\empty\let\p@table\empty} \DisableFigTabNames %% -%% Copyright 2005-2016 Claudio Beccari +%% Copyright 2005-2017 Claudio Beccari %% %% Distributable under the LaTeX Project Public License, %% version 1.3c or higher (your choice). The latest version of @@ -98,14 +92,14 @@ Additional commands for the TOPtesi bundle] %% This work is "author-maintained" %% %% This work consists of this file toptesi.dtx, a README file -%% and the derived files: -%% -%% toptesi.cls, toptesi.sty, topfront.sty, topcoman.sty, -%% toptesi.cfg, and the English documentation toptesi.pdf. +%% the manifest.txt file, and the derived files: +%% toptesi.cls, toptesi.sty, topfront.sty, topcommand.sty, +%% toptesi-scudo.sty, toptesi-scudo.def, toptesi.cfg, and the +%% English documentation toptesi.pdf. %% %% Furthermore the bundle contains the documentation source -%% file toptesi-it-pdftex.tex and the derived file -%% toptesi-it-pdftex.pdf. +%% file toptesi-it.tex and the derived file +%% toptesi-it.pdf. %% %% The toptesi-example.tex source file is just an example %% that shows how to use the various commands; by commenting @@ -116,18 +110,26 @@ Additional commands for the TOPtesi bundle] %% to produce just the title page with TOPtesi and the external %% package frontespizio. %% +%% The toptesi-scudo-example.tex source file is an example +%% that shows the particular features available with TOPtesi, +%% when a doctoral thesis is produced for the SCUola di +%% DOttorato (ScuDo) of Politecnico di Torino. +%% %% The toptesi.cfg file is a sample of a local configuration %% file that can be copied to another file and its copy freely -%% edited and customized. +%% edited and customised. %% %% By running pdflatex on toptesi.dtx the user gets the class, -%% sty and cfg files and the English documentation file in -%% pdf format. +%% sty, def and cfg files and the English documentation file in +%% PDF format. %% %% The source file of the Italian documentation file -%% toptesi-it-pdftex.pdf is another example of how to use TOPtesi. -%% In spite of its name, toptesi-it-pdftex.tex may be typeset -%% with pdfLaTeX, XeLaTeX, and LuaLateX; see the first comment -%% lines of the file for how-to information. +%% toptesi-it.pdf is another example of how to use TOPtesi. +%% This file toptesi-it.tex may be typeset with pdfLaTeX, +%% XeLaTeX, and LuaLateX; see the first comment lines of +%% the file for how-to information. In spite of being mainly +%% written in Italian, it contains several sections in English +%% for the benefit of foreign students attending the Doctoral +%% School of Turin. %% %% End of file `topcoman.sty'. diff --git a/Master/texmf-dist/tex/latex/toptesi/topfront.sty b/Master/texmf-dist/tex/latex/toptesi/topfront.sty index d6ca4f3ce7d..772b4705764 100644 --- a/Master/texmf-dist/tex/latex/toptesi/topfront.sty +++ b/Master/texmf-dist/tex/latex/toptesi/topfront.sty @@ -6,26 +6,37 @@ %% %% toptesi.dtx (with options: `topfrn') %% ______________________________________________________ -%% The TOPtesi package -%% Copyright (C) 2005-2016 Claudio Beccari +%% The TOPtesi bundle +%% Copyright (C) 2015-2017 Claudio Beccari %% All rights reserved %% %% License information appended %% -\NeedsTeXFormat{LaTeX2e}[2015/01/01] +\NeedsTeXFormat{LaTeX2e}[2016/01/01] \ProvidesPackage{topfront}[% -2016/11/25 v.5.9.06 +2017/10/22 v.~6.1.09 Title page for TOPtesi and other classes] + \@ifpackageloaded{etoolbox}{}{\RequirePackage{etoolbox}} -\ifcsundef{ifclassica}{% -\newif\ifclassica \classicafalse -\newif\if@utoretitolo \@utoretitolofalse -\newif\if@ldstyle \@ldstylefalse -\newif\if@xivpt \@xivptfalse -\newif\if@binding \@bindingfalse -}{} -\ifcsundef{ifTOPfront}{\newif\ifTOPfront \TOPfronttrue}{} +\@ifpackageloaded{xspace}{}{\RequirePackage{xspace}} +\@ifpackageloaded{xparse}{}{\RequirePackage{xparse}} +\ifcsundef{ifclassica}{\newif\ifclassica \classicafalse}{} +\ifcsundef{if@utoretitolo}{\newif\if@utoretitolo\@utoretitolofalse}{} +\ifcsundef{if@ldstyle}{\newif\if@ldstyle\@ldstylefalse}{} +\ifcsundef{if@xivpt}{\newif\if@xivpt \@xivptfalse}{} +\ifcsundef{if@binding}{\newif\if@binding\@bindingfalse}{} +\ifcsundef{ifScuDo}{\newif\ifScuDo \ScuDofalse}{} +\ifcsundef{ifmonografia}{\newif\ifmonografia\monografiafalse}{} +\ifcsundef{iftriennale}{\newif\iftriennale\triennalefalse}{} +\ifcsundef{ifmagistrale}{\newif\ifmagistrale\magistralefalse}{} +\ifcsundef{ifdottorale}{\newif\ifdottorale\dottoralefalse}{} +\ifcsundef{ifsecondaria}{\newif\ifsecondaria\secondariafalse}{} +\ifcsundef{ifplurale}{\newif\ifplurale\pluralefalse}{} + +\ifcsundef{ifTOPfront}{\newif\ifTOPfront \TOPfronttrue +\newif\ifevenboxes \evenboxesfalse}{} \ifcsundef{c@tomo}{\newcounter{tomo}}{} +\DeclareOption{evenboxes}{\evenboxestrue} \DeclareOption{cucitura}{\@bindingtrue} \DeclareOption{14pt}{\@xivpttrue} \DeclareOption{classica}{\classicatrue} @@ -33,20 +44,21 @@ Title page for TOPtesi and other classes] \DeclareOption{oldstyle}{\ifclassica\@ldstyletrue\fi} \ProcessOptions*\relax -\if@xivpt\@ifl@aded{clo}{size14}{}{\input{size14.clo}}\fi \def\headstrut{\vrule \@depth4\p@ \@height\z@ \@width\z@} \def\ps@titlepage{\let\@mkboth\@gobbletwo \def\@oddfoot{\vbox to 0.05\paperheight{\vss \hbox to\hsize{\hfil{\Large{\@submitdate}}\hfil}}}% \let\@evenfoot\@oddfoot \def\@oddhead{% - \vbox to\headheight{\vss\iftopTPTlogos + \vbox to\headheight{\vss + \iftopTPTlogos \hbox to\textwidth{% \headstrut\hfil \raisebox{3\baselineskip}{\usebox\TPT@logobox}\hfil\null% - }\fi - \ifcsvoid{@ateneo}{}{\vskip\smallskipamount - \hbox to\textwidth{\hss\LARGE\MakeUppercase{\@ateneo}\hss}} + } + \fi\par + \ifcsvoid{@ateneo}{}{% + \hbox to\textwidth{\hss\LARGE\rule[-1ex]{0pt}{3.3ex}\MakeUppercase{\@ateneo}\hss}} \vss }% }% @@ -68,7 +80,8 @@ Title page for TOPtesi and other classes] \def\@oddfoot{\vbox to \dimexpr\paperheight/20\relax{\vss \ifclassica \hbox to \hsize{\hfil\raisebox{-.3ex}[\z@][\z@]{% - \vrule\@height-2.6\p@\@depth3\p@\@width\dimexpr\textwidth/3}\hfil}% + \vrule\@height-2.6\p@\@depth3\p@\@width + \dimexpr\textwidth/3}\hfil}% \fi \hbox to\hsize{\hfill{\Large{\@submitdate}}\hfill}}% }% @@ -77,7 +90,7 @@ Title page for TOPtesi and other classes] }% \newif\iffemminile \newif\ifdottorato \dottoratofalse -\newif\iflaureatriennale \laureatriennalefalse +\newif\iftriennale \triennalefalse \ifTOPfront \ifclassica \def\Candidato{Laureando} @@ -85,23 +98,25 @@ Title page for TOPtesi and other classes] \def\Candidati{Laureandi} \def\Candidate{Laureande} \fi\fi -\def\monografia#1{\global\laureatriennaletrue +\def\monografia#1{\global\triennaletrue \global\dottoratofalse \global\def\titolo##1{\PackageWarning{topfront}% {Il titolo e' gia' stato impostato con il comando \string\monografia}}% \gdef\@titolo{#1}} + \let\@stitle\empty + \newcommand*{\titolo}[2][]{% -\ifbool{laureatriennale}{% +\ifbool{triennale}{% \PackageWarning{topfront}{Il titolo deve essere impostato con il comando \string\monografia} -} -{\def\@tempA{#1}\ifdefempty{\@tempA}% - {\gdef\@stitle{#2}} - {\gdef\@stitle{#1}}% +}{% +\def\@tempA{#1}\ifdefempty{\@tempA}% + {\gdef\@stitle{#2}}{\gdef\@stitle{#1}}% \gdef\@titolo{#2}% -}} + }% +} \def\sottotitolo#1{\gdef\@subtitle{#1}} \let\@materia\empty \def\Materia#1{\def\@materia{#1}}\let\materia\Materia @@ -113,12 +128,6 @@ Title page for TOPtesi and other classes] \def\relatore#1{\gdef\@principaladviser{#1}} \def\secondorelatore#1{\gdef\@secondadviser{#1}} \def\terzorelatore#1{\gdef\@thirdadviser{#1}} -\def\candidato#1{\gdef\@author{#1}\femminilefalse} -\def\candidata#1{\gdef\@author{#1}\femminiletrue} -\def\secondocandidato#1{\gdef\@secondauthor{#1}\femminilefalse} -\def\secondacandidata#1{\gdef\@secondauthor{#1}} -\def\terzocandidato#1{\gdef\@thirdauthor{#1}\femminilefalse} -\def\terzacandidata#1{\gdef\@thirdauthor{#1}} \def\sedutadilaurea#1{\getseduta#1 !} \def\getseduta#1 #2!{% \def\@tempA{#2}% @@ -170,9 +179,9 @@ Title page for TOPtesi and other classes] \vrule\@width\dimen@\@height\dimen4\@depth-\dimen\tw@}}} \def\ciclodidottorato#1{\gdef\@ciclo{#1 \@cyclename}}% \def\corsodilaurea#1{\global\dottoratofalse\gdef\@corso{#1}} -\def\corsodidottorato#1{\global\dottoratotrue\global\laureatriennalefalse +\def\corsodidottorato#1{\global\dottoratotrue\global\triennalefalse \gdef\@corso{#1}} -\def\scuoladidottorato#1{\global\dottoratotrue\global\laureatriennalefalse +\def\scuoladidottorato#1{\global\dottoratotrue\global\triennalefalse \gdef\@phdschool{#1}} \def\ateneo#1{\gdef\@ateneo{#1}} \def\nomeateneo#1{\gdef\@nomeat{\expandafter\uppercase{\expandafter #1}}} @@ -185,11 +194,11 @@ Title page for TOPtesi and other classes] \newcommand*\setlogodistance[1]{\TPT@logospace=#1} \providecommand*{\@logosede}{} -\ifcsundef{interno}{%\ - \newlength\interno - \setlength\interno{\dimexpr\paperwidth/7}}{} +\ifcsundef{T@Tlogoheight}{%\ + \newlength\T@Tlogoheight + \setlength\T@Tlogoheight{0.8\dimexpr(\paperwidth-\textwidth)/2}}{} -\newcommand\logosede[2][\interno]{\def\@logosede{#2}\TPT@logoheight=#1\relax +\newcommand\logosede[2][\T@Tlogoheight]{\def\@logosede{#2}\TPT@logoheight=#1\relax \ifcsvoid{@logosede}{\sbox{\TPT@logobox}{}}{\begin{lrbox}{\TPT@logobox}% \expandafter\fillup@TCP@logobox\@logosede,!}} @@ -222,12 +231,41 @@ Title page for TOPtesi and other classes] \newcommand\NomeSecondoTomo[1]{\gdef\SecondoTomo{#1}} \newcommand\NomeTerzoTomo[1]{\gdef\TerzoTomo{#1}} \newcommand\NomeQuartoTomo[1]{\gdef\QuartoTomo{#1}} -\newcommand\IDN{\\\quad matricola:\space} +\providecommand\IDlabel{\\\quad matricola\ } \IfFileExists{\jobname.cfg}{\input{\jobname.cfg}}% {\IfFileExists{toptesi.cfg}{\input{toptesi.cfg}}{}} \@ifundefined{@cyclename}{\def\@cyclename{ciclo}}{} \@ifundefined{@titolo}{\def\@titolo{}}{} -\@ifundefined{@author}{\def\@author{}}{} + +\providecommand\@author{}\providecommand\@@author{} +\NewDocumentCommand\candidato{m o}{\gdef\@@author{#1}% +\IfNoValueTF{#2}{\gdef\@author{#1}}% + {\gdef\@author{#1\IDlabel#2}} +\femminilefalse\pluralefalse} +\NewDocumentCommand\candidata{m o}{\gdef\@@author{#1}% +\IfNoValueTF{#2}{\gdef\@author{#1}}% + {\gdef\@author{#1\IDlabel#2}} +\femminiletrue\pluralefalse} +\providecommand\@secondauthor{} +\NewDocumentCommand\secondocandidato{m o}{% +\IfNoValueTF{#2}{\gdef\@secondauthor{#1}}% + {\gdef\@secondauthor{#1\IDlabel#2}}% +\femminilefalse\pluraletrue} +\NewDocumentCommand\secondacandidata{m o}{% +\IfNoValueTF{#2}{\gdef\@secondauthor{#1}}% + {\gdef\@secondauthor{#1\IDlabel#2}}% +\pluraletrue} +\providecommand\@thirdauthor{} +\NewDocumentCommand\terzocandidato{m o}{% +\IfNoValueTF{#2}{\gdef\@thirdauthor{#1}}% + {\gdef\@thirdauthor{#1\IDlabel#2}}% +\femminilefalse\pluraletrue} +\NewDocumentCommand\terzacandidata{m o}{% +\IfNoValueTF{#2}{\gdef\@thirdauthor{#1}}% + {\gdef\@thirdauthor{#1\IDlabel#2}}% +\pluraletrue} +\providecommand\IDlabel{matricola\ } + \@ifundefined{@principaladviser}{\def\@principaladviser{}}{} \@ifundefined{@secondadviser}{\def\@secondadviser{}}{} \@ifundefined{@thirdadviser}{\def\@thirdadviser{}}{} @@ -235,8 +273,6 @@ Title page for TOPtesi and other classes] \ifDirettore\def\@PhDdirector{Direttore del corso di dottorato}\else \def\@PhDdirector{Coordinatore del corso di dottorato}\fi}{} \@ifundefined{@tutore}{\def\@tutore{}}{} -\@ifundefined{@secondauthor}{\def\@secondauthor{}}{} -\@ifundefined{@thirdauthor}{\def\@thirdauthor{}}{} \@ifundefined{@nomerelatore}{\def\@nomerelatore{}}{} \@ifundefined{@nomecandidato}{\def\@nomecandidato{}}{} \@ifundefined{Candidato}{\def\Candidato{Candidato}}{} @@ -326,7 +362,7 @@ Title page for TOPtesi and other classes] {{\centering\LARGE \@ateneo\par}} } \ifcsvoid{@nomeat}{} - {\ifbool{topTPTlogos}{\vspace*{3.5ex}}{\vspace*{-3ex}}% + {\ifbool{topTPTlogos}{\vspace*{\dimexpr \headsep+2.5ex}}{\vspace*{-3ex}}% {\centering\@nomeat\par}\vfill} \begin{center} @@ -336,15 +372,16 @@ Title page for TOPtesi and other classes] \else \ifcsvoid{@faculty}{}{% \LARGE\ifx\@facnumber\empty\else\@facnumber\space\fi - \@faculty\@facname\par\medskip + \@faculty\unskip\xspace\@facname\par\medskip } \fi }% \ifcsvoid{@corso}{}{{\large \ifdottorato - \@PhDname\@corso\ifx\@ciclo\empty\else~--~\@ciclo\fi + \@PhDname\unskip\xspace + \@corso\ifx\@ciclo\empty\else~--~\@ciclo\fi \else - \@laureaname\@corso + \@laureaname\unskip\xspace\@corso \fi \par}} \end{center} @@ -354,7 +391,7 @@ Title page for TOPtesi and other classes] \ifdottorato \@dissertazione% \else - \iflaureatriennale + \iftriennale \@monografia% \else \@TesiDiLaurea% @@ -386,7 +423,8 @@ Title page for TOPtesi and other classes] \or \QuartoTomo% \else \PackageWarning{toptesi}{% - Counter tomo equals \the\c@tomo\MessageBreak + Counter tomo equals + \the\c@tomo\MessageBreak We never considered a thesis might get divided in more than four volumes}% \fi}}% @@ -397,7 +435,7 @@ Title page for TOPtesi and other classes] \unless\iftopTPTlogos {\vfill\centering \printloghi\par}\fi \vfill - \iflaureatriennale + \iftriennale \let\@nomerelatore\empty \else \ifdottorato @@ -428,11 +466,10 @@ Title page for TOPtesi and other classes] \fi} }{}% \fi - \iflaureatriennale + \iftriennale \begin{center}% \large\mdseries\textsc{\@author} \end{center}% - \else \def\BoxRelatori{% \begin{tabular}[t]{l}% @@ -485,16 +522,21 @@ Title page for TOPtesi and other classes] }% \end{center} \else - \unless\ifclassica - \begin{flushleft}% - \BoxRelatori - \end{flushleft}\par\vspace*{-1.5\baselineskip} - \begin{flushright}% - \BoxCandidati - \end{flushright}% + \unless\ifclassica + \unless\ifevenboxes + \begin{flushleft}% + \BoxRelatori + \end{flushleft}\par\vspace*{-1.5\baselineskip} + \begin{flushright}% + \BoxCandidati + \end{flushright}% + \else + \makebox[\textwidth]{\BoxRelatori\hfill\BoxCandidati} + \fi \else \noindent - \makebox[\textwidth]{\BoxRelatori\hfill\BoxCandidati}\par + \makebox[\textwidth]{% + \BoxRelatori\hfill\BoxCandidati}\par \fi \fi \fi @@ -507,7 +549,7 @@ Title page for TOPtesi and other classes] {\null\vfill\thispagestyle{empty}\@retrofrontespizio\par\clearpage}% \endgroup} %% -%% Copyright 2005-2016 Claudio Beccari +%% Copyright 2005-2017 Claudio Beccari %% %% Distributable under the LaTeX Project Public License, %% version 1.3c or higher (your choice). The latest version of @@ -516,14 +558,14 @@ Title page for TOPtesi and other classes] %% This work is "author-maintained" %% %% This work consists of this file toptesi.dtx, a README file -%% and the derived files: -%% -%% toptesi.cls, toptesi.sty, topfront.sty, topcoman.sty, -%% toptesi.cfg, and the English documentation toptesi.pdf. +%% the manifest.txt file, and the derived files: +%% toptesi.cls, toptesi.sty, topfront.sty, topcommand.sty, +%% toptesi-scudo.sty, toptesi-scudo.def, toptesi.cfg, and the +%% English documentation toptesi.pdf. %% %% Furthermore the bundle contains the documentation source -%% file toptesi-it-pdftex.tex and the derived file -%% toptesi-it-pdftex.pdf. +%% file toptesi-it.tex and the derived file +%% toptesi-it.pdf. %% %% The toptesi-example.tex source file is just an example %% that shows how to use the various commands; by commenting @@ -534,18 +576,26 @@ Title page for TOPtesi and other classes] %% to produce just the title page with TOPtesi and the external %% package frontespizio. %% +%% The toptesi-scudo-example.tex source file is an example +%% that shows the particular features available with TOPtesi, +%% when a doctoral thesis is produced for the SCUola di +%% DOttorato (ScuDo) of Politecnico di Torino. +%% %% The toptesi.cfg file is a sample of a local configuration %% file that can be copied to another file and its copy freely -%% edited and customized. +%% edited and customised. %% %% By running pdflatex on toptesi.dtx the user gets the class, -%% sty and cfg files and the English documentation file in -%% pdf format. +%% sty, def and cfg files and the English documentation file in +%% PDF format. %% %% The source file of the Italian documentation file -%% toptesi-it-pdftex.pdf is another example of how to use TOPtesi. -%% In spite of its name, toptesi-it-pdftex.tex may be typeset -%% with pdfLaTeX, XeLaTeX, and LuaLateX; see the first comment -%% lines of the file for how-to information. +%% toptesi-it.pdf is another example of how to use TOPtesi. +%% This file toptesi-it.tex may be typeset with pdfLaTeX, +%% XeLaTeX, and LuaLateX; see the first comment lines of +%% the file for how-to information. In spite of being mainly +%% written in Italian, it contains several sections in English +%% for the benefit of foreign students attending the Doctoral +%% School of Turin. %% %% End of file `topfront.sty'. diff --git a/Master/texmf-dist/tex/latex/toptesi/toptesi-dottorale.sty b/Master/texmf-dist/tex/latex/toptesi/toptesi-dottorale.sty new file mode 100644 index 00000000000..6bdb0632289 --- /dev/null +++ b/Master/texmf-dist/tex/latex/toptesi/toptesi-dottorale.sty @@ -0,0 +1,592 @@ +%% +%% This is file `toptesi-dottorale.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% toptesi.dtx (with options: `topdoc') +%% ______________________________________________________ +%% The TOPtesi bundle +%% Copyright (C) 2015-2017 Claudio Beccari +%% All rights reserved +%% +%% License information appended +%% +\ProvidesPackage{toptesi-dottorale}[% +2017/10/22 v.~6.1.09 +Ph.D. degree title page] + +\@ifpackageloaded{etoolbox}{}{\RequirePackage{etoolbox}} +\@ifpackageloaded{xspace}{}{\RequirePackage{xspace}} +\@ifpackageloaded{xparse}{}{\RequirePackage{xparse}} +\ifcsundef{ifclassica}{\newif\ifclassica \classicafalse}{} +\ifcsundef{if@utoretitolo}{\newif\if@utoretitolo\@utoretitolofalse}{} +\ifcsundef{if@ldstyle}{\newif\if@ldstyle\@ldstylefalse}{} +\ifcsundef{if@xivpt}{\newif\if@xivpt \@xivptfalse}{} +\ifcsundef{if@binding}{\newif\if@binding\@bindingfalse}{} +\ifcsundef{ifdottorale}{\newif\ifdottorale\dottoralefalse}{} +\ifcsundef{ifevenboxes}{\newif\ifevenboxes \evenboxesfalse}{} +\ifcsundef{ifTOPfront}{\newif\ifTOPfront \TOPfrontfalse}{} +\ifcsundef{ifT@Pfrontespizio}{\newif\ifT@Pfrontespiziofalse}{} +\ifcsundef{c@tomo}{\newcounter{tomo}\setcounter{tomo}{0}}{} +\newif\iffemminile\newif\ifplurale +\newif\iftriennale\triennalefalse +\newif\ifdottorato \dottoratotrue + +\DeclareOption{evenboxes}{\evenboxestrue} +\DeclareOption{cucitura}{\@bindingtrue} +\DeclareOption{14pt}{\@xivpttrue} +\DeclareOption{classica}{\classicatrue} +\DeclareOption{autoretitolo}{\ifclassica\@utoretitolotrue\fi} +\DeclareOption{oldstyle}{\ifclassica\@ldstyletrue\fi} +\ProcessOptions*\relax +\def\headstrut{\vrule \@depth4\p@ \@height\z@ \@width\z@} +\def\ps@titlepage{\let\@mkboth\@gobbletwo + \def\@oddfoot{\vbox to 0.05\paperheight{\vss + \hbox to\hsize{\hfil{\Large{\@submitdate}}\hfil}}}% + \let\@evenfoot\@oddfoot + \def\@oddhead{% + \vbox to\headheight{\vss\iftopTPTlogos + \hbox to\textwidth{% + \headstrut\hfil + \raisebox{3\baselineskip}{\usebox\TPT@logobox}\hfil\null% + }\fi + \ifcsvoid{@ateneo}{}{\vskip\smallskipamount + \hbox to\textwidth{\hss\LARGE\MakeUppercase{\@ateneo}\hss}} + \vss + }% + }% + \let\@evenhead\@oddhead + \def\chaptermark##1{}\def\sectionmark##1{}% +} + + \def\ps@classica{\let\@mkboth\markboth + \def\@oddhead{\vbox{% + \setbox256=\hbox{\LARGE\MakeUppercase{\@ateneo}} + \unless\ifdim\wd256<\textwidth + \setbox256=\hbox{\resizebox{\textwidth}{!}{\box256}}% + \fi + \hbox to \hsize{\hss\box256\hss}% + \ifclassica + \hbox to \hsize{\hfil\vrule\@width\z@ + \@height2ex\vrule\@height1.4\p@\@depth-\p@\@width50mm\hfil}% + \fi + }}% + \def\@oddfoot{\vbox to \dimexpr\paperheight/20\relax{\vss + \ifclassica + \hbox to \hsize{\hfil\raisebox{-.3ex}[\z@][\z@]{% + \vrule\@height-2.6\p@\@depth3\p@\@width + \dimexpr\textwidth/3}\hfil}% + \fi + \hbox to\hsize{\hfill{\Large{\@submitdate}}\hfill}}% + }% + \let\@evenhead\@oddhead + \let\@evenfoot\@oddfoot + }% +\if@utoretitolo + \if@twoside + \renewcommand*{\ps@headings}{\let\@mkboth\markboth% + \def\@oddfoot{\null \hfill \textbf{\lapagina} \hfill \null}% + \let\@evenfoot\@oddfoot + \def\@evenhead{% + \setbox\@intesta\hbox{\ifPDFTeX\latintext\fi + \footnotesize\strut\textsc{% + \@@author\ifcsvoid{@secondauthor}{\ et al.}: \@stitle}% + }% + \ifdim\wd\@intesta>\textwidth\headwrn{\titolo}\fi + \underline{\makebox[\textwidth]{\box\@intesta}}}% + \def\@oddhead{\ifPDFTeX\latintext\fi + \setbox\@intesta\hbox{% + \footnotesize\strut\textsl{\rightmark}}% + \ifdim\wd\@intesta>\textwidth \headWarn{\section}\fi% + \underline{\makebox[\textwidth]{\box\@intesta}}}% + \def\chaptermark##1{\markright{\thechapter\ -- ##1}}% + \def\sectionmark##1{}}% + \else + \renewcommand*{\ps@headings}{\let\@mkboth\markboth + \def\@oddfoot{\null \hfill \textbf{\lapagina}\hfill \null}% + \let\@evenfoot\empty\let\@evenhead\empty + \def\@oddhead{{\setbox\z@\hbox{\ifPDFTeX\latintext\fi + \footnotesize\textsc{% + \@@author\ifcsvoid{@secondauthor}{}{\ et al.}: \@stitle}}% + \setbox\tw@\hbox{\ifPDFTeX\latintext\fi + \footnotesize\textsl{\rightmark}}% + \dimen@=\dimexpr2em + \wd\z@ + \wd\tw@\relax + \ifdim\dimen@<\textwidth \relax + \else + \setbox\z@\vbox{\hsize.48\textwidth\parindent\z@ + \raggedright + \ifPDFTeX\latintext\fi\footnotesize\textsc{% + \@@author\ifcsvoid{@secondauthor}{}{\ et al.}: \@stitle + }}% + \setbox\tw@\vbox{\hsize.48\textwidth\parindent\z@ + \raggedleft + \ifPDFTeX\latintext\fi\footnotesize + \textsl{\rightmark}}% + \fi + \setbox\@intesta\vbox to\z@{% + \vss\hbox to\textwidth{\strut\box\z@\hfill\box\tw@}}% + \underline{\box\@intesta}}}% + \def\chaptermark##1{\markright{\thechapter\ -- ##1}}} + \fi +\fi +\let\@stitle\empty + +\newcommand*{\titolo}[2][]{% +\def\@tempA{#1}\ifdefempty{\@tempA}% + {\gdef\@stitle{#2}}{\gdef\@stitle{#1}}% + \gdef\@titolo{#2}% +}% + +\def\sottotitolo#1{\gdef\@subtitle{#1}} +\let\@materia\empty +\def\Materia#1{\def\@materia{#1}}\let\materia\Materia +\newif\ifDirettore \Direttorefalse +\def\tutore#1{\gdef\@tutore{#1}} +\def\direttore{\Direttoretrue\relatore}% +\def\coordinatore{\Direttorefalse\relatore}% +\def\QualificaDirettore#1{\gdef\@PhDdirector{#1}}% +\def\relatore#1{\gdef\@principaladviser{#1}} +\def\secondorelatore#1{\gdef\@secondadviser{#1}} +\def\terzorelatore#1{\gdef\@thirdadviser{#1}} +\def\esamedidottorato#1{\getseduta#1 !} +\def\getseduta#1 #2!{% + \def\@tempA{#2}% + \ifx\@tempA\empty + \def\@submitdate{#1}% + \else + \unless\ifclassica + \def\@submitdate{#1 #2}% + \else + \s@dutaclassica#1 #2!% + \fi + \fi +}% +\def\s@dutaclassica#1 #2!{% + \if@ldstyle + \s@paranumeri#2-!% + \ifx\2\empty + \edef\@submitdate{\noexpand#1 \noexpand\oldstylenums{#2}}% + \else + \s@paranumeri#2!% + \edef\@submitdate{\noexpand#1 + \noexpand\oldstylenums{\1} -- \noexpand\oldstylenums{\2}}% + \fi + \let\1\undefined + \let\2\undefined + \else + \def\@submitdate{#1 #2}% + \fi +} +\def\s@paranumeri#1-#2!{\def\1{#1}\def\2{#2}}% + +\newcommand*\NomeAnnoAccademico[1]{\gdef\AnnoAccademico{#1}} +\@ifundefined{AnnoAccademico}{\gdef\AnnoAccademico{Anno accademico}}{} +\def\annoaccademico#1{\ifclassica + \def\@submitdate{{\large\textsc{\AnnoAccademico}} {\Large\s@tanno#1!}} + \else + \PackageWarning{toptesi}{\string\annoaccademico\space + is usable only when the\MessageBreak + `classica' option is in force}% + \def\@submitdate{\AnnoAccademico\ #1 --- Needs the `classica' option} + \fi} +\def\s@tanno#1-#2!{\oldstylenums{#1}\EnDash\oldstylenums{#2}} + +\def\EnDash{{\settowidth{\dimen@}{\large\scshape I}% +\setbox\tw@\hbox{2}\dimen\tw@.5\ht\tw@\advance\dimen\tw@-.5\dp\tw@ +\dimen4\dimen\tw@\advance\dimen4by.0385ex\relax +\advance\dimen\tw@-.0385ex\relax +\makebox[1.5\dimen@]{% + \vrule\@width\dimen@\@height\dimen4\@depth-\dimen\tw@}}} +\def\ciclodidottorato#1{\gdef\@ciclo{#1 \@cyclename}}% +\def\corsodidottorato#1{\global\dottoratotrue + \global\gdef\@corso{#1}} +\def\scuoladidottorato#1{\global\dottoratotrue + \gdef\@phdschool{#1}} +\def\ateneo#1{\gdef\@ateneo{#1}} +\def\nomeateneo#1{\gdef\@nomeat{\expandafter\uppercase{\expandafter #1}}} +\newcommand\facolta[2][]{\gdef\@facname{#2}\gdef\@facnumber{#1}} +\let\struttura\facolta +\newlength{\TPT@logospace}\TPT@logospace=3em\relax +\newsavebox{\TPT@logobox} +\newdimen\TPT@logoheight +\newcommand*\setlogodistance[1]{\TPT@logospace=#1} +\providecommand*{\@logosede}{} + +\ifcsundef{T@Tlogoheight}{%\ + \newlength\T@Tlogoheight + \setlength\T@Tlogoheight{0.8\dimexpr(\paperwidth-\textwidth)/2}}{} + +\newcommand\logosede[2][\T@Tlogoheight]{\def\@logosede{#2}\TPT@logoheight=#1\relax +\ifcsvoid{@logosede}{\sbox{\TPT@logobox}{}}{\begin{lrbox}{\TPT@logobox}% +\expandafter\fillup@TCP@logobox\@logosede,!}} + +\def\fillup@TCP@logobox#1,#2!{% +\ifblank{#1}{\end{lrbox}\ifdim\wd\TPT@logobox>\textwidth +\sbox\TPT@logobox{\resizebox{\textwidth}{!}{\box\TPT@logobox}}\fi}% +{\def\@logosede{#2}% +\includegraphics[height=\TPT@logoheight]{#1}\hskip\TPT@logospace + \expandafter\fillup@TCP@logobox\@logosede,!}} + +\newcommand\printloghi{\unless\ifvoid\TPT@logobox\usebox{\TPT@logobox}\fi} +\def\tutoreaziendale#1{\gdef\@tutoreaziendale{#1}} +\newcommand\retrofrontespizio[1]{\long\gdef\@retrofrontespizio{#1}} +\newcommand\FacoltaDi[1]{\gdef\@faculty{#1}} +\let\StrutturaDidattica\FacoltaDi +\newcommand\DottoratoIn[1]{\gdef\@PhDname{#1}} +\newcommand\CorsoDiLaureaIn[1]{\gdef\@laureaname{#1}} +\newcommand\TesiDiLaurea[1]{\gdef\@TesiDiLaurea{#1}} +\newcommand\NomeMonografia[1]{\gdef\@monografia{#1}} +\newcommand\NomeDissertazione[1]{\gdef\@dissertazione{#1}} +\newcommand\InName[1]{\gdef\@InName{#1}} +\newcommand\CandidateName[1]{\gdef\@nomecandidato{#1}} +\newcommand\AdvisorName[1]{\gdef\Relatore{#1}\gdef\Relatori{#1}} +\newcommand\CoAdvisorName[1]{\gdef\Correlatore{#1}\gdef\Correlatori{#1}} +\newcommand\TutorName[1]{\gdef\Tutore{#1}} +\newcommand\NomeTutoreAziendale[1]{\gdef\@tutoreaziendalename{#1}} +\newcommand\CycleName[1]{\gdef\@cyclename{#1}} +\newcommand\NomePrimoTomo[1]{\gdef\PrimoTomo{#1}} +\newcommand\NomeSecondoTomo[1]{\gdef\SecondoTomo{#1}} +\newcommand\NomeTerzoTomo[1]{\gdef\TerzoTomo{#1}} +\newcommand\NomeQuartoTomo[1]{\gdef\QuartoTomo{#1}} +\newcommand\IDlabel{\\matricola:\xspace} +\IfFileExists{\jobname.cfg}{\input{\jobname.cfg}}% + {\IfFileExists{toptesi.cfg}{\input{toptesi.cfg}}{}} +\@ifundefined{@cyclename}{\def\@cyclename{ciclo}}{} +\@ifundefined{@titolo}{\def\@titolo{}}{} +\NewDocumentCommand\candidato{m o}{\gdef\@@author{#1}% +\IfNoValueTF{#2}{\gdef\@author{#1}}% + {\gdef\@author{#1\IDlabel#2}} +\femminilefalse\pluralefalse} +\NewDocumentCommand\candidata{m o}{\gdef\@@author{#1}% +\IfNoValueTF{#2}{\gdef\@author{#1}}% + {\gdef\@author{#1\IDlabel#2}} +\femminiletrue\pluralefalse} +\providecommand\@secondauthor{} +\NewDocumentCommand\secondocandidato{m o}{% +\IfNoValueTF{#2}{\gdef\@secondauthor{#1}}% + {\gdef\@secondauthor{#1\IDlabel#2}}% +\femminilefalse\pluraletrue} +\NewDocumentCommand\secondacandidata{m o}{% +\IfNoValueTF{#2}{\gdef\@secondauthor{#1}}% + {\gdef\@secondauthor{#1\IDlabel#2}}% +\pluraletrue} +\providecommand\@thirdauthor{} +\NewDocumentCommand\terzocandidato{m o}{% +\IfNoValueTF{#2}{\gdef\@thirdauthor{#1}}% + {\gdef\@thirdauthor{#1\IDlabel#2}}% +\femminilefalse\pluraletrue} +\NewDocumentCommand\terzacandidata{m o}{% +\IfNoValueTF{#2}{\gdef\@thirdauthor{#1}}% + {\gdef\@thirdauthor{#1\IDlabel#2}}% +\pluraletrue} + +\@ifundefined{@principaladviser}{\def\@principaladviser{}}{} +\@ifundefined{@secondadviser}{\def\@secondadviser{}}{} +\@ifundefined{@thirdadviser}{\def\@thirdadviser{}}{} +\ifcsundef{@PhDdirector}{% + \ifDirettore\def\@PhDdirector{Direttore del corso di dottorato}\else + \def\@PhDdirector{Coordinatore del corso di dottorato}\fi}{} +\@ifundefined{@tutore}{\def\@tutore{}}{} +\@ifundefined{@nomerelatore}{\def\@nomerelatore{}}{} +\@ifundefined{@nomecandidato}{\def\@nomecandidato{}}{} +\@ifundefined{Candidato}{\def\Candidato{Candidato}}{} +\@ifundefined{Candidata}{\def\Candidata{Candidata}}{} +\@ifundefined{Candidati}{\def\Candidati{Candidati}}{} +\@ifundefined{Candidate}{\def\Candidate{Candidate}}{} +\@ifundefined{Relatore}{\def\Relatore{Relatore}}{} +\@ifundefined{Relatori}{\def\Relatori{Relatori}}{} +\@ifundefined{Correlatore}{\def\Correlatore{Correlatore}}{} +\@ifundefined{Correlatori}{\def\Correlatori{Correlatori}}{} +\@ifundefined{Tutore}{\def\Tutore{Tutore}}{} +\@ifundefined{@tutoreaziendale}{\def\@tutoreaziendale{}}{} +\@ifundefined{@tutoreaziendalename}% + {\def\@tutoreaziendalename{Supervisore Aziendale}}{} +\@ifundefined{@retrofrontespizio}{\def\@retrofrontespizio{}}{} +\@ifundefined{@subtitle}{\def\@subtitle{}}{} +\@ifundefined{@corso}{\def\@corso{}}{} +\@ifundefined{@ciclo}{\def\@ciclo{}}{} +\@ifundefined{@ateneo}{\def\@ateneo{POLITECNICO DI TORINO}}{} +\@ifundefined{@nomeat}{\def\@nomeat{}}{}% Nome proprio dell'ateneo +\@ifundefined{@facolta}{\def\@facname{}}{} +\@ifundefined{@facnumber}{\def\@facnumber{}}{} +\@ifundefined{@faculty}{\def\@faculty{}}{} +\@ifundefined{PrimoTomo}{\def\PrimoTomo{Tomo primo}}{} +\@ifundefined{SecondoTomo}{\def\SecondoTomo{Tomo secondo}}{} +\@ifundefined{TerzoTomo}{\def\TerzoTomo{Tomo terzo}}{} +\@ifundefined{QuartoTomo}{\def\QuartoTomo{Tomo quarto}}{} +\@ifundefined{@submitdate}{\def\@submitdate{\ifcase\the\month\or% + Gennaio\or Febbraio\or Marzo\or Aprile\or Maggio\or Giugno\or + Luglio\or Agosto\or Settembre\or Ottobre\or Novembre\or Dicembre\fi + \space \the\year}}{} +\@ifundefined{@TesiDiLaurea}{\def\@TesiDiLaurea{Tesi di Laurea}}{} +\@ifundefined{@phdschool}{\def\@phdschool{SCUOLA DI DOTTORATO}}{} +\@ifundefined{@PhDname}{\def\@PhDname{Dottorato in }}{} +\@ifundefined{@laureaname}{\def\@laureaname{Corso di Laurea in }}{} +\@ifundefined{@dissertazione}{\def\@dissertazione{Tesi di Dottorato}}{} +\@ifundefined{@monografia}{\def\@monografia{Monografia di Laurea}}{} +\@ifundefined{@InName}{\def\@InName{in}}{} +\newbool{topTPTlogos}\newbool{AteneoInHead} + +\DeclareDocumentEnvironment{ThesisTitlePage}{s}{% + \IfBooleanTF{#1}{\boolfalse{topTPTlogos}\booltrue{AteneoInHead}}% + {\booltrue{topTPTlogos}\boolfalse{AteneoInHead}}% + \IfFileExists{\jobname.cfg}{\input{\jobname.cfg}}{% + \PackageWarning{toptesi-dottorale}{% + No configuration file found\MessageBreak}} +}{% + \fr@ntespizio +} +\def\fr@ntespizio{% +\begingroup\par + \oddsidemargin=\dimexpr(\oddsidemargin+\evensidemargin)/2\relax + \evensidemargin \oddsidemargin +\null +\setcounter{page}{1}% +\normalfont +\ifclassica + \boolfalse{topTPTlogos} + \thispagestyle{classica} + \ifcsvoid{@ateneo}{\def\@ateneo{Manca il nome dell'ateneo} + }{} +\else + \thispagestyle{titlepage} +\fi +\ifcsvoid{@ateneo}{}{\booltrue{AteneoInHead}} +\ifcsvoid{@ateneo}{% + \ifbool{topTPTlogos} + {}{\booltrue{AteneoInHead}\def\@ateneo{Manca il nome dell'ateneo}}% +}{% + \booltrue{AteneoInHead}% +} + \ifbool{AteneoInHead}{}{% + {{\centering\LARGE \@ateneo\par}} + } + \ifcsvoid{@nomeat}{} + {\ifbool{topTPTlogos}{\vspace*{\dimexpr \headsep+2.5ex}}{\vspace*{-3ex}}% + {\centering\@nomeat\par}\vfill} + + \begin{center} + {\rmfamily\mdseries + \ifdottorato + \large \@phdschool\par\medskip + \else + \ifcsvoid{@faculty}{}{% + \LARGE\ifx\@facnumber\empty\else\@facnumber\space\fi + \@faculty\unskip\xspace\@facname\par\medskip + } + \fi + }% + \ifcsvoid{@corso}{}{{\large + \ifdottorato + \@PhDname\unskip\xspace + \@corso\ifx\@ciclo\empty\else~--~\@ciclo\fi + \else + \@laureaname\unskip\xspace\@corso + \fi + \par}} + \end{center} + \vspace{\stretch{0.2}} + \begin{center} + \LARGE\@dissertazione% + \unless\ifx\empty\@materia + \\\@InName\\\@materia + \fi + \end{center} + \vspace{\stretch{0.2}} + \begin{center} + {\huge\bfseries \baselineskip=0.95em plus 1pt + \@titolo \par} + \end{center} + \unless\ifx\@subtitle\empty + \begin{center}% + \large\textrm{\@subtitle}\par + \end{center}% + \fi + \ifclassica + \ifnum\value{tomo}>\z@ + \par\bigskip + \noindent\makebox[\textwidth]{% + \large\textbf{% + \ifcase\c@tomo% + \or \PrimoTomo% + \or \SecondoTomo% + \or \TerzoTomo% + \or \QuartoTomo% + \else + \PackageWarning{toptesi}{% + Counter tomo equals \the\c@tomo\MessageBreak + We never considered a thesis might get + divided in more than four volumes}% + \fi}}% + \fi + \vspace{1em} + \fi + \par + \unless\iftopTPTlogos + {\vfill\centering \printloghi\par}\fi + \vfill + \iftriennale + \let\@nomerelatore\empty + \else + \ifdottorato + \edef\@nomerelatore{\@PhDdirector}% + \else + \ifcsvoid{@principaladviser}{}{% + \def\@nomerelatore{\Relatore}} + \unless\ifclassica + \ifcsvoid{@secondadviser}{}{% + \def\@nomerelatore{\Relatori}}% + \fi + \fi + \fi + \ifdottorato + \let\@nomecandidato\empty + \else + \iflanguage{italian}{% + \iffemminile + \def\@nomecandidato{\Candidata}% + \else + \def\@nomecandidato{\Candidato}% + \fi + \ifcsvoid{@secondauthor}{}{% + \iffemminile + \def\@nomecandidato{\Candidate}% + \else + \def\@nomecandidato{\Candidati}% + \fi} + }{}% + \fi + \iftriennale + \begin{center}% + \large\mdseries\textsc{\@author} + \end{center}% + \else + \def\BoxRelatori{% + \begin{tabular}[t]{l}% + \hbox{\ifclassica\else\large\fi + \textbf{\protect\@nomerelatore}}\\[.6ex] + \hbox{\large\textrm{\protect\@principaladviser}}% + \ifx\@secondadviser\empty \else + \ifclassica + \ifx\@thirdadviser\empty + \ifx\@secondadviser\empty\else + \\[1.5ex]\textbf{\Correlatore:}% + \fi + \else + \\[1.5ex]\textbf{\Correlatori:}% + \fi + \fi + \\[.6ex]\hbox{{\large\textrm{\protect\@secondadviser}}}% + \fi + \ifx\@thirdadviser\empty \else + \\[.6ex] \hbox{{\large\textrm{\protect\@thirdadviser}}}% + \fi + \end{tabular}% + }% + \def\print@secondocandidato{\\\relax + \hbox{\large\tabular{@{}l@{}}\@secondauthor\endtabular}} + \def\print@terzocandidato{\\\relax + \hbox{\large\tabular{@{}l@{}}\@thirdauthor\endtabular}} + \def\BoxCandidati{% + \begin{tabular}[t]{l}% + \hbox{\unless\ifclassica\large\fi + \textbf{\protect\@nomecandidato}}\\[.6ex] + \hbox{\large\tabular{@{}l@{}}\@author\endtabular}% + \ifcsvoid{@secondauthor}{}{\print@secondocandidato}% + \ifcsvoid{@thirdauthor}{}{\print@terzocandidato}% + \end{tabular}% + }% + \ifdottorato + \begin{center}\large + \textbf{\@author}\\[3em] + {\normalsize + \begin {tabular*}{\hsize}{@{\extracolsep{\fill}}ccc} + \ifcsvoid{@tutore}{}{\textbf{\Tutore}} + &\relax& + \ifcsvoid{@principaladviser}{}{\textbf{\@nomerelatore}} + \\ + \ifcsvoid{@tutore}{}{\@tutore} + &\relax& + \ifcsvoid{@principaladviser}{}{\@principaladviser} + \end{tabular*} + }% + \end{center} + \else + \unless\ifclassica + \unless\ifevenboxes + \begin{flushleft}% + \BoxRelatori + \end{flushleft}\par\vspace*{-1.5\baselineskip} + \begin{flushright}% + \BoxCandidati + \end{flushright}% + \else + \makebox[\textwidth]{\BoxRelatori\hfill\BoxCandidati} + \fi + \else + \noindent + \makebox[\textwidth]{% + \BoxRelatori\hfill\BoxCandidati}\par + \fi + \fi + \fi +\ifcsvoid{@tutoreaziendale}{}{% + \vfill\vfill + {\centering \textbf{\@tutoreaziendalename}\\[.6ex] + \@tutoreaziendale\par}} + \par\clearpage + \ifcsvoid{@retrofrontespizio}{}% + {\null\vfill\thispagestyle{empty}\@retrofrontespizio\par\clearpage}% +\endgroup} +%% +%% Copyright 2005-2017 Claudio Beccari +%% +%% Distributable under the LaTeX Project Public License, +%% version 1.3c or higher (your choice). The latest version of +%% this license is at: http://www.latex-project.org/lppl.txt +%% +%% This work is "author-maintained" +%% +%% This work consists of this file toptesi.dtx, a README file +%% the manifest.txt file, and the derived files: +%% toptesi.cls, toptesi.sty, topfront.sty, topcommand.sty, +%% toptesi-scudo.sty, toptesi-scudo.def, toptesi.cfg, and the +%% English documentation toptesi.pdf. +%% +%% Furthermore the bundle contains the documentation source +%% file toptesi-it.tex and the derived file +%% toptesi-it.pdf. +%% +%% The toptesi-example.tex source file is just an example +%% that shows how to use the various commands; by commenting +%% or uncommenting certain source lines it is possible to +%% typeset different kind of theses and their front pages. +%% +%% The topfront-example.tex source file is an example of how +%% to produce just the title page with TOPtesi and the external +%% package frontespizio. +%% +%% The toptesi-scudo-example.tex source file is an example +%% that shows the particular features available with TOPtesi, +%% when a doctoral thesis is produced for the SCUola di +%% DOttorato (ScuDo) of Politecnico di Torino. +%% +%% The toptesi.cfg file is a sample of a local configuration +%% file that can be copied to another file and its copy freely +%% edited and customised. +%% +%% By running pdflatex on toptesi.dtx the user gets the class, +%% sty, def and cfg files and the English documentation file in +%% PDF format. +%% +%% The source file of the Italian documentation file +%% toptesi-it.pdf is another example of how to use TOPtesi. +%% This file toptesi-it.tex may be typeset with pdfLaTeX, +%% XeLaTeX, and LuaLateX; see the first comment lines of +%% the file for how-to information. In spite of being mainly +%% written in Italian, it contains several sections in English +%% for the benefit of foreign students attending the Doctoral +%% School of Turin. +%% +%% End of file `toptesi-dottorale.sty'. diff --git a/Master/texmf-dist/tex/latex/toptesi/toptesi-magistrale.sty b/Master/texmf-dist/tex/latex/toptesi/toptesi-magistrale.sty new file mode 100644 index 00000000000..bbf63d5fdc6 --- /dev/null +++ b/Master/texmf-dist/tex/latex/toptesi/toptesi-magistrale.sty @@ -0,0 +1,537 @@ +%% +%% This is file `toptesi-magistrale.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% toptesi.dtx (with options: `topmag') +%% ______________________________________________________ +%% The TOPtesi bundle +%% Copyright (C) 2015-2017 Claudio Beccari +%% All rights reserved +%% +%% License information appended +%% +\NeedsTeXFormat{LaTeX2e}[2016/01/01] +\ProvidesPackage{toptesi-magistrale}[% +2017/10/22 v.~6.1.09 +Master degree title page] + +\@ifpackageloaded{etoolbox}{}{\RequirePackage{etoolbox}} +\@ifpackageloaded{xspace}{}{\RequirePackage{xspace}} +\@ifpackageloaded{xparse}{}{\RequirePackage{xparse}} +\ifcsundef{ifclassica}{\newif\ifclassica \classicafalse}{} +\ifcsundef{if@utoretitolo}{\newif\if@utoretitolo\@utoretitolofalse}{} +\ifcsundef{if@ldstyle}{\newif\if@ldstyle\@ldstylefalse}{} +\ifcsundef{if@xivpt}{\newif\if@xivpt \@xivptfalse}{} +\ifcsundef{if@binding}{\newif\if@binding\@bindingfalse}{} +\ifcsundef{ifScuDo}{\newif\ifScuDo \ScuDofalse}{} +\ifcsundef{ifmonografia}{\newif\ifmonografia\monografiafalse}{} +\ifcsundef{iftriennale}{\newif\iftriennale\triennalefalse}{} +\ifcsundef{ifmagistrale}{\newif\ifmagistrale\magistralefalse}{} +\ifcsundef{ifdottorale}{\newif\ifdottorale\dottoralefalse}{} +\ifcsundef{ifsecondaria}{\newif\ifsecondaria\secondariafalse}{} +\ifcsundef{ifplurale}{\newif\ifplurale\pluralefalse}{} +\ifcsundef{iffemminile}{\newif\iffemminile\femminilefalse}{} + +\magistraletrue + +\ifcsundef{ifTOPfront}{\newif\ifTOPfront \TOPfrontfalse +\newif\ifevenboxes \evenboxesfalse}{} + +\ifcsundef{c@tomo}{\newcounter{tomo}{\setcounter{tomo}{0}}}{} +\providecommand\tomo{} +\ifcsundef{tomo}{\renewcommand\tomo[1][]{% + \ifstrequal{#1}{}{}{\setcounter{tomo}{\numexpr#1-1}}% + \refstepcounter{tomo}}}{} +\DeclareOption{evenboxes}{\evenboxestrue} +\DeclareOption{cucitura}{\@bindingtrue} +\DeclareOption{14pt}{\@xivpttrue} +\DeclareOption{classica}{\classicatrue} +\DeclareOption{autoretitolo}{\ifclassica\@utoretitolotrue\fi} +\DeclareOption{oldstyle}{\ifclassica\@ldstyletrue\fi} +\ProcessOptions*\relax +\def\headstrut{\vrule \@depth4\p@ \@height\z@ \@width\z@} +\def\ps@titlepage{\let\@mkboth\@gobbletwo + \def\@oddfoot{\vbox to 0.05\paperheight{\vss + \hbox to\hsize{\hfil{\Large{\@submitdate}}\hfil}}}% + \let\@evenfoot\@oddfoot + \def\@oddhead{% + \vbox to\headheight{\vss\iftopTPTlogos + \hbox to\textwidth{% + \headstrut\hfil + \raisebox{3\baselineskip}{\usebox\TPT@logobox}\hfil\null% + }\fi + \ifcsvoid{@ateneo}{}{\vskip\smallskipamount + \hbox to\textwidth{\hss\LARGE\MakeUppercase{\@ateneo}\hss}} + \vss + }% + }% + \let\@evenhead\@oddhead + \def\chaptermark##1{}\def\sectionmark##1{}% +} + +\def\ps@classica{\let\@mkboth\markboth + \def\@oddhead{\vbox{% + \setbox256=\hbox{\LARGE\MakeUppercase{\@ateneo}} + \unless\ifdim\wd256<\textwidth + \setbox256=\hbox{\resizebox{\textwidth}{!}{\box256}}% + \fi + \hbox to \hsize{\hss\box256\hss}% + \ifclassica + \hbox to \hsize{\hfil\vrule\@width\z@ + \@height2ex\vrule\@height1.4\p@\@depth-\p@\@width50mm\hfil}% + \fi + }}% + \def\@oddfoot{\vbox to \dimexpr\paperheight/20\relax{\vss + \ifclassica + \hbox to \hsize{\hfil\raisebox{-.3ex}[\z@][\z@]{% + \vrule\@height-2.6\p@\@depth3\p@\@width + \dimexpr\textwidth/3}\hfil}% + \fi + \hbox to\hsize{\hfill{\Large{\@submitdate}}\hfill}}% + }% + \let\@evenhead\@oddhead + \let\@evenfoot\@oddfoot +}% +\newif\iffemminile + +\ifTOPfront\ifclassica +\def\Candidato{Laureando} +\def\Candidata{Laureanda} +\def\Candidati{Laureandi} +\def\Candidate{Laureande} +\fi\fi +\let\@stitle\empty % default short title string + +\newcommand*{\titolo}[2][]{% +\ifstrequal{#1}{}% + {\gdef\@stitle{#2}}{\gdef\@stitle{#1}}% + \gdef\@titolo{#2}% +}% +\def\sottotitolo#1{\gdef\@subtitle{#1}} + +\let\@materia\empty +\def\Materia#1{\def\@materia{#1}}\let\materia\Materia +\def\relatore#1{\gdef\@principaladviser{#1}} +\def\secondorelatore#1{\gdef\@secondadviser{#1}} +\def\terzorelatore#1{\gdef\@thirdadviser{#1}} +\def\sedutadilaurea#1{\getseduta#1 !} +\def\getseduta#1 #2!{% + \ifstrequal{#2}{}% + {\def\@submitdate{#1}}% + {\unless\ifclassica + \def\@submitdate{#1 #2}% + \else + \s@dutaclassica#1 #2!% + \fi} +}% +\def\s@dutaclassica#1 #2!{% + \if@ldstyle + \s@paranumeri#2-!% + \ifx\2\empty + \edef\@submitdate{\noexpand#1 \noexpand\oldstylenums{#2}}% + \else + \s@paranumeri#2!% + \edef\@submitdate{\noexpand#1 + \noexpand\oldstylenums{\1} -- \noexpand\oldstylenums{\2}}% + \fi + \let\1\undefined + \let\2\undefined + \else + \def\@submitdate{#1 #2}% + \fi +} +\def\s@paranumeri#1-#2!{\def\1{#1}\def\2{#2}}% + +\newcommand*\NomeAnnoAccademico[1]{\gdef\AnnoAccademico{#1}} +\@ifundefined{AnnoAccademico}{\gdef\AnnoAccademico{Anno accademico}}{} +\def\annoaccademico#1{% +\ifclassica + \def\@submitdate{{\large\textsc{\AnnoAccademico}}% + {\Large\s@tanno#1!}} +\else + \PackageWarning{toptesi}{\string\annoaccademico\space + is usable only when the\MessageBreak + `classica' option is in force}% + \def\@submitdate{\AnnoAccademico\ #1 --- + Needs the `classica' option} +\fi} +\def\s@tanno#1-#2!{\oldstylenums{#1}\EnDash\oldstylenums{#2}} + +\def\EnDash{{\settowidth{\dimen@}{\large\scshape I}% +\setbox\tw@\hbox{2}\dimen\tw@.5\ht\tw@\advance\dimen\tw@-.5\dp\tw@ +\dimen4\dimen\tw@\advance\dimen4by.0385ex\relax +\advance\dimen\tw@-.0385ex\relax +\makebox[1.5\dimen@]{% + \vrule\@width\dimen@\@height\dimen4\@depth-\dimen\tw@}}} +\def\corsodilaurea#1{\gdef\@corso{#1}} +\def\ateneo#1{\gdef\@ateneo{#1}} +\def\nomeateneo#1{\gdef\@nomeat{\expandafter\uppercase{\expandafter #1}}} +\newcommand\facolta[2][]{\gdef\@facname{#2}\gdef\@facnumber{#1}} +\let\struttura\facolta + +\newlength{\TPT@logospace}\TPT@logospace=3em\relax +\newsavebox{\TPT@logobox} +\newdimen\TPT@logoheight +\newcommand*\setlogodistance[1]{\TPT@logospace=#1} +\providecommand*{\@logosede}{} + +\ifcsundef{T@Tlogoheight}{%\ + \newlength\T@Tlogoheight + \setlength\T@Tlogoheight{0.8\dimexpr(\paperwidth-\textwidth)/2}}{} + +\newcommand\logosede[2][\T@Tlogoheight]{\def\@logosede{#2}\TPT@logoheight=#1\relax +\ifcsvoid{@logosede}{\sbox{\TPT@logobox}{}}{\begin{lrbox}{\TPT@logobox}% +\expandafter\fillup@TCP@logobox\@logosede,!}} + +\def\fillup@TCP@logobox#1,#2!{% +\ifblank{#1}{\end{lrbox}\ifdim\wd\TPT@logobox>\textwidth +\sbox\TPT@logobox{\resizebox{\textwidth}{!}{\box\TPT@logobox}}\fi}% +{\def\@logosede{#2}% +\includegraphics[height=\TPT@logoheight]{#1}\hskip\TPT@logospace + \expandafter\fillup@TCP@logobox\@logosede,!}} + +\newcommand\printloghi{\unless\ifvoid\TPT@logobox\usebox{\TPT@logobox}\fi} +\def\tutoreaziendale#1{\gdef\@tutoreaziendale{#1}} +\newcommand\retrofrontespizio[1]{\long\gdef\@retrofrontespizio{#1}} +\newcommand\FacoltaDi[1]{\gdef\@faculty{#1}} +\let\StrutturaDidattica\FacoltaDi +\newcommand\CorsoDiLaureaIn[1]{\gdef\@laureaname{#1}} +\newcommand\TesiDiLaurea[1]{\gdef\@TesiDiLaurea{#1}} +\newcommand\InName[1]{\gdef\@InName{#1}} +\newcommand\CandidateName[1]{\gdef\@nomecandidato{#1}} +\newcommand\AdvisorName[1]{\gdef\Relatore{#1}\gdef\Relatori{#1}} +\newcommand\CoAdvisorName[1]{\gdef\Correlatore{#1}\gdef\Correlatori{#1}} +\newcommand\TutorName[1]{\gdef\Tutore{#1}} +\newcommand\NomeTutoreAziendale[1]{\gdef\@tutoreaziendalename{#1}} +\newcommand\NomePrimoTomo[1]{\gdef\PrimoTomo{#1}} +\newcommand\NomeSecondoTomo[1]{\gdef\SecondoTomo{#1}} +\newcommand\NomeTerzoTomo[1]{\gdef\TerzoTomo{#1}} +\newcommand\NomeQuartoTomo[1]{\gdef\QuartoTomo{#1}} +\newcommand\IDlabel{\\\quad matricola:\xspace} +\IfFileExists{\jobname.cfg}{\input{\jobname.cfg}}% + {\IfFileExists{toptesi.cfg}{\input{toptesi.cfg}}{}} +\@ifundefined{@titolo}{\def\@titolo{}}{} + +\providecommand\@author{}\providecommand\@@author{} +\NewDocumentCommand\candidato{m o}{\gdef\@@author{#1}% +\IfNoValueTF{#2}{\gdef\@author{#1}}% + {\gdef\@author{#1\IDlabel#2}} +\femminilefalse\pluralefalse} +\NewDocumentCommand\candidata{m o}{\gdef\@@author{#1}% +\IfNoValueTF{#2}{\gdef\@author{#1}}% + {\gdef\@author{#1\IDlabel#2}} +\femminiletrue\pluralefalse} +\providecommand\@secondauthor{} +\NewDocumentCommand\secondocandidato{m o}{% +\IfNoValueTF{#2}{\gdef\@secondauthor{#1}}% + {\gdef\@secondauthor{#1\IDlabel#2}}% +\femminilefalse\pluraletrue} +\NewDocumentCommand\secondacandidata{m o}{% +\IfNoValueTF{#2}{\gdef\@secondauthor{#1}}% + {\gdef\@secondauthor{#1\IDlabel#2}}% +\pluraletrue} +\providecommand\@thirdauthor{} +\NewDocumentCommand\terzocandidato{m o}{% +\IfNoValueTF{#2}{\gdef\@thirdauthor{#1}}% + {\gdef\@thirdauthor{#1\IDlabel#2}}% +\femminilefalse\pluraletrue} +\NewDocumentCommand\terzacandidata{m o}{% +\IfNoValueTF{#2}{\gdef\@thirdauthor{#1}}% + {\gdef\@thirdauthor{#1\IDlabel#2}}% +\pluraletrue} +\providecommand\IDlabel{\\\quad matricola\ } +\@ifundefined{@principaladviser}{\def\@principaladviser{}}{} +\@ifundefined{@secondadviser}{\def\@secondadviser{}}{} +\@ifundefined{@thirdadviser}{\def\@thirdadviser{}}{} +\@ifundefined{@tutore}{\def\@tutore{}}{} +\@ifundefined{@nomerelatore}{\def\@nomerelatore{}}{} +\@ifundefined{@nomecandidato}{\def\@nomecandidato{}}{} +\@ifundefined{Candidato}{\def\Candidato{Candidato}}{} +\@ifundefined{Candidata}{\def\Candidata{Candidata}}{} +\@ifundefined{Candidati}{\def\Candidati{Candidati}}{} +\@ifundefined{Candidate}{\def\Candidate{Candidate}}{} +\@ifundefined{Relatore}{\def\Relatore{Relatore}}{} +\@ifundefined{Relatori}{\def\Relatori{Relatori}}{} +\@ifundefined{Correlatore}{\def\Correlatore{Correlatore}}{} +\@ifundefined{Correlatori}{\def\Correlatori{Correlatori}}{} +\@ifundefined{Tutore}{\def\Tutore{Tutore}}{} +\@ifundefined{@tutoreaziendale}{\def\@tutoreaziendale{}}{} +\@ifundefined{@tutoreaziendalename}% + {\def\@tutoreaziendalename{Supervisore Aziendale}}{} +\@ifundefined{@retrofrontespizio}{\def\@retrofrontespizio{}}{} +\@ifundefined{@subtitle}{\def\@subtitle{}}{} +\@ifundefined{@corso}{\def\@corso{}}{} +\@ifundefined{@ateneo}{\def\@ateneo{POLITECNICO DI TORINO}}{} +\@ifundefined{@nomeat}{\def\@nomeat{}}{}% Nome proprio dell'ateneo +\@ifundefined{@facolta}{\def\@facname{}}{} +\@ifundefined{@facnumber}{\def\@facnumber{}}{} +\@ifundefined{@faculty}{\def\@faculty{}}{} +\@ifundefined{PrimoTomo}{\def\PrimoTomo{Tomo primo}}{} +\@ifundefined{SecondoTomo}{\def\SecondoTomo{Tomo secondo}}{} +\@ifundefined{TerzoTomo}{\def\TerzoTomo{Tomo terzo}}{} +\@ifundefined{QuartoTomo}{\def\QuartoTomo{Tomo quarto}}{} +\ifclassica +\def\Candidato{Laureando} +\def\Candidata{Laureanda} +\def\Candidati{Laureandi} +\def\Candidate{Laureande} +\fi +\@ifundefined{@submitdate}{\def\@submitdate{\ifcase\the\month\or% + Gennaio\or Febbraio\or Marzo\or Aprile\or Maggio\or Giugno\or + Luglio\or Agosto\or Settembre\or Ottobre\or Novembre\or Dicembre\fi + \space \the\year}}{} +\@ifundefined{@TesiDiLaurea}{\def\@TesiDiLaurea{Tesi di Laurea}}{} +\@ifundefined{@laureaname}{\def\@laureaname{Corso di Laurea in }}{} +\@ifundefined{@InName}{\def\@InName{in}}{} +\newbool{topTPTlogos} \booltrue{topTPTlogos} +%% Correct usage +%% Wrong usage +\newenvironment{frontespizio*}{\boolfalse{topTPTlogos}}{\fr@ntespizio} + +\newenvironment{frontespizio}{% + \ifdefstring{\@currenvir}{frontespizio} + {\booltrue{topTPTlogos}}{\TPTmaybestar} + }{% + \fr@ntespizio + } + +\DeclareDocumentEnvironment{ThesisTitlePage}{s}{% +\IfBooleanTF{#1}{\boolfalse{topTPTlogos}}{\booltrue{topTPTlogos}}% +\InputIfFileExists{\jobname.cfg}{}{% + \PackageInfo{toptesi-magistrale}{No configuration file found}} +}{\fr@ntespizio} +\newbool{AteneoInHead}\boolfalse{AteneoInHead} +\newcommand\TPTmaybestar[1]{\def\@tempA{#1}% +\ifdefstring{\@tempA}{*}% + {\boolfalse{topTPTlogos}\booltrue{AteneoInHead}\fr@ntespizio} + {\booltrue{topTPTlogos}\fr@ntespizio\@tempA} +} +\def\fr@ntespizio{% +\begingroup\par + \oddsidemargin=\dimexpr(\oddsidemargin+\evensidemargin)/2\relax + \evensidemargin \oddsidemargin +\null +\setcounter{page}{1}% +\normalfont +\ifclassica + \boolfalse{topTPTlogos} + \thispagestyle{classica} + \ifcsvoid{@ateneo}{\def\@ateneo{Manca il nome dell'ateneo} + }{} +\else + \thispagestyle{titlepage} +\fi +\ifcsvoid{@ateneo}{}{\booltrue{AteneoInHead}} +\ifcsvoid{@ateneo}{% + \ifbool{topTPTlogos} + {}{\booltrue{AteneoInHead}\def\@ateneo{Manca il nome dell'ateneo}}% +}{% + \booltrue{AteneoInHead}% +} + + \ifbool{AteneoInHead}{}{% + {{\centering\LARGE \@ateneo\par}} + } + \ifcsvoid{@nomeat}{} + {\ifbool{topTPTlogos}{\vspace*{\dimexpr \headsep+2.5ex}}% + {\vspace*{-3ex}}% + {\centering\@nomeat\par}\vfill} + + \begin{center} + {\rmfamily\mdseries + \ifdottorato + \large \@phdschool\par\medskip + \else + \ifcsvoid{@faculty}{}{% + \LARGE\ifx\@facnumber\empty\else\@facnumber\space\fi + \@faculty\unskip\xspace\@facname\par\medskip + } + \fi + }% + \ifcsvoid{@corso}{}{{\large + \ifdottorato + \@PhDname\unskip\xspace + \@corso\ifx\@ciclo\empty\else~--~\@ciclo\fi + \else + \@laureaname\unskip\xspace\@corso + \fi + \par}} + \end{center} + \vspace{\stretch{0.2}} + \begin{center} + \LARGE\@TesiDiLaurea% + \unless\ifx\empty\@materia + \\\@InName\\\@materia + \fi + \end{center} + \vspace{\stretch{0.2}} + \begin{center} + {\huge\bfseries \baselineskip=0.95em plus 1pt + \@titolo \par} + \end{center} + \unless\ifx\@subtitle\empty + \begin{center}% + \large\textrm{\@subtitle}\par + \end{center}% + \fi + \ifclassica + \ifnum\value{tomo}>\z@ + \par\bigskip + \noindent\makebox[\textwidth]{% + \large\textbf{% + \ifcase\c@tomo% + \or \PrimoTomo% + \or \SecondoTomo% + \or \TerzoTomo% + \or \QuartoTomo% + \else + \PackageWarning{toptesi}{% + Counter tomo equals \the\c@tomo\MessageBreak + We never considered a thesis might get + divided in more than four volumes}% + \fi}}% + \fi + \vspace{1em} + \fi + \par + \unless\iftopTPTlogos + {\vfill\centering \printloghi\par}\fi + \vfill + \iflanguage{italian}{% + \iffemminile + \def\@nomecandidato{\Candidata}% + \else + \def\@nomecandidato{\Candidato}% + \fi + \ifcsvoid{@secondauthor}{}{% + \iffemminile + \def\@nomecandidato{\Candidate}% + \else + \def\@nomecandidato{\Candidati}% + \fi} + }{}% + \unless\iftriennale + \def\BoxRelatori{% + + \begin{tabular}[t]{l}% + \ifclassica + \hbox{\textbf{\Relatore}}% + \else + \hbox{\large\bfseries + \ifcsvoid{@secondadviser}{\Relatore}{\Relatori}} + \fi\\[.6ex] + \hbox{\large\textrm{\protect\@principaladviser}}% + \ifx\@secondadviser\empty \else + \ifclassica + \ifx\@thirdadviser\empty + \ifx\@secondadviser\empty\else + \\[1.5ex]\textbf{\Correlatore:}% + \fi + \else + \\[1.5ex]\textbf{\Correlatori:}% + \fi + \fi + \\[.6ex]\hbox{{\large\textrm{\protect\@secondadviser}}}% + \fi + \ifx\@thirdadviser\empty \else + \\[.6ex] + \hbox{{\large\textrm{\protect\@thirdadviser}}}% + \fi + \end{tabular}% + }% + \def\print@secondocandidato{\\\relax + \hbox{\large\tabular{@{}l@{}}% + \@secondauthor\endtabular}} + \def\print@terzocandidato{\\\relax + \hbox{\large\tabular{@{}l@{}}% + \@thirdauthor\endtabular}} + \def\BoxCandidati{% + \begin{tabular}[t]{l}% + \hbox{\unless\ifclassica\large\fi + \textbf{\protect\@nomecandidato}}\\[.6ex] + \hbox{\large\tabular{@{}l@{}}\@author\endtabular}% + \ifcsvoid{@secondauthor}{}{\print@secondocandidato}% + \ifcsvoid{@thirdauthor}{}{\print@terzocandidato}% + \end{tabular}% + }% + \unless\ifdottorato + \unless\ifclassica + \unless\ifevenboxes + \begin{flushleft}% + \BoxRelatori + \end{flushleft}\par\vspace*{-1.5\baselineskip} + \begin{flushright}% + \BoxCandidati + \end{flushright}% + \else + \makebox[\textwidth]{\BoxRelatori\hfill\BoxCandidati} + \fi + \else + \noindent + \makebox[\textwidth]{% + \BoxRelatori\hfill\BoxCandidati}\par + \fi + \fi + \fi + \ifcsvoid{@tutoreaziendale}{}{% + \vfill\vfill + {\centering \textbf{\@tutoreaziendalename}\\[.6ex] + \@tutoreaziendale\par}% + } + \par\clearpage +\ifcsvoid{@retrofrontespizio}{}% + {\null\vfill\thispagestyle{empty}\@retrofrontespizio\par\clearpage}% +\endgroup} +%% +%% Copyright 2005-2017 Claudio Beccari +%% +%% Distributable under the LaTeX Project Public License, +%% version 1.3c or higher (your choice). The latest version of +%% this license is at: http://www.latex-project.org/lppl.txt +%% +%% This work is "author-maintained" +%% +%% This work consists of this file toptesi.dtx, a README file +%% the manifest.txt file, and the derived files: +%% toptesi.cls, toptesi.sty, topfront.sty, topcommand.sty, +%% toptesi-scudo.sty, toptesi-scudo.def, toptesi.cfg, and the +%% English documentation toptesi.pdf. +%% +%% Furthermore the bundle contains the documentation source +%% file toptesi-it.tex and the derived file +%% toptesi-it.pdf. +%% +%% The toptesi-example.tex source file is just an example +%% that shows how to use the various commands; by commenting +%% or uncommenting certain source lines it is possible to +%% typeset different kind of theses and their front pages. +%% +%% The topfront-example.tex source file is an example of how +%% to produce just the title page with TOPtesi and the external +%% package frontespizio. +%% +%% The toptesi-scudo-example.tex source file is an example +%% that shows the particular features available with TOPtesi, +%% when a doctoral thesis is produced for the SCUola di +%% DOttorato (ScuDo) of Politecnico di Torino. +%% +%% The toptesi.cfg file is a sample of a local configuration +%% file that can be copied to another file and its copy freely +%% edited and customised. +%% +%% By running pdflatex on toptesi.dtx the user gets the class, +%% sty, def and cfg files and the English documentation file in +%% PDF format. +%% +%% The source file of the Italian documentation file +%% toptesi-it.pdf is another example of how to use TOPtesi. +%% This file toptesi-it.tex may be typeset with pdfLaTeX, +%% XeLaTeX, and LuaLateX; see the first comment lines of +%% the file for how-to information. In spite of being mainly +%% written in Italian, it contains several sections in English +%% for the benefit of foreign students attending the Doctoral +%% School of Turin. +%% +%% End of file `toptesi-magistrale.sty'. diff --git a/Master/texmf-dist/tex/latex/toptesi/toptesi-monografia.sty b/Master/texmf-dist/tex/latex/toptesi/toptesi-monografia.sty new file mode 100644 index 00000000000..ed636024689 --- /dev/null +++ b/Master/texmf-dist/tex/latex/toptesi/toptesi-monografia.sty @@ -0,0 +1,372 @@ +%% +%% This is file `toptesi-monografia.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% toptesi.dtx (with options: `topmon') +%% ______________________________________________________ +%% The TOPtesi bundle +%% Copyright (C) 2015-2017 Claudio Beccari +%% All rights reserved +%% +%% License information appended +%% +\NeedsTeXFormat{LaTeX2e}[2016/01/01] +\ProvidesPackage{toptesi-monografia}[% +2017/10/22 v.~6.1.09 +Bachelor degree title page] + +\monografiatrue +\@ifpackageloaded{etoolbox}{}{\RequirePackage{etoolbox}} +\@ifpackageloaded{xparse}{}{\RequirePackage{xparse}} +\@ifpackageloaded{xspace}{}{\RequirePackage{xspace}} + +\ifcsundef{ifclassica}{\newif\ifclassica \classicafalse}{} +\ifcsundef{if@autoretitolo}{\newif\if@utoretitolo \@utoretitolofalse}{} +\ifcsundef{if@ldstyle}{\newif\if@ldstyle \@ldstylefalse}{} +\ifcsundef{if@xivpt}{\newif\if@xivpt \@xivptfalse}{} +\ifcsundef{if@binding}{\newif\if@binding \@bindingfalse}{} + +\ifcsundef{ifTOPfront}{\newif\ifTOPfront \TOPfronttrue}{} +\ifcsundef{ifevenboxes}{\newif\ifevenboxes \evenboxesfalse}{} +\DeclareOption{evenboxes}{\evenboxestrue} +\DeclareOption{cucitura}{\@bindingtrue} +\DeclareOption{classica}{\classicatrue} +\DeclareOption{autoretitolo}{\ifclassica\@utoretitolotrue\fi} +\DeclareOption{oldstyle}{\ifclassica\@ldstyletrue\fi} +\ProcessOptions\relax + +\def\monografia#1{\gdef\@titolo{#1}} +\let\titolo\monografia +\let\@stitle\empty + +\def\sottotitolo#1{\gdef\@subtitle{#1}} +\providecommand\@materia{} +\def\Materia#1{\gdef\@materia{#1}} +\let\materia\Materia +\providecommand\@nomerelatoresingolare{} +\providecommand\@nomerelatoreplurale{} +\newcommand\NomeRelatore[2]{% + \gdef\@nomerelatoresingolare{#1}\gdef\@nomerelatoreplurale{#2}} +\NomeRelatore{Relatore}{Relatori} +\providecommand\@principaladviser{} +\def\relatore#1{\gdef\@principaladviser{#1}} +\providecommand\@secondadviser{}\def\secondorelatore#1{\gdef\@secondadviser{#1}} +\providecommand\@thirdadviser{} +\def\terzorelatore#1{\gdef\@thirdadviser{#1}} + +\unless\ifcsname iffemminile\endcsname + \newif\iffemminile\femminilefalse +\fi +\unless\ifcsname ifplurale\endcsname + \newif\ifplurale\pluralefalse +\fi +\providecommand\@author{}\providecommand\@@author{} +\NewDocumentCommand\candidato{m o}{\gdef\@@author{#1}% +\IfNoValueTF{#2}{\gdef\@author{#1}}% + {\gdef\@author{#1\IDlabel#2}} +\femminilefalse\pluralefalse} +\NewDocumentCommand\candidata{m o}{\gdef\@@author{#1}% +\IfNoValueTF{#2}{\gdef\@author{#1}}% + {\gdef\@author{#1\IDlabel#2}} +\femminiletrue\pluralefalse} +\providecommand\@secondauthor{} +\NewDocumentCommand\secondocandidato{m o}{% +\IfNoValueTF{#2}{\gdef\@secondauthor{#1}}% + {\gdef\@secondauthor{#1\IDlabel#2}}% +\femminilefalse\pluraletrue} +\NewDocumentCommand\secondacandidata{m o}{% +\IfNoValueTF{#2}{\gdef\@secondauthor{#1}}% + {\gdef\@secondauthor{#1\IDlabel#2}}% +\pluraletrue} +\providecommand\@thirdauthor{} +\NewDocumentCommand\terzocandidato{m o}{% +\IfNoValueTF{#2}{\gdef\@thirdauthor{#1}}% + {\gdef\@thirdauthor{#1\IDlabel#2}}% +\femminilefalse\pluraletrue} +\NewDocumentCommand\terzacandidata{m o}{% +\IfNoValueTF{#2}{\gdef\@thirdauthor{#1}}% + {\gdef\@thirdauthor{#1\IDlabel#2}}% +\pluraletrue} + +\providecommand\IDlabel{\\\quad matricola\ } + +\edef\@submitdate{{\let\today\relax\unskip\today}} + +\def\sedutadilaurea#1{\getseduta#1 !} +\def\getseduta#1 #2!{% + \def\@tempA{#2}% + \ifx\@tempA\empty + \def\@submitdate{#1}% + \else + \unless\ifclassica + \def\@submitdate{#1 #2}% + \else + \s@dutaclassica#1 #2!% + \fi + \fi +}% +\def\s@dutaclassica#1 #2!{% + \if@ldstyle + \s@paranumeri#2-!% + \ifx\2\empty + \edef\@submitdate{\noexpand#1 \noexpand\oldstylenums{#2}}% + \else + \s@paranumeri#2!% + \edef\@submitdate{\noexpand#1 + \noexpand\oldstylenums{\1} -- \noexpand\oldstylenums{\2}}% + \fi + \let\1\undefined + \let\2\undefined + \else + \def\@submitdate{#1 #2}% + \fi +} +\def\s@paranumeri#1-#2!{\def\1{#1}\def\2{#2}}% + +\newcommand*\NomeAnnoAccademico[1]{\gdef\AnnoAccademico{#1}} +\@ifundefined{AnnoAccademico}{\gdef\AnnoAccademico{Anno accademico}}{} + +\newcommand\NomeCorsoDiStudi{Corso di laurea in\xspace} +\providecommand\@ateneo{} +\newcommand\ateneo[1]{\gdef\@ateneo{#1}} +\providecommand\@NomeAteneo{} +\newcommand\NomeAteneo[1]{\gdef\@NomeAteneo{#1}} +\let\nomeateneo\NomeAteneo +\providecommand\@strutturadi{} +\newcommand\StrutturaDi[1]{\gdef\@strutturadi{#1\unskip\xspace}} +\newcommand\struttura[2][]{\gdef\@struttura{\ifempty{#1}{}{#1 }\@strutturadi #2}} +\ifcsundef{TPT@logospace}{\newlength{\TPT@logospace}\TPT@logospace=3em}{} +\ifcsundef{TPT@logobox}{\newsavebox{\TPT@logobox}}{} +\ifcsundef{TPT@logoheight}{\newdimen\TPT@logoheight}{} +\providecommand*\setlogodistance[1]{\TPT@logospace=#1} +\providecommand*{\@logosede}{} + +\ifcsundef{T@Tlogoheight}{%\ + \newlength\T@Tlogoheight + \setlength\T@Tlogoheight{0.8\dimexpr(\paperwidth-\textwidth)/2}}{} + +\newcommand\logosede[2][\T@Tlogoheight]{\def\@logosede{#2}\TPT@logoheight=#1\relax +\ifcsvoid{@logosede}{\sbox{\TPT@logobox}{}}{\begin{lrbox}{\TPT@logobox}% +\expandafter\fillup@TCP@logobox\@logosede,!}} + +\def\fillup@TCP@logobox#1,#2!{% +\ifblank{#1}{\end{lrbox}\ifdim\wd\TPT@logobox>\textwidth +\sbox\TPT@logobox{\resizebox{\textwidth}{!}{\box\TPT@logobox}}\fi}% +{\def\@logosede{#2}% +\includegraphics[height=\TPT@logoheight]{#1}\hskip\TPT@logospace + \expandafter\fillup@TCP@logobox\@logosede,!}} + +\providecommand\printloghi{} +\renewcommand\printloghi{% +\unless\ifvoid\TPT@logobox\usebox{\TPT@logobox}\fi} +\providecommand\@tutoreaziendale{} +\def\tutoreaziendale#1{\gdef\@tutoreaziendale{#1}} +\providecommand\@tutoreaziendalename{Supervisore Aziendale} +\def\NomeTutoreAziendale#1{\gdef\@tutoreaziendalename{#1}} +\let\@luogo\empty\def\@giorno{*} +\def\luogo#1{\def\@luogo{#1}}% +\def\giorno#1{\def\@giorno{#1}} +\newcommand\retrofrontespizio[1]{% +\long\gdef\@retrofrontespizio{#1}} +\providecommand\@corsodistudi{} +\newcommand\corsodistudi[1]{\gdef\@corsodistudi{#1}} +\let\corsodilaureain\corsodistudi +\providecommand\@monografia{Monografia} +\newcommand\NomeElaborato[1]{\gdef\@monografia{#1}} +\let\NomeMonografia\NomeElaborato +\def\@nomecandidato{\ifclassica Laureando\else Candidato\fi} +\def\@nomecandidata{\ifclassica Laureanda\else Candidata\fi} +\def\@nomecandidati{\ifclassica Laureandi\else Candidati\fi} +\def\@nomecandidate{\ifclassica Laureande\else Candidate\fi} +\newcommand\TitoloListaCandidati[1]{\CandidateNames#1,,,,!} +\def\CandidateNames#1,#2,#3,#4,!{% + \gdef\@nomecandidato{#1}% Masc/neutr-sing + \gdef\@nomecandidati{#2}% Masc/neutr-plur + \gdef\@nomecandidata{#3}% Fem-sing + \gdef\@nomecandidate{#4}% Fem-plur +} +\providecommand\Relatore{Relatore} +\newcommand\AdvisorName[1]{\gdef\Relatore{#1}} +\providecommand\Correlatore{Correlatore} +\providecommand\Correlatori{Correlatori} +\newcommand\CoAdvisorName[2]{\gdef\Correlatore{#1}% + \gdef\Correlatori{#2}} +\ifcsundef{iftopTPTlogos}{\newbool{topTPTlogos} \booltrue{topTPTlogos}}{} +\NewDocumentEnvironment{ThesisTitlePage}{s} +{% OPENING +\IfBooleanTF{#1}{\boolfalse{topTPTlogos}}{\booltrue{topTPTlogos}}% + \begin{titlepage} + \oddsidemargin=\dimexpr(\oddsidemargin+\evensidemargin)/2\relax + \evensidemargin \oddsidemargin + \IfFileExists{\jobname.cfg}{\input{\jobname.cfg}% + }{%C + \PackageWarning{monografia}{No configuration file found}% + }%C +}{% CLOSING + \ifbool{topTPTlogos}{\noindent\raisebox{-0.5em}[\z@][\z@]{\makebox[\textwidth]{\printloghi}}\par\bigskip}{} + \ifdefempty{\ateneo}{}{{\centering\huge \@ateneo\par}} + \ifdefempty{\@NomeAteneo}{}{\medskip{\centering\large + \expandafter\MakeUppercase\expandafter{\@NomeAteneo}\par}} + \ifdefempty{\@strutturadi}{}{\vspace{\stretch{0.1}}\par{\centering \Large\@struttura\par}} + \ifdefempty{\@corsodistudi}{}{\bigskip{\centering\large \NomeCorsoDiStudi\ \@corsodistudi\par}} + \ifdefempty{\@materia}{}{\medskip{\centering\large\@materia\par}} + \vspace{\stretch{0.25}} + {\centering\large \@monografia\par} + \vspace{\stretch{0.1}} + {\centering\LARGE\bfseries \@titolo\par} + \ifdefempty{\@subtitle}{\vspace{\stretch{0.3}}}{\bigskip + {\centering\large\@subtitle\par}} + \ifbool{topTPTlogos}{}{\vspace{3em}\par\centering\printloghi\par} + \vspace{\stretch{0.25}} + +\ifdefempty{\@principaladviser}{\def\BoxRelatori{}}{% + \def\BoxRelatori{% + \begin{tabular}[t]{l}% + \hbox{\unless\ifclassica\large\fi + \ifdefempty{\@secondadviser}% + {\let\@nomerelatore\@nomerelatoresingolare}% + {\let\@nomerelatore\@nomerelatoreplurale}% + \textbf{\@nomerelatore}}\\[.6ex] + \hbox{\large\textrm{\protect\@principaladviser}}% + \ifdefempty{\@secondadviser}{}{% + \ifclassica + \ifdefempty{\@thirdadviser}{% + \ifdefempty{\@secondadviser}{}{% + \\[1.5ex]\textbf{\Correlatore:}% + } + }{% + \\[1.5ex]\textbf{\Correlatori:}% + } + \fi + \\[.6ex] + \hbox{{\large\textrm{\protect\@secondadviser}}}% + } + \ifdefempty{\@thirdadviser}{}{% + \\[.6ex] + \hbox{{\large\textrm{\protect\@thirdadviser}}}% + } + \end{tabular}% + }% +} +\def\print@secondocandidato{\\\relax + \hbox{\large\tabular{@{}l@{}}\@secondauthor\endtabular}}% +\def\print@terzocandidato{\\\relax + \hbox{\large\tabular{@{}l@{}}\@thirdauthor\endtabular}}% + +\def\BoxCandidati{% + \begin{tabular}[t]{l} + \hbox{\unless\ifclassica\large\fi + \textbf{\ifplurale + \iffemminile\@nomecandidate\else\@nomecandidati\fi + \else + \iffemminile\@nomecandidata\else\@nomecandidato\fi + \fi}}\\[.6ex] + \hbox{\large\tabular{@{}l@{}}\@author\endtabular}% + \ifcsvoid{@secondauthor}{}{\print@secondocandidato}% + \ifcsvoid{@thirdauthor}{}{\print@terzocandidato}% + \end{tabular}% +}% +\unless\ifclassica + \ifdefempty{\BoxRelatori}{%Bachelor degree without supervisors + \noindent\makebox[\textwidth]{\tabular[t]{@{}c@{}} + \unless\ifclassica\large\fi + \textbf{\ifplurale + \iffemminile\@nomecandidate\else\@nomecandidati\fi + \else + \iffemminile\@nomecandidata\else\@nomecandidato\fi + \fi}\\[.6ex] + \@author + \ifcsvoid{@secondauthor}{}{\\ \@secondauthor} + \ifcsvoid{@thirdauthor}{}{\\ \@thirdauthor} + \endtabular}% + }{% + \unless\ifevenboxes + \begin{flushleft}% + \BoxRelatori + \end{flushleft}\par + \vspace*{-1.5\baselineskip} + \begin{flushright}% + \BoxCandidati + \end{flushright}% + \else + \noindent + \makebox[\textwidth]{\BoxRelatori\hfill\BoxCandidati}% + \fi} +\else + \noindent + \makebox[\textwidth]{\BoxRelatori\hfill\BoxCandidati}% +\fi +\par\vspace*{\stretch{0.5}} +\ifdefempty{\@tutoreaziendale}{\relax}{\begin{center} +\textbf{\@tutoreaziendalename}\\[0.6ex] +\@tutoreaziendale +\end{center}} +\noindent\raisebox{-\baselineskip}[0pt][0pt]{% + \makebox[\textwidth]{\@submitdate}}% +\end{titlepage}\newpage + \ifdefempty{\@retrofrontespizio}{}{\thispagestyle{empty}% + \vspace*{\stretch{1}}\par + \@retrofrontespizio\par + \ifdefstring{\@giorno}{*}{}{\medskip + \noindent + \begin{tabular*}{\textwidth}{@{\extracolsep{\fill}}lc@{}} + \ifdefempty{\@luogo}{}{\@luogo, }% + \ifdefempty{\@giorno}{\today}{\@giorno} + & \@@author\\[3ex] + & \makebox[0.5\textwidth]{\dotfill} + \end{tabular*}\par} + \newpage} +} +%% +%% Copyright 2005-2017 Claudio Beccari +%% +%% Distributable under the LaTeX Project Public License, +%% version 1.3c or higher (your choice). The latest version of +%% this license is at: http://www.latex-project.org/lppl.txt +%% +%% This work is "author-maintained" +%% +%% This work consists of this file toptesi.dtx, a README file +%% the manifest.txt file, and the derived files: +%% toptesi.cls, toptesi.sty, topfront.sty, topcommand.sty, +%% toptesi-scudo.sty, toptesi-scudo.def, toptesi.cfg, and the +%% English documentation toptesi.pdf. +%% +%% Furthermore the bundle contains the documentation source +%% file toptesi-it.tex and the derived file +%% toptesi-it.pdf. +%% +%% The toptesi-example.tex source file is just an example +%% that shows how to use the various commands; by commenting +%% or uncommenting certain source lines it is possible to +%% typeset different kind of theses and their front pages. +%% +%% The topfront-example.tex source file is an example of how +%% to produce just the title page with TOPtesi and the external +%% package frontespizio. +%% +%% The toptesi-scudo-example.tex source file is an example +%% that shows the particular features available with TOPtesi, +%% when a doctoral thesis is produced for the SCUola di +%% DOttorato (ScuDo) of Politecnico di Torino. +%% +%% The toptesi.cfg file is a sample of a local configuration +%% file that can be copied to another file and its copy freely +%% edited and customised. +%% +%% By running pdflatex on toptesi.dtx the user gets the class, +%% sty, def and cfg files and the English documentation file in +%% PDF format. +%% +%% The source file of the Italian documentation file +%% toptesi-it.pdf is another example of how to use TOPtesi. +%% This file toptesi-it.tex may be typeset with pdfLaTeX, +%% XeLaTeX, and LuaLateX; see the first comment lines of +%% the file for how-to information. In spite of being mainly +%% written in Italian, it contains several sections in English +%% for the benefit of foreign students attending the Doctoral +%% School of Turin. +%% +%% End of file `toptesi-monografia.sty'. diff --git a/Master/texmf-dist/tex/latex/toptesi/toptesi-scudo.sty b/Master/texmf-dist/tex/latex/toptesi/toptesi-scudo.sty new file mode 100644 index 00000000000..d0e3c8a6033 --- /dev/null +++ b/Master/texmf-dist/tex/latex/toptesi/toptesi-scudo.sty @@ -0,0 +1,301 @@ +%% +%% This is file `toptesi-scudo.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% toptesi.dtx (with options: `topscu') +%% ______________________________________________________ +%% The TOPtesi bundle +%% Copyright (C) 2015-2017 Claudio Beccari +%% All rights reserved +%% +%% License information appended +%% +\NeedsTeXFormat{LaTeX2e}[2016/01/01] +\ProvidesPackage{toptesi-scudo}[% +2017/10/22 v.~6.1.09 +Extension for ScuDo theses] + +\ScuDotrue +\ifPDFTeX + \usepackage{amsmath,amssymb,amsthm} +\else + \usepackage{amsmath,amsthm} + \usepackage{unicode-math} +\fi +\AtBeginDocument{% +\providecommand\diff{}% +\renewcommand{\diff}{\mathop{}\!\mathrm{d}} +\providecommand{\gei}{\ensuremath{{\mathop{\mathrm{j}}\nolimits}}} +\providecommand{\eu}{\ensuremath{{\mathop{\mathrm{e}}\nolimits}}} +\let\iu\gei} +\usepackage{xparse} % Command and environment advanced definitions +\usepackage{lscape} % Supports landscape Layout +\usepackage{setspace} % Define line spacing in paragraph. Don't use! +\usepackage{calc} % Calculation macros +\usepackage{ifthen} % Conditional statements +\usepackage{caption} % Configure captions +\usepackage{subcaption}% Defines env. subfigure and its caption +\usepackage{tabularx} % Tables with expandable columns +\usepackage{booktabs} % professional rules in tables +\usepackage{multirow} % It's more professional avoiding tables with + % cells spanning several rows +\usepackage{siunitx} % advanced management of units of measure +\usepackage{float} % Never ever use its code position H ! + % Use only to define new floating objects +\usepackage[intoc]{nomencl}% Generate nomenclatures or glossaries +\makenomenclature +\renewcommand{\nomgroup}[1]{% +\ifstrequal{#1}{A}{\item[\textbf{Roman Symbols}]}{% +\ifstrequal{#1}{G}{\item[\textbf{Greek Symbols}]}{% +\ifstrequal{#1}{Z}{\item[\textbf{Acronyms / Abbreviations}]}{% +\ifstrequal{#1}{R}{\item[\textbf{Superscripts}]}{% +\ifstrequal{#1}{S}{\item[\textbf{Subscripts}]}{% +\ifstrequal{#1}{X}{\item[\textbf{Other Symbols}]}{}}}}}}} + +\renewcommand{\nompreamble}{\markboth{\nomname}{\nomname}} +\newcommand{\printnomencl}[1][]{% +\immediate\closeout\@nomenclaturefile +\ifLuaTeX + \chardef\T@T@shellescape\directlua{tex.write(os.execute())} + \def\exec@makeindex{% + \directlua{os.execute("\luaescapestring + {makeindex -s nomencl.ist -t \jobname.nlg -o \jobname.nls \jobname.nlo}")}} +\else + \def\exec@makeindex{\immediate\write18{% + makeindex -s nomencl.ist -t \jobname.nlg -o \jobname.nls \jobname.nlo}} +\fi +\exec@makeindex +\ifblank{#1}{\printnomenclature}{\printnomenclature[#1]}% +} +\usepackage[autostyle]{csquotes} % necessary for biblatex +\usepackage[backend=biber, + style=numeric-comp, + citestyle=numeric, + sorting=nty, + natbib]{biblatex} % LaTeX specific bibliography handler +\addbibresource{references.bib}% bibliographic data base(s} +\usepackage{imakeidx}% to generate automatic indices +\ifPDFTeX \usepackage{indentfirst}\fi +\raggedbottom + +\AfterEndPreamble{\english}% Set English as default language + +\TOPfrontfalse + +\providecommand*\@Ndissertation{Doctoral Dissertation} +\providecommand*\@Ndoctoralprogram{Doctoral Program in\xspace} +\providecommand*\@programname{} +\providecommand\@Cyclenumber{} +\providecommand*\@title{} +\providecommand*\@subtitle{\vspace{\stretch{1}}} +\providecommand*\@author{} +\providecommand*\@Nsupervisor{Supervisor}\providecommand*\@Nsupervisors{Supervisors} +\newcount\@supervisornumber +\providecommand*\@supervisorlist{} +\providecommand\@Nexaminationcommittee{Doctoral Examination Committee:} +\providecommand*\@Examinerlist{} +\providecommand*\@examlocation{Politecnico di Torino} +\providecommand*\@examinationdate{} +\providecommand*\@creativecommons{This thesis is licensed under a Creative Commons License, Attribution - Noncommercial- NoDerivative Works 4.0 International: see \url{www.creativecommons.org}. +The text may be reproduced for non-commercial purposes, provided that credit is given to the original author.} +\providecommand\@disclaimer{\noindent I hereby declare that +the contents and organisation of this dissertation constitute +my own original work and does not compromise in any way the +rights of third parties, including those relating to the +security of personal data.} + +\newcommand*\Ndissertation[1]{\gdef\@Ndissertation{#1}} +\newcommand*\Ndoctoralprogram[1]{\gdef\@Ndoctoralprogram{#1\xspace}} +\newcommand*\ProgramName[1]{\gdef\@programname{#1\xspace}} +\newcommand*\CycleNumber[1]{\gdef\@Cyclenumber{\ifblank{#1}{}{(#1 cycle)}}} +\renewcommand*\title[1]{\gdef\@title{#1}} +\newcommand*\subtitle[1]{\gdef\@subtitle{\ifblank{#1}{}{\medskip\par + {\Large #1\par}}\vspace{\stretch{1}}}} +\renewcommand*\author[1]{\gdef\@author{#1}} +\newcommand*\NSupervisor[2] + {\gdef\@Nsupervisor{#1}\gdef\@Nsupervisors{#2}} +\newcommand*\SupervisorList[1]{\gdef\@supervisorlist{#1}} +\newcommand\SupervisorNumber[1]{% + \ifblank{#1}{\@supervisornumber=0}{\@supervisornumber=#1}} +\newcommand\Nexaminationcommittee[1]{\gdef\@Nexaminationcommittee{#1}} +\newcommand*\ExaminerList[1]{\gdef\@Examinerlist{#1}} +\newcommand*\Nlocation[1]{\gdef\@examlocation{#1}} +\newcommand*\ExaminationDate[1]{\gdef\@examinationdate{#1}} + +\newlength{\TPT@logospace}\TPT@logospace=3em\relax +\newsavebox{\TPT@logobox} \setbox\TPT@logobox\hbox{} +\newdimen\TPT@logoheight +\newcommand*\setlogodistance[1]{\TPT@logospace=#1} +\providecommand*{\@logosede}{} + +\ifcsundef{T@Tlogoheight}{%\ + \newlength\T@Tlogoheight + \setlength\T@Tlogoheight{0.8\dimexpr(\paperwidth-\textwidth)/2}}{} + +\newcommand\PhDschoolLogo[2][\T@Tlogoheight]{\def\@logosede{#2}\TPT@logoheight=#1\relax +\ifcsvoid{@logosede}{\sbox{\TPT@logobox}{}}{\begin{lrbox}{\TPT@logobox}% +\expandafter\fillup@TCP@logobox\@logosede,!}} + +\def\fillup@TCP@logobox#1,#2!{% +\ifblank{#1}{\end{lrbox}\ifdim\wd\TPT@logobox>\textwidth +\sbox\TPT@logobox{\resizebox{\textwidth}{!}{\box\TPT@logobox}}\fi}% +{\def\@logosede{#2}% +\includegraphics[height=\TPT@logoheight]{#1}\hskip\TPT@logospace + \expandafter\fillup@TCP@logobox\@logosede,!}} + +\newcommand\printloghi{\unless\ifvoid\TPT@logobox\usebox{\TPT@logobox}\fi} +\newcommand\Disclaimer[1]{\gdef\@disclaimer{#1}} +\newcommand\CClicence[1]{\gdef\@creativecommons{#1}} +\providecommand\@signature{% +\begin{flushright} +\parbox{0.5\textwidth}{\centering +\dotfill\\ +\@author\\ +Turin, \@examinationdate +}% +\end{flushright}} +\newcommand\Signature[1]{\gdef\@signature{#1}} +\newenvironment{ThesisTitlePage}{% Apertura +\InputIfFileExists{\jobname.cfg}{\relax}{\relax}% +}{%Chiusura +\begin{titlepage}\parindent=0pt +{\centering +\raisebox{-1ex}[0pt][0pt]{\makebox[\textwidth]{\printloghi}}\par +\vspace{\baselineskip} +\@Ndissertation\\ +\@Ndoctoralprogram \@programname\@Cyclenumber +\bigskip + +{\Huge\bfseries \@title\par} +\@subtitle +{\Large\bfseries \@author\par} +\smallskip +\mbox{* * * * * *} +\vspace{\stretch{1}} + +{\large\bfseries \ifcase\@supervisornumber +\relax\or \@Nsupervisor\else\@Nsupervisors\fi\par} +\@supervisorlist +\par} + +\vspace{\stretch{1}} + +\ifcsvoid{@Examinerlist}{\relax}{% +\noindent\begin{tabular}{@{}l} +\bfseries \@Nexaminationcommittee\\ +\@Examinerlist +\end{tabular}} + +\begin{center} +\raisebox{-3\baselineskip}[0pt][0pt]{% +\parbox{0.5\textwidth}{\centering +\@examlocation\\ +\@examinationdate}} +\end{center} +\end{titlepage} +\newpage\thispagestyle{empty} +\vspace*{\stretch{1}} +\@creativecommons +\vspace{3\baselineskip} + +\ifempty{\@keywords}{\relax}{Keywords: \@keywords\par +\vspace{2\baselineskip}} + +\@disclaimer +\vspace{3\baselineskip} + +\@signature} + +\providecommand*\subject{}\providecommand*\@subject{} +\renewcommand\subject[1]{\gdef\@subject{#1}} +\providecommand*\keywords{}\providecommand*\@keywords{} +\renewcommand\keywords[1]{\gdef\@keywords{#1}} +\AtBeginDocument{% Set some metadata + \hypersetup{% + pdftitle = {\@title}, + pdfauthor = {\@author}, + pdfsubject = {\@subject}, + pdfkeywords= {\@keywords} + } +} +\AtEndDocument{% +\clearpage +\ifbool{@twoside}% +{\ifodd\value{page}\thispagestyle{empty}\newpage\fi}{\relax}% +\vspace*{\stretch{1}}% +\noindent +\begin{tabularx}{\textwidth}{Xp{0.45\textwidth}X} +& +This Ph.D.\ thesis has been typeset by means of the \TeX-system +facilities. The typesetting engine was +\ifPDFTeX + \ifcsdef{pdfLaTeX}{\pdfLaTeX}{pdf\/\LaTeX}% +\else + \ifLuaTeX + \ifcsdef{LuaLaTeX}{\LuaLaTeX}{Lua\/\LaTeX}% + \else + \ifcsdef{Xe}{\Xe\LaTeX}{Xe\/\LaTeX} + \fi +\fi. +The document class was \texttt{toptesi}, by Claudio Beccari, +with option \texttt{tipotesi\discretionary{}{=}{=}scudo}. +This class is available in every up-to-date and complete +\TeX-system installation. +& +\end{tabularx} +\vspace*{\stretch{2}}% +} + +%% +%% Copyright 2005-2017 Claudio Beccari +%% +%% Distributable under the LaTeX Project Public License, +%% version 1.3c or higher (your choice). The latest version of +%% this license is at: http://www.latex-project.org/lppl.txt +%% +%% This work is "author-maintained" +%% +%% This work consists of this file toptesi.dtx, a README file +%% the manifest.txt file, and the derived files: +%% toptesi.cls, toptesi.sty, topfront.sty, topcommand.sty, +%% toptesi-scudo.sty, toptesi-scudo.def, toptesi.cfg, and the +%% English documentation toptesi.pdf. +%% +%% Furthermore the bundle contains the documentation source +%% file toptesi-it.tex and the derived file +%% toptesi-it.pdf. +%% +%% The toptesi-example.tex source file is just an example +%% that shows how to use the various commands; by commenting +%% or uncommenting certain source lines it is possible to +%% typeset different kind of theses and their front pages. +%% +%% The topfront-example.tex source file is an example of how +%% to produce just the title page with TOPtesi and the external +%% package frontespizio. +%% +%% The toptesi-scudo-example.tex source file is an example +%% that shows the particular features available with TOPtesi, +%% when a doctoral thesis is produced for the SCUola di +%% DOttorato (ScuDo) of Politecnico di Torino. +%% +%% The toptesi.cfg file is a sample of a local configuration +%% file that can be copied to another file and its copy freely +%% edited and customised. +%% +%% By running pdflatex on toptesi.dtx the user gets the class, +%% sty, def and cfg files and the English documentation file in +%% PDF format. +%% +%% The source file of the Italian documentation file +%% toptesi-it.pdf is another example of how to use TOPtesi. +%% This file toptesi-it.tex may be typeset with pdfLaTeX, +%% XeLaTeX, and LuaLateX; see the first comment lines of +%% the file for how-to information. In spite of being mainly +%% written in Italian, it contains several sections in English +%% for the benefit of foreign students attending the Doctoral +%% School of Turin. +%% +%% End of file `toptesi-scudo.sty'. diff --git a/Master/texmf-dist/tex/latex/toptesi/toptesi-sss.sty b/Master/texmf-dist/tex/latex/toptesi/toptesi-sss.sty new file mode 100644 index 00000000000..6fce750726f --- /dev/null +++ b/Master/texmf-dist/tex/latex/toptesi/toptesi-sss.sty @@ -0,0 +1,194 @@ +%% +%% This is file `toptesi-sss.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% toptesi.dtx (with options: `topsss') +%% ______________________________________________________ +%% The TOPtesi bundle +%% Copyright (C) 2015-2017 Claudio Beccari +%% All rights reserved +%% +%% License information appended +%% +\NeedsTeXFormat{LaTeX2e}[2016/01/01] +\ProvidesPackage{toptesi-sss}[% +2017/10/22 v.~6.1.09 +High school title page] + +%% +%%%% Math fonts and AMS extensions (fontspec is already loaded) +\secondariatrue +\ifPDFTeX + \@ifpackageloaded{newtxmath}{}% + {\@ifpackageloaded{newpxmath}{}% + {% + \RequirePackage{amsmath,amssymb,amsthm}% + }% + }% +\else + \RequirePackage{amsmath,amsthm} + \RequirePackage{unicode-math} +\fi +\RequirePackage{xcolor} % Intelligent colors +\RequirePackage{xspace} % Intelligent space +\RequirePackage{xparse} % Command and environment advanced definitions +\RequirePackage{calc} % Calculation macros +\RequirePackage{ifthen} % Conditional statements +\RequirePackage{booktabs} % professional rules in tables +\RequirePackage{multirow} % It's more professional avoiding tables + % with cells spanning several rows +\RequirePackage[autostyle]{csquotes} % necessary for biblatex +\ifPDFTeX \RequirePackage{indentfirst}\fi +\raggedbottom +\providecommand*\@SSSLogo{} +\providecommand*\@tiposcuola{} +\providecommand*\@indirizzomiur{} +\providecommand*\@opzionemiur{} +\providecommand*\@nomescuola{} +\providecommand*\@sedescuola{} +\providecommand*\@annoscolastico{} + +\providecommand*\@Ntesina{Tesina di maturit\`a} +\providecommand*\@title{} +\providecommand*\@subtitle{} + +\ifcsundef{ifemminile}{\newif\iffemminile\femminilefalse}{} +\providecommand*\@Ncandidato{\iffemminile Studentessa\else + Studente\fi} +\providecommand*\@author{} +\providecommand*\@Npresidente{Presidente di commissione} +\providecommand*\@presidente{} +\providecommand*\@numerocommissione{} + +\newcommand*\SSSLogo[1]{\gdef\@SSSLogo{#1}} +\newcommand*\NomeTesina[1]{\gdef\@Ntesina{#1}} +\newcommand*\IndirizzoMiur[1]{\gdef\@indirizzomiur{#1}} +\newcommand*\OpzioneMiur[1]{\gdef\@opzionemiur{#1}} +\newcommand*\TipoScuola[1]{\gdef\@tiposcuola{#1}} +\newcommand*\SedeScuola[1]{\gdef\@sedescuola{#1}} +\newcommand*\NomeScuola[1]{\gdef\@nomescuola{#1}} +\newcommand*\AnnoScolastico[1]{\gdef\@annoscolastico{#1}} +\newcommand*\NomeCandidato[1]{\gdef\@Ncandidato{#1}} + +\newcommand*\titolo[1]{\gdef\@title{#1}} +\newcommand*\sottotitolo[1]{\gdef\@subtitle{\ifblank{#1}{}% + {\medskip\par{\Large #1\par}}% + \vspace{\stretch{1}}}} + +\NewDocumentCommand\studente{m o}{\gdef\@@author{#1}% +\IfNoValueTF{#2}{\gdef\@author{#1}}% + {\gdef\@author{#1\IDlabel#2}}\femminilefalse} +\NewDocumentCommand\studentessa{m o}{\gdef\@@author{#1}% +\IfNoValueTF{#2}{\gdef\@author{#1}}% + {\gdef\@author{#1\IDlabel#2}}\femminiletrue} +\newcommand*\IDlabel{\\\normalfont Classe\ } +\newcommand*\Presidente[1]{\gdef\@presidente{#1}} +\newcommand*\NumeroCommissione[1]{\gdef\@numerocommissione{#1}} +\newcommand*\ifBlank{\expandafter\ifblank\expandafter} +\newenvironment{FrontespizioTesina}{% +\InputIfFileExists{\jobname.cfg}{\relax}{\relax} +}{% +\begin{titlepage}\parindent=0pt +\centering +\raisebox{0.025\textheight}[0pt][0pt]{\parbox[b]{\textwidth}{% +\centering +\ifBlank{\@tiposcuola}{Manca il tipo di scuola}{\@tiposcuola}% +\ifBlank{\@indirizzomiur}{\relax}{\space--\space\@indirizzomiur}% +\ifBlank{\@opzionemiur}{\relax}{\space--\space\@opzionemiur}\par +\vspace{-1ex} +\makebox[0.5\textwidth]{\rule{0.50\textwidth}{0.4\p@}}\par +\vspace{-1.5ex} +\makebox[0.25\textwidth]{\rule{0.25\textwidth}{0.8\p@}}\par +\medskip + +\textsc{\@nomescuola}}}\par +\null\hfill\ifBlank{\@sedescuola}{\relax}{% +\raisebox{0.5\baselineskip}[0pt][0pt]{% +\parbox{0.4\textwidth}{\raggedleft\@sedescuola}}}\par +\vspace{\stretch{1}} +{\large \@Ntesina\par} +\vspace{\stretch{0.5}} + +{\Large\textbf{\@title}\par} +{\vspace{0.5\baselineskip} + +\normalsize\@subtitle\par}% uno \stretch{1} è già stato fatto +\ifBlank{\@SSSLogo}% + {\vspace{\stretch{1}}}% + {\includegraphics[height=30mm]{\@SSSLogo}}\par\vspace{\stretch{1}} +\begin{minipage}[t]{0.45\textwidth}\flushleft +\ifBlank{\@presidente}{}{\@Npresidente\\ +{\bfseries\scshape\@presidente}\par +\vspace{\baselineskip}} + +\ifBlank{\@numerocommissione}{}{Commissione numero\\ +\textbf{\@numerocommissione}} +\end{minipage} +\hfill +\begin{minipage}[t]{0.45\textwidth}\flushright +\@Ncandidato\\ +{\bfseries\scshape\@author} +\end{minipage} + +\vspace{\stretch{1}} + +\raisebox{-0.05\textheight}[0pt][0pt]{% +\parbox[t]{\textwidth}{\centering +\makebox[0.25\textwidth]{\hrulefill}\\[\medskipamount] +Anno scolastico \@annoscolastico}} +\end{titlepage} +\clearpage}%% +%% +%% +%% Copyright 2005-2017 Claudio Beccari +%% +%% Distributable under the LaTeX Project Public License, +%% version 1.3c or higher (your choice). The latest version of +%% this license is at: http://www.latex-project.org/lppl.txt +%% +%% This work is "author-maintained" +%% +%% This work consists of this file toptesi.dtx, a README file +%% the manifest.txt file, and the derived files: +%% toptesi.cls, toptesi.sty, topfront.sty, topcommand.sty, +%% toptesi-scudo.sty, toptesi-scudo.def, toptesi.cfg, and the +%% English documentation toptesi.pdf. +%% +%% Furthermore the bundle contains the documentation source +%% file toptesi-it.tex and the derived file +%% toptesi-it.pdf. +%% +%% The toptesi-example.tex source file is just an example +%% that shows how to use the various commands; by commenting +%% or uncommenting certain source lines it is possible to +%% typeset different kind of theses and their front pages. +%% +%% The topfront-example.tex source file is an example of how +%% to produce just the title page with TOPtesi and the external +%% package frontespizio. +%% +%% The toptesi-scudo-example.tex source file is an example +%% that shows the particular features available with TOPtesi, +%% when a doctoral thesis is produced for the SCUola di +%% DOttorato (ScuDo) of Politecnico di Torino. +%% +%% The toptesi.cfg file is a sample of a local configuration +%% file that can be copied to another file and its copy freely +%% edited and customised. +%% +%% By running pdflatex on toptesi.dtx the user gets the class, +%% sty, def and cfg files and the English documentation file in +%% PDF format. +%% +%% The source file of the Italian documentation file +%% toptesi-it.pdf is another example of how to use TOPtesi. +%% This file toptesi-it.tex may be typeset with pdfLaTeX, +%% XeLaTeX, and LuaLateX; see the first comment lines of +%% the file for how-to information. In spite of being mainly +%% written in Italian, it contains several sections in English +%% for the benefit of foreign students attending the Doctoral +%% School of Turin. +%% +%% End of file `toptesi-sss.sty'. diff --git a/Master/texmf-dist/tex/latex/toptesi/toptesi.cfg b/Master/texmf-dist/tex/latex/toptesi/toptesi.cfg index 2b0da07a89d..f249f268751 100644 --- a/Master/texmf-dist/tex/latex/toptesi/toptesi.cfg +++ b/Master/texmf-dist/tex/latex/toptesi/toptesi.cfg @@ -6,40 +6,63 @@ %% %% toptesi.dtx (with options: `topcfg') %% ______________________________________________________ -%% The TOPtesi package -%% Copyright (C) 2005-2016 Claudio Beccari +%% The TOPtesi bundle +%% Copyright (C) 2015-2017 Claudio Beccari %% All rights reserved %% %% License information appended %% + %% %%================================================================ %% This file is the only file of the TOPtesi bundle that the user %% can modify without restrictions in order to customise the %% contents of this configuration file to his/her needs. The user %% can add or remove lines, comment or uncomment lines, change the -%% arguments to the macros, add definitions and so on. -%% Use this file by copying it to another file to be named as the -%% thesis main file and with extension .cfg; This bundle will try -%% to read "\jobname.cfg"; if this file it does nothing. This means -%% that the provided file toptesi.cfg is to be used as a model, not -%% to% be used directly. +%% arguments to macros, add definitions and so on. +%% Use this file by copying the relevant section to another file +%% to be named as the thesis main file and with extension .cfg. +%% This bundle will try to read "\jobname.cfg"; if this file does +%% not exist, the bundle files don't do anything. This implies that +%% the provided file toptesi.cfg is to be used as a model, not to +%% be used directly. %%================================================================ %% -\ateneo{Politecnico di Torino} -\facolta{}% nessun nome di default/ no default name -\FacoltaDi{}% nessun prefisso per la facoltà/no default faculty label -%%\DottoratoIn{Corso di dottorato in } -\CorsoDiLaureaIn{Corso di Laurea in } -\TesiDiLaurea{Tesi di Laurea Magistrale} -%%\NomeMonografia{Monografia di Laurea} -%%\NomeDissertazione{Tesi di Dottorato} -\InName{in} -%%\TutorName{Tutore} -%%\CycleName{ciclo} -%%\retrofrontespizio{Questo testo è soggetto alla Creative Commons Licence} +\ifmagistrale + \ateneo{Politecnico di Torino} + \facolta{}% nessun nome di default/ no default name for PoliTO + \FacoltaDi{}% nessun prefisso per la facoltà/no default faculty label for PoliTO + \CorsoDiLaureaIn{Corso di Laurea in} + \TesiDiLaurea{Tesi di Laurea Magistrale} + \InName{in} + %%\retrofrontespizio{Questo testo è soggetto alla + %% Creative Commons Licence} +\fi +\ifsecondaria + +\fi +\ifScuDo + \PhDschoolLogo{Logo-Scudo} + \Ndissertation{Docoral Dissertation} + \Ndoctoralprogram{Doctoral Program in\xspace} + \NSupervisor{Supervisor}{Supervisors} + \SupervisorNumber{1} + \Nexaminationcommittee{Doctoral Examination Committee:} + \Nlocation{Politecnico di Torino, Turin, Italy} + \Disclaimer{\noindent I hereby declare that the + contents and organisation of this dissertation + constitute my own original work and does not + compromise in any way the rights of third parties, + including those relating to the security of personal + data.} + \CClicence{This thesis is licensed under a Creative Commons + License, Attribution - Noncommercial- NoDerivative Works 4.0 + International: see \url{www.creativecommons.org}. + The text may be reproduced for non-commercial purposes, + provided that credit is given to the original author.} +\fi %% -%% Copyright 2005-2016 Claudio Beccari +%% Copyright 2005-2017 Claudio Beccari %% %% Distributable under the LaTeX Project Public License, %% version 1.3c or higher (your choice). The latest version of @@ -48,14 +71,14 @@ %% This work is "author-maintained" %% %% This work consists of this file toptesi.dtx, a README file -%% and the derived files: -%% -%% toptesi.cls, toptesi.sty, topfront.sty, topcoman.sty, -%% toptesi.cfg, and the English documentation toptesi.pdf. +%% the manifest.txt file, and the derived files: +%% toptesi.cls, toptesi.sty, topfront.sty, topcommand.sty, +%% toptesi-scudo.sty, toptesi-scudo.def, toptesi.cfg, and the +%% English documentation toptesi.pdf. %% %% Furthermore the bundle contains the documentation source -%% file toptesi-it-pdftex.tex and the derived file -%% toptesi-it-pdftex.pdf. +%% file toptesi-it.tex and the derived file +%% toptesi-it.pdf. %% %% The toptesi-example.tex source file is just an example %% that shows how to use the various commands; by commenting @@ -66,18 +89,26 @@ %% to produce just the title page with TOPtesi and the external %% package frontespizio. %% +%% The toptesi-scudo-example.tex source file is an example +%% that shows the particular features available with TOPtesi, +%% when a doctoral thesis is produced for the SCUola di +%% DOttorato (ScuDo) of Politecnico di Torino. +%% %% The toptesi.cfg file is a sample of a local configuration %% file that can be copied to another file and its copy freely -%% edited and customized. +%% edited and customised. %% %% By running pdflatex on toptesi.dtx the user gets the class, -%% sty and cfg files and the English documentation file in -%% pdf format. +%% sty, def and cfg files and the English documentation file in +%% PDF format. %% %% The source file of the Italian documentation file -%% toptesi-it-pdftex.pdf is another example of how to use TOPtesi. -%% In spite of its name, toptesi-it-pdftex.tex may be typeset -%% with pdfLaTeX, XeLaTeX, and LuaLateX; see the first comment -%% lines of the file for how-to information. +%% toptesi-it.pdf is another example of how to use TOPtesi. +%% This file toptesi-it.tex may be typeset with pdfLaTeX, +%% XeLaTeX, and LuaLateX; see the first comment lines of +%% the file for how-to information. In spite of being mainly +%% written in Italian, it contains several sections in English +%% for the benefit of foreign students attending the Doctoral +%% School of Turin. %% %% End of file `toptesi.cfg'. diff --git a/Master/texmf-dist/tex/latex/toptesi/toptesi.cls b/Master/texmf-dist/tex/latex/toptesi/toptesi.cls index 092f478817c..a864d7df64e 100644 --- a/Master/texmf-dist/tex/latex/toptesi/toptesi.cls +++ b/Master/texmf-dist/tex/latex/toptesi/toptesi.cls @@ -6,36 +6,42 @@ %% %% toptesi.dtx (with options: `class') %% ______________________________________________________ -%% The TOPtesi package -%% Copyright (C) 2005-2016 Claudio Beccari +%% The TOPtesi bundle +%% Copyright (C) 2015-2017 Claudio Beccari %% All rights reserved %% %% License information appended %% -\NeedsTeXFormat{LaTeX2e}[2015/01/01] +\NeedsTeXFormat{LaTeX2e}[2016/01/01] \ProvidesClass{toptesi}[% -2016/11/25 v.5.9.06 +2017/10/22 v.~6.1.09 Class for typesetting university theses] -\DeclareOption{a4paper}{\PassOptionsToClass{\CurrentOption}{report}} -\DeclareOption{titlepage}{\PassOptionsToClass{\CurrentOption}{report}} -\DeclareOption*{\PassOptionsToClass{\CurrentOption}{report}} -\ExecuteOptions{a4paper,titlepage} -\ProcessOptions\relax + +\usepackage{trace} +\RequirePackage{xkeyval} +\DeclareOptionX{formato}[a4paper]{\PassOptionsToClass{#1}{report}} +\DeclareOptionX*{\PassOptionsToClass{\CurrentOption}{report}} +\ExecuteOptionsX{formato} +\ProcessOptionsX*\relax \LoadClass{report} + \RequirePackage{iftex} \ifPDFTeX - \RequirePackage[english,italian]{babel} + \usepackage[english,italian]{babel} \else - \RequirePackage{polyglossia} + \usepackage{fontspec} + \defaultfontfeatures{Ligatures=TeX} + \usepackage{polyglossia} \setmainlanguage{italian} \setotherlanguage{english} - \renewcommand*{\iflanguage}[1]{\ifnum\the\language=\csname l@#1\endcsname + \renewcommand*{\iflanguage}[1]{% + \ifnum\the\language=\csname l@#1\endcsname \expandafter\@firstoftwo\else \expandafter\@secondoftwo\fi} \fi -\RequirePackage{toptesi} +\usepackage{toptesi} %% -%% Copyright 2005-2016 Claudio Beccari +%% Copyright 2005-2017 Claudio Beccari %% %% Distributable under the LaTeX Project Public License, %% version 1.3c or higher (your choice). The latest version of @@ -44,14 +50,14 @@ Class for typesetting university theses] %% This work is "author-maintained" %% %% This work consists of this file toptesi.dtx, a README file -%% and the derived files: -%% -%% toptesi.cls, toptesi.sty, topfront.sty, topcoman.sty, -%% toptesi.cfg, and the English documentation toptesi.pdf. +%% the manifest.txt file, and the derived files: +%% toptesi.cls, toptesi.sty, topfront.sty, topcommand.sty, +%% toptesi-scudo.sty, toptesi-scudo.def, toptesi.cfg, and the +%% English documentation toptesi.pdf. %% %% Furthermore the bundle contains the documentation source -%% file toptesi-it-pdftex.tex and the derived file -%% toptesi-it-pdftex.pdf. +%% file toptesi-it.tex and the derived file +%% toptesi-it.pdf. %% %% The toptesi-example.tex source file is just an example %% that shows how to use the various commands; by commenting @@ -62,18 +68,26 @@ Class for typesetting university theses] %% to produce just the title page with TOPtesi and the external %% package frontespizio. %% +%% The toptesi-scudo-example.tex source file is an example +%% that shows the particular features available with TOPtesi, +%% when a doctoral thesis is produced for the SCUola di +%% DOttorato (ScuDo) of Politecnico di Torino. +%% %% The toptesi.cfg file is a sample of a local configuration %% file that can be copied to another file and its copy freely -%% edited and customized. +%% edited and customised. %% %% By running pdflatex on toptesi.dtx the user gets the class, -%% sty and cfg files and the English documentation file in -%% pdf format. +%% sty, def and cfg files and the English documentation file in +%% PDF format. %% %% The source file of the Italian documentation file -%% toptesi-it-pdftex.pdf is another example of how to use TOPtesi. -%% In spite of its name, toptesi-it-pdftex.tex may be typeset -%% with pdfLaTeX, XeLaTeX, and LuaLateX; see the first comment -%% lines of the file for how-to information. +%% toptesi-it.pdf is another example of how to use TOPtesi. +%% This file toptesi-it.tex may be typeset with pdfLaTeX, +%% XeLaTeX, and LuaLateX; see the first comment lines of +%% the file for how-to information. In spite of being mainly +%% written in Italian, it contains several sections in English +%% for the benefit of foreign students attending the Doctoral +%% School of Turin. %% %% End of file `toptesi.cls'. diff --git a/Master/texmf-dist/tex/latex/toptesi/toptesi.sty b/Master/texmf-dist/tex/latex/toptesi/toptesi.sty index cab63d05b42..da9a3517252 100644 --- a/Master/texmf-dist/tex/latex/toptesi/toptesi.sty +++ b/Master/texmf-dist/tex/latex/toptesi/toptesi.sty @@ -6,58 +6,150 @@ %% %% toptesi.dtx (with options: `topsty') %% ______________________________________________________ -%% The TOPtesi package -%% Copyright (C) 2005-2016 Claudio Beccari +%% The TOPtesi bundle +%% Copyright (C) 2015-2017 Claudio Beccari %% All rights reserved %% %% License information appended %% -\NeedsTeXFormat{LaTeX2e}[2015/01/01] +\NeedsTeXFormat{LaTeX2e}[2016/01/01] \ProvidesPackage{toptesi}[% -2016/11/25 v.5.9.06 +2017/10/22 v.~6.1.09 Extension for toptesi.cls] + \def\TRON{\tracingcommands \tw@ \tracingmacros \tw@} \def\TROFF{\tracingcommands\z@ \tracingmacros \z@} \let\TROF\TROFF + +\newif\ifevenboxes \evenboxesfalse \newif\if@utoretitolo \@utoretitolofalse \newif\if@ldstyle \@ldstylefalse \newif\if@xivpt \@xivptfalse +\newif\iflibro \librofalse \newif\ifT@Pfrontespizio \T@Pfrontespiziofalse \newif\ifTOPfront \TOPfronttrue -\newlength\T@Pbinding\setlength\T@Pbinding{7mm} +\newif\ifScuDo \ScuDofalse +\newif\ifmonografia\monografiafalse +\newif\iftriennale\monografiafalse +\newif\ifmagistrale\magistralefalse +\newif\ifdottorato\dottoratofalse +\newif\ifsecondaria\secondariafalse +\newif\ifcustom\customfalse +\newif\ifTOPnumerazioneromana\TOPnumerazioneromanafalse +\newlength\T@Pbinding \def\setbindingcorrection#1{\T@Pbinding=#1} \newif\if@binding \@bindingfalse \newif\ifchapterbibliography \chapterbibliographyfalse \newif\ifclassica \classicafalse -\DeclareOption{cucitura}{\@bindingtrue} -\DeclareOption{14pt}{\@xivpttrue} -\DeclareOption{chapterbib}{\chapterbibliographytrue} -\DeclareOption{trieste}{\classicatrue}% Just for backwards compatibility -\DeclareOption{classica}{\classicatrue} -\DeclareOption{autoretitolo}{\ifclassica\@utoretitolotrue\fi} -\DeclareOption{oldstyle}{\ifclassica\@ldstyletrue\fi} -\DeclareOption{pdfa}{\PackageWarning{toptesi}{Option pdfa ignored.\MessageBreak -Read documentation toptesi-it-*.pdf, because package pdfx has changed}} -\DeclareOption{usefrontespizio}{\T@Pfrontespiziotrue\TOPfrontfalse} -\DeclareOption{noTOPfront}{\T@Pfrontespiziotrue\TOPfrontfalse} -\ProcessOptions\relax + +\@ifpackageloaded{xkeyval}{}{\RequirePackage{xkeyval}} +\@ifpackageloaded{scrextend}{}{\RequirePackage{scrextend}} +\@ifpackageloaded{iftex}{}{\RequirePackage{iftex}} +\@ifpackageloaded{xspace}{}{\RequirePackage{xspace}} +\@ifpackageloaded{xparse}{}{\RequirePackage{xparse}} + +\DeclareOptionX{cucitura}[7mm]{\setlength\T@Pbinding{#1}\@bindingtrue} +\DeclareOptionX{corpo}[10pt]{\unless\ifdim#1<\@xivpt\p@\@xivpttrue\fi + \changefontsizes{#1}} +\DeclareOptionX{chapterbib}[true]{\chapterbibliographtrue} +\DeclareOptionX{evenboxes}[true]{\evenboxestrue} +\DeclareOptionX{libro}[true]{\librotrue} +\DeclareOptionX{stile}[standard]{\setkeys{toptesi}{stile=#1}} +\define@choicekey{toptesi}{stile}[\val\nr]{standard,classica,trieste}{% + \ifcase\nr + \typeout{valore=\number\nr}\classicafalse + \or + \typeout{valore=\number\nr}\classicatrue + \or + \typeout{valore=\number\nr}\classicatrue + \else + \typeout{valore=\number\nr}\classicafalse + \fi} +\DeclareOptionX{autoretitolo}[true]{\ifclassica\@utoretitolotrue\fi} +\DeclareOptionX{oldstyle}[true]{\ifclassica\@ldstyletrue\fi} +\DeclareOptionX{pdfa}{\PackageWarning{toptesi}{% + ***********************************************\MessageBreak% + Option pdfa ignored.\MessageBreak% + Read documentation toptesi-it-*.pdf,\MessageBreak% + because package pdfx has changed\MessageBreak% + ***********************************************\MessageBreak% + }} + +\DeclareOptionX{numerazioneromana}[true]{\TOPnumerazioneromanatrue} + +\newcommand\NoValidTipo[1]{% +\PackageError{toptesi}{Option value `#1' not defined\MessageBreak +}{Type `X' to exit and check your input}} + +\DeclareOptionX{tipotesi}[topfront]{% + \ifstrequal{#1}{frontespizio}{\TOPfrontfalse\T@Pfrontespiziotrue + \AtEndOfPackage{\RequirePackage{frontespizio}}% + }{% + \ifstrequal{#1}{topfront}{\TOPfronttrue\T@Pfrontespiziofalse + \AtEndOfPackage{\RequirePackage{topfront}}% + }{% + \TOPfrontfalse\T@Pfrontespiziofalse + \ifstrequal{#1}{custom}{\relax}{% + \ifstrequal{#1}{triennale}{% + \def\TPT@tipo{toptesi-monografia}% opz:monografia + }{\ifstrequal{#1}{secondaria}{% opz: secondaria + \edef\TPT@tipo{toptesi-sss}% + }{% + \edef\TPT@tipo{toptesi-#1}% opz: triennale, + }% % magistrale, dottorale + }% + \AtEndOfPackage{% + \IfFileExists{\TPT@tipo.sty}% + {\RequirePackage{\TPT@tipo}}{\NoValidTipo{#1}}% + }% + }% opz: custom + }% opz: topfront + }% opz: frontespizio + } +\ProcessOptionsX* + \RequirePackage{graphicx} \RequirePackage{etoolbox} -\if@xivpt\input{size14.clo}\fi +\RequirePackage{xspace} +\newcommand*\ifempty[1]{\edef\@tempA{#1}% +\ifx\@tempA\@empty\expandafter\@firstoftwo\else\expandafter\@secondoftwo\fi} \newlength\interno -\textheight 0.7\paperheight -\setlength{\textheight}{\dimexpr\textheight*\baselineskip/\baselineskip+\topskip} -\ifx\f@size\@xivpt +\normalsize% necessary to have the correct value for \baselineskip +\textheight \paperwidth +\setlength{\textheight}{% +\dimexpr\textheight*\baselineskip/\baselineskip+\topskip} +\iflibro + \unless\if@xivpt + \textwidth=\dimexpr0.70711\paperwidth\relax + \setlength\interno{\dimexpr\paperwidth/8} + \footskip=1.5\baselineskip + \else + \textwidth=\dimexpr0.79549875\paperwidth\relax + \setlength\interno{\dimexpr\paperwidth/9} + \footskip=2\baselineskip + \fi +\else + \unless\if@xivpt + \textwidth=\dimexpr0.70711\paperwidth\relax \setlength\interno{\dimexpr\paperwidth/6} - \footskip=1,5\baselineskip + \footskip=1.5\baselineskip + \else + \textwidth=\dimexpr0.79549875\paperwidth\relax + \setlength\interno{\dimexpr\paperwidth/7} + \footskip=2\baselineskip + \fi +\fi +\iflibro + \interno=\dimexpr\paperwidth-\textwidth\relax + \oddsidemargin=0.414214\interno\relax + \evensidemargin=\dimexpr\paperwidth-\textwidth-\oddsidemargin\relax \else - \setlength\interno{\dimexpr\paperwidth/7} - \footskip=2\baselineskip + \oddsidemargin=\dimexpr(\paperwidth-\textwidth)/2\relax + \evensidemargin=\oddsidemargin \fi -\textwidth=\dimexpr\paperwidth-2\interno\relax -\oddsidemargin=\dimexpr\interno-1in\relax -\evensidemargin=\oddsidemargin -\marginparwidth=\dimexpr\interno-2.5\marginparsep +\marginparwidth=\dimexpr\evensidemargin-2.5\marginparsep +\oddsidemargin=\dimexpr\oddsidemargin-1in\relax +\evensidemargin=\dimexpr\evensidemargin-1in\relax \AtBeginDocument{% \if@binding \PackageInfo{TOPtesi}{Margin width recalculation} @@ -79,7 +171,7 @@ Read documentation toptesi-it-*.pdf, because package pdfx has changed}} \def\@oddfoot{\null\hfill {\scshape\lapagina}\hfill \null}\def\@oddhead{} \def\@evenhead{}\let\@evenfoot\@oddfoot} \if@twoside - \def\ps@headings{\let\@mkboth\markboth% + \def\ps@headings{\let\@mkboth\markboth% autoretitolo \def\@oddfoot{\null\hfill {\scshape\lapagina} \hfill\null} \let\@evenfoot\@oddfoot % @@ -110,10 +202,12 @@ Read documentation toptesi-it-*.pdf, because package pdfx has changed}} \fi \def\headWarn#1{\PackageWarning{toptesi}{% +*******************************************\MessageBreak THE HEADING IS TOO LONG\MessageBreak Use the optional argument of command \string#1\MessageBreak - See the LaTeX Handbook (1994) on section C.4.1\MessageBreak}} -\renewcommand*\l@chapter[2]{% + See the LaTeX Handbook (1994) on section C.4.1\MessageBreak +*******************************************\MessageBreak}} +\renewcommand\l@chapter[2]{% \ifnum \c@tocdepth >\m@ne \addpenalty{-\@highpenalty}% \vskip 1.0em \@plus\p@ @@ -133,27 +227,42 @@ Read documentation toptesi-it-*.pdf, because package pdfx has changed}} \newif\iftablespage \newif\ifnumeriromani \newif\iffrontmatter -\def\frontmatter{\clearpage\ps@plain\pagenumbering{roman}% - \numeriromanitrue\frontmattertrue\@openrightfalse\c@secnumdepth=-2} +\def\frontmatter{\clearpage\ps@plain% + \ifTOPnumerazioneromana\numeriromanitrue\fi + \frontmattertrue\@openrightfalse\c@secnumdepth=-2\relax +} + \def\mainmatter{\if@twoside\@openrighttrue\fi - \numeriromanifalse\frontmatterfalse\c@secnumdepth=2 - \clearpage\ps@headings\pagenumbering{arabic}% - } -\AtBeginDocument{\frontmatter} + \ifTOPnumerazioneromana\numeriromanifalse\fi + \frontmatterfalse\c@secnumdepth=2 + \clearpage\ps@headings + \ifTOPnumerazioneromana\pagenumbering{arabic}\fi +} +\newcommand\backmatter{\cleardoublepage[empty]% +\setcounter{secnumdepth}{-1}\if@twoside\@openrightfalse\fi} + +\AtBeginDocument{% + \ifTOPnumerazioneromana\pagenumbering{roman}\fi\frontmatter +} \figurespagefalse \tablespagefalse \let\ps@blank\ps@plain \newcommand*\blankpagestyle[1]{% \expandafter\let\expandafter\ps@blank\csname ps@#1\endcsname} -\renewcommand\cleardoublepage[1][blank]{\clearpage\ifodd\value{page}\else - \if@twoside\if@openright -\clearpage\null\thispagestyle{#1}\clearpage\fi\fi\fi} +\renewcommand\cleardoublepage[1][blank]{\clearpage +\unless\ifodd\value{page} + \if@twoside + \if@openright + \null\thispagestyle{#1}\clearpage + \fi\fi\fi} \def\sommario{% \iffrontmatter\else\frontmattertrue\fi \chapter*{\summaryname}} +\let\summary\sommario \def\ringraziamenti{% \iffrontmatter\else\frontmattertrue\fi \chapter*{\acknowledgename}} +\let\acknowledgements\ringraziamenti \def\@chapter[#1]#2{\iffrontmatter\mainmatter\fi \ifnum \c@secnumdepth >\m@ne \refstepcounter{chapter}% @@ -230,10 +339,15 @@ Read documentation toptesi-it-*.pdf, because package pdfx has changed}} \listoffigures \let\addvspace=\saveaddvspace} \fi -\ifbool{@twoside}{\clearpage\thispagestyle{empty}\null\clearpage}{}} +\ifbool{@twoside}{\cleardoublepage[empty]}{}} +\let\allcontents\indici \onecolumn \if@twoside - \flushbottom + \unless\ifScuDo + \flushbottom + \else + \raggedbottom + \fi \else \ifx\@xivpt\f@size \raggedbottom @@ -264,7 +378,11 @@ Read documentation toptesi-it-*.pdf, because package pdfx has changed}} \AtBeginDocument{\@ifpackageloaded{caption}{}{% \providecommand\captionsetup{}\renewcommand\captionsetup[2][]{}% +\providecommand\captionof[1]{\def\@captype{#1}\caption} +\let\originalcaption\caption \newdimen\captionwidth +\newdimen\fullwidth +\if@twocolumn\fullwidth=\columnwidth\else\fullwidth=\textwidth\fi \belowcaptionskip=\abovecaptionskip \long\def\@makecaption#1#2{% \begingroup @@ -272,9 +390,9 @@ Read documentation toptesi-it-*.pdf, because package pdfx has changed}} \finalhyphendemerits 100000\relax \linespread{0.95}\selectfont \vskip \abovecaptionskip - \captionwidth=\hsize - \advance\captionwidth-3em - \setbox0 \hbox{#1.\quad#2}% + \ifdim\hsize<\fullwidth \captionwidth=\hsize\else + \captionwidth=\dimexpr\hsize-3em\fi + \setbox0 \hbox{\ifblank{#1}{}{#1.\quad}#2}% \ifdim\wd0>\hsize \setbox1 \vbox{\hsize=\captionwidth \unhbox0\par\global\setbox2\lastbox}% @@ -301,6 +419,126 @@ Read documentation toptesi-it-*.pdf, because package pdfx has changed}} \endgroup }}} + +\newdimen\SDcaptionwidth +\newdimen\SDfigurewidth +\newdimen\SDlinewidth +\newbox\SDfigbox \setbox\SDfigbox\hbox{}% +\newbox\SDcapbox \setbox\SDcapbox\hbox{}% +\newcounter{SDpage}% +\newcounter{NumberSD} \setcounter{NumberSD}{0} +\providecommand*\theNumberSD{\value{NumberSD}} +\newif\ifNumberFloat \NumberFloattrue +\NewDocumentCommand\captionSD{s O{} m}{% o: optionale fra graffe + \IfBooleanTF{#1}% + {% + \@makecaption{}{#3}% + }{% + \ifempty{#2}% + {% + \originalcaption{#3}% + }{% + \originalcaption[#2]{#3}% + }% + }% +} + +\DeclareDocumentEnvironment{SDbox}{ G{} s O{0.5} }{%------OPENING +\NumberFloattrue +\ifempty{#1}% + {\NumberFloatfalse}% + {\def\@captype{#1}}% +\IfBooleanTF{#2}% + {\SDlinewidth=\dimexpr\textwidth+0.8\marginparwidth}% + {\SDlinewidth=\textwidth}% +\SDcaptionwidth=#3\SDlinewidth +\ifdim\SDcaptionwidth<0.3\SDlinewidth + \SDcaptionwidth=0.3\SDlinewidth +\fi +\ifdim\SDcaptionwidth>0.7\SDlinewidth + \SDcaptionwidth=0.7\SDlinewidth +\fi +\SDfigurewidth=\dimexpr\SDlinewidth-\SDcaptionwidth\relax +\SDcaptionwidth=\dimexpr\SDcaptionwidth-\columnsep\relax +\SDfigurewidth=\dimexpr\SDfigurewidth-\columnsep\relax +}{%---------------------------------------------------CLOSING + {\ifcsdef{r@\@tempSD}% + {% + \edef\@tempD{r@\@tempSD}% + \edef\@tempD{\expandafter\csuse\expandafter{\@tempD}}% + \edef\@tempD{\@tempD}% + \ifcsdef{ver@hyperref.sty}% + {% + \edef\@tempD{\noexpand\@secondoffive\@tempD}% + }% + {% + \edef\@tempD{\noexpand\@secondoftwo\@tempD}% + }% + \edef\@tempD{\@tempD}% + \setcounter{SDpage}{\@tempD}% + }% + {% + \setcounter{SDpage}{\thepage}% + }% + }% +\ifbool{@twoside}% + {% + \ifnumodd{\value{SDpage}}% + {% + \makebox[\textwidth][l]{\makebox[\SDlinewidth]{% + \usebox{\SDfigbox}\hfill\usebox{\SDcapbox}}}% + }{% + \makebox[\textwidth][r]{\makebox[\SDlinewidth]{% + \usebox{\SDcapbox}\hfill\usebox{\SDfigbox}}}% + }% + }{% + \makebox[\textwidth][l]{\makebox[\SDlinewidth]{% + \usebox{\SDfigbox}\hfill\usebox{\SDcapbox}}}% + } +} +\NewDocumentCommand\SDcaption{ O{} m G{} }{% + \notbool{NumberFloat}% + {% + \stepcounter{NumberSD}% + \edef\@tempSD{SD\the\c@NumberSD}% + \begin{lrbox}{\SDcapbox}% + \parbox[t]{\SDcaptionwidth}% + {% + \captionSD*{#2}\relax + \expandafter\label\expandafter{\@tempSD}% + }% + \end{lrbox}% + }% + {% + \ifempty{#3}% + {% + \NumberFloatfalse + \stepcounter{NumberSD}% + \edef\@tempSD{SD\the\c@NumberSD}% + \begin{lrbox}{\SDcapbox}% + \parbox[t]{\SDcaptionwidth}% + {% + \captionSD*{#2}\relax + \expandafter\label\expandafter{\@tempSD}% + }% + \end{lrbox}% + }{% + \begin{lrbox}{\SDcapbox}% + \parbox[t]{\SDcaptionwidth}% + {% + \captionSD[#1]{#2}\label{#3}\gdef\@tempSD{#3}% + }% + \end{lrbox}% + }% + }% +} +\newcommand\SDimage[1]{% + \setbox0\hbox{M}\dimen0\ht0\relax + \begin{lrbox}{\SDfigbox}\parbox[t]{\SDfigurewidth}{#1}\end{lrbox}% + \dimen2\dimexpr\ht\SDfigbox+\dimen0\relax + \setbox\SDfigbox\hbox{\raisebox{-\dimen2}{\box\SDfigbox}}% +} +\let\SDtabular\SDimage \newcommand\goodpagebreak[1][4]{\ifvmode \unless\ifdim\dimexpr\pagegoal-\pagetotal>#1\baselineskip\newpage\fi \else\ifhmode\vadjust{\newpage}\fi\fi} @@ -351,7 +589,8 @@ Read documentation toptesi-it-*.pdf, because package pdfx has changed}} \providecommand*\acknowledgename{} \newcommand*\ExtendCaptions[3]{{% \@ifundefined{captions#1}{% -\PackageWarning{toptesi}{Language option #1 not specified\MessageBreak +\PackageWarning{toptesi}{% +Language option #1 not specified\MessageBreak Skipping any redefinition\MessageBreak}% }{% \expandafter\let\expandafter\@tempA\csname captions#1\endcsname @@ -370,9 +609,9 @@ Skipping any redefinition\MessageBreak}% \renewcommand\@chapapp{\chaptername}% } \AtBeginDocument{% -\unless\ifT@Pfrontespizio +\unless\ifT@Pfrontespizio\ifTOPfront \RequirePackage{topfront} - \fi + \fi\fi \RequirePackage{topcoman}% } \ifPDFTeX @@ -418,7 +657,7 @@ Skipping any redefinition\MessageBreak}% \def\@evenhead{% \setbox\@intesta\hbox{\ifPDFTeX\latintext\fi \footnotesize\strut\textsc{% - \@author\ifx\@secondauthor\empty\else\ et al.\fi: \@stitle}% + \@@author\ifcsvoid{@secondauthor}{\ et al.}: \@stitle}% }% \ifdim\wd\@intesta>\textwidth\headwrn{\titolo}\fi \underline{\makebox[\textwidth]{\box\@intesta}}}% @@ -433,20 +672,24 @@ Skipping any redefinition\MessageBreak}% \renewcommand*{\ps@headings}{\let\@mkboth\markboth \def\@oddfoot{\null \hfill \textbf{\lapagina}\hfill \null}% \let\@evenfoot\empty\let\@evenhead\empty - \def\@oddhead{{\setbox\z@\hbox{\ifPDFTeX\latintext\fi\footnotesize - \textsc{% - \@author\ifx\@secondauthor\empty\else\ et al.\fi: \@stitle}}% - \setbox\tw@\hbox{\ifPDFTeX\latintext\fi\footnotesize\textsl{\rightmark}}% + \def\@oddhead{{\setbox\z@\hbox{\ifPDFTeX\latintext\fi + \footnotesize\textsc{% + \@@author\ifcsvoid{@secondauthor}{}{\ et al.}: \@stitle}}% + \setbox\tw@\hbox{\ifPDFTeX\latintext\fi + \footnotesize\textsl{\rightmark}}% \dimen@=\dimexpr2em + \wd\z@ + \wd\tw@\relax \ifdim\dimen@<\textwidth \relax \else - \setbox\z@\vbox{\hsize.48\textwidth\parindent\z@\raggedright + \setbox\z@\vbox{\hsize.48\textwidth\parindent\z@ + \raggedright \ifPDFTeX\latintext\fi\footnotesize\textsc{% - \@author\ifx\@secondauthor\empty\else\ et al.\fi: \@stitle + \@@author\ifcsvoid{@secondauthor}{}{\ et al.}: \@stitle }}% - \setbox\tw@\vbox{\hsize.48\textwidth\parindent\z@\raggedleft - \ifPDFTeX\latintext\fi\footnotesize\textsl{\rightmark}}% - \fi + \setbox\tw@\vbox{\hsize.48\textwidth\parindent\z@ + \raggedleft + \ifPDFTeX\latintext\fi\footnotesize + \textsl{\rightmark}}% + \fi \setbox\@intesta\vbox to\z@{% \vss\hbox to\textwidth{\strut\box\z@\hfill\box\tw@}}% \underline{\box\@intesta}}}% @@ -464,6 +707,7 @@ Skipping any redefinition\MessageBreak}% } \newcommand*{\NoteWhiteLine}{\par\vspace*{-.3\baselineskip}} \newcommand*\paginavuota{\clearpage\thispagestyle{empty}\null\clearpage} +\let\emptypage\paginavuota \newenvironment{dedica}{\clearpage \if@twoside \ifodd\c@page\else\thispagestyle{empty}\null\clearpage\fi @@ -476,6 +720,7 @@ Skipping any redefinition\MessageBreak}% }{% \endlist\clearpage } +\let\dedication\dedica \let\enddedication\enddedica \newenvironment{citazioni}{% \clearpage\thispagestyle{empty} \list{}{\labelwidth\z@ @@ -485,8 +730,9 @@ Skipping any redefinition\MessageBreak}% }{% \endlist\clearpage } +\let\wittysentences\citazioni \let\endwittysentences\endcitazioni %% -%% Copyright 2005-2016 Claudio Beccari +%% Copyright 2005-2017 Claudio Beccari %% %% Distributable under the LaTeX Project Public License, %% version 1.3c or higher (your choice). The latest version of @@ -495,14 +741,14 @@ Skipping any redefinition\MessageBreak}% %% This work is "author-maintained" %% %% This work consists of this file toptesi.dtx, a README file -%% and the derived files: -%% -%% toptesi.cls, toptesi.sty, topfront.sty, topcoman.sty, -%% toptesi.cfg, and the English documentation toptesi.pdf. +%% the manifest.txt file, and the derived files: +%% toptesi.cls, toptesi.sty, topfront.sty, topcommand.sty, +%% toptesi-scudo.sty, toptesi-scudo.def, toptesi.cfg, and the +%% English documentation toptesi.pdf. %% %% Furthermore the bundle contains the documentation source -%% file toptesi-it-pdftex.tex and the derived file -%% toptesi-it-pdftex.pdf. +%% file toptesi-it.tex and the derived file +%% toptesi-it.pdf. %% %% The toptesi-example.tex source file is just an example %% that shows how to use the various commands; by commenting @@ -513,18 +759,26 @@ Skipping any redefinition\MessageBreak}% %% to produce just the title page with TOPtesi and the external %% package frontespizio. %% +%% The toptesi-scudo-example.tex source file is an example +%% that shows the particular features available with TOPtesi, +%% when a doctoral thesis is produced for the SCUola di +%% DOttorato (ScuDo) of Politecnico di Torino. +%% %% The toptesi.cfg file is a sample of a local configuration %% file that can be copied to another file and its copy freely -%% edited and customized. +%% edited and customised. %% %% By running pdflatex on toptesi.dtx the user gets the class, -%% sty and cfg files and the English documentation file in -%% pdf format. +%% sty, def and cfg files and the English documentation file in +%% PDF format. %% %% The source file of the Italian documentation file -%% toptesi-it-pdftex.pdf is another example of how to use TOPtesi. -%% In spite of its name, toptesi-it-pdftex.tex may be typeset -%% with pdfLaTeX, XeLaTeX, and LuaLateX; see the first comment -%% lines of the file for how-to information. +%% toptesi-it.pdf is another example of how to use TOPtesi. +%% This file toptesi-it.tex may be typeset with pdfLaTeX, +%% XeLaTeX, and LuaLateX; see the first comment lines of +%% the file for how-to information. In spite of being mainly +%% written in Italian, it contains several sections in English +%% for the benefit of foreign students attending the Doctoral +%% School of Turin. %% %% End of file `toptesi.sty'. |