From cf8f384dd69c4324111c26d41026d7563cdbad37 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 24 May 2021 20:19:55 +0000 Subject: suftesi (24may21) git-svn-id: svn://tug.org/texlive/trunk@59334 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/suftesi/suftesi.cls | 2789 +++++++++++------------ 1 file changed, 1379 insertions(+), 1410 deletions(-) (limited to 'Master/texmf-dist/tex/latex/suftesi') diff --git a/Master/texmf-dist/tex/latex/suftesi/suftesi.cls b/Master/texmf-dist/tex/latex/suftesi/suftesi.cls index 259fe6745de..fa195408c3d 100644 --- a/Master/texmf-dist/tex/latex/suftesi/suftesi.cls +++ b/Master/texmf-dist/tex/latex/suftesi/suftesi.cls @@ -26,16 +26,15 @@ %% \NeedsTeXFormat{LaTeX2e}[2005/12/01] \ProvidesClass{suftesi} - [2021/05/20 v3.1.0 A class for typesetting theses, books and articles] + [2021/05/23 v3.1.1 A class for typesetting theses, books and articles] \RequirePackage{xkeyval} \newif\ifsuftesi@article -\newif\ifsuftesi@authortitle \newif\ifsuftesi@collection -\newif\ifsuftesi@standard +\newif\ifsuftesi@lmodern \newif\ifsuftesi@cochineal \newif\ifsuftesi@libertine \newif\ifsuftesi@palatino -\newif\ifsuftesi@compatibility +\newif\ifsuftesi@mathpazo \newif\ifsuftesi@nofont \newif\ifsuftesi@greekfont \newif\ifsuftesi@porson @@ -54,9 +53,10 @@ \newif\ifsuftesi@pocketb \newif\ifsuftesi@pocketc \newif\ifsuftesi@screen +\newif\ifsuftesi@sufplain \newif\ifsuftesi@screencentered \newif\ifsuftesi@centerheader -\newif\ifsuftesi@sufplain +\newif\ifsuftesi@authortitle \newif\ifsuftesi@numparpart \newif\ifsuftesi@numparchap \newif\ifsuftesi@numparsec @@ -68,15 +68,11 @@ \newif\ifsuftesi@twocolumntoc \newif\ifsuftesi@twocolumnlof \newif\ifsuftesi@twocolumnlot -\newif\ifsuftesi@partialtoc -\newif\ifsuftesi@toccompactsec -\newif\ifsuftesi@toccompactsubsec -\newif\ifsuftesi@toccompactsubsubsec -\newif\ifsuftesi@toccompactpar -\newif\ifsuftesi@toccompactsubpar -\newif\ifsuftesi@draftdate -\newif\ifsuftesi@fewfootnotes -\newif\ifsuftesi@partpage +\newif\ifsuftesi@ctocsec +\newif\ifsuftesi@ctocsubsec +\newif\ifsuftesi@ctocsubsubsec +\newif\ifsuftesi@ctocpar +\newif\ifsuftesi@ctocsubpar \newif\ifsuftesi@FSPL \DeclareOption{a4paper}{% \ClassWarningNoLine{suftesi}{Option 'a4paper' not available}{}} @@ -104,25 +100,29 @@ \def\SUF@chapswitch{\thechapter.} \or \suftesi@articletrue - \@titlepagefalse + \SUF@titlepagefalse \def\SUF@chapswitch{} \or \suftesi@collectiontrue \setkeys{}{headerstyle=authortitleinner} \def\SUF@chapswitch{} \fi} -\define@choicekey{}{documentstructure}[\suftesi@val\suftesi@nr] - {book,article,collection}[book]{% -\ClassWarningNoLine{suftesi}{% - 'documentstructure' option is deprecated.\MessageBreak - Use 'structure' option instead} +\define@choicekey{}{version}[\suftesi@val\suftesi@nr] + {screen,cscreen,draft,final}[draft]{% \ifcase\suftesi@nr\relax - \setkeys{}{structure=book} + \suftesi@screentrue \or - \setkeys{}{structure=article} + \suftesi@screentrue + \suftesi@screencenteredtrue \or - \setkeys{}{structure=collection} + \relax +\or + \AtBeginDocument{\crop[off]} \fi} +\define@boolkey[SUF]{}{marginpar}[true]{} +\define@boolkey[SUF]{}{partpage}[true]{} +\define@boolkey[SUF]{}{draftdate}[true]{} +\define@boolkey[SUF]{}{titlepage}[true]{} \define@choicekey{}{defaultfont}[\suftesi@val\suftesi@nr] {none,cochineal,libertine,palatino,standard,compatibility}[cochineal]{% \ifcase\suftesi@nr\relax @@ -134,9 +134,9 @@ \or \suftesi@palatinotrue \or - \suftesi@standardtrue + \suftesi@lmoderntrue \or - \suftesi@compatibilitytrue + \suftesi@mathpazotrue \fi} \define@choicekey{}{mathfont}[\suftesi@val\suftesi@nr] {none,minimal,extended}[minimal]{% @@ -161,6 +161,15 @@ \or \suftesi@greekfonttrue\suftesi@cbgreektrue \fi} +\define@choicekey{}{smallcapsstyle}[\suftesi@val\suftesi@nr] + {low,upper}[low]{% +\ifcase\suftesi@nr\relax + \def\SUF@MakeLowercase{\MakeLowercase} + \def\SUF@TOCMakeLowercase{\lowercase} +\or + \def\SUF@MakeLowercase{\relax} + \def\SUF@TOCMakeLowercase{\relax} +\fi} \RequirePackage{geometry} \define@choicekey{}{pagelayout}[\suftesi@val\suftesi@nr] {standard,standardaureo,periodical,periodicalaureo,compact,compactaureo, @@ -316,7 +325,7 @@ marginparwidth= 12mm, marginparsep= 7pt} \or -\suftesi@pocketBtrue +\suftesi@pocketbtrue \DeclareRobustCommand{\SUF@partsize}{\large} \DeclareRobustCommand{\SUF@chaptersize}{\large} \DeclareRobustCommand{\SUF@sectionsize}{\normalsize} @@ -334,7 +343,7 @@ marginparwidth= 15mm, marginparsep= 7pt} \or -\suftesi@pocketCtrue +\suftesi@pocketctrue \DeclareRobustCommand{\SUF@partsize}{\large} \DeclareRobustCommand{\SUF@chaptersize}{\large} \DeclareRobustCommand{\SUF@sectionsize}{\normalsize} @@ -355,164 +364,155 @@ \define@choicekey{}{partstyle}[\suftesi@val\suftesi@nr] {left,center,right,parleft,parcenter,parright}[left]{% \ifcase\suftesi@nr\relax - \def\SUF@lr@PARTSwitch{\filright} + \def\SUF@PART@align{\filright} \or - \def\SUF@lr@PARTSwitch{\filcenter} + \def\SUF@PART@align{\filcenter} \or - \def\SUF@lr@PARTSwitch{\filleft} + \def\SUF@PART@align{\filleft} \or - \def\SUF@lr@PARTSwitch{\filright} + \def\SUF@PART@align{\filright} \suftesi@numparparttrue \or - \def\SUF@lr@PARTSwitch{\filcenter} + \def\SUF@PART@align{\filcenter} \suftesi@numparparttrue \or - \def\SUF@lr@PARTSwitch{\filleft} + \def\SUF@PART@align{\filleft} \suftesi@numparparttrue \fi} \define@choicekey{}{chapstyle}[\suftesi@val\suftesi@nr] {left,center,right,parleft,parcenter,parright}[left]{% \ifcase\suftesi@nr\relax - \def\SUF@lr@CHAPSwitch{\filright} + \def\SUF@CHAP@align{\filright} \or - \def\SUF@lr@CHAPSwitch{\filcenter} + \def\SUF@CHAP@align{\filcenter} \or - \def\SUF@lr@CHAPSwitch{\filleft} + \def\SUF@CHAP@align{\filleft} \or - \def\SUF@lr@CHAPSwitch{\filright} + \def\SUF@CHAP@align{\filright} \suftesi@numparchaptrue \or - \def\SUF@lr@CHAPSwitch{\filcenter} + \def\SUF@CHAP@align{\filcenter} \suftesi@numparchaptrue \or - \def\SUF@lr@CHAPSwitch{\filleft} + \def\SUF@CHAP@align{\filleft} \suftesi@numparchaptrue \fi} \define@choicekey{}{secstyle}[\suftesi@val\suftesi@nr] {left,center,right,parleft,parcenter,parright}[left]{% \ifcase\suftesi@nr\relax - \def\SUF@lr@SECSwitch{\filright} + \def\SUF@SEC@align{\filright} \or - \def\SUF@lr@SECSwitch{\filcenter} + \def\SUF@SEC@align{\filcenter} \or - \def\SUF@lr@SECSwitch{\filleft} + \def\SUF@SEC@align{\filleft} \or - \def\SUF@lr@SECSwitch{\filright} + \def\SUF@SEC@align{\filright} \suftesi@numparsectrue \or - \def\SUF@lr@SECSwitch{\filcenter} + \def\SUF@SEC@align{\filcenter} \suftesi@numparsectrue \or - \def\SUF@lr@SECSwitch{\filleft} + \def\SUF@SEC@align{\filleft} \suftesi@numparsectrue \fi} \define@choicekey{}{subsecstyle}[\suftesi@val\suftesi@nr] {left,center,right,parleft,parcenter,parright}[left]{% \ifcase\suftesi@nr\relax - \def\SUF@lr@SUBSECSwitch{\filright} + \def\SUF@SUBSEC@align{\filright} \or - \def\SUF@lr@SUBSECSwitch{\filcenter} + \def\SUF@SUBSEC@align{\filcenter} \or - \def\SUF@lr@SUBSECSwitch{\filleft} + \def\SUF@SUBSEC@align{\filleft} \or - \def\SUF@lr@SUBSECSwitch{\filright} + \def\SUF@SUBSEC@align{\filright} \suftesi@numparsubsectrue \or - \def\SUF@lr@SUBSECSwitch{\filcenter} + \def\SUF@SUBSEC@align{\filcenter} \suftesi@numparsubsectrue \or - \def\SUF@lr@SUBSECSwitch{\filleft} + \def\SUF@SUBSEC@align{\filleft} \suftesi@numparsubsectrue \fi} \define@choicekey{}{subsubsecstyle}[\suftesi@val\suftesi@nr] {left,center,right,parleft,parcenter,parright}[left]{% \ifcase\suftesi@nr\relax - \def\SUF@lr@SUBSUBSECSwitch{\filright} + \def\SUF@SUBSUBSEC@align{\filright} \or - \def\SUF@lr@SUBSUBSECSwitch{\filcenter} + \def\SUF@SUBSUBSEC@align{\filcenter} \or - \def\SUF@lr@SUBSUBSECSwitch{\filleft} + \def\SUF@SUBSUBSEC@align{\filleft} \or - \def\SUF@lr@SUBSUBSECSwitch{\filright} + \def\SUF@SUBSUBSEC@align{\filright} \suftesi@numparsubsubsectrue \or - \def\SUF@lr@SUBSUBSECSwitch{\filcenter} + \def\SUF@SUBSUBSEC@align{\filcenter} \suftesi@numparsubsubsectrue \or - \def\SUF@lr@SUBSUBSECSwitch{\filleft} + \def\SUF@SUBSUBSEC@align{\filleft} \suftesi@numparsubsubsectrue \fi} \define@choicekey{}{partfont}[\suftesi@val\suftesi@nr] {roman,italic,smallcaps}[roman]{% \ifcase\suftesi@nr\relax - \def\SUF@PART@StyleSwitch{\relax} + \def\SUF@PART@font{\relax} \or - \def\SUF@PART@StyleSwitch{\itshape} + \def\SUF@PART@font{\itshape} \or - \def\SUF@PART@StyleSwitch{\expandafter\SUF@titlesmallcaps} + \def\SUF@PART@font{\expandafter\SUF@titlesmallcaps} \fi} \define@choicekey{}{chapfont}[\suftesi@val\suftesi@nr] {roman,italic,smallcaps}[roman]{% \ifcase\suftesi@nr\relax - \def\SUF@CHAP@StyleSwitch{\relax} + \def\SUF@CHAP@font{\relax} \or - \def\SUF@CHAP@StyleSwitch{\itshape} + \def\SUF@CHAP@font{\itshape} \or - \def\SUF@CHAP@StyleSwitch{\expandafter\SUF@titlesmallcaps} + \def\SUF@CHAP@font{\expandafter\SUF@titlesmallcaps} \fi} \define@choicekey{}{secfont}[\suftesi@val\suftesi@nr] {roman,italic,smallcaps}[italic]{% \ifcase\suftesi@nr\relax - \def\SUF@SEC@StyleSwitch{\relax} + \def\SUF@SEC@font{\relax} \or - \def\SUF@SEC@StyleSwitch{\itshape} + \def\SUF@SEC@font{\itshape} \or - \def\SUF@SEC@StyleSwitch{\expandafter\SUF@titlesmallcaps} + \def\SUF@SEC@font{\expandafter\SUF@titlesmallcaps} \fi} \define@choicekey{}{subsecfont}[\suftesi@val\suftesi@nr] {roman,italic,smallcaps}[roman]{% \ifcase\suftesi@nr\relax - \def\SUF@SUBSEC@StyleSwitch{\relax} + \def\SUF@SUBSEC@font{\relax} \or - \def\SUF@SUBSEC@StyleSwitch{\itshape} + \def\SUF@SUBSEC@font{\itshape} \or - \def\SUF@SUBSEC@StyleSwitch{\expandafter\SUF@titlesmallcaps} + \def\SUF@SUBSEC@font{\expandafter\SUF@titlesmallcaps} \fi} \define@choicekey{}{subsubsecfont}[\suftesi@val\suftesi@nr] {roman,italic,smallcaps}[roman]{% \ifcase\suftesi@nr\relax - \def\SUF@SUBSUBSEC@StyleSwitch{\relax} + \def\SUF@SUBSUBSEC@font{\relax} \or - \def\SUF@SUBSUBSEC@StyleSwitch{\itshape} + \def\SUF@SUBSUBSEC@font{\itshape} \or - \def\SUF@SUBSUBSEC@StyleSwitch{\expandafter\SUF@titlesmallcaps} + \def\SUF@SUBSUBSEC@font{\expandafter\SUF@titlesmallcaps} \fi} \define@choicekey{}{parfont}[\suftesi@val\suftesi@nr] {roman,italic,smallcaps}[roman]{% \ifcase\suftesi@nr\relax - \def\SUF@PAR@StyleSwitch{\relax} + \def\SUF@PAR@font{\relax} \or - \def\SUF@PAR@StyleSwitch{\itshape} + \def\SUF@PAR@font{\itshape} \or - \def\SUF@PAR@StyleSwitch{\expandafter\SUF@titlesmallcaps} + \def\SUF@PAR@font{\expandafter\SUF@titlesmallcaps} \fi} \define@choicekey{}{subparfont}[\suftesi@val\suftesi@nr] {roman,italic,smallcaps}[roman]{% \ifcase\suftesi@nr\relax - \def\SUF@SUBPAR@StyleSwitch{\relax} -\or - \def\SUF@SUBPAR@StyleSwitch{\itshape} + \def\SUF@SUBPAR@font{\relax} \or - \def\SUF@SUBPAR@StyleSwitch{\expandafter\SUF@titlesmallcaps} -\fi} -\define@choicekey{}{smallcapsstyle}[\suftesi@val\suftesi@nr] - {low,upper}[low]{% -\ifcase\suftesi@nr\relax - \def\suftesi@MakeTextLowercase{\MakeLowercase} - \def\suftesi@MakeTextTOCLowercase{\lowercase} + \def\SUF@SUBPAR@font{\itshape} \or - \def\suftesi@MakeTextLowercase{\relax} - \def\suftesi@MakeTextTOCLowercase{\relax} + \def\SUF@SUBPAR@font{\expandafter\SUF@titlesmallcaps} \fi} \define@choicekey{}{partnumstyle}[\suftesi@val\suftesi@nr] {arabic,roman,Roman,dotarabic,dotroman,dotRoman}[arabic]{% @@ -541,32 +541,32 @@ \def\SUF@thechapter{\arabic{chapter}} \def\SUF@HEAD@thechapter{\arabic{chapter}} \def\SUF@dotchap{} - \def\SUF@CHAP@thecontentslabel{\thecontentslabel} + \def\SUF@CHAP@contentslabel{\thecontentslabel} \or \def\SUF@thechapter{\textsc{\roman{chapter}}} \def\SUF@HEAD@thechapter{\textsc{\roman{chapter}}} \def\SUF@dotchap{} - \def\SUF@CHAP@thecontentslabel{\textsc{\@roman{\thecontentslabel}}} + \def\SUF@CHAP@contentslabel{\textsc{\@roman{\thecontentslabel}}} \or \def\SUF@thechapter{\Roman{chapter}} \def\SUF@HEAD@thechapter{\Roman{chapter}} \def\SUF@dotchap{} - \def\SUF@CHAP@thecontentslabel{\@Roman{\thecontentslabel}} + \def\SUF@CHAP@contentslabel{\@Roman{\thecontentslabel}} \or \def\SUF@thechapter{\arabic{chapter}} \def\SUF@HEAD@thechapter{\arabic{chapter}} \def\SUF@dotchap{.} - \def\SUF@CHAP@thecontentslabel{\thecontentslabel} + \def\SUF@CHAP@contentslabel{\thecontentslabel} \or \def\SUF@thechapter{\textsc{\roman{chapter}}} \def\SUF@HEAD@thechapter{\textsc{\roman{chapter}}} \def\SUF@dotchap{.} - \def\SUF@CHAP@thecontentslabel{\textsc{\@roman{\thecontentslabel}}} + \def\SUF@CHAP@contentslabel{\textsc{\@roman{\thecontentslabel}}} \or \def\SUF@thechapter{\Roman{chapter}} \def\SUF@HEAD@thechapter{\Roman{chapter}} \def\SUF@dotchap{.} - \def\SUF@CHAP@thecontentslabel{\@Roman{\thecontentslabel}} + \def\SUF@CHAP@contentslabel{\@Roman{\thecontentslabel}} \fi} \define@choicekey{}{secnumstyle}[\suftesi@val\suftesi@nr] {arabic,roman,Roman,dotarabic,dotroman,dotRoman}[arabic]{% @@ -574,86 +574,86 @@ \def\SUF@thesection{\SUF@chapswitch\arabic{section}} \def\SUF@HEAD@thesection{\arabic{section}} \def\SUF@dotsec{} - \def\SUF@SEC@thecontentslabel{\thecontentslabel} + \def\SUF@SEC@contentslabel{\thecontentslabel} \or \def\SUF@thesection{\textsc{\SUF@chapswitch\roman{section}}} \def\SUF@HEAD@thesection{\textsc{\roman{section}}} \def\SUF@dotsec{} - \def\SUF@SEC@thecontentslabel{\textsc{\@roman{\thecontentslabel}}} + \def\SUF@SEC@contentslabel{\textsc{\@roman{\thecontentslabel}}} \or \def\SUF@thesection{\SUF@chapswitch\Roman{section}} \def\SUF@HEAD@thesection{\Roman{section}} \def\SUF@dotsec{} - \def\SUF@SEC@thecontentslabel{\@Roman{\thecontentslabel}} + \def\SUF@SEC@contentslabel{\@Roman{\thecontentslabel}} \or \def\SUF@thesection{\SUF@chapswitch\arabic{section}} \def\SUF@HEAD@thesection{\arabic{section}} \def\SUF@dotsec{.} - \def\SUF@SEC@thecontentslabel{\thecontentslabel} + \def\SUF@SEC@contentslabel{\thecontentslabel} \or \def\SUF@thesection{\SUF@chapswitch\textsc{\roman{section}}} \def\SUF@HEAD@thesection{\textsc{\roman{section}}} \def\SUF@dotsec{.} - \def\SUF@SEC@thecontentslabel{\textsc{\@roman{\thecontentslabel}}} + \def\SUF@SEC@contentslabel{\textsc{\@roman{\thecontentslabel}}} \or \def\SUF@thesection{\SUF@chapswitch\Roman{section}} \def\SUF@HEAD@thesection{\Roman{section}} \def\SUF@dotsec{.} - \def\SUF@SEC@thecontentslabel{\@Roman{\thecontentslabel}} + \def\SUF@SEC@contentslabel{\@Roman{\thecontentslabel}} \fi} \define@choicekey{}{subsecnumstyle}[\suftesi@val\suftesi@nr] {arabic,roman,Roman,dotarabic,dotroman,dotRoman}[arabic]{% \ifcase\suftesi@nr\relax \def\SUF@thesubsection{\SUF@thesection.\arabic{subsection}} \def\SUF@dotsubsec{} - \def\SUF@SUBSEC@thecontentslabel{\thecontentslabel} + \def\SUF@SUBSEC@contentslabel{\thecontentslabel} \or \def\SUF@thesubsection{\SUF@thesection.\textsc{\roman{subsection}}} \def\SUF@dotsubsec{} - \def\SUF@SUBSEC@thecontentslabel{\textsc{\@roman{\thecontentslabel}}} + \def\SUF@SUBSEC@contentslabel{\textsc{\@roman{\thecontentslabel}}} \or \def\SUF@thesubsection{\SUF@thesection.\Roman{subsection}} \def\SUF@dotsubsec{} - \def\SUF@SUBSEC@thecontentslabel{\@Roman{\thecontentslabel}} + \def\SUF@SUBSEC@contentslabel{\@Roman{\thecontentslabel}} \or \def\SUF@thesubsection{\SUF@thesection.\arabic{subsection}} \def\SUF@dotsubsec{.} - \def\SUF@SUBSEC@thecontentslabel{\thecontentslabel} + \def\SUF@SUBSEC@contentslabel{\thecontentslabel} \or \def\SUF@thesubsection{\SUF@thesection.\textsc{\roman{subsection}}} \def\SUF@dotsubsec{.} - \def\SUF@SUBSEC@thecontentslabel{\textsc{\@roman{\thecontentslabel}}} + \def\SUF@SUBSEC@contentslabel{\textsc{\@roman{\thecontentslabel}}} \or \def\SUF@thesubsection{\SUF@thesection.\Roman{subsection}} \def\SUF@dotsubsec{.} - \def\SUF@SUBSEC@thecontentslabel{\@Roman{\thecontentslabel}} + \def\SUF@SUBSEC@contentslabel{\@Roman{\thecontentslabel}} \fi} \define@choicekey{}{subsubsecnumstyle}[\suftesi@val\suftesi@nr] {arabic,roman,Roman,dotarabic,dotroman,dotRoman}[arabic]{% \ifcase\suftesi@nr\relax \def\SUF@thesubsubsection{\SUF@thesubsection.\arabic{subsubsection}} \def\SUF@dotsubsubsec{} - \def\SUF@SUBSUBSEC@thecontentslabel{\thecontentslabel} + \def\SUF@SUBSUBSEC@contentslabel{\thecontentslabel} \or \def\SUF@thesubsubsection{\SUF@thesubsection.\textsc{\roman{subsubsection}}} \def\SUF@dotsubsubsec{} - \def\SUF@SUBSUBSEC@thecontentslabel{\textsc{\@roman{\thecontentslabel}}} + \def\SUF@SUBSUBSEC@contentslabel{\textsc{\@roman{\thecontentslabel}}} \or \def\SUF@thesubsubsection{\SUF@thesubsection.\Roman{subsubsection}} \def\SUF@dotsubsubsec{} - \def\SUF@SUBSUBSEC@thecontentslabel{\@Roman{\thecontentslabel}} + \def\SUF@SUBSUBSEC@contentslabel{\@Roman{\thecontentslabel}} \or \def\SUF@thesubsubsection{\SUF@thesubsection.\arabic{subsubsection}} \def\SUF@dotsubsubsec{.} - \def\SUF@SUBSUBSEC@thecontentslabel{\thecontentslabel} + \def\SUF@SUBSUBSEC@contentslabel{\thecontentslabel} \or \def\SUF@thesubsubsection{\SUF@thesubsection.\textsc{\roman{subsubsection}}} \def\SUF@dotsubsubsec{.} - \def\SUF@SUBSUBSEC@thecontentslabel{\textsc{\@roman{\thecontentslabel}}} + \def\SUF@SUBSUBSEC@contentslabel{\textsc{\@roman{\thecontentslabel}}} \or \def\SUF@thesubsubsection{\SUF@thesubsection.\Roman{subsubsection}} \def\SUF@dotsubsubsec{.} - \def\SUF@SUBSUBSEC@thecontentslabel{\@Roman{\thecontentslabel}} + \def\SUF@SUBSUBSEC@contentslabel{\@Roman{\thecontentslabel}} \fi} \define@choicekey{}{tocstyle}[\suftesi@val\suftesi@nr] {standard,dotted,ragged,leftpage}[standard]{% @@ -674,41 +674,41 @@ \define@choicekey{}{compacttoc}[\suftesi@val\suftesi@nr] {sec,subsec,subsubsec,par,subpar}[sec]{% \ifcase\suftesi@nr\relax - \suftesi@toccompactsectrue - \suftesi@toccompactsubsectrue - \suftesi@toccompactsubsubsectrue - \suftesi@toccompactpartrue - \suftesi@toccompactsubpartrue + \suftesi@ctocsectrue + \suftesi@ctocsubsectrue + \suftesi@ctocsubsubsectrue + \suftesi@ctocpartrue + \suftesi@ctocsubpartrue \def\SUF@sscorrect{\hskip.5em} \def\SUF@ssscorrect{\hskip.5em} \def\SUF@pcorrect{\hskip.5em} \def\SUF@pcorrect{\hskip.5em} \or - \suftesi@toccompactsubsectrue - \suftesi@toccompactsubsubsectrue - \suftesi@toccompactpartrue - \suftesi@toccompactsubpartrue + \suftesi@ctocsubsectrue + \suftesi@ctocsubsubsectrue + \suftesi@ctocpartrue + \suftesi@ctocsubpartrue \def\SUF@sscorrect{\relax} \def\SUF@ssscorrect{\hskip.5em} \def\SUF@pcorrect{\hskip.5em} \def\SUF@pcorrect{\hskip.5em} \or - \suftesi@toccompactsubsubsectrue - \suftesi@toccompactpartrue - \suftesi@toccompactsubpartrue + \suftesi@ctocsubsubsectrue + \suftesi@ctocpartrue + \suftesi@ctocsubpartrue \def\SUF@sscorrect{\relax} \def\SUF@ssscorrect{\relax} \def\SUF@pcorrect{\hskip.5em} \def\SUF@pcorrect{\hskip.5em} \or - \suftesi@toccompactpartrue - \suftesi@toccompactsubpartrue + \suftesi@ctocpartrue + \suftesi@ctocsubpartrue \def\SUF@sscorrect{\relax} \def\SUF@ssscorrect{\relax} \def\SUF@pcorrect{\relax} \def\SUF@pcorrect{\hskip.5em} \or - \suftesi@toccompactsubpartrue + \suftesi@ctocsubpartrue \def\SUF@sscorrect{\relax} \def\SUF@ssscorrect{\relax} \def\SUF@pcorrect{\relax} @@ -743,13 +743,7 @@ \suftesi@twocolumnlottrue \setkeys{}{tocstyle=ragged} \fi} -\define@choicekey{}{partialtoc}[\suftesi@val\suftesi@nr] -{true,false}[true]{% - \ifcase\suftesi@nr\relax - \suftesi@partialtoctrue - \or - \suftesi@partialtocfalse - \fi} +\define@boolkey[SUF]{}{partialtoc}[true]{} \define@choicekey{}{tocpartfont}[\suftesi@val\suftesi@nr] {roman,italic,smallcaps}[roman]{% \ifcase\suftesi@nr\relax @@ -845,9 +839,9 @@ \def\SUF@Lheadstyle{\itshape} \def\SUF@thepage{\thepage} \or - \def\SUF@Rheadstyle{\SUF@headingsmallcaps} - \def\SUF@Lheadstyle{\SUF@headingsmallcaps} - \def\SUF@thepage{\SUF@headingsmallcaps{\thepage}} + \def\SUF@Rheadstyle{\SUF@headersmallcaps} + \def\SUF@Lheadstyle{\SUF@headersmallcaps} + \def\SUF@thepage{\SUF@headersmallcaps{\thepage}} \fi} \RequirePackage[inline]{enumitem} \setlist[itemize,1]{label=\color{sufgray}\textbullet} @@ -904,13 +898,7 @@ \renewcommand\@makefntext{% \textsuperscript{\@thefnmark}\hskip.3em} \fi} -\define@choicekey{}{fewfootnotes}[\suftesi@val\suftesi@nr] - {true,false}[true]{% -\ifcase\suftesi@nr\relax - \suftesi@fewfootnotestrue -\or - \relax -\fi} +\define@boolkey[SUF]{}{fewfootnotes}[true]{} \RequirePackage{caption} \captionsetup{labelsep=period,font=small,textformat=period} \define@choicekey{}{captionstyle}[\suftesi@val\suftesi@nr] @@ -923,55 +911,6 @@ \or \captionsetup{labelfont=sc} \fi} -\define@choicekey{}{marginpar}[\suftesi@val\suftesi@nr] - {true,false}[true]{% -\ifcase\suftesi@nr\relax -\or - \renewcommand\marginpar[2][]{} -\fi} -\define@choicekey{}{partpage}[\suftesi@val\suftesi@nr] - {true,false}[true]{% -\ifcase\suftesi@nr\relax - \suftesi@partpagetrue -\or - \relax -\fi} -\define@choicekey{}{draftdate}[\suftesi@val\suftesi@nr] - {true,false}[true]{% -\ifcase\suftesi@nr\relax - \suftesi@draftdatetrue -\or - \relax -\fi} -\define@choicekey{}{version}[\suftesi@val\suftesi@nr] - {screen,cscreen,draft,final}[draft]{% -\ifcase\suftesi@nr\relax - \suftesi@screentrue -\or - \suftesi@screentrue - \suftesi@screencenteredtrue -\or - \relax -\or - \AtBeginDocument{\crop[off]} -\fi} -\define@choicekey{}{crop}[\suftesi@val\suftesi@nr] - {true,false}[true]{% - \ClassWarningNoLine{suftesi}{% - 'crop' option is deprecated.\MessageBreak - Use 'version' option instead} -\ifcase\suftesi@nr\relax - \setkeys{}{version=draft} -\or - \setkeys{}{version=screen} -\fi} -\define@choicekey{}{titlepage}[\suftesi@val\suftesi@nr] - {true,false}[true]{% -\ifcase\suftesi@nr\relax - \@titlepagetrue -\or - \@titlepagefalse -\fi} \define@choicekey{}{style}[\suftesi@val\suftesi@nr] {roman1,roman2,roman3,roman4,roman5,roman6, italic1,italic2,italic3,italic4,italic5,italic6, @@ -1145,7 +1084,7 @@ \setkeys{}{ chapstyle=parright, chapfont=smallcaps, - tocchapfont=smallcaps,file:///tmp/mozilla_ivan0/luatex85.pdf + tocchapfont=smallcaps, secfont=smallcaps, headerfont=smallcaps} \or @@ -1206,75 +1145,50 @@ \define@choicekey{}{authortitlealign}[\suftesi@val\suftesi@nr] {left,center,right}[left]{% \ifcase\suftesi@nr\relax - \def\SUF@lr@coll@titleSwitch{\filright} -\or - \def\SUF@lr@coll@titleSwitch{\filcenter} -\or - \def\SUF@lr@coll@titleSwitch{\filleft} -\fi} -\define@choicekey{}{papertitlestyle}[\suftesi@val\suftesi@nr] - {left,center,right}[left]{% -\ClassWarningNoLine{suftesi}{% - 'papertitlestyle' option is deprecated.\MessageBreak - Use 'authortitlealign' option instead} -\ifcase\suftesi@nr\relax - \def\SUF@lr@coll@titleSwitch{\filright} + \def\SUF@authortitle@align{\filright} \or - \def\SUF@lr@coll@titleSwitch{\filcenter} + \def\SUF@authortitle@align{\filcenter} \or - \def\SUF@lr@coll@titleSwitch{\filleft} + \def\SUF@authortitle@align{\filleft} \fi} \define@choicekey{}{reverseauthortitle}[\suftesi@val\suftesi@nr] - {true,false}[false]{% -\ifcase\suftesi@nr\relax - \def\SUF@first{\SUF@Afont@style\SUF@Afont@shape\@author} - \def\SUF@second{\SUF@Tfont@style\SUF@Tfont@shape\@title} -\or - \def\SUF@first{\SUF@Tfont@style\SUF@Tfont@shape\@title} - \def\SUF@second{\SUF@Afont@style\SUF@Afont@shape\@author} - \relax -\fi} -\define@choicekey{}{revauthortitle}[\suftesi@val\suftesi@nr] - {true,false}[false]{% -\ClassWarningNoLine{suftesi}{% - 'revauthortitle' option is deprecated.\MessageBreak - Use 'reverseauthortitle' option instead} + {true,false}[true]{% \ifcase\suftesi@nr\relax - \def\SUF@first{\SUF@Afont@style\SUF@Afont@shape\@author} - \def\SUF@second{\SUF@Tfont@style\SUF@Tfont@shape\@title} + \def\SUF@first{\SUF@authorstyle\SUF@authorfont\@author} + \def\SUF@second{\SUF@titlestyle\SUF@titlefont\@title} \or - \def\SUF@first{\SUF@Tfont@style\SUF@Tfont@shape\@title} - \def\SUF@second{\SUF@Afont@style\SUF@Afont@shape\@author} + \def\SUF@first{\SUF@titlestyle\SUF@titlefont\@title} + \def\SUF@second{\SUF@authorstyle\SUF@authorfont\@author} \relax \fi} \define@choicekey{}{maketitlestyle}[\suftesi@val\suftesi@nr] {suftesi,standard}[suftesi]{% \ifcase\suftesi@nr\relax - \def\SUF@Tfont@style{\SUF@chaptersize\color{sufred}\sffamily} - \def\SUF@Afont@style{\small} + \def\SUF@titlestyle{\SUF@chaptersize\color{sufred}\sffamily} + \def\SUF@authorstyle{\small} \def\SUF@datefont{\small} \or - \def\SUF@Tfont@style{\LARGE} - \def\SUF@Afont@style{\large} + \def\SUF@titlestyle{\LARGE} + \def\SUF@authorstyle{\large} \def\SUF@datefont{\small} \fi} \define@choicekey{}{titlefont}[\suftesi@val\suftesi@nr] {roman,italic,smallcaps}[suftesi]{% \ifcase\suftesi@nr\relax - \def\SUF@Tfont@shape{\relax} + \def\SUF@titlefont{\relax} \or - \def\SUF@Tfont@shape{\itshape} + \def\SUF@titlefont{\itshape} \or - \def\SUF@Tfont@shape{\expandafter\SUF@titlesmallcaps} + \def\SUF@titlefont{\expandafter\SUF@titlesmallcaps} \fi} \define@choicekey{}{authorfont}[\suftesi@val\suftesi@nr] {roman,italic,smallcaps}[suftesi]{% \ifcase\suftesi@nr\relax - \def\SUF@Afont@shape{\relax} + \def\SUF@authorfont{\relax} \or - \def\SUF@Afont@shape{\itshape} + \def\SUF@authorfont{\itshape} \or - \def\SUF@Afont@shape{\expandafter\SUF@titlesmallcaps} + \def\SUF@authorfont{\expandafter\SUF@titlesmallcaps} \fi} \define@choicekey{}{datefont}[\suftesi@val\suftesi@nr] {roman,italic,smallcaps}[roman]{% @@ -1303,6 +1217,54 @@ \or \def\SUF@tocAUT@font{\expandafter\SUF@TOCtitlesmallcaps} \fi} +\define@choicekey{}{documentstructure}[\suftesi@val\suftesi@nr] + {book,article,collection}[book]{% +\ClassWarningNoLine{suftesi}{% + 'documentstructure' option is deprecated.\MessageBreak + Use 'structure' option instead} +\ifcase\suftesi@nr\relax + \setkeys{}{structure=book} +\or + \setkeys{}{structure=article} +\or + \setkeys{}{structure=collection} +\fi} +\define@choicekey{}{crop}[\suftesi@val\suftesi@nr] + {true,false}[true]{% + \ClassWarningNoLine{suftesi}{% + 'crop' option is deprecated.\MessageBreak + Use 'version' option instead} +\ifcase\suftesi@nr\relax + \setkeys{}{version=draft} +\or + \setkeys{}{version=screen} +\fi} +\define@choicekey{}{papertitlestyle}[\suftesi@val\suftesi@nr] + {left,center,right}[left]{% +\ClassWarningNoLine{suftesi}{% + 'papertitlestyle' option is deprecated.\MessageBreak + Use 'authortitlealign' option instead} +\ifcase\suftesi@nr\relax + \def\SUF@authortitle@align{\filright} +\or + \def\SUF@authortitle@align{\filcenter} +\or + \def\SUF@authortitle@align{\filleft} +\fi} +\define@choicekey{}{revauthortitle}[\suftesi@val\suftesi@nr] + {true,false}[true]{% +\ClassWarningNoLine{suftesi}{% + 'revauthortitle' option is deprecated.\MessageBreak + Use 'reverseauthortitle' option instead} +\ifcase\suftesi@nr\relax + \def\SUF@first{\SUF@authorstyle\SUF@authorfont\@author} + \def\SUF@second{\SUF@titlestyle\SUF@titlefont\@title} +\or + \def\SUF@first{\SUF@titlestyle\SUF@titlefont\@title} + \def\SUF@second{\SUF@authorstyle\SUF@authorfont\@author} + \relax +\fi} +\ProcessOptionsX[SUF]<>\relax \ExecuteOptionsX<>{ structure=book, pagelayout=standard, @@ -1317,7 +1279,6 @@ quotesize=footnotesize, quotestyle=center, captionstyle=standard, - marginpar=true, tocstyle=standard, partstyle=left, chapstyle=left, @@ -1351,27 +1312,8 @@ tocauthorfont=roman, reverseauthortitle=false, authortitlealign=left} -\ProcessOptionsX<>\relax -\XKV@useoption{a4paper} -\XKV@useoption{10pt} -\XKV@useoption{11pt} -\XKV@useoption{12pt} -\XKV@useoption{oneside} -\XKV@useoption{twoside} -\XKV@useoption{onecolumn} -\XKV@useoption{twocolumn} -\XKV@useoption{titlepage} -\XKV@useoption{notitlepage} -\XKV@useoption{openright} -\XKV@useoption{openany} -\XKV@useoption{leqno} -\XKV@useoption{fleqn} -\XKV@useoption{a5paper} -\XKV@useoption{b5paper} -\XKV@useoption{legalpaper} -\XKV@useoption{executivepaper} -\XKV@useoption{landscape} \def\XKV@classoptionslist{} +\ProcessOptionsX<>\relax \RequirePackage{multicol} \RequirePackage{emptypage} \RequirePackage{microtype} @@ -1381,11 +1323,9 @@ \RequirePackage{iftex} \ifLuaTeX \RequirePackage{luatex85} - \else \fi \ifsuftesi@FSPL \RequirePackage{cclicenses} - \else \fi \ifsuftesi@screen \newcommand*\crop[1][]{} @@ -1423,7 +1363,7 @@ \suftesi@greekfontfalse \else\suftesi@greekfontfalse\fi \else -\ifsuftesi@standard +\ifsuftesi@lmodern \RequirePackage{lmodern} \ifsuftesi@greekfont \ClassWarningNoLine{suftesi}{% @@ -1431,7 +1371,7 @@ \suftesi@greekfontfalse \else\suftesi@greekfontfalse\fi \else - \ifsuftesi@compatibility + \ifsuftesi@mathpazo \RequirePackage[osf,sc]{mathpazo} \RequirePackage[scaled=0.8]{beramono} \renewcommand{\sfdefault}{iwona} @@ -1644,127 +1584,125 @@ \setlength{\sectionsep}{\dimexpr(\baselineskip) plus 1pt minus 1pt} \unless\ifPDFTeX \DeclareRobustCommand{\SUF@TOCtitlesmallcaps}[1]{% - \addfontfeature{LetterSpace=10}\scshape\suftesi@MakeTextTOCLowercase{#1}} + \addfontfeature{LetterSpace=10}\scshape\SUF@TOCMakeLowercase{#1}} \DeclareRobustCommand{\SUF@titlesmallcaps}[1]{% - \addfontfeature{LetterSpace=10}\scshape\suftesi@MakeTextLowercase{#1}} - \DeclareRobustCommand{\SUF@headingsmallcaps}[1]{% - \addfontfeature{LetterSpace=10}\scshape\suftesi@MakeTextLowercase{#1}} + \addfontfeature{LetterSpace=10}\scshape\SUF@MakeLowercase{#1}} + \DeclareRobustCommand{\SUF@headersmallcaps}[1]{% + \addfontfeature{LetterSpace=10}\scshape\SUF@MakeLowercase{#1}} \else \DeclareRobustCommand{\SUF@TOCtitlesmallcaps}[1]{% - \scshape\suftesi@MakeTextTOCLowercase{\textls*{#1}}}% + \scshape\SUF@TOCMakeLowercase{\textls*{#1}}}% \DeclareRobustCommand{\SUF@titlesmallcaps}[1]{% - \scshape\suftesi@MakeTextLowercase{\textls*{#1}}}% - \DeclareRobustCommand{\SUF@headingsmallcaps}[1]{% - \scshape\suftesi@MakeTextLowercase{\textls*{#1}}}% + \scshape\SUF@MakeLowercase{\textls*{#1}}}% + \DeclareRobustCommand{\SUF@headersmallcaps}[1]{% + \scshape\SUF@MakeLowercase{\textls*{#1}}}% \fi -\newlength\SUF@ADJnumparchap +\newlength\SUF@chapbeforesep \def\SUF@default@CHAPTER{ \ifsuftesi@numparchap \titleformat{\chapter}[display] - {\startpartialtoc\SUF@chaptersize\SUF@lr@CHAPSwitch} + {\startchappartialtoc\SUF@chaptersize\SUF@CHAP@align} {\SUF@thechapter\SUF@dotchap} {2ex} - {\SUF@CHAP@StyleSwitch} - [\printpartialtoc] + {\SUF@CHAP@font} \else \titleformat{\chapter}[hang] - {\startpartialtoc\SUF@chaptersize\SUF@lr@CHAPSwitch} + {\startchappartialtoc\SUF@chaptersize\SUF@CHAP@align} {\SUF@thechapter\SUF@dotchap} {3em} - {\SUF@CHAP@StyleSwitch} - [\printpartialtoc] + {\SUF@CHAP@font} \fi \ifsuftesi@numparchap - \setlength{\SUF@ADJnumparchap}{-6ex} + \setlength{\SUF@chapbeforesep}{-6ex} \else - \setlength{\SUF@ADJnumparchap}{0pt} + \setlength{\SUF@chapbeforesep}{0pt} \fi} \def\SUF@default@SECTIONS{ \ifsuftesi@numparsec \titleformat{\section}[display] - {\SUF@sectionsize\SUF@lr@SECSwitch} + {\startsecpartialtoc\SUF@sectionsize\SUF@SEC@align} {\SUF@thesection\SUF@dotsec} {0ex} - {\SUF@SEC@StyleSwitch} + {\SUF@SEC@font} \titlespacing*{\section}{0em}{\sectionsep}{\sectionsep}[0em] \else \titleformat{\section}[hang] - {\SUF@sectionsize\SUF@lr@SECSwitch} + {\startsecpartialtoc\SUF@sectionsize\SUF@SEC@align} {\SUF@thesection\SUF@dotsec} {1em} - {\SUF@SEC@StyleSwitch} + {\SUF@SEC@font} \titlespacing*{\section}{0ex}{\sectionsep}{\sectionsep}[0ex] \fi \ifsuftesi@numparsubsec \titleformat{\subsection}[display] - {\SUF@subsectionsize\SUF@lr@SUBSECSwitch} + {\SUF@subsectionsize\SUF@SUBSEC@align} {\textnormal\SUF@thesubsection\SUF@dotsubsec} {0ex} - {\SUF@SUBSEC@StyleSwitch} + {\SUF@SUBSEC@font} \titlespacing*{\subsection}{0em}{\sectionsep}{\sectionsep}[0em] \else \titleformat{\subsection}[hang] - {\SUF@subsectionsize\SUF@lr@SUBSECSwitch} + {\SUF@subsectionsize\SUF@SUBSEC@align} {\textnormal\SUF@thesubsection\SUF@dotsubsec} {1em} - {\SUF@SUBSEC@StyleSwitch} + {\SUF@SUBSEC@font} \titlespacing*{\subsection}{\parindent}{\sectionsep}{\sectionsep}[0ex] \fi \ifsuftesi@numparsubsubsec \titleformat{\subsubsection}[display] - {\SUF@subsectionsize\SUF@lr@SUBSUBSECSwitch} + {\SUF@subsectionsize\SUF@SUBSUBSEC@align} {\textnormal\SUF@thesubsubsection\SUF@dotsubsubsec} {0ex} - {\SUF@SUBSUBSEC@StyleSwitch} + {\SUF@SUBSUBSEC@font} \titlespacing*{\subsubsection}{0em}{\sectionsep}{\sectionsep}[0em] \else \titleformat{\subsubsection}[hang] - {\SUF@subsectionsize\SUF@lr@SUBSUBSECSwitch} + {\SUF@subsectionsize\SUF@SUBSUBSEC@align} {\textnormal\SUF@thesubsubsection\SUF@dotsubsubsec} {1em} - {\SUF@SUBSUBSEC@StyleSwitch} + {\SUF@SUBSUBSEC@font} \titlespacing*{\subsubsection}{\parindent}{\sectionsep}{\sectionsep}[0ex] \fi} \SUF@default@CHAPTER \SUF@default@SECTIONS \ifsuftesi@periodical - \titlespacing*{\chapter}{0em}{\SUF@ADJnumparchap}{18ex} + \titlespacing*{\chapter}{0em}{\SUF@chapbeforesep}{18ex} \titlespacing*{name=\chapter,numberless}{0em}{0pt}{18ex} \else \ifsuftesi@periodicalaureo - \titlespacing*{\chapter}{0em}{\SUF@ADJnumparchap}{18ex} + \titlespacing*{\chapter}{0em}{\SUF@chapbeforesep}{18ex} \titlespacing*{name=\chapter,numberless}{0em}{0pt}{18ex} \else \ifsuftesi@compact - \titlespacing*{\chapter}{0em}{\SUF@ADJnumparchap}{18ex} + \titlespacing*{\chapter}{0em}{\SUF@chapbeforesep}{18ex} \titlespacing*{name=\chapter,numberless}{0em}{0pt}{18ex} \else \ifsuftesi@compactaureo - \titlespacing*{\chapter}{0em}{\SUF@ADJnumparchap}{18ex} + \titlespacing*{\chapter}{0em}{\SUF@chapbeforesep}{18ex} \titlespacing*{name=\chapter,numberless}{0em}{0pt}{18ex} \else \ifsuftesi@supercompact - \titlespacing*{\chapter}{0em}{\SUF@ADJnumparchap}{18ex} + \titlespacing*{\chapter}{0em}{\SUF@chapbeforesep}{18ex} \titlespacing*{name=\chapter,numberless}{0em}{0pt}{18ex} \else \ifsuftesi@supercompactaureo - \titlespacing*{\chapter}{0em}{\SUF@ADJnumparchap}{18ex} + \titlespacing*{\chapter}{0em}{\SUF@chapbeforesep}{18ex} \titlespacing*{name=\chapter,numberless}{0em}{0pt}{18ex} \else \ifsuftesi@pocketa - \titlespacing*{\chapter}{0em}{\SUF@ADJnumparchap}{18ex} + \titlespacing*{\chapter}{0em}{\SUF@chapbeforesep}{18ex} \titlespacing*{name=\chapter,numberless}{0em}{0pt}{18ex} \else \ifsuftesi@pocketb - \titlespacing*{\chapter}{0em}{\SUF@ADJnumparchap}{18ex} + \titlespacing*{\chapter}{0em}{\SUF@chapbeforesep}{18ex} \titlespacing*{name=\chapter,numberless}{0em}{0pt}{18ex} \else \ifsuftesi@pocketc - \titlespacing*{\chapter}{0em}{\SUF@ADJnumparchap}{18ex} + \titlespacing*{\chapter}{0em}{\SUF@chapbeforesep}{18ex} \titlespacing*{name=\chapter,numberless}{0em}{0pt}{18ex} \else \titlespacing*{\chapter}{0em}{% - \dimexpr(6ex+\SUF@ADJnumparchap)}{18ex} + \dimexpr(6ex+\SUF@chapbeforesep)}{18ex} \titlespacing*{name=\chapter,numberless}{0em}{6ex}{18ex} \fi \fi @@ -1794,7 +1732,7 @@ \renewcommand\thesubparagraph{% \theparagraph.\@arabic\c@subparagraph} \renewcommand\part{% - \ifsuftesi@partpage + \ifSUF@partpage \if@openright \cleardoublepage \else @@ -1808,7 +1746,7 @@ \else \@tempswafalse \fi - \ifsuftesi@partpage + \ifSUF@partpage \null\vfil \fi \secdef\@part\@spart} @@ -1824,7 +1762,7 @@ \SUF@tocPART@font#1}% \fi \markboth{}{}% - {\SUF@lr@PARTSwitch\SUF@partsize + {\SUF@PART@align\SUF@partsize \interlinepenalty \@M \ifnum \c@secnumdepth >-2\relax \addvspace{4ex} @@ -1835,17 +1773,17 @@ \else \hspace{1em} \fi - \noindent\SUF@PART@StyleSwitch#2\par}% + \noindent\SUF@PART@font#2\par}% \@endpart} \def\@spart#1{% - {\SUF@lr@PARTSwitch\SUF@partsize + {\SUF@PART@align\SUF@partsize \interlinepenalty \@M \addvspace{4ex} - \noindent\SUF@PART@StyleSwitch#1\par}% + \noindent\SUF@PART@font#1\par}% \@endpart} \ifsuftesi@article \def\@endpart{% - \ifsuftesi@partpage + \ifSUF@partpage \vfil\newpage \if@twoside \if@openright @@ -1875,14 +1813,14 @@ {} {\theparagraph} {.5em} - {\SUF@PAR@StyleSwitch} + {\SUF@PAR@font} [{.}\hspace*{1em}] \titlespacing*{\paragraph}{\parindent}{.5\sectionsep}{.5\sectionsep} \titleformat{\subparagraph}[runin] {} {\thesubparagraph} {.5em} - {\SUF@SUBPAR@StyleSwitch} + {\SUF@SUBPAR@font} [{.}\hspace*{1em}] \titlespacing*{\subparagraph}{\parindent}{.5\sectionsep}{.5\sectionsep} \ifsuftesi@article @@ -1946,435 +1884,77 @@ \section{#1}}} {\relax}} \fi -\newcommand{\Ctitle}[1]{\def\@Ctitle{#1}} -\newcommand{\Csubtitle}[1]{\def\@Csubtitle{#1}} -\newcommand{\Cauthor}[1]{\def\@Cauthor{#1}} -\newcommand{\Ceditor}[1]{\def\@Ceditor{#1}} -\newcommand{\Cfoot}[1]{\def\@Cfoot{#1}} -\newcommand{\Cpagecolor}[1]{\def\@Cpagecolor{#1}} -\newcommand{\Ccirclecolor}[1]{\def\@Ccirclecolor{#1}} -\newcommand{\Ctextcolor}[1]{\def\@Ctextcolor{#1}} -\newcommand{\Cfootcolor}[1]{\def\@Cfootcolor{#1}} -\Cauthor{} -\Ctitle{} -\Csubtitle{} -\Ceditor{} -\Cfoot{} -\Cpagecolor{gray!30} -\Ctextcolor{white} -\Cfootcolor{black} -\AtBeginDocument{ -\@ifpackageloaded{tikz}{% -\newcommand\makecover[1][]{% -\begin{titlepage} -\begin{tikzpicture}[overlay,remember picture] - \draw[draw=none,fill=\@Cpagecolor] - (current page.north west) rectangle (current page.south east); - \node[anchor=center,yshift=.22\paperwidth] at (current page.center) (c) {}; - \draw[draw=none,fill=gray,#1] - (c) circle (.38\paperwidth) ; - \node[anchor=center] at (c) (author) {% -\parbox{.7\paperwidth}{% - \centering - \ifx\@Cauthor\@empty - \else - {\scshape\color{\@Ctextcolor}\@Cauthor\\} - \vspace*{\baselineskip} - \fi - - \ifx\@Ctitle\@empty - \else - {\Huge\bfseries\color{\@Ctextcolor}\@Ctitle\\[1ex]} - \fi - - \ifx\@Csubtitle\@empty - \else - {\smallskip\Large\color{\@Ctextcolor}\@Csubtitle\\} - \fi - - \ifx\@Ceditor\@empty - \else - {\vspace*{2\baselineskip}\color{\@Ctextcolor}\@Ceditor\\} - \fi} -}; -\ifx\@Cfoot\@empty\else - \node[xshift=.5\paperwidth,yshift=1cm, - align=center,text=\@Cfootcolor,anchor=south] - at (current page.south west) {\@Cfoot}; +\newcommand{\partfont}[1]{\def\SUF@PART@font{#1}} +\newcommand{\chapfont}[1]{\def\SUF@CHAP@font{#1}} +\newcommand{\secfont}[1]{\def\SUF@SEC@font{#1}} +\newcommand{\subsecfont}[1]{\def\SUF@SUBSEC@font{#1}} +\newcommand{\subsubsecfont}[1]{\def\SUF@SUBSUBSEC@font{#1}} +\newcommand{\partnumfont}[1]{\def\SUF@PART@font{#1}}\partnumfont{} +\newcommand{\chapnumfont}[1]{\def\SUF@thechapter{#1}} +\newcommand{\secnumfont}[1]{\def\SUF@thesection{#1}} +\newcommand{\subsecnumfont}[1]{\def\SUF@thesubsection{#1}} +\newcommand{\subsubsecnumfont}[1]{\def\SUF@thesubsubsection{#1}} +\newcommand{\titlefont}[1]{\def\SUF@titlestyle{#1}\let\SUF@titlefont\relax} +\newcommand{\authorfont}[1]{\def\SUF@authorstyle{#1}\let\SUF@authorfont\relax} +\newcommand{\datefont}[1]{\def\SUF@datefont{#1}} +\newif\ifbreakintoc\breakintocfalse +\newif\ifbreakinbody\breakinbodytrue +\DeclareRobustCommand{\breakintoc} + {\ifbreakintoc\\\else\fi} +\DeclareRobustCommand{\breakinbody} + {\ifbreakinbody\\\else\fi} +\DeclareRobustCommand{\breakinbodyleft} + {\ifbreakinbody\newline\else\fi} +\let\origtableofcontents\tableofcontents +\renewcommand{\tableofcontents}{% + \begingroup + \breakintoctrue\breakinbodyfalse% + \origtableofcontents + \endgroup} +\DeclareRobustCommand{\headbreak} + {\ifbreakintoc\\\else\fi} +\DeclareRobustCommand{\xheadbreak} + {\ifbreakinbody\\\else\fi} +\DeclareRobustCommand{\yheadbreak} + {\ifbreakinbody\newline\else\fi} +\ifsuftesi@collection + \newenvironment{abstract}{% + \if@twocolumn + \section*{\abstractname}% + \else + \small + \begin{center}% + {\abstractname\vspace{-.5em}\vspace{\z@}}% + \end{center}% + \quotation + \fi} + {\if@twocolumn\else\endquotation\fi\vspace{6ex}} +\else +\ifSUF@titlepage + \newenvironment{abstract}{% + \titlepage + \null\vfil + \@beginparpenalty\@lowpenalty + \begin{center}% + \abstractname + \@endparpenalty\@M + \end{center}}% + {\par\vfil\null\endtitlepage} +\else + \newenvironment{abstract}{% + \if@twocolumn + \section*{\abstractname}% + \else + \small + \begin{center}% + {\abstractname\vspace{-.5em}\vspace{\z@}}% + \end{center}% + \quotation + \fi} + {\if@twocolumn\else\endquotation\fi} + \fi \fi -\end{tikzpicture} -\end{titlepage} -} -} -{\def\makecover{\ClassError{suftesi}{\MessageBreak% - ***********************************\MessageBreak - * To use the \noexpand\makecover command\MessageBreak - * load the 'tikz' package.\MessageBreak - ************************************}{\MessageBreak% - ***********************************\MessageBreak - * To use the \noexpand\makecover command\MessageBreak - * load the 'tikz' package.\MessageBreak - ************************************}}} -} -\def\isbn#1{\gdef\@isbn{#1}} -\def\@issn{\@latex@warning@no@line{% - No \noexpand\isbn given}} -\def\doi#1{\gdef\@doi{#1}} -\def\@doi{\@latex@warning@no@line{% - No \noexpand\doi given}} -\def\isbn#1{\gdef\@issn{#1}} -\def\@issn{\@latex@warning@no@line{% - No \noexpand\isbn given}} -\renewcommand*{\title}[2][]{\gdef\@headtitle{#1}\gdef\@title{#2}} -\edef\title{\noexpand\@dblarg - \expandafter\noexpand\csname\string\title\endcsname} -\def\@headtitle{--missing title--% - \protect\ClassWarningNoLine{suftesi}{% - No \string\title\space given \MessageBreak% - See the class documentation for explanation}} -\def\@title{--missing title--% - \protect\ClassWarningNoLine{suftesi}{% - No \string\title\space given\MessageBreak% - See the class documentation for explanation}} -\def\@author{--missing author--% - \protect\ClassWarningNoLine{suftesi}{% - No \string\author\space given\MessageBreak% - See the class documentation for explanation}} -\if@titlepage - \renewcommand\maketitle{% - \begin{titlepage} - \let\footnotesize\small - \let\footnoterule\relax - \let \footnote \thanks - \renewcommand\thefootnote{\@fnsymbol\c@footnote}% - \null\vfil - \vskip 60\p@ - \begin{center}% - {\SUF@first\par}% - \vskip 3em% - {\lineskip .75em% - \begin{tabular}[t]{c}% - \SUF@second - \end{tabular}\par}% - \vskip 1.5em% - {\SUF@datefont\@date\par}% - \end{center}\par - \@thanks - \vfil\null - \end{titlepage}% - \setcounter{footnote}{0}% - \global\let\thanks\relax - \global\let\maketitle\relax - \global\let\@thanks\@empty - \global\let\@date\@empty - \global\let\date\relax - \global\let\and\relax} -\else -\renewcommand\maketitle{\par - \begingroup - \renewcommand\thefootnote{\@fnsymbol\c@footnote}% - \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}% - \long\def\@makefntext##1{\parindent 1em\noindent - \hb@xt@1.8em{% - \hss\@textsuperscript{\normalfont\@thefnmark}}##1}% - \if@twocolumn - \ifnum \col@number=\@ne - \@maketitle - \else - \twocolumn[\@maketitle]% - \fi - \else - \newpage - \global\@topnum\z@% Prevents figures from going at top of page. - \@maketitle - \fi - \thispagestyle{plain}\@thanks - \endgroup - \setcounter{footnote}{0}% - \global\let\thanks\relax - \global\let\maketitle\relax - \global\let\@maketitle\relax - \global\let\@thanks\@empty - \global\let\@date\@empty - \global\let\date\relax - \global\let\and\relax} -\def\@maketitle{% - \newpage - \null - \vskip 2em% - \begin{center}% - \let \footnote \thanks - {\SUF@first\par}% - \vskip 1.5em% - {\lineskip .5em% - \begin{tabular}[t]{c}% - \SUF@second\par - \end{tabular}\par}% - \vskip 1em% - {\SUF@datefont\@date\par}% - \end{center}% - \par - \vskip 1.5em} -\fi -\ifsuftesi@collection -\newcounter{journalnumber} -\newcounter{journalvolume} -\newcounter{issue} -\newcounter{title} -\setcounter{title}{1} -\newcounter{article} -\setcounter{article}{0} -\setcounter{journalnumber}{0} -\setcounter{tocdepth}{0} -\def\journalname#1{\gdef\@journalname{#1}} - \def\@journalname{\@latex@warning@no@line{% - No \noexpand\journalname given}} -\def\journalvolume#1{\gdef\@journalvolume{#1}} - \def\@journalvolume{\@latex@warning@no@line{% - No \noexpand\journalvolume given}} -\def\journalnumber#1{\gdef\@journalnumber{#1}} - \def\@journalnumber{\@latex@warning@no@line{% - No \noexpand\journalnumber given}} -\def\issue#1{\gdef\@issue{#1}} - \def\@issue{\@latex@warning@no@line{% - No \noexpand\issue given}} -\def\journalyear#1{\gdef\@journalyear{#1}} - \def\@journalyear{\@latex@warning@no@line{% - No \noexpand\journalyear given}} -\def\journalwebsite#1{\gdef\@journalwebsite{\url{#1}}} - \def\@journalwebsite{\@latex@warning@no@line{% - No \noexpand\journalwebsite given}} -\def\thanks#1{\footnotemark\ \protected@xdef\@thanks{% - \@thanks\protect\footnotetext[\the\c@footnote]{#1}}} -\def\fulljournal{\emph{\@journalname} \@journalnumber, % - \@issue{} \@journalyear} -\def\issuename#1{\gdef\@issuename{#1}} -\def\collectiontitle#1{\gdef\@collectiontitle{#1}} - \def\@collectiontitle{\@latex@warning@no@line{% - No \noexpand\collectiontitle given}} -\def\collectioneditor#1{\gdef\@collectioneditor{#1}} - \def\@collectioneditor{\@latex@warning@no@line{% - No \noexpand\collectioneditor given}} -\renewcommand*{\title}[2][]{% - \gdef\@headtitle{#1}\gdef\@title{#2}\markright{#1}} - \edef\title{\noexpand\@dblarg - \expandafter\noexpand\csname\string\title\endcsname} - \def\@headtitle{--missing title--% - \protect\ClassWarningNoLine{suftesi}{% - No \string\title\space given \MessageBreak% - See the class documentation for explanation}} - \def\@title{--missing title--% - \protect\ClassWarningNoLine{suftesi}{% - No \string\title\space given\MessageBreak% - See the class documentation for explanation}} - \def\@author{--missing author--% - \protect\ClassWarningNoLine{suftesi}{% - No \string\author\space given\MessageBreak% - See the class documentation for explanation}} -\newcommand*\l@title[2]{% - \ifnum \c@tocdepth >\m@ne - \addpenalty{-\@highpenalty}% - \vskip 1.0ex \@plus\p@ - \begingroup - \parindent \z@ \rightskip \@pnumwidth - \parfillskip -\@pnumwidth - \advance\leftskip1em - \hskip -\leftskip - #1\nobreak% - \ifsuftesi@dottedtoc\dotfill% - \nobreak\hb@xt@\@pnumwidth{\hss #2}\par - \else - \ifsuftesi@raggedtoc% - \nobreak\hskip1em #2 \hfill\null\par - \else - \ifsuftesi@pagelefttoc - \ClassError{suftesi} - {\MessageBreak - You can not use tocstyle=leftpage\MessageBreak - with structure=collection} - {You can not use tocstyle=leftpage\MessageBreak - with structure=collection} - \else - \nobreak\hfill #2\par - \fi - \fi - \fi - \penalty\@highpenalty - \endgroup - \fi} -\renewcommand\maketitle{\par - \begingroup - \renewcommand\thefootnote{\@fnsymbol\c@footnote}% - \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}% - \long\def\@makefntext##1{\parindent 1em\noindent - \hb@xt@1.8em{% - \hss\@textsuperscript{\normalfont\@thefnmark}}##1}% - \if@twocolumn - \ifnum \col@number=\@ne - \@maketitle - \else - \twocolumn[\@maketitle]% - \fi - \else - \newpage - \global\@topnum\z@ % Prevents figures from going at top of page. - \@maketitle - \fi - \thispagestyle{plain}\@thanks% - \endgroup - \setcounter{section}{0}% - \global\let\and\relax - \let\thanks\@gobble} -\AtBeginDocument{\def\@maketitle{% - \refstepcounter{article} - \SUF@chaptersize - \SUF@lr@coll@titleSwitch - \let\footnote\thanks - \parindent=0pt - {\SUF@second}% - \label{begin:\thearticle} - \@ifundefined{Hy@raisedlink}{\let\texorpdfstring\@firstoftwo}{% - \xdef\@currentHref{title.\thearticle}% - \Hy@raisedlink{\hyper@anchorstart{\@currentHref}\hyper@anchorend}% - }% - \csname toc@entry@\endcsname - \begingroup% - \let\thanks\@gobble - \addcontentsline{toc}{title}{% - {\SUF@tocAUT@font{\@author}}\texorpdfstring{\newline}{, }% - {\SUF@tocTIT@font{\@headtitle}}} - \endgroup% - \par\nobreak\vspace{2ex} - {\SUF@first% - \vskip1.5cm}}% - } -\newenvironment{article} - {\begingroup - \setcounter{section}{0} - \setcounter{footnote}{0} - \setcounter{figure}{0} - \setcounter{table}{0}} - {\label{end:\thearticle} - \cleardoublepage - \global\let\@thanks\@empty - \endgroup} -\newcommand{\collectiontitlepage}{% - \thispagestyle{empty}% - \begingroup - \centering - \vspace*{\stretch{1}} - - {\SUF@chaptersize\@collectiontitle\par} - \vskip5ex - - \@collectioneditor - \vspace*{\stretch{3}} - - \endgroup - \clearpage} -\def\frontispiece{\collectiontitlepage} - \setcounter{tocdepth}{0} - \renewcommand\thesection{% - \@arabic\c@section} - \renewcommand\thesubsection{% - \thesection.\@arabic\c@subsection} - \renewcommand\thesubsubsection{% - \thesubsection.\@arabic\c@subsubsection} - \renewcommand\theparagraph{% - \thesubsubsection.\@arabic\c@paragraph} - \renewcommand\thesubparagraph{% - \theparagraph.\@arabic\c@subparagraph} - \else -\fi -\AtBeginDocument{% -\@ifpackagewith{frontespizio}{suftesi}{% -\ifsuftesi@periodical - \Margini {5.5cm}{7cm}{4.5cm}{0cm} - \else -\ifsuftesi@periodicalaureo - \Margini {5.5cm}{7cm}{4.5cm}{0cm} - \else -\ifsuftesi@compact - \Margini {4.5cm}{7cm}{4.5cm}{0cm} - \else -\ifsuftesi@compactaureo - \Margini {4.5cm}{7cm}{4.5cm}{0cm} - \else -\ifsuftesi@supercompact - \Margini {4.5cm}{10cm}{6cm}{1cm} - \else -\ifsuftesi@supercompactaureo - \Margini {4.5cm}{10cm}{6cm}{1cm} - \else -\ifsuftesi@pocketa - \Margini {4.5cm}{10cm}{6cm}{1cm} - \else -\ifsuftesi@pocketb - \Margini {4.5cm}{10cm}{6cm}{1cm} - \else -\ifsuftesi@pocketc - \Margini {4.5cm}{10cm}{6cm}{1cm} - \else -\fi\fi\fi\fi\fi\fi\fi\fi\fi} -{\@ifpackageloaded{frontespizio}{% -\ifsuftesi@periodical - \Margini {1cm}{7cm}{5cm}{1cm} - \Rientro{1cm} - \else -\ifsuftesi@periodicalaureo - \Margini {1cm}{7cm}{5cm}{1cm} - \Rientro{1cm} - \else -\ifsuftesi@compact - \Margini {1cm}{7cm}{6cm}{1cm} - \Rientro{1cm} - \else -\ifsuftesi@compactaureo - \Margini {1cm}{7cm}{6cm}{1cm} - \Rientro{1cm} - \else -\ifsuftesi@supercompact - \Margini {1cm}{10cm}{8cm}{1cm} - \Rientro{1cm} - \else -\ifsuftesi@supercompactaureo - \Margini {1cm}{10cm}{8cm}{1cm} - \Rientro{1cm} - \else -\ifsuftesi@pocketa - \Margini {1cm}{10cm}{8cm}{1cm} - \Rientro{1cm} - \else -\ifsuftesi@pocketb - \Margini {1cm}{10cm}{8cm}{1cm} - \Rientro{1cm} - \else -\ifsuftesi@pocketc - \Margini {1cm}{10cm}{8cm}{1cm} - \Rientro{1cm} - \else -\fi\fi\fi\fi\fi\fi\fi\fi\fi} -{\relax}}} -\renewenvironment{theindex} - {\if@twocolumn - \@restonecolfalse - \else - \@restonecoltrue - \fi - \ifsuftesi@article - \twocolumn[\section*{\indexname}]% - \else - \twocolumn[\@makeschapterhead{\indexname}]% - \fi - \@mkboth{\indexname}{\indexname}% - \thispagestyle{plain}% - \raggedright% - \parindent\z@ - \parskip\z@ \@plus .3\p@\relax - \columnseprule \z@ - \columnsep 35\p@ - \let\item\@idxitem} - {\if@restonecol\onecolumn\else\clearpage\fi} +\newcommand\abstractname{Abstract} \RequirePackage{appendix} \noappendicestocpagenum \def\appendicesname{% @@ -2397,7 +1977,7 @@ \interlinepenalty \@M \normalfont \SUF@chaptersize - \SUF@CHAP@StyleSwitch\expandafter\appendixpagename\par}% + \SUF@CHAP@font\expandafter\appendixpagename\par}% \if@dotoc@pp \addappheadtotoc \fi @@ -2420,7 +2000,7 @@ \interlinepenalty \@M \normalfont \SUF@chaptersize - \SUF@CHAP@StyleSwitch\expandafter\appendixpagename% + \SUF@CHAP@font\expandafter\appendixpagename% \markboth{}{}\par}% \if@dotoc@pp \addappheadtotoc @@ -2444,7 +2024,7 @@ \hskip\SUF@addto@tochang@chap\SUF@tocCHAP@font} {} [\addvspace{1ex}] - \ifsuftesi@toccompactsec + \ifsuftesi@ctocsec \titlecontents*{section}[\SUF@tochang@chap]{}{% \thecontentslabel\adjtoclabelsep\SUF@tocSEC@font}{\SUF@tocSEC@font}{, \thecontentspage.}[][\adjtocpagesep][] @@ -2473,7 +2053,7 @@ \SUF@tocCHAP@font} {\SUF@chaptitlerule\contentspage} [\addvspace{1ex}] - \ifsuftesi@toccompactsec + \ifsuftesi@ctocsec \titlecontents*{section}[\SUF@tocindent@chap]{}{% \thecontentslabel\adjtoclabelsep\SUF@tocSEC@font}{\SUF@tocSEC@font}{, \thecontentspage.}[][\adjtocpagesep][] @@ -2494,249 +2074,39 @@ \suf@appendixtoc% \setcounter{section}{0}% \setcounter{subsection}{0}% - \gdef\SUF@thesection{\@Alph\c@section}% - \gdef\SUF@HEAD@thesection{\@Alph\c@section}% - \renewcommand{\thesection}{\@Alph\c@section}} -\else -\renewcommand\appendix{\par - \suf@appendixtoc% - \setcounter{chapter}{0}% - \setcounter{section}{0}% - \gdef\@chapapp{\appendixname}% - \gdef\SUF@thechapter{\@Alph\c@chapter}% - \gdef\SUF@HEAD@thechapter{\@Alph\c@chapter}% - \renewcommand{\thechapter}{\@Alph\c@chapter}} -\fi -\RequirePackage{fancyhdr} -\newcommand{\versionstring}[1]{\def\version@string{#1}} - \versionstring{Version of} -\AtBeginDocument{% - \pagestyle{fancy} - \renewcommand{\headrulewidth}{0pt} - \renewcommand{\footnoterule}{} -\def\SUF@versionstring{\texttt{\version@string{} \today}} -\renewcommand{\chaptermark}[1]{% - \markboth{\chaptertitlename\ \protect\SUF@HEAD@thechapter}{#1}} - \ifsuftesi@article - \renewcommand{\sectionmark}[1]{\markright{\protect\SUF@HEAD@thesection.\ #1}} - \else - \renewcommand{\sectionmark}[1]{} - \fi -\fancypagestyle{plain}{\fancyhf{}} -\fancypagestyle{sufplain}{% - \fancyhf{}% - \fancyfoot[RE,LO]{% - \ifsuftesi@draftdate\footnotesize\SUF@versionstring\else\fi} - \fancyfoot[C]{\footnotesize\SUF@thepage}} -\fancypagestyle{centerheader}{% - \fancyhf{}% - \fancyfoot[RE,LO]{% - \ifsuftesi@draftdate\footnotesize\SUF@versionstring\else\fi} - \fancyhead[CO]{\footnotesize\breakinbodyfalse\SUF@rightmark} - \fancyhead[CE]{\footnotesize\breakinbodyfalse% - \SUF@LR@MarkSwitch} - \fancyfoot[C]{\footnotesize\SUF@thepage}} -\fancypagestyle{sufdefault}{% - \fancyhf{}% - \fancyfoot[RE,LO]{% - \ifsuftesi@draftdate\footnotesize\SUF@versionstring\else\fi} - \fancyhead[LE,RO]{\footnotesize\SUF@thepage} - \fancyhead[LO]{\footnotesize\breakinbodyfalse\SUF@rightmark} - \fancyhead[RE]{\footnotesize\breakinbodyfalse% - \SUF@LR@MarkSwitch}} -\ifsuftesi@article - \ifsuftesi@authortitle - \def\SUF@LR@MarkSwitch{\SUF@leftmark} - \else - \def\SUF@LR@MarkSwitch{\SUF@rightmark} - \fi -\else - \def\SUF@LR@MarkSwitch{\SUF@leftmark} -\fi -\def\SUF@leftrightmark{% - \if@mainmatter\leftmark\else\rightmark\fi} -\pagestyle{sufdefault} - \ifsuftesi@centerheader\pagestyle{centerheader}\else\fi - \ifsuftesi@sufplain\pagestyle{sufplain}\else\fi} -\renewenvironment{quotation} - {\list{}{\listparindent\parindent% - \itemindent \listparindent - \SUF@quote@style - \parsep \z@ \@plus\p@}% - \item\relax% - \SUF@quotation@size% - \noindent\ignorespaces} - {\endlist} -\renewenvironment{quote} - {\list{}{% - \SUF@quote@style}% - \item\relax% - \SUF@quotation@size}% \ignorespaces? - {\endlist} -\renewenvironment{verse} - {\let\\\@centercr - \list{}{\itemsep \z@ - \itemindent -1.5em% - \listparindent\itemindent - \rightmargin \leftmargin - \advance\leftmargin 1.5em}% - \item\relax - \SUF@quotation@size} - {\endlist} -\ifsuftesi@fewfootnotes -\AtBeginDocument{% -\def\@fnsymbol#1{\ensuremath{\ifcase#1\or*\or{*}{*}\or{*}{*}{*}\or% - \ClassError{suftesi}% - {Too many footnotes\MessageBreak - Remove the class option 'fewfootnote'} - {Too many footnotes\MessageBreak - Remove the class option 'fewfootnote'} - \else\@ctrerr\fi}}} -\def\thefootnote{\@fnsymbol\c@footnote}% -\else\fi -\newcommand*\xfootnote[1][*]{% - \xdef\@thefnmark{#1}% - \@footnotemark\@footnotetext} -\def\SUF@mpsetup{% - \itshape - \footnotesize% - \parindent=0pt \lineskip=0pt \lineskiplimit=0pt% - \tolerance=2000 \hyphenpenalty=300 \exhyphenpenalty=300% - \doublehyphendemerits=100000% - \finalhyphendemerits=\doublehyphendemerits} - \let\oldmarginpar\marginpar - \renewcommand{\marginpar}[1]{\oldmarginpar% - [\SUF@mpsetup\raggedleft\hspace{0pt}{#1}]% - {\SUF@mpsetup\raggedright\hspace{0pt}{#1}}} -\AtBeginDocument{% -\@ifpackageloaded{todonotes}{% - \renewcommand{\@todonotes@drawMarginNoteWithLine}{% - \begin{tikzpicture}[remember picture, overlay, baseline=-0.75ex]% - \node [coordinate] (inText) {};% - \end{tikzpicture}% - \oldmarginpar[{% Draw note in left margin - \@todonotes@drawMarginNote% - \@todonotes@drawLineToLeftMargin% - }]{% Draw note in right margin - \@todonotes@drawMarginNote% - \@todonotes@drawLineToRightMargin% - } - } - } -{\relax}} -\ifsuftesi@collection - \newenvironment{abstract}{% - \if@twocolumn - \section*{\abstractname}% - \else - \small - \begin{center}% - {\abstractname\vspace{-.5em}\vspace{\z@}}% - \end{center}% - \quotation - \fi} - {\if@twocolumn\else\endquotation\fi\vspace{6ex}} -\else -\if@titlepage - \newenvironment{abstract}{% - \titlepage - \null\vfil - \@beginparpenalty\@lowpenalty - \begin{center}% - \abstractname - \@endparpenalty\@M - \end{center}}% - {\par\vfil\null\endtitlepage} -\else - \newenvironment{abstract}{% - \if@twocolumn - \section*{\abstractname}% - \else - \small - \begin{center}% - {\abstractname\vspace{-.5em}\vspace{\z@}}% - \end{center}% - \quotation - \fi} - {\if@twocolumn\else\endquotation\fi} - \fi -\fi -\newcommand\abstractname{Abstract} -\newcommand{\colophon}[3][]{% - \thispagestyle{empty} - \null - \vfill - \def\next{#2} - \ifx\next\@empty\else - \noindent Copyright \copyright{} \the\year~#2\\[1ex] - Tutti i diritti riservati - \fi - \vfill - {\small\noindent Questo lavoro \`e stato composto con \LaTeX{}% - \def\next{#1} - \ifx\next\@empty\else su #1 - \fi usando la classe \textsf{suftesi} di - Ivan Valbusa\index{Valbusa, Ivan}. #3\par} - \cleardoublepage} -\newcommand{\bookcolophon}[2]{% - \thispagestyle{empty} - \null - \vfill - \noindent #1 - \vfill - {\small\noindent #2\par} - \cleardoublepage} -\newcommand{\artcolophon}[1]{% -\thispagestyle{empty} - \null - \vfill - {\small\noindent #1\par}} -\newcommand{\finalcolophon}[1]{% -\thispagestyle{empty} - \null\vspace*{\stretch{1}} - \begin{center} - \begin{minipage}{.5\textwidth} - \centering\small #1 - \end{minipage} - \end{center} - \vspace*{\stretch{6}}} -\ifsuftesi@FSPL -\newcommand{\FSPLcolophon}[1][\the\year]{% -\begingroup -\thispagestyle{empty} -\null\vspace{\stretch{1}} -\noindent \hskip-.5em\cc #1 \@author% -\vskip1ex - -\small\noindent This work is licensed under the Creative Commons -Attribution-NonCommercial-NoDerivs 3.0 Unported License. -To view a copy of this license, -visit http://creativecom mons.org/licenses/by-nc-nd/3.0/. - -\endgroup - -\begingroup -\footnotesize - -\null\vspace{\stretch{1}} - -\noindent Typeset with \LaTeX{} in collaboration with the Joint Project -\emph{Formal Style for PhD Theses with \LaTeX} (University of Verona, -Italy) using the \textsf{suftesi} class by Ivan Valbusa. The text face -is Palatino, designed by Hermann Zapf. The sans serif font is Iwona by -Janusz M.~Nowacki. - -\endgroup - -\clearpage} -\else -\def\FSPLcolophon{% - \ClassError{suftesi} - {\noexpand\FSPLcolophon is defined\MessageBreak - only for the FSPL styles} - {\noexpand\FSPLcolophon is defined\MessageBreak - only for the FSPL styles}} + \gdef\SUF@thesection{\@Alph\c@section}% + \gdef\SUF@HEAD@thesection{\@Alph\c@section}% + \renewcommand{\thesection}{\@Alph\c@section}} +\else +\renewcommand\appendix{\par + \suf@appendixtoc% + \setcounter{chapter}{0}% + \setcounter{section}{0}% + \gdef\@chapapp{\appendixname}% + \gdef\SUF@thechapter{\@Alph\c@chapter}% + \gdef\SUF@HEAD@thechapter{\@Alph\c@chapter}% + \renewcommand{\thechapter}{\@Alph\c@chapter}} \fi +\renewenvironment{theindex} + {\if@twocolumn + \@restonecolfalse + \else + \@restonecoltrue + \fi + \ifsuftesi@article + \twocolumn[\section*{\indexname}]% + \else + \twocolumn[\@makeschapterhead{\indexname}]% + \fi + \@mkboth{\indexname}{\indexname}% + \thispagestyle{plain}% + \raggedright% + \parindent\z@ + \parskip\z@ \@plus .3\p@\relax + \columnseprule \z@ + \columnsep 35\p@ + \let\item\@idxitem} + {\if@restonecol\onecolumn\else\clearpage\fi} \RequirePackage{titletoc} \newlength\SUF@label@chap \setlength\SUF@label@chap{.5em} @@ -2841,16 +2211,16 @@ Janusz M.~Nowacki. \makebox[1em][l]{\thecontentspage}% \hskip\SUF@addto@tochang@chap% \makebox[\SUF@label@chap][l]{% - \SUF@CHAP@thecontentslabel}\hspace*{1em}% + \SUF@CHAP@contentslabel}\hspace*{1em}% \SUF@tocCHAP@font} {\hskip-\SUF@tochang@chap% \makebox[1em][l]{\thecontentspage}% \hskip\SUF@addto@tochang@chap\SUF@tocCHAP@font} {} [\addvspace{1ex}] -\ifsuftesi@toccompactsec +\ifsuftesi@ctocsec \titlecontents*{section}[\SUF@tochang@chap]{}{% - \SUF@SEC@thecontentslabel\adjtoclabelsep\SUF@tocSEC@font}{\SUF@tocSEC@font}{, + \SUF@SEC@contentslabel\adjtoclabelsep\SUF@tocSEC@font}{\SUF@tocSEC@font}{, \thecontentspage.}[][\adjtocpagesep][] \else \titlecontents{section} @@ -2858,16 +2228,16 @@ Janusz M.~Nowacki. {} {\hskip-\SUF@tochang@sec% \makebox[1em][l]{\thecontentspage}\hskip\SUF@addto@tochang@sec% - \makebox[\SUF@label@sec][l]{\SUF@SEC@thecontentslabel}\hspace*{1em}% + \makebox[\SUF@label@sec][l]{\SUF@SEC@contentslabel}\hspace*{1em}% \SUF@tocSEC@font} {\hskip-\SUF@tochang@sec% \makebox[1em][l]{\thecontentspage}\hskip\SUF@addto@tochang@sec% \SUF@tocSEC@font} {} \fi -\ifsuftesi@toccompactsubsec +\ifsuftesi@ctocsubsec \titlecontents*{subsection}[\SUF@tochang@sec]{\SUF@sscorrect}{% - \SUF@SUBSEC@thecontentslabel\adjtoclabelsep\SUF@tocSUBSEC@font}{\SUF@tocSUBSEC@font}{, + \SUF@SUBSEC@contentslabel\adjtoclabelsep\SUF@tocSUBSEC@font}{\SUF@tocSUBSEC@font}{, \thecontentspage.}[][\adjtocpagesep][] \else \titlecontents{subsection} @@ -2875,16 +2245,16 @@ Janusz M.~Nowacki. {} {\hskip-\SUF@tochang@subsec% \makebox[1em][l]{\thecontentspage}\hskip\SUF@addto@tochang@subsec% - \makebox[\SUF@label@subsec][l]{\SUF@SUBSEC@thecontentslabel}\hspace*{1em}% + \makebox[\SUF@label@subsec][l]{\SUF@SUBSEC@contentslabel}\hspace*{1em}% \SUF@tocSUBSEC@font} {\hskip-\SUF@tochang@subsec% \makebox[1em][l]{\thecontentspage}\hskip\SUF@addto@tochang@subsec% \SUF@tocSUBSEC@font} {} \fi -\ifsuftesi@toccompactsubsubsec +\ifsuftesi@ctocsubsubsec \titlecontents*{subsubsection}[\SUF@tochang@subsec]{\SUF@ssscorrect}{% - \SUF@SUBSUBSEC@thecontentslabel\adjtoclabelsep% + \SUF@SUBSUBSEC@contentslabel\adjtoclabelsep% \SUF@tocSUBSUBSEC@font}{\SUF@tocSUBSUBSEC@font}{, \thecontentspage.}[][\adjtocpagesep][] \else @@ -2893,16 +2263,16 @@ Janusz M.~Nowacki. {} {\hskip-\SUF@tochang@subsubsec% \makebox[1em][l]{\thecontentspage}\hskip\SUF@addto@tochang@subsubsec% - \makebox[\SUF@label@subsubsec][l]{\SUF@SUBSUBSEC@thecontentslabel}\hspace*{1em}% + \makebox[\SUF@label@subsubsec][l]{\SUF@SUBSUBSEC@contentslabel}\hspace*{1em}% \SUF@tocSUBSUBSEC@font} {\hskip-\SUF@tochang@subsubsec% \makebox[1em][l]{\thecontentspage}\hskip\SUF@addto@tochang@subsubsec% \SUF@tocSUBSUBSEC@font} {} \fi -\ifsuftesi@toccompactpar +\ifsuftesi@ctocpar \titlecontents*{paragraph}[\SUF@tochang@subsubsec]{\SUF@pcorrect}{% - \SUF@PAR@thecontentslabel\adjtoclabelsep% + \SUF@PAR@contentslabel\adjtoclabelsep% \SUF@tocPAR@font}{\SUF@tocPAR@font}{, \thecontentspage.}[][\adjtocpagesep][] \else @@ -2918,438 +2288,1023 @@ Janusz M.~Nowacki. \SUF@tocPAR@font} {} \fi -\ifsuftesi@toccompactsubpar -\titlecontents*{subparagraph}[\SUF@tochang@par]{\SUF@pcorrect}{% - \SUF@SUBPAR@thecontentslabel\adjtoclabelsep% - \SUF@tocSUBPAR@font}{\SUF@tocSUBPAR@font}{, - \thecontentspage.}[][\adjtocpagesep][] +\ifsuftesi@ctocsubpar +\titlecontents*{subparagraph}[\SUF@tochang@par]{\SUF@pcorrect}{% + \SUF@SUBPAR@contentslabel\adjtoclabelsep% + \SUF@tocSUBPAR@font}{\SUF@tocSUBPAR@font}{, + \thecontentspage.}[][\adjtocpagesep][] +\else +\titlecontents{subparagraph} + [\SUF@tochang@subpar] + {} + {\hskip-\SUF@tochang@subpar% + \makebox[1em][l]{\thecontentspage}\hskip\SUF@addto@tochang@subpar% + \makebox[\SUF@label@subpar][l]{\thecontentslabel}\hspace*{1em}% + \SUF@tocSUBPAR@font} + {\hskip-\SUF@tochang@subpar% + \makebox[1em][l]{\thecontentspage}\hskip\SUF@addto@tochang@subpar% + \SUF@tocSUBPAR@font} + {} +\fi +\titlecontents{figure} + [\SUF@tochang@fig] + {} + {\hskip-\SUF@tochang@fig% + \makebox[1em][l]{\thecontentspage}\hskip\SUF@addto@tochang@fig% + \makebox[\SUF@label@tab][l]{\thecontentslabel}\hspace*{1em}} + {} + {} +\titlecontents{table} + [\SUF@tochang@tab] + {} + {\hskip-\SUF@tochang@tab% + \makebox[1em][l]{\thecontentspage}\hskip\SUF@addto@tochang@tab% + \makebox[\SUF@label@tab][l]{\thecontentslabel}\hspace*{1em}} + {} + {} +\else +\AtBeginDocument{% +\newlength\SUF@tocindent@chap +\newlength\SUF@tocindent@sec +\newlength\SUF@tocindent@subsec +\newlength\SUF@tocindent@subsubsec +\newlength\SUF@tocindent@par +\newlength\SUF@tocindent@subpar +\newlength\SUF@tocindent@fig +\newlength\SUF@tocindent@tab +\ifsuftesi@article +\setlength\SUF@tocindent@sec + {\dimexpr(\SUF@label@chap+1.5em)} +\setlength\SUF@tocindent@subsec + {\dimexpr(\SUF@tocindent@sec+\SUF@label@subsec+1em)} +\setlength\SUF@tocindent@subsubsec + {\dimexpr(\SUF@tocindent@subsec+\SUF@label@subsubsec+1em)} +\setlength\SUF@tocindent@par + {\dimexpr(\SUF@tocindent@subsubsec+\SUF@label@par+1em)} +\setlength\SUF@tocindent@subpar + {\dimexpr(\SUF@tocindent@par+\SUF@label@subpar+1em)} +\setlength\SUF@tocindent@fig + {\dimexpr(\SUF@label@chap+1.5em)} +\setlength\SUF@tocindent@tab + {\dimexpr(\SUF@label@chap+1.5em)} +\else +\setlength\SUF@tocindent@chap + {\dimexpr(\SUF@label@chap+1em)} +\setlength\SUF@tocindent@sec + {\dimexpr(\SUF@tocindent@chap+\SUF@label@sec+1em)} +\setlength\SUF@tocindent@subsec + {\dimexpr(\SUF@tocindent@sec+\SUF@label@subsec+1em)} +\setlength\SUF@tocindent@subsubsec + {\dimexpr(\SUF@tocindent@subsec+\SUF@label@subsubsec+1em)} +\setlength\SUF@tocindent@par + {\dimexpr(\SUF@tocindent@subsubsec+\SUF@label@par+1em)} +\setlength\SUF@tocindent@subpar + {\dimexpr(\SUF@tocindent@par+\SUF@label@subpar+1em)} +\setlength\SUF@tocindent@fig + {\dimexpr(\SUF@tocindent@chap+\SUF@label@sec-\SUF@label@chap)} +\setlength\SUF@tocindent@tab + {\dimexpr(\SUF@tocindent@chap+\SUF@label@sec-\SUF@label@chap)} +\fi} +\titlecontents{chapter} + [\SUF@tocindent@chap] + {\addvspace{2ex}} + {\hskip-\SUF@tocindent@chap% + \makebox[\SUF@label@chap][l]{\SUF@CHAP@contentslabel}% + \hspace*{1em}% + \SUF@tocCHAP@font} + {\hskip-\SUF@tocindent@chap% + \SUF@tocCHAP@font} + {\SUF@chaptitlerule\contentspage} + [\addvspace{1ex}] +\ifsuftesi@ctocsec +\titlecontents*{section}[\SUF@tocindent@chap]{}{% + \SUF@SEC@contentslabel\adjtoclabelsep\SUF@tocSEC@font} + {\SUF@tocSEC@font}{, \thecontentspage.}[][\adjtocpagesep][] +\else +\titlecontents{section} + [\SUF@tocindent@sec] + {} + {\hskip-\dimexpr(\SUF@label@sec+1em)% + \makebox[\SUF@label@sec][l]{\SUF@SEC@contentslabel}\hspace*{1em}% + \SUF@tocSEC@font} + {\hskip-\dimexpr(\SUF@label@sec+1em)% + \SUF@tocSEC@font} + {\ifsuftesi@article\SUF@chaptitlerule% + \else\SUF@titlerule\fi\contentspage} +\fi +\ifsuftesi@ctocsubsec +\titlecontents*{subsection}[\SUF@tocindent@sec]{\SUF@sscorrect}{% + \SUF@SUBSEC@contentslabel\adjtoclabelsep\SUF@tocSUBSEC@font} + {\SUF@tocSUBSEC@font}{, \thecontentspage.}[][\adjtocpagesep][] +\else +\titlecontents{subsection} + [\SUF@tocindent@subsec] + {} + {\hskip-\dimexpr(\SUF@label@subsec+1em)% + \makebox[\SUF@label@subsec][l]{\SUF@SUBSEC@contentslabel}\hspace*{1em}% + \SUF@tocSUBSEC@font} + {\hskip-\dimexpr(\SUF@label@subsec+1em)% + \SUF@tocSUBSEC@font} + {\SUF@titlerule\contentspage} +\fi +\ifsuftesi@ctocsubsubsec +\titlecontents*{subsubsection}[\SUF@tocindent@subsec]{\SUF@ssscorrect}{% + \SUF@SUBSUBSEC@contentslabel\adjtoclabelsep% + \SUF@tocSUBSUBSEC@font}{\SUF@tocSUBSUBSEC@font}{, + \thecontentspage.}[][\adjtocpagesep][] +\else +\titlecontents{subsubsection} + [\SUF@tocindent@subsubsec] + {} + {\hskip-\dimexpr(\SUF@label@subsubsec+1em)% + \makebox[\SUF@label@subsubsec][l]{\SUF@SUBSUBSEC@contentslabel}\hspace*{1em}% + \SUF@tocSUBSUBSEC@font} + {\hskip-\dimexpr(\SUF@label@subsubsec+1em)% + \SUF@tocSUBSUBSEC@font} + {\SUF@titlerule\contentspage} +\fi +\ifsuftesi@ctocpar +\titlecontents*{paragraph}[\SUF@tocindent@subsubsec]{\SUF@pcorrect}{% + \SUF@PAR@contentslabel\adjtoclabelsep% + \SUF@tocPAR@font}{\SUF@tocPAR@font}{, + \thecontentspage.}[][\adjtocpagesep][] +\else +\titlecontents{paragraph} + [\SUF@tocindent@par] + {} + {\hskip-\dimexpr(\SUF@label@par+1em)% + \makebox[\SUF@label@par][l]{\thecontentslabel}\hspace*{1em}% + \SUF@tocPAR@font} + {\hskip-\dimexpr(\SUF@label@par+1em)% + \SUF@tocPAR@font} + {\SUF@titlerule\contentspage} +\fi +\ifsuftesi@ctocsubpar +\titlecontents*{subparagraph}[\SUF@tocindent@par]{\SUF@pcorrect}{% + \SUF@SUBPAR@contentslabel\adjtoclabelsep% + \SUF@tocSUBPAR@font}{\SUF@tocSUBPAR@font}{, + \thecontentspage.}[][\adjtocpagesep][] +\else +\titlecontents{subparagraph} + [\SUF@tocindent@subpar] + {} + {\hskip-\dimexpr(\SUF@label@subpar+1em)% + \makebox[\SUF@label@subpar][l]{\thecontentslabel}\hspace*{1em}% + \SUF@tocSUBPAR@font} + {\hskip-\dimexpr(\SUF@label@subpar+1em)% + \SUF@tocSUBPAR@font} + {\SUF@titlerule\contentspage} +\fi +\titlecontents{figure} + [\SUF@tocindent@fig] + {} + {\hskip-\SUF@tocindent@fig% + \makebox[\SUF@label@fig][l]{\thecontentslabel}\hspace*{1em}} + {} + {\SUF@titlerule\contentspage} +\titlecontents{table} + [\SUF@tocindent@tab] + {} + {\hskip-\SUF@tocindent@tab% + \makebox[\SUF@label@tab][l]{\thecontentslabel}\hspace*{1em}} + {} + {\SUF@titlerule\contentspage} +\fi +\ifSUF@partialtoc + \titlecontents*{partialtocsection}[0cm]{}{% + \@partialtocseclabel\adjtoclabelsep\@partialtocsecfont} + {\@partialtocsecfont}{, \thecontentspage.}[][\adjtocpagesep][] + \ifsuftesi@article + \titlecontents*{partialtocsubsection}[0cm]{}{% + \@partialtocsubseclabel\adjtoclabelsep\@partialtocsubsecfont} + {\@partialtocsubsecfont}{, \thecontentspage.}[][\adjtocpagesep][] + \else + \titlecontents*{partialtocsubsection}[0cm]{\hskip.5em}{% + \@partialtocsubseclabel\adjtoclabelsep\@partialtocsubsecfont} + {\@partialtocsubsecfont}{, \thecontentspage.}[][\adjtocpagesep][] + \fi + \titlecontents*{partialtocsubsubsection}[0cm]{\hskip.5em}{% + \@partialtocsubsubseclabel\adjtoclabelsep\@partialtocsubsubsecfont} + {\@partialtocsubsubsecfont}{, \thecontentspage.}[][\adjtocpagesep][] + \titlecontents*{partialtocparagraph}[0cm]{\hskip.5em}{% + \@partialtocparlabelfont\adjtoclabelsep\@partialtocparfont} + {\@partialtocparfont}{, \thecontentspage.}[][\adjtocpagesep][] + \titlecontents*{partialtocsubparagraph}[0cm]{\hskip.5em}{% + \@partialtocsubparlabelfont\adjtoclabelsep\@partialtocsubparfont} + {\@partialtocsubparfont}{, \thecontentspage.}[][\adjtocpagesep][] + \ifsuftesi@article + \let\startsecpartialtoc\startcontents + \let\startchappartialtoc\relax + \else + \let\startchappartialtoc\startcontents + \let\startsecpartialtoc\relax + \fi + \newcommand{\printpartialtoc}{% + \setcounter{tocdepth}{5} + \contentsmargin{0cm} + \@partialtocsize + \@partialtocbeforespace + \@partialtocbeforecode\par + \ifsuftesi@article + \printcontents{partialtoc}{2}{} + \else + \printcontents{partialtoc}{1}{} + \fi + \par\@partialtocaftercode + \@partialtocafterspace + } +\else + \let\startchappartialtoc\relax + \let\startsecpartialtoc\relax + \def\printpartialtoc{% + \ClassWarningNoLine{suftesi}% + {To activate \string\printpartialtoc\MessageBreak + load the 'partialtoc' option}} +\fi +\ifsuftesi@article +\renewcommand\tableofcontents{% + \vspace{2ex}% + \section*{\contentsname}% + \@mkboth{\contentsname}{\contentsname}% + \thispagestyle{empty} + \ifsuftesi@twocolumntoc + \begin{multicols}{2} + \@starttoc{toc}% + \end{multicols} + \else + \@starttoc{toc}% + \fi + \vspace{2ex}% + } +\renewcommand\listoffigures{% + \vspace{2ex}% + \section*{\listfigurename}% + \@mkboth{\listfigurename}{\listfigurename}% + \thispagestyle{empty} + \ifsuftesi@twocolumnlof + \begin{multicols}{2} + \@starttoc{lof}% + \end{multicols} + \else + \@starttoc{lof}% + \fi + \vspace{2ex}% + } +\renewcommand\listoftables{% + \vspace{2ex}% + \section*{\listtablename}% + \@mkboth{\listtablename}{\listtablename}% + \thispagestyle{empty} + \ifsuftesi@twocolumnlot + \begin{multicols}{2} + \@starttoc{lot}% + \end{multicols} + \else + \@starttoc{lot}% + \fi + \vspace{2ex}% + } +\else +\renewcommand\tableofcontents{% + \if@twocolumn + \@restonecoltrue\onecolumn + \else + \@restonecolfalse + \fi + \chapter*{\contentsname}% + \@mkboth{% + \contentsname} + {\contentsname}% + \thispagestyle{empty} + \ifsuftesi@twocolumntoc + \begin{multicols}{2} + \@starttoc{toc}% + \end{multicols} + \else + \@starttoc{toc}% + \fi + \if@restonecol\twocolumn\fi + } +\renewcommand\listoffigures{% + \if@twocolumn + \@restonecoltrue\onecolumn + \else + \@restonecolfalse + \fi + \chapter*{\listfigurename}% + \@mkboth{\listfigurename}% + {\listfigurename}% + \thispagestyle{empty} + \ifsuftesi@twocolumnlof + \begin{multicols}{2} + \@starttoc{lof}% + \end{multicols} + \else + \@starttoc{lof}% + \fi + \if@restonecol\twocolumn\fi + } +\renewcommand\listoftables{% + \if@twocolumn + \@restonecoltrue\onecolumn + \else + \@restonecolfalse + \fi + \chapter*{\listtablename}% + \@mkboth{% + \listtablename}% + {\listtablename}% + \thispagestyle{empty} + \ifsuftesi@twocolumnlot + \begin{multicols}{2} + \@starttoc{lot}% + \end{multicols} + \else + \@starttoc{lot}% + \fi + \if@restonecol\twocolumn\fi + } +\fi +\newcommand{\tocpartname}[1]{\def\SUF@tocpartname{#1}} + \tocpartname{\partname} +\newcommand{\tocpartfont}[1]{\def\SUF@tocPART@font{#1}} +\newcommand{\tocchapfont}[1]{\def\SUF@tocCHAP@font{#1}} +\newcommand{\tocsecfont}[1]{\def\SUF@tocSEC@font{#1}} +\newcommand{\tocsubsecfont}[1]{\def\SUF@tocSUBSEC@font{#1}} +\newcommand{\tocsubsubsecfont}[1]{\def\SUF@tocSUBSUBSEC@font{#1}} +\newcommand{\tocparfont}[1]{\def\SUF@tocPAR@font{#1}} +\newcommand{\tocsubparfont}[1]{\def\SUF@tocSUBPAR@font{#1}} +\newcommand{\tocpartnumfont}[1]{\def\SUF@tocPARTnum@font{#1}}\tocpartnumfont{} +\newcommand{\tocchapnumfont}[1]{% + \def\SUF@CHAP@contentslabel{\begingroup#1\thecontentslabel\endgroup}} +\newcommand{\tocsecnumfont}[1]{% + \def\SUF@SEC@contentslabel{\begingroup#1\thecontentslabel\endgroup}} +\newcommand{\tocsubsecnumfont}[1]{% + \def\SUF@SUBSEC@contentslabel{\begingroup#1\thecontentslabel\endgroup}} +\newcommand{\tocsubsubsecnumfont}[1]{% + \def\SUF@SUBSUBSEC@contentslabel{\begingroup#1\thecontentslabel\endgroup}} +\newcommand{\tocparnumfont}[1]{% + \def\SUF@PAR@contentslabel{\begingroup#1\thecontentslabel\endgroup}} +\newcommand{\tocsubparnumfont}[1]{% + \def\SUF@SUBPAR@contentslabel{\begingroup#1\thecontentslabel\endgroup}} +\tocparnumfont{} +\tocsubparnumfont{} +\newcommand{\partialtocsize}[1]{% + \def\@partialtocsize{#1}} +\newcommand{\partialtocsecfont}[1]{% + \def\@partialtocsecfont{#1}} +\newcommand{\partialtocsubsecfont}[1]{% + \def\@partialtocsubsecfont{#1}} +\newcommand{\partialtocsubsubsecfont}[1]{% + \def\@partialtocsubsubsecfont{#1}} +\newcommand{\partialtocparfont}[1]{% + \def\@partialtocparfont{#1}} +\newcommand{\partialtocsubparfont}[1]{% + \def\@partialtocsubparfont{#1}} +\newcommand{\partialtocseclabel}[1]{% + \def\@partialtocseclabel{\begingroup#1\thecontentslabel~\endgroup}} +\newcommand{\partialtocsubseclabel}[1]{% + \def\@partialtocsubseclabel{\begingroup#1\thecontentslabel~\endgroup}} +\newcommand{\partialtocsubsubseclabel}[1]{% + \def\@partialtocsubsubseclabel{\begingroup#1\thecontentslabel~\endgroup}} +\newcommand{\partialtocparlabelfont}[1]{% + \def\@partialtocparlabelfont{\begingroup#1\thecontentslabel~\endgroup}} +\newcommand{\partialtocsubparlabelfont}[1]{% + \def\@partialtocsubparlabelfont{\begingroup#1\thecontentslabel~\endgroup}} +\newcommand{\partialtocbeforespace}[1]{% + \def\@partialtocbeforespace{\vspace*{#1}}} +\newcommand{\partialtocafterspace}[1]{% + \def\@partialtocafterspace{\vspace*{#1}}} +\newcommand{\partialtocbeforecode}[1]{% + \def\@partialtocbeforecode{#1}} +\newcommand{\partialtocaftercode}[1]{% + \def\@partialtocaftercode{#1}} +\partialtocsize{\footnotesize} +\partialtocsecfont{\itshape} +\partialtocsubsecfont{} +\partialtocsubsubsecfont{} +\partialtocparfont{} +\partialtocsubparfont{} +\partialtocseclabel{} +\partialtocsubseclabel{} +\partialtocsubsubseclabel{} +\partialtocparlabelfont{} +\partialtocsubparlabelfont{} +\partialtocbeforespace{0pt} +\partialtocafterspace{0pt} +\partialtocbeforecode{} +\partialtocaftercode{} +\RequirePackage{fancyhdr} +\newcommand{\versionstring}[1]{\def\version@string{#1}} + \versionstring{Version of} +\ifSUF@draftdate + \def\SUF@versionof{\footnotesize\texttt{\version@string{} \today}} \else -\titlecontents{subparagraph} - [\SUF@tochang@subpar] - {} - {\hskip-\SUF@tochang@subpar% - \makebox[1em][l]{\thecontentspage}\hskip\SUF@addto@tochang@subpar% - \makebox[\SUF@label@subpar][l]{\thecontentslabel}\hspace*{1em}% - \SUF@tocSUBPAR@font} - {\hskip-\SUF@tochang@subpar% - \makebox[1em][l]{\thecontentspage}\hskip\SUF@addto@tochang@subpar% - \SUF@tocSUBPAR@font} - {} + \let\SUF@versionof\relax \fi -\titlecontents{figure} - [\SUF@tochang@fig] - {} - {\hskip-\SUF@tochang@fig% - \makebox[1em][l]{\thecontentspage}\hskip\SUF@addto@tochang@fig% - \makebox[\SUF@label@tab][l]{\thecontentslabel}\hspace*{1em}} - {} - {} -\titlecontents{table} - [\SUF@tochang@tab] - {} - {\hskip-\SUF@tochang@tab% - \makebox[1em][l]{\thecontentspage}\hskip\SUF@addto@tochang@tab% - \makebox[\SUF@label@tab][l]{\thecontentslabel}\hspace*{1em}} - {} - {} -\else \AtBeginDocument{% -\newlength\SUF@tocindent@chap -\newlength\SUF@tocindent@sec -\newlength\SUF@tocindent@subsec -\newlength\SUF@tocindent@subsubsec -\newlength\SUF@tocindent@par -\newlength\SUF@tocindent@subpar -\newlength\SUF@tocindent@fig -\newlength\SUF@tocindent@tab + \pagestyle{fancy} + \renewcommand{\headrulewidth}{0pt} + \renewcommand{\footnoterule}{}} +\renewcommand{\chaptermark}[1]{% + \markboth{\chaptertitlename\ \SUF@HEAD@thechapter}{#1}} + \ifsuftesi@article + \renewcommand{\sectionmark}[1]{\markright{\SUF@HEAD@thesection.\ #1}} + \else + \renewcommand{\sectionmark}[1]{} + \fi +\fancypagestyle{plain}{\fancyhf{}\fancyfoot[RE,LO]{\SUF@versionof}} +\fancypagestyle{empty}{\fancyhf{}\fancyfoot[RE,LO]{\SUF@versionof}} +\fancypagestyle{sufplain}{% + \fancyhf{}% + \fancyfoot[RE,LO]{\SUF@versionof} + \fancyfoot[C]{\footnotesize\SUF@thepage}} +\fancypagestyle{centerheader}{% + \fancyhf{}% + \fancyfoot[RE,LO]{\SUF@versionof} + \fancyhead[CO]{\footnotesize\breakinbodyfalse\SUF@rightmark} + \fancyhead[CE]{\footnotesize\breakinbodyfalse\SUF@mark} + \fancyfoot[C]{\footnotesize\SUF@thepage}} +\fancypagestyle{sufdefault}{% + \fancyhf{}% + \fancyfoot[RE,LO]{\SUF@versionof} + \fancyhead[LE,RO]{\footnotesize\SUF@thepage} + \fancyhead[LO]{\footnotesize\breakinbodyfalse\SUF@rightmark} + \fancyhead[RE]{\footnotesize\breakinbodyfalse\SUF@mark}} \ifsuftesi@article -\setlength\SUF@tocindent@sec - {\dimexpr(\SUF@label@chap+1.5em)} -\setlength\SUF@tocindent@subsec - {\dimexpr(\SUF@tocindent@sec+\SUF@label@subsec+1em)} -\setlength\SUF@tocindent@subsubsec - {\dimexpr(\SUF@tocindent@subsec+\SUF@label@subsubsec+1em)} -\setlength\SUF@tocindent@par - {\dimexpr(\SUF@tocindent@subsubsec+\SUF@label@par+1em)} -\setlength\SUF@tocindent@subpar - {\dimexpr(\SUF@tocindent@par+\SUF@label@subpar+1em)} -\setlength\SUF@tocindent@fig - {\dimexpr(\SUF@label@chap+1.5em)} -\setlength\SUF@tocindent@tab - {\dimexpr(\SUF@label@chap+1.5em)} -\else -\setlength\SUF@tocindent@chap - {\dimexpr(\SUF@label@chap+1em)} -\setlength\SUF@tocindent@sec - {\dimexpr(\SUF@tocindent@chap+\SUF@label@sec+1em)} -\setlength\SUF@tocindent@subsec - {\dimexpr(\SUF@tocindent@sec+\SUF@label@subsec+1em)} -\setlength\SUF@tocindent@subsubsec - {\dimexpr(\SUF@tocindent@subsec+\SUF@label@subsubsec+1em)} -\setlength\SUF@tocindent@par - {\dimexpr(\SUF@tocindent@subsubsec+\SUF@label@par+1em)} -\setlength\SUF@tocindent@subpar - {\dimexpr(\SUF@tocindent@par+\SUF@label@subpar+1em)} -\setlength\SUF@tocindent@fig - {\dimexpr(\SUF@tocindent@chap+\SUF@label@sec-\SUF@label@chap)} -\setlength\SUF@tocindent@tab - {\dimexpr(\SUF@tocindent@chap+\SUF@label@sec-\SUF@label@chap)} -\fi} -\titlecontents{chapter} - [\SUF@tocindent@chap] - {\addvspace{2ex}} - {\hskip-\SUF@tocindent@chap% - \makebox[\SUF@label@chap][l]{\SUF@CHAP@thecontentslabel}% - \hspace*{1em}% - \SUF@tocCHAP@font} - {\hskip-\SUF@tocindent@chap% - \SUF@tocCHAP@font} - {\SUF@chaptitlerule\contentspage} - [\addvspace{1ex}] -\ifsuftesi@toccompactsec -\titlecontents*{section}[\SUF@tocindent@chap]{}{% - \SUF@SEC@thecontentslabel\adjtoclabelsep\SUF@tocSEC@font} - {\SUF@tocSEC@font}{, \thecontentspage.}[][\adjtocpagesep][] + \ifsuftesi@authortitle + \def\SUF@mark{\SUF@leftmark} + \else + \def\SUF@mark{\SUF@rightmark} + \fi \else -\titlecontents{section} - [\SUF@tocindent@sec] - {} - {\hskip-\dimexpr(\SUF@label@sec+1em)% - \makebox[\SUF@label@sec][l]{\SUF@SEC@thecontentslabel}\hspace*{1em}% - \SUF@tocSEC@font} - {\hskip-\dimexpr(\SUF@label@sec+1em)% - \SUF@tocSEC@font} - {\ifsuftesi@article\SUF@chaptitlerule% - \else\SUF@titlerule\fi\contentspage} + \def\SUF@mark{\SUF@leftmark} \fi -\ifsuftesi@toccompactsubsec -\titlecontents*{subsection}[\SUF@tocindent@sec]{\SUF@sscorrect}{% - \SUF@SUBSEC@thecontentslabel\adjtoclabelsep\SUF@tocSUBSEC@font} - {\SUF@tocSUBSEC@font}{, \thecontentspage.}[][\adjtocpagesep][] -\else -\titlecontents{subsection} - [\SUF@tocindent@subsec] - {} - {\hskip-\dimexpr(\SUF@label@subsec+1em)% - \makebox[\SUF@label@subsec][l]{\SUF@SUBSEC@thecontentslabel}\hspace*{1em}% - \SUF@tocSUBSEC@font} - {\hskip-\dimexpr(\SUF@label@subsec+1em)% - \SUF@tocSUBSEC@font} - {\SUF@titlerule\contentspage} +\def\SUF@leftrightmark{% + \if@mainmatter\leftmark\else\rightmark\fi} +\pagestyle{sufdefault} + \ifsuftesi@centerheader\pagestyle{centerheader}\else\fi + \ifsuftesi@sufplain\pagestyle{sufplain}\else\fi +\renewenvironment{quotation} + {\list{}{\listparindent\parindent% + \itemindent \listparindent + \SUF@quote@style + \parsep \z@ \@plus\p@}% + \item\relax% + \SUF@quotation@size% + \noindent\ignorespaces} + {\endlist} +\renewenvironment{quote} + {\list{}{% + \SUF@quote@style}% + \item\relax% + \SUF@quotation@size}% \ignorespaces? + {\endlist} +\renewenvironment{verse} + {\let\\\@centercr + \list{}{\itemsep \z@ + \itemindent -1.5em% + \listparindent\itemindent + \rightmargin \leftmargin + \advance\leftmargin 1.5em}% + \item\relax + \SUF@quotation@size} + {\endlist} +\ifSUF@fewfootnotes +\RequirePackage[perpage]{zref} + \zmakeperpage{footnote} +\AtBeginDocument{% +\def\@fnsymbol#1{% + \ifcase#1\or \TextOrMath\textasteriskcentered *\or + \TextOrMath {\textasteriskcentered\textasteriskcentered}{**}\or + \TextOrMath {\textasteriskcentered% + \textasteriskcentered\textasteriskcentered}{***}\or + \protect\ClassWarningNoLine{suftesi}% + {Too many footnotes per page. Compile again or\MessageBreak + remove the class option 'fewfootnote'} + \fi +}% +} +\def\thefootnote{\@fnsymbol\c@footnote}% \fi -\ifsuftesi@toccompactsubsubsec -\titlecontents*{subsubsection}[\SUF@tocindent@subsec]{\SUF@ssscorrect}{% - \SUF@SUBSUBSEC@thecontentslabel\adjtoclabelsep% - \SUF@tocSUBSUBSEC@font}{\SUF@tocSUBSUBSEC@font}{, - \thecontentspage.}[][\adjtocpagesep][] +\newcommand*\xfootnote[1][*]{% + \xdef\@thefnmark{#1}% + \@footnotemark\@footnotetext} +\let\oldmarginpar\marginpar +\ifSUF@marginpar + \def\SUF@mpsetup{% + \itshape + \footnotesize% + \parindent=0pt \lineskip=0pt \lineskiplimit=0pt% + \tolerance=2000 \hyphenpenalty=300 \exhyphenpenalty=300% + \doublehyphendemerits=100000% + \finalhyphendemerits=\doublehyphendemerits} + \renewcommand{\marginpar}[1]{\oldmarginpar% + [\SUF@mpsetup\raggedleft\hspace{0pt}{#1}]% + {\SUF@mpsetup\raggedright\hspace{0pt}{#1}}} \else -\titlecontents{subsubsection} - [\SUF@tocindent@subsubsec] - {} - {\hskip-\dimexpr(\SUF@label@subsubsec+1em)% - \makebox[\SUF@label@subsubsec][l]{\SUF@SUBSUBSEC@thecontentslabel}\hspace*{1em}% - \SUF@tocSUBSUBSEC@font} - {\hskip-\dimexpr(\SUF@label@subsubsec+1em)% - \SUF@tocSUBSUBSEC@font} - {\SUF@titlerule\contentspage} + \renewcommand\marginpar[2][]{} \fi -\ifsuftesi@toccompactpar -\titlecontents*{paragraph}[\SUF@tocindent@subsubsec]{\SUF@pcorrect}{% - \SUF@PAR@thecontentslabel\adjtoclabelsep% - \SUF@tocPAR@font}{\SUF@tocPAR@font}{, - \thecontentspage.}[][\adjtocpagesep][] -\else -\titlecontents{paragraph} - [\SUF@tocindent@par] - {} - {\hskip-\dimexpr(\SUF@label@par+1em)% - \makebox[\SUF@label@par][l]{\thecontentslabel}\hspace*{1em}% - \SUF@tocPAR@font} - {\hskip-\dimexpr(\SUF@label@par+1em)% - \SUF@tocPAR@font} - {\SUF@titlerule\contentspage} +\AtBeginDocument{% +\@ifpackageloaded{todonotes}{% + \renewcommand{\@todonotes@drawMarginNoteWithLine}{% + \begin{tikzpicture}[remember picture, overlay, baseline=-0.75ex]% + \node [coordinate] (inText) {};% + \end{tikzpicture}% + \oldmarginpar[{% Draw note in left margin + \@todonotes@drawMarginNote% + \@todonotes@drawLineToLeftMargin% + }]{% Draw note in right margin + \@todonotes@drawMarginNote% + \@todonotes@drawLineToRightMargin% + } + } + } +{\relax}} +\ifsuftesi@collection +\newcounter{journalnumber} +\newcounter{journalvolume} +\newcounter{issue} +\newcounter{title} +\setcounter{title}{1} +\newcounter{article} +\setcounter{article}{0} +\setcounter{journalnumber}{0} +\setcounter{tocdepth}{0} +\def\journalname#1{\gdef\@journalname{#1}} + \def\@journalname{\@latex@warning@no@line{% + No \noexpand\journalname given}} +\def\journalvolume#1{\gdef\@journalvolume{#1}} + \def\@journalvolume{\@latex@warning@no@line{% + No \noexpand\journalvolume given}} +\def\journalnumber#1{\gdef\@journalnumber{#1}} + \def\@journalnumber{\@latex@warning@no@line{% + No \noexpand\journalnumber given}} +\def\issue#1{\gdef\@issue{#1}} + \def\@issue{\@latex@warning@no@line{% + No \noexpand\issue given}} +\def\journalyear#1{\gdef\@journalyear{#1}} + \def\@journalyear{\@latex@warning@no@line{% + No \noexpand\journalyear given}} +\def\journalwebsite#1{\gdef\@journalwebsite{\url{#1}}} + \def\@journalwebsite{\@latex@warning@no@line{% + No \noexpand\journalwebsite given}} +\def\thanks#1{\footnotemark\ \protected@xdef\@thanks{% + \@thanks\protect\footnotetext[\the\c@footnote]{#1}}} +\def\fulljournal{\emph{\@journalname} \@journalnumber, % + \@issue{} \@journalyear} +\def\issuename#1{\gdef\@issuename{#1}} +\def\collectiontitle#1{\gdef\@collectiontitle{#1}} + \def\@collectiontitle{\@latex@warning@no@line{% + No \noexpand\collectiontitle given}} +\def\collectioneditor#1{\gdef\@collectioneditor{#1}} + \def\@collectioneditor{\@latex@warning@no@line{% + No \noexpand\collectioneditor given}} +\renewcommand*{\title}[2][]{% + \gdef\@headtitle{#1}\gdef\@title{#2}\markright{#1}} + \edef\title{\noexpand\@dblarg + \expandafter\noexpand\csname\string\title\endcsname} + \def\@headtitle{--missing title--% + \protect\ClassWarningNoLine{suftesi}{% + No \string\title\space given \MessageBreak% + See the class documentation for explanation}} + \def\@title{--missing title--% + \protect\ClassWarningNoLine{suftesi}{% + No \string\title\space given\MessageBreak% + See the class documentation for explanation}} + \def\@author{--missing author--% + \protect\ClassWarningNoLine{suftesi}{% + No \string\author\space given\MessageBreak% + See the class documentation for explanation}} +\newcommand*\l@title[2]{% + \ifnum \c@tocdepth >\m@ne + \addpenalty{-\@highpenalty}% + \vskip 1.0ex \@plus\p@ + \begingroup + \parindent \z@ \rightskip \@pnumwidth + \parfillskip -\@pnumwidth + \advance\leftskip1em + \hskip -\leftskip + #1\nobreak% + \ifsuftesi@dottedtoc\dotfill% + \nobreak\hb@xt@\@pnumwidth{\hss #2}\par + \else + \ifsuftesi@raggedtoc% + \nobreak\hskip1em #2 \hfill\null\par + \else + \ifsuftesi@pagelefttoc + \ClassError{suftesi} + {\MessageBreak + You can not use tocstyle=leftpage\MessageBreak + with structure=collection} + {You can not use tocstyle=leftpage\MessageBreak + with structure=collection} + \else + \nobreak\hfill #2\par + \fi + \fi + \fi + \penalty\@highpenalty + \endgroup + \fi} +\renewcommand\maketitle{\par + \begingroup + \renewcommand\thefootnote{\@fnsymbol\c@footnote}% + \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}% + \long\def\@makefntext##1{\parindent 1em\noindent + \hb@xt@1.8em{% + \hss\@textsuperscript{\normalfont\@thefnmark}}##1}% + \if@twocolumn + \ifnum \col@number=\@ne + \@maketitle + \else + \twocolumn[\@maketitle]% + \fi + \else + \newpage + \global\@topnum\z@ % Prevents figures from going at top of page. + \@maketitle + \fi + \thispagestyle{plain}\@thanks% + \endgroup + \setcounter{section}{0}% + \global\let\and\relax + \let\thanks\@gobble} +\AtBeginDocument{\def\@maketitle{% + \refstepcounter{article} + \SUF@chaptersize + \SUF@authortitle@align + \let\footnote\thanks + \parindent=0pt + {\SUF@second}% + \label{begin:\thearticle} + \@ifundefined{Hy@raisedlink}{\let\texorpdfstring\@firstoftwo}{% + \xdef\@currentHref{title.\thearticle}% + \Hy@raisedlink{\hyper@anchorstart{\@currentHref}\hyper@anchorend}% + }% + \csname toc@entry@\endcsname + \begingroup% + \let\thanks\@gobble + \addcontentsline{toc}{title}{% + {\SUF@tocAUT@font{\@author}}\texorpdfstring{\newline}{, }% + {\SUF@tocTIT@font{\@headtitle}}} + \endgroup% + \par\nobreak\vspace{2ex} + {\SUF@first% + \vskip1.5cm}}% + } +\newenvironment{article} + {\begingroup + \setcounter{section}{0} + \setcounter{footnote}{0} + \setcounter{figure}{0} + \setcounter{table}{0}} + {\label{end:\thearticle} + \cleardoublepage + \global\let\@thanks\@empty + \endgroup} +\newcommand{\collectiontitlepage}{% + \thispagestyle{empty}% + \begingroup + \centering + \vspace*{\stretch{1}} + + {\SUF@chaptersize\@collectiontitle\par} + \vskip5ex + + \@collectioneditor + \vspace*{\stretch{3}} + + \endgroup + \clearpage} +\def\frontispiece{\collectiontitlepage} + \setcounter{tocdepth}{0} + \renewcommand\thesection{% + \@arabic\c@section} + \renewcommand\thesubsection{% + \thesection.\@arabic\c@subsection} + \renewcommand\thesubsubsection{% + \thesubsection.\@arabic\c@subsubsection} + \renewcommand\theparagraph{% + \thesubsubsection.\@arabic\c@paragraph} + \renewcommand\thesubparagraph{% + \theparagraph.\@arabic\c@subparagraph} + \else \fi -\ifsuftesi@toccompactsubpar -\titlecontents*{subparagraph}[\SUF@tocindent@par]{\SUF@pcorrect}{% - \SUF@SUBPAR@thecontentslabel\adjtoclabelsep% - \SUF@tocSUBPAR@font}{\SUF@tocSUBPAR@font}{, - \thecontentspage.}[][\adjtocpagesep][] +\def\isbn#1{\gdef\@isbn{#1}} +\def\@issn{\@latex@warning@no@line{% + No \noexpand\isbn given}} +\def\doi#1{\gdef\@doi{#1}} +\def\@doi{\@latex@warning@no@line{% + No \noexpand\doi given}} +\def\isbn#1{\gdef\@issn{#1}} +\def\@issn{\@latex@warning@no@line{% + No \noexpand\isbn given}} +\renewcommand*{\title}[2][]{\gdef\@headtitle{#1}\gdef\@title{#2}} +\edef\title{\noexpand\@dblarg + \expandafter\noexpand\csname\string\title\endcsname} +\def\@headtitle{--missing title--% + \protect\ClassWarningNoLine{suftesi}{% + No \string\title\space given \MessageBreak% + See the class documentation for explanation}} +\def\@title{--missing title--% + \protect\ClassWarningNoLine{suftesi}{% + No \string\title\space given\MessageBreak% + See the class documentation for explanation}} +\def\@author{--missing author--% + \protect\ClassWarningNoLine{suftesi}{% + No \string\author\space given\MessageBreak% + See the class documentation for explanation}} +\ifSUF@titlepage + \renewcommand\maketitle{% + \begin{titlepage} + \let\footnotesize\small + \let\footnoterule\relax + \let \footnote \thanks + \renewcommand\thefootnote{\@fnsymbol\c@footnote}% + \null\vfil + \vskip 60\p@ + \begin{center}% + {\SUF@first\par}% + \vskip 3em% + {\lineskip .75em% + \begin{tabular}[t]{c}% + \SUF@second + \end{tabular}\par}% + \vskip 1.5em% + {\SUF@datefont\@date\par}% + \end{center}\par + \@thanks + \vfil\null + \end{titlepage}% + \setcounter{footnote}{0}% + \global\let\thanks\relax + \global\let\maketitle\relax + \global\let\@thanks\@empty + \global\let\@date\@empty + \global\let\date\relax + \global\let\and\relax} \else -\titlecontents{subparagraph} - [\SUF@tocindent@subpar] - {} - {\hskip-\dimexpr(\SUF@label@subpar+1em)% - \makebox[\SUF@label@subpar][l]{\thecontentslabel}\hspace*{1em}% - \SUF@tocSUBPAR@font} - {\hskip-\dimexpr(\SUF@label@subpar+1em)% - \SUF@tocSUBPAR@font} - {\SUF@titlerule\contentspage} +\renewcommand\maketitle{\par + \begingroup + \renewcommand\thefootnote{\@fnsymbol\c@footnote}% + \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}% + \long\def\@makefntext##1{\parindent 1em\noindent + \hb@xt@1.8em{% + \hss\@textsuperscript{\normalfont\@thefnmark}}##1}% + \if@twocolumn + \ifnum \col@number=\@ne + \@maketitle + \else + \twocolumn[\@maketitle]% + \fi + \else + \newpage + \global\@topnum\z@% Prevents figures from going at top of page. + \@maketitle + \fi + \thispagestyle{plain}\@thanks + \endgroup + \setcounter{footnote}{0}% + \global\let\thanks\relax + \global\let\maketitle\relax + \global\let\@maketitle\relax + \global\let\@thanks\@empty + \global\let\@date\@empty + \global\let\date\relax + \global\let\and\relax} +\def\@maketitle{% + \newpage + \null + \vskip 2em% + \begin{center}% + \let \footnote \thanks + {\SUF@first\par}% + \vskip 1.5em% + {\lineskip .5em% + \begin{tabular}[t]{c}% + \SUF@second\par + \end{tabular}\par}% + \vskip 1em% + {\SUF@datefont\@date\par}% + \end{center}% + \par + \vskip 1.5em} \fi -\titlecontents{figure} - [\SUF@tocindent@fig] - {} - {\hskip-\SUF@tocindent@fig% - \makebox[\SUF@label@fig][l]{\thecontentslabel}\hspace*{1em}} - {} - {\SUF@titlerule\contentspage} -\titlecontents{table} - [\SUF@tocindent@tab] - {} - {\hskip-\SUF@tocindent@tab% - \makebox[\SUF@label@tab][l]{\thecontentslabel}\hspace*{1em}} - {} - {\SUF@titlerule\contentspage} +\newcommand{\Ctitle}[1]{\def\@Ctitle{#1}} +\newcommand{\Csubtitle}[1]{\def\@Csubtitle{#1}} +\newcommand{\Cauthor}[1]{\def\@Cauthor{#1}} +\newcommand{\Ceditor}[1]{\def\@Ceditor{#1}} +\newcommand{\Cfoot}[1]{\def\@Cfoot{#1}} +\newcommand{\Cpagecolor}[1]{\def\@Cpagecolor{#1}} +\newcommand{\Ccirclecolor}[1]{\def\@Ccirclecolor{#1}} +\newcommand{\Ctextcolor}[1]{\def\@Ctextcolor{#1}} +\newcommand{\Cfootcolor}[1]{\def\@Cfootcolor{#1}} +\Cauthor{} +\Ctitle{} +\Csubtitle{} +\Ceditor{} +\Cfoot{} +\Cpagecolor{gray!30} +\Ctextcolor{white} +\Cfootcolor{black} +\AtBeginDocument{ +\@ifpackageloaded{tikz}{% +\newcommand\makecover[1][]{% +\begin{titlepage} +\begin{tikzpicture}[overlay,remember picture] + \draw[draw=none,fill=\@Cpagecolor] + (current page.north west) rectangle (current page.south east); + \node[anchor=center,yshift=.22\paperwidth] at (current page.center) (c) {}; + \draw[draw=none,fill=gray,#1] + (c) circle (.38\paperwidth) ; + \node[anchor=center] at (c) (author) {% +\parbox{.7\paperwidth}{% + \centering + \ifx\@Cauthor\@empty + \else + {\scshape\color{\@Ctextcolor}\@Cauthor\\} + \vspace*{\baselineskip} + \fi + + \ifx\@Ctitle\@empty + \else + {\Huge\bfseries\color{\@Ctextcolor}\@Ctitle\\[1ex]} + \fi + + \ifx\@Csubtitle\@empty + \else + {\smallskip\Large\color{\@Ctextcolor}\@Csubtitle\\} + \fi + + \ifx\@Ceditor\@empty + \else + {\vspace*{2\baselineskip}\color{\@Ctextcolor}\@Ceditor\\} + \fi} +}; +\ifx\@Cfoot\@empty\else + \node[xshift=.5\paperwidth,yshift=1cm, + align=center,text=\@Cfootcolor,anchor=south] + at (current page.south west) {\@Cfoot}; \fi -\titlecontents*{partialtocsection}[0cm]{}{% - \@partialtocseclabel\adjtoclabelsep\@partialtocsecfont} - {\@partialtocsecfont}{, \thecontentspage.}[][\adjtocpagesep][] -\titlecontents*{partialtocsubsection}[0cm]{\hskip.5em}{% - \@partialtocsubseclabel\adjtoclabelsep\@partialtocsubsecfont} - {\@partialtocsubsecfont}{, \thecontentspage.}[][\adjtocpagesep][] -\titlecontents*{partialtocsubsubsection}[0cm]{\hskip.5em}{% - \@partialtocsubsubseclabel\adjtoclabelsep\@partialtocsubsubsecfont} - {\@partialtocsubsubsecfont}{, \thecontentspage.}[][\adjtocpagesep][] -\titlecontents*{partialtocparagraph}[0cm]{\hskip.5em}{% - \@partialtocparlabelfont\adjtoclabelsep\@partialtocparfont} - {\@partialtocparfont}{, \thecontentspage.}[][\adjtocpagesep][] -\titlecontents*{partialtocsubparagraph}[0cm]{\hskip.5em}{% - \@partialtocsubparlabelfont\adjtoclabelsep\@partialtocsubparfont} - {\@partialtocsubparfont}{, \thecontentspage.}[][\adjtocpagesep][] -\newcommand{\startpartialtoc}{% - \ifsuftesi@partialtoc\startcontents\fi} -\newcommand{\printpartialtoc}{% - \ifsuftesi@partialtoc - \setcounter{tocdepth}{5} - \contentsmargin{0cm} - \@partialtocsize - \@partialtocbeforespace - \@partialtocbeforecode\par - \printcontents{partialtoc}{1}{} - \par\@partialtocaftercode - \@partialtocafterspace - \fi} -\ifsuftesi@article -\renewcommand\tableofcontents{% - \vspace{2ex}% - \section*{\contentsname}% - \@mkboth{\contentsname}{\contentsname}% - \thispagestyle{empty} - \ifsuftesi@twocolumntoc - \begin{multicols}{2} - \@starttoc{toc}% - \end{multicols} - \else - \@starttoc{toc}% - \fi - \vspace{2ex}% - } -\renewcommand\listoffigures{% - \vspace{2ex}% - \section*{\listfigurename}% - \@mkboth{\listfigurename}{\listfigurename}% - \thispagestyle{empty} - \ifsuftesi@twocolumnlof - \begin{multicols}{2} - \@starttoc{lof}% - \end{multicols} - \else - \@starttoc{lof}% - \fi - \vspace{2ex}% - } -\renewcommand\listoftables{% - \vspace{2ex}% - \section*{\listtablename}% - \@mkboth{\listtablename}{\listtablename}% - \thispagestyle{empty} - \ifsuftesi@twocolumnlot - \begin{multicols}{2} - \@starttoc{lot}% - \end{multicols} - \else - \@starttoc{lot}% - \fi - \vspace{2ex}% - } -\else -\renewcommand\tableofcontents{% - \if@twocolumn - \@restonecoltrue\onecolumn +\end{tikzpicture} +\end{titlepage} +} +} +{\def\makecover{\ClassError{suftesi}{\MessageBreak% + ***********************************\MessageBreak + * To use the \noexpand\makecover command\MessageBreak + * load the 'tikz' package.\MessageBreak + ************************************}{\MessageBreak% + ***********************************\MessageBreak + * To use the \noexpand\makecover command\MessageBreak + * load the 'tikz' package.\MessageBreak + ************************************}}} +} +\AtBeginDocument{% +\@ifpackagewith{frontespizio}{suftesi}{% +\ifsuftesi@periodical + \Margini {5.5cm}{7cm}{4.5cm}{0cm} + \else +\ifsuftesi@periodicalaureo + \Margini {5.5cm}{7cm}{4.5cm}{0cm} + \else +\ifsuftesi@compact + \Margini {4.5cm}{7cm}{4.5cm}{0cm} + \else +\ifsuftesi@compactaureo + \Margini {4.5cm}{7cm}{4.5cm}{0cm} + \else +\ifsuftesi@supercompact + \Margini {4.5cm}{10cm}{6cm}{1cm} + \else +\ifsuftesi@supercompactaureo + \Margini {4.5cm}{10cm}{6cm}{1cm} + \else +\ifsuftesi@pocketa + \Margini {4.5cm}{10cm}{6cm}{1cm} + \else +\ifsuftesi@pocketb + \Margini {4.5cm}{10cm}{6cm}{1cm} + \else +\ifsuftesi@pocketc + \Margini {4.5cm}{10cm}{6cm}{1cm} + \else +\fi\fi\fi\fi\fi\fi\fi\fi\fi} +{\@ifpackageloaded{frontespizio}{% +\ifsuftesi@periodical + \Margini {1cm}{7cm}{5cm}{1cm} + \Rientro{1cm} + \else +\ifsuftesi@periodicalaureo + \Margini {1cm}{7cm}{5cm}{1cm} + \Rientro{1cm} + \else +\ifsuftesi@compact + \Margini {1cm}{7cm}{6cm}{1cm} + \Rientro{1cm} + \else +\ifsuftesi@compactaureo + \Margini {1cm}{7cm}{6cm}{1cm} + \Rientro{1cm} + \else +\ifsuftesi@supercompact + \Margini {1cm}{10cm}{8cm}{1cm} + \Rientro{1cm} \else - \@restonecolfalse - \fi - \chapter*{\contentsname}% - \@mkboth{% - \contentsname} - {\contentsname}% - \thispagestyle{empty} - \ifsuftesi@twocolumntoc - \begin{multicols}{2} - \@starttoc{toc}% - \end{multicols} - \else - \@starttoc{toc}% - \fi - \if@restonecol\twocolumn\fi - } -\renewcommand\listoffigures{% - \if@twocolumn - \@restonecoltrue\onecolumn +\ifsuftesi@supercompactaureo + \Margini {1cm}{10cm}{8cm}{1cm} + \Rientro{1cm} \else - \@restonecolfalse - \fi - \chapter*{\listfigurename}% - \@mkboth{\listfigurename}% - {\listfigurename}% - \thispagestyle{empty} - \ifsuftesi@twocolumnlof - \begin{multicols}{2} - \@starttoc{lof}% - \end{multicols} - \else - \@starttoc{lof}% - \fi - \if@restonecol\twocolumn\fi - } -\renewcommand\listoftables{% - \if@twocolumn - \@restonecoltrue\onecolumn +\ifsuftesi@pocketa + \Margini {1cm}{10cm}{8cm}{1cm} + \Rientro{1cm} \else - \@restonecolfalse - \fi - \chapter*{\listtablename}% - \@mkboth{% - \listtablename}% - {\listtablename}% - \thispagestyle{empty} - \ifsuftesi@twocolumnlot - \begin{multicols}{2} - \@starttoc{lot}% - \end{multicols} - \else - \@starttoc{lot}% +\ifsuftesi@pocketb + \Margini {1cm}{10cm}{8cm}{1cm} + \Rientro{1cm} + \else +\ifsuftesi@pocketc + \Margini {1cm}{10cm}{8cm}{1cm} + \Rientro{1cm} + \else +\fi\fi\fi\fi\fi\fi\fi\fi\fi} +{\relax}}} +\newcommand{\colophon}[3][]{% + \thispagestyle{empty} + \null + \vfill + \def\next{#2} + \ifx\next\@empty\else + \noindent Copyright \copyright{} \the\year~#2\\[1ex] + Tutti i diritti riservati \fi - \if@restonecol\twocolumn\fi - } -\fi -\newcommand{\tocpartname}[1]{\def\SUF@tocpartname{#1}} - \tocpartname{\partname} -\newcommand{\partfont}[1]{\def\SUF@PART@StyleSwitch{#1}} -\newcommand{\chapfont}[1]{\def\SUF@CHAP@StyleSwitch{#1}} -\newcommand{\secfont}[1]{\def\SUF@SEC@StyleSwitch{#1}} -\newcommand{\subsecfont}[1]{\def\SUF@SUBSEC@StyleSwitch{#1}} -\newcommand{\subsubsecfont}[1]{\def\SUF@SUBSUBSEC@StyleSwitch{#1}} -\newcommand{\partnumfont}[1]{\def\SUF@PART@font{#1}}\partnumfont{} -\newcommand{\chapnumfont}[1]{\def\SUF@thechapter{#1}} -\newcommand{\secnumfont}[1]{\def\SUF@thesection{#1}} -\newcommand{\subsecnumfont}[1]{\def\SUF@thesubsection{#1}} -\newcommand{\subsubsecnumfont}[1]{\def\SUF@thesubsubsection{#1}} -\newcommand{\titlefont}[1]{\def\SUF@Tfont@style{#1}\let\SUF@Tfont@shape\relax} -\newcommand{\authorfont}[1]{\def\SUF@Afont@style{#1}\let\SUF@Afont@shape\relax} -\newcommand{\datefont}[1]{\def\SUF@datefont{#1}} -\newcommand{\tocpartfont}[1]{\def\SUF@tocPART@font{#1}} -\newcommand{\tocchapfont}[1]{\def\SUF@tocCHAP@font{#1}} -\newcommand{\tocsecfont}[1]{\def\SUF@tocSEC@font{#1}} -\newcommand{\tocsubsecfont}[1]{\def\SUF@tocSUBSEC@font{#1}} -\newcommand{\tocsubsubsecfont}[1]{\def\SUF@tocSUBSUBSEC@font{#1}} -\newcommand{\tocparfont}[1]{\def\SUF@tocPAR@font{#1}} -\newcommand{\tocsubparfont}[1]{\def\SUF@tocSUBPAR@font{#1}} -\newcommand{\tocpartnumfont}[1]{\def\SUF@tocPARTnum@font{#1}}\tocpartnumfont{} -\newcommand{\tocchapnumfont}[1]{% - \def\SUF@CHAP@thecontentslabel{\begingroup#1\thecontentslabel\endgroup}} -\newcommand{\tocsecnumfont}[1]{% - \def\SUF@SEC@thecontentslabel{\begingroup#1\thecontentslabel\endgroup}} -\newcommand{\tocsubsecnumfont}[1]{% - \def\SUF@SUBSEC@thecontentslabel{\begingroup#1\thecontentslabel\endgroup}} -\newcommand{\tocsubsubsecnumfont}[1]{% - \def\SUF@SUBSUBSEC@thecontentslabel{\begingroup#1\thecontentslabel\endgroup}} -\newcommand{\tocparnumfont}[1]{% - \def\SUF@PAR@thecontentslabel{\begingroup#1\thecontentslabel\endgroup}} -\newcommand{\tocsubparnumfont}[1]{% - \def\SUF@SUBPAR@thecontentslabel{\begingroup#1\thecontentslabel\endgroup}} -\tocparnumfont{} -\tocsubparnumfont{} -\newcommand{\partialtocsize}[1]{% - \def\@partialtocsize{#1}} -\newcommand{\partialtocsecfont}[1]{% - \def\@partialtocsecfont{#1}} -\newcommand{\partialtocsubsecfont}[1]{% - \def\@partialtocsubsecfont{#1}} -\newcommand{\partialtocsubsubsecfont}[1]{% - \def\@partialtocsubsubsecfont{#1}} -\newcommand{\partialtocparfont}[1]{% - \def\@partialtocparfont{#1}} -\newcommand{\partialtocsubparfont}[1]{% - \def\@partialtocsubparfont{#1}} -\newcommand{\partialtocseclabel}[1]{% - \def\@partialtocseclabel{\begingroup#1\thecontentslabel\endgroup}} -\newcommand{\partialtocsubseclabel}[1]{% - \def\@partialtocsubseclabel{\begingroup#1\thecontentslabel\endgroup}} -\newcommand{\partialtocsubsubseclabel}[1]{% - \def\@partialtocsubsubseclabel{\begingroup#1\thecontentslabel\endgroup}} -\newcommand{\partialtocparlabelfont}[1]{% - \def\@partialtocparlabelfont{\begingroup#1\thecontentslabel\endgroup}} -\newcommand{\partialtocsubparlabelfont}[1]{% - \def\@partialtocsubparlabelfont{\begingroup#1\thecontentslabel\endgroup}} -\newcommand{\partialtocbeforespace}[1]{% - \def\@partialtocbeforespace{\vspace*{#1}}} -\newcommand{\partialtocafterspace}[1]{% - \def\@partialtocafterspace{\vspace*{#1}}} -\newcommand{\partialtocbeforecode}[1]{% - \def\@partialtocbeforecode{#1}} -\newcommand{\partialtocaftercode}[1]{% - \def\@partialtocaftercode{#1}} -\partialtocsize{\footnotesize} -\partialtocsecfont{\itshape} -\partialtocsubsecfont{} -\partialtocsubsubsecfont{} -\partialtocparfont{} -\partialtocsubparfont{} -\partialtocseclabel{\itshape} -\partialtocsubseclabel{} -\partialtocsubsubseclabel{} -\partialtocparlabelfont{} -\partialtocsubparlabelfont{} -\partialtocbeforespace{18ex} -\partialtocafterspace{-18ex} -\partialtocbeforecode{} -\partialtocaftercode{} -\ifsuftesi@article -\def\chapterintro{% -\ClassError{suftesi} - {Command \noexpand\chapterintro is undefined\MessageBreak - using 'structure=article'} - {Command \noexpand\chapterintro is undefined\MessageBreak - using 'structure=article'}} + \vfill + {\small\noindent Questo lavoro \`e stato composto con \LaTeX{}% + \def\next{#1} + \ifx\next\@empty\else su #1 + \fi usando la classe \textsf{suftesi} di + Ivan Valbusa\index{Valbusa, Ivan}. #3\par} + \cleardoublepage} +\newcommand{\bookcolophon}[2]{% + \thispagestyle{empty} + \null + \vfill + \noindent #1 + \vfill + {\small\noindent #2\par} + \cleardoublepage} +\newcommand{\artcolophon}[1]{% +\thispagestyle{empty} + \null + \vfill + {\small\noindent #1\par}} +\newcommand{\finalcolophon}[1]{% +\thispagestyle{empty} + \null\vspace*{\stretch{1}} + \begin{center} + \begin{minipage}{.5\textwidth} + \centering\small #1 + \end{minipage} + \end{center} + \vspace*{\stretch{6}}} +\ifsuftesi@FSPL +\newcommand{\FSPLcolophon}[1][\the\year]{% +\begingroup +\thispagestyle{empty} +\null\vspace{\stretch{1}} +\noindent \hskip-.5em\cc #1 \@author% +\vskip1ex + +\small\noindent This work is licensed under the Creative Commons +Attribution-NonCommercial-NoDerivs 3.0 Unported License. +To view a copy of this license, +visit http://creativecom mons.org/licenses/by-nc-nd/3.0/. + +\endgroup + +\begingroup +\footnotesize + +\null\vspace{\stretch{1}} + +\noindent Typeset with \LaTeX{} in collaboration with the Joint Project +\emph{Formal Style for PhD Theses with \LaTeX} (University of Verona, +Italy) using the \textsf{suftesi} class by Ivan Valbusa. The text face +is Palatino, designed by Hermann Zapf. The sans serif font is Iwona by +Janusz M.~Nowacki. + +\endgroup + +\clearpage} \else -\def\chapterintro{\@ifstar{% - \@tempswafalse\@chapterintro}{\@tempswatrue\@chapterintro}} -\def\@chapterintro{\phantomsection - \if@tempswa\section*{\SUF@fchapterintroname}\fi - \addcontentsline{toc}{section}{\SUF@fchapterintroname}} -\newcommand{\chapterintroname}[1]{\def\SUF@fchapterintroname{#1}} -\chapterintroname{Introduzione} +\def\FSPLcolophon{% + \ClassError{suftesi} + {\noexpand\FSPLcolophon is defined\MessageBreak + only for the FSPL styles} + {\noexpand\FSPLcolophon is defined\MessageBreak + only for the FSPL styles}} \fi -\newif\ifbreakintoc\breakintocfalse -\newif\ifbreakinbody\breakinbodytrue -\DeclareRobustCommand{\breakintoc} - {\ifbreakintoc\\\else\fi} -\DeclareRobustCommand{\breakinbody} - {\ifbreakinbody\\\else\fi} -\DeclareRobustCommand{\breakinbodyleft} - {\ifbreakinbody\newline\else\fi} -\let\origtableofcontents\tableofcontents -\renewcommand{\tableofcontents}{% - \begingroup\suftesi@partialtocfalse - \breakintoctrue\breakinbodyfalse% - \origtableofcontents - \endgroup} -\DeclareRobustCommand{\headbreak} - {\ifbreakintoc\\\else\fi} -\DeclareRobustCommand{\xheadbreak} - {\ifbreakinbody\\\else\fi} -\DeclareRobustCommand{\yheadbreak} - {\ifbreakinbody\newline\else\fi} \newenvironment{bibliografia}{% \ifsuftesi@article \section*{\refname} @@ -3378,6 +3333,22 @@ Janusz M.~Nowacki. \let\makelabel\itlabel}} {\endlist} \ifsuftesi@article +\def\chapterintro{% +\ClassError{suftesi} + {Command \noexpand\chapterintro is undefined\MessageBreak + using 'structure=article'} + {Command \noexpand\chapterintro is undefined\MessageBreak + using 'structure=article'}} +\else +\def\chapterintro{\@ifstar{% + \@tempswafalse\@chapterintro}{\@tempswatrue\@chapterintro}} +\def\@chapterintro{\phantomsection + \if@tempswa\section*{\SUF@fchapterintroname}\fi + \addcontentsline{toc}{section}{\SUF@fchapterintroname}} +\newcommand{\chapterintroname}[1]{\def\SUF@fchapterintroname{#1}} +\chapterintroname{Introduzione} +\fi +\ifsuftesi@article \renewcommand\frontmatter{\ClassError{suftesi} {Command \noexpand\frontmatter is undefined\MessageBreak using 'structure=article'} @@ -3404,8 +3375,6 @@ Janusz M.~Nowacki. \let\hemph\emph \unless\ifPDFTeX% if xetex or luatex \let\@afterindenttrue\@afterindentfalse - \else - \relax \fi \frenchspacing \endinput -- cgit v1.2.3