summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/toptesi
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-05-20 21:39:30 +0000
committerKarl Berry <karl@freefriends.org>2020-05-20 21:39:30 +0000
commitd1eeaae011ac8b28bbf550e24bc737dfba489a9d (patch)
tree3f407091d9c35557a27984f7f4eec8a9758507f7 /Master/texmf-dist/tex/latex/toptesi
parent8097fd855c5cca537cf95e306e3d6a4257c85579 (diff)
toptesi (20may20)
git-svn-id: svn://tug.org/texlive/trunk@55220 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/toptesi')
-rw-r--r--Master/texmf-dist/tex/latex/toptesi/topcoman.sty48
-rw-r--r--Master/texmf-dist/tex/latex/toptesi/topfront.sty17
-rw-r--r--Master/texmf-dist/tex/latex/toptesi/toptesi-dottorale.sty3
-rw-r--r--Master/texmf-dist/tex/latex/toptesi/toptesi-magistrale.sty9
-rw-r--r--Master/texmf-dist/tex/latex/toptesi/toptesi-monografia.sty4
-rw-r--r--Master/texmf-dist/tex/latex/toptesi/toptesi-scudo.sty10
-rw-r--r--Master/texmf-dist/tex/latex/toptesi/toptesi-sss.sty4
-rw-r--r--Master/texmf-dist/tex/latex/toptesi/toptesi.cfg1
-rw-r--r--Master/texmf-dist/tex/latex/toptesi/toptesi.cls5
-rw-r--r--Master/texmf-dist/tex/latex/toptesi/toptesi.sty238
10 files changed, 216 insertions, 123 deletions
diff --git a/Master/texmf-dist/tex/latex/toptesi/topcoman.sty b/Master/texmf-dist/tex/latex/toptesi/topcoman.sty
index 5f0f67ffe95..0a529630a62 100644
--- a/Master/texmf-dist/tex/latex/toptesi/topcoman.sty
+++ b/Master/texmf-dist/tex/latex/toptesi/topcoman.sty
@@ -14,11 +14,10 @@
%%
\NeedsTeXFormat{LaTeX2e}[2018/01/01]
\ProvidesPackage{topcoman}[%
-2019-07-26 v.6.3.06
+2020-05-12 v.6.4.02
Additional commands for the TOPtesi bundle]
-
\RequirePackage{iftex}
\ifPDFTeX
\newcommand*\DeclareSlantedCapitalGreekLetters{%
@@ -51,26 +50,33 @@ Additional commands for the TOPtesi bundle]
\fi
\providecommand{\ohm}{\textormath{\textohm}{\mathrm{\Omega}}}
\@ifpackageloaded{toptesi}{%
-\providecommand\ped{}\providecommand\ap{}%
-\renewcommand*{\ped}[1]{\textormath{\textsubscript{#1}}{_{\mathrm{#1}}}}%
-\renewcommand*{\ap}[1]{\textormath{\textsuperscript{#1}}{^{\mathrm{#1}}}}}%
-{\providecommand*{\ped}[1]{\textormath{\textsubscript{#1}}%
- {_{\mathrm{#1}}}}%
-\providecommand*{\ap}[1]{\textormath{\textsuperscript{#1}}%
- {^{\mathrm{#1}}}}}
-\@ifpackageloaded{siunitx}{\def\unit#1{\si{\,#1}}}%
- {\providecommand\unit{}%
- \renewcommand\unit[1]{\ensuremath{{\mathrm{\,#1}}}}%
- }
-\providecommand{\gei}{\ensuremath{\mathop{\mathrm{\mathstrut j}\nolimits}}}
+ \providecommand\ped{}\providecommand\ap{}%
+ \renewcommand*{\ped}[1]{\textormath{\textsubscript{#1}}{_{\mathrm{#1}}}}%
+ \renewcommand*{\ap}[1]{\textormath{\textsuperscript{#1}}{^{\mathrm{#1}}}}%
+ \providecommand\diff{}\renewcommand{\diff}{\mathop{}\!\mathrm{d}}
+}{%
+ \providecommand*{\ped}[1]{\textormath{\textsubscript{#1}}%
+ {_{\mathrm{#1}}}}%
+ \providecommand*{\ap}[1]{\textormath{\textsuperscript{#1}}%
+ {^{\mathrm{#1}}}}%
+}
+\@ifpackageloaded{siunitx}{%
+ \def\unit#1{\si{\,#1}}
+}{%
+ \providecommand\unit{}%
+ \renewcommand\unit[1]{\ensuremath{{\mathrm{\,#1}}}}%
+}
+\providecommand{\gei}{\ensuremath{\mathop{\mathrm{\mathstrut j}}\nolimits}}
\providecommand{\eu}{\ensuremath{\mathop{\mathrm{e}}\nolimits}}
-\providecommand{\micro}{\textormath{\textmu}{%
- \ifPDFTeX
- \ifdefined\muup\muup\else\mbox{\textmu}\fi
- \else
- \mathup{\mu}%
- \fi
-}}
+\providecommand{\micro}{%
+ \textormath{\textmu}{%
+ \ifPDFTeX
+ \ifdefined\muup\muup\else\mbox{\textmu}\fi
+ \else
+ \mathup{\mu}%
+ \fi
+ }%
+}
\providecommand{\gradi}{\textormath{\textdegree}{^\circ}}
\RequirePackage{fancyvrb}
\fvset{fontsize=\small}
diff --git a/Master/texmf-dist/tex/latex/toptesi/topfront.sty b/Master/texmf-dist/tex/latex/toptesi/topfront.sty
index a887b5d027b..f76aa6b7650 100644
--- a/Master/texmf-dist/tex/latex/toptesi/topfront.sty
+++ b/Master/texmf-dist/tex/latex/toptesi/topfront.sty
@@ -14,11 +14,10 @@
%%
\NeedsTeXFormat{LaTeX2e}[2018/01/01]
\ProvidesPackage{topfront}[%
-2019-07-26 v.6.3.06
+2020-05-12 v.6.4.02
Title page for TOPtesi and other classes]
-
\@ifpackageloaded{etoolbox}{}{\RequirePackage{etoolbox}}
\@ifpackageloaded{xspace}{}{\RequirePackage{xspace}}
\@ifpackageloaded{xparse}{}{\RequirePackage{xparse}}
@@ -36,8 +35,8 @@ Title page for TOPtesi and other classes]
\ifcsundef{ifsecondaria}{\newif\ifsecondaria\secondariafalse}{}
\ifcsundef{ifplurale}{\newif\ifplurale\pluralefalse}{}
-\ifcsundef{ifTOPfront}{\newif\ifTOPfront \TOPfronttrue
-\newif\ifevenboxes \evenboxesfalse}{}
+\ifcsundef{ifTOPfront}{\newif\ifTOPfront \TOPfronttrue}{}
+\ifcsundef{ifevenboxes}{\newif\ifevenboxes \evenboxesfalse}{}
\ifcsundef{c@tomo}{\newcounter{tomo}}{}
@@ -113,15 +112,13 @@ Title page for TOPtesi and other classes]
\let\@stitle\empty
-\newcommand*{\titolo}[2][]{%
+\providecommand\titolo{}
+\RenewDocumentCommand\titolo{O{#2} m}{%
\ifbool{triennale}{%
\PackageWarning{topfront}{Il titolo deve essere impostato con
il comando \string\monografia}
}{%
-\def\@tempA{#1}\ifdefempty{\@tempA}%
- {\gdef\@stitle{#2}}{\gdef\@stitle{#1}}%
- \gdef\@titolo{#2}%
- }%
+ \gdef\@stitle{#1}}\gdef\@titolo{#2}%
}
\def\sottotitolo#1{\gdef\@subtitle{#1}}
\let\@materia\empty
@@ -170,7 +167,7 @@ Title page for TOPtesi and other classes]
\def\annoaccademico#1{\ifclassica
\def\@submitdate{{\large\textsc{\AnnoAccademico}} {\Large\s@tanno#1!}}
\else
- \PackageWarning{toptesi}{\string\annoaccademico\space
+ \PackageWarning{topfront}{\string\annoaccademico\space
is usable only when the\MessageBreak
`classica' option is in force}%
\def\@submitdate{\AnnoAccademico\ #1 --- Needs the `classica' option}
diff --git a/Master/texmf-dist/tex/latex/toptesi/toptesi-dottorale.sty b/Master/texmf-dist/tex/latex/toptesi/toptesi-dottorale.sty
index e78ddf3ee29..d2ef2d9d0ca 100644
--- a/Master/texmf-dist/tex/latex/toptesi/toptesi-dottorale.sty
+++ b/Master/texmf-dist/tex/latex/toptesi/toptesi-dottorale.sty
@@ -13,11 +13,10 @@
%% License information appended
%%
\ProvidesPackage{toptesi-dottorale}[%
-2019-07-26 v.6.3.06
+2020-05-12 v.6.4.02
Ph.D. degree title page]
-
\@ifpackageloaded{etoolbox}{}{\RequirePackage{etoolbox}}
\@ifpackageloaded{xspace}{}{\RequirePackage{xspace}}
\@ifpackageloaded{xparse}{}{\RequirePackage{xparse}}
diff --git a/Master/texmf-dist/tex/latex/toptesi/toptesi-magistrale.sty b/Master/texmf-dist/tex/latex/toptesi/toptesi-magistrale.sty
index c2a80c3dfe6..4bb0f36d0d0 100644
--- a/Master/texmf-dist/tex/latex/toptesi/toptesi-magistrale.sty
+++ b/Master/texmf-dist/tex/latex/toptesi/toptesi-magistrale.sty
@@ -14,7 +14,7 @@
%%
\NeedsTeXFormat{LaTeX2e}[2018/01/01]
\ProvidesPackage{toptesi-magistrale}[%
-2019-07-26 v.6.3.06
+2020-05-12 v.6.4.02
Master degree title page]
@@ -112,10 +112,9 @@ Master degree title page]
\let\@stitle\empty % default short title string
-\newcommand*{\titolo}[2][]{%
-\ifstrequal{#1}{}%
- {\gdef\@stitle{#2}}{\gdef\@stitle{#1}}%
- \gdef\@titolo{#2}%
+\providecommand\titolo{}
+\RenewDocumentCommand{\titolo}{O{#2} m}{%
+ \gdef\@stitle{#1}\gdef\@titolo{#2}%
}%
\def\sottotitolo#1{\gdef\@subtitle{#1}}
diff --git a/Master/texmf-dist/tex/latex/toptesi/toptesi-monografia.sty b/Master/texmf-dist/tex/latex/toptesi/toptesi-monografia.sty
index 758f91de3b5..9d3e9cca71f 100644
--- a/Master/texmf-dist/tex/latex/toptesi/toptesi-monografia.sty
+++ b/Master/texmf-dist/tex/latex/toptesi/toptesi-monografia.sty
@@ -14,11 +14,10 @@
%%
\NeedsTeXFormat{LaTeX2e}[2018/01/01]
\ProvidesPackage{toptesi-monografia}[%
-2019-07-26 v.6.3.06
+2020-05-12 v.6.4.02
Bachelor degree title page]
-
\monografiatrue
\@ifpackageloaded{etoolbox}{}{\RequirePackage{etoolbox}}
\@ifpackageloaded{xparse}{}{\RequirePackage{xparse}}
@@ -141,6 +140,7 @@ Bachelor degree title page]
\newcommand\StrutturaDi[1]{\gdef\@strutturadi{#1\unskip\xspace}}
\newcommand\struttura[2][]{\gdef\@struttura{\ifempty{#1}{}{#1 }%
\@strutturadi #2}}
+\let\FacoltaDi\StrutturaDi \let\facolta\struttura
\ifcsundef{TPT@logospace}{\newlength{\TPT@logospace}\TPT@logospace=3em}{}
\ifcsundef{TPT@logobox}{\newsavebox{\TPT@logobox}}{}
\ifcsundef{TPT@logoheight}{\newdimen\TPT@logoheight}{}
diff --git a/Master/texmf-dist/tex/latex/toptesi/toptesi-scudo.sty b/Master/texmf-dist/tex/latex/toptesi/toptesi-scudo.sty
index 82a0bb784c5..49990142fba 100644
--- a/Master/texmf-dist/tex/latex/toptesi/toptesi-scudo.sty
+++ b/Master/texmf-dist/tex/latex/toptesi/toptesi-scudo.sty
@@ -14,11 +14,10 @@
%%
\NeedsTeXFormat{LaTeX2e}[2018/01/01]
\ProvidesPackage{toptesi-scudo}[%
-2019-07-26 v.6.3.06
+2020-05-12 v.6.4.02
Extension for ScuDo theses]
-
\ScuDotrue
\ifPDFTeX
\RequirePackage{amsmath,amssymb,amsthm}
@@ -28,9 +27,10 @@ Extension for ScuDo theses]
\fi
\AtBeginDocument{%
\providecommand\diff{}\renewcommand{\diff}{\mathop{}\!\mathrm{d}}
-\providecommand{\gei}{\ensuremath{\mathop{\mathrm{\mathstrut j}}\nolimits}}
+\providecommand{\iu}{\ensuremath{\mathop{\mathrm{\mathstrut i}}\nolimits}}
+\providecommand{\ju}{\ensuremath{\mathop{\mathrm{\mathstrut j}}\nolimits}}
\providecommand{\eu}{\ensuremath{\mathop{\mathrm{e}}\nolimits}}
-\let\iu\gei}
+\let\gei\ju}
\ifcsundef{ifmybibstyle}{\newif\ifmybibstyle\mybibstylefalse}{}
\DeclareOption{mybibliostyle}{\mybibstyletrue}
@@ -39,7 +39,7 @@ Extension for ScuDo theses]
\@ifpackageloaded{xparse}{}{%
\RequirePackage{xparse}}% Command and environment advanced definitions
\RequirePackage{lscape} % Supports landscape Layout
-\RequirePackage{setspace} % Define line spacing in paragraph. Don't use!
+\RequirePackage{setspace} % Define line spacing in paragraph. Don't use it!
\RequirePackage{calc} % Calculation macros
\RequirePackage{ifthen} % Conditional statements
\RequirePackage{caption} % Configure captions
diff --git a/Master/texmf-dist/tex/latex/toptesi/toptesi-sss.sty b/Master/texmf-dist/tex/latex/toptesi/toptesi-sss.sty
index 7d69e495574..a84728d5ae7 100644
--- a/Master/texmf-dist/tex/latex/toptesi/toptesi-sss.sty
+++ b/Master/texmf-dist/tex/latex/toptesi/toptesi-sss.sty
@@ -14,11 +14,10 @@
%%
\NeedsTeXFormat{LaTeX2e}[2018/01/01]
\ProvidesPackage{toptesi-sss}[%
-2019-07-26 v.6.3.06
+2020-05-12 v.6.4.02
High school title page]
-
%%
%%%% Math fonts and AMS extensions (|fontspec| is already loaded)
\secondariatrue
@@ -40,7 +39,6 @@ High school title page]
\RequirePackage{ifthen} % Conditional statements
\RequirePackage{booktabs} % professional rules in tables
\RequirePackage{multirow} % Multirow table cells are not professional
-\RequirePackage[autostyle]{csquotes} % necessary for biblatex
\ifPDFTeX \RequirePackage{indentfirst}\fi
\raggedbottom
\providecommand*\@SSSLogo{}
diff --git a/Master/texmf-dist/tex/latex/toptesi/toptesi.cfg b/Master/texmf-dist/tex/latex/toptesi/toptesi.cfg
index f27bf238c94..6390df1f2af 100644
--- a/Master/texmf-dist/tex/latex/toptesi/toptesi.cfg
+++ b/Master/texmf-dist/tex/latex/toptesi/toptesi.cfg
@@ -14,7 +14,6 @@
%%
-
%%
%%================================================================
%% This file is the only file of the TOPtesi bundle that the user
diff --git a/Master/texmf-dist/tex/latex/toptesi/toptesi.cls b/Master/texmf-dist/tex/latex/toptesi/toptesi.cls
index 53b7ca0295b..8b16b8d7050 100644
--- a/Master/texmf-dist/tex/latex/toptesi/toptesi.cls
+++ b/Master/texmf-dist/tex/latex/toptesi/toptesi.cls
@@ -14,11 +14,11 @@
%%
\NeedsTeXFormat{LaTeX2e}[2018/01/01]
\ProvidesClass{toptesi}[%
-2019-07-26 v.6.3.06
+2020-05-12 v.6.4.02
Class for typesetting university theses]
-
+\RequirePackage{fancyvrb}
\usepackage{trace}
\RequirePackage{xkeyval}
\DeclareOptionX{formato}[a4paper]{\PassOptionsToClass{#1}{report}}
@@ -41,7 +41,6 @@ Class for typesetting university theses]
\expandafter\@firstoftwo\else
\expandafter\@secondoftwo\fi}
\fi
-\RequirePackage{filecontents}
\providecommand\GetFileInfo[1]{%
\def\filename{#1}%
\def\@tempb##1 v.##2 ##3\relax##4\relax{%
diff --git a/Master/texmf-dist/tex/latex/toptesi/toptesi.sty b/Master/texmf-dist/tex/latex/toptesi/toptesi.sty
index d555c989524..b495f33db69 100644
--- a/Master/texmf-dist/tex/latex/toptesi/toptesi.sty
+++ b/Master/texmf-dist/tex/latex/toptesi/toptesi.sty
@@ -14,11 +14,10 @@
%%
\NeedsTeXFormat{LaTeX2e}[2018/01/01]
\ProvidesPackage{toptesi}[%
-2019-07-26 v.6.3.06
+2020-05-12 v.6.4.02
Extension for toptesi.cls]
-
\def\TRON{\tracingcommands \tw@ \tracingmacros \tw@}
\def\TROFF{\tracingcommands\z@ \tracingmacros \z@}
\let\TROF\TROFF
@@ -37,6 +36,9 @@ Extension for toptesi.cls]
\newif\ifsecondaria\secondariafalse
\newif\ifcustom\customfalse
\newif\ifTOPnumerazioneromana\TOPnumerazioneromanafalse
+\newif\ifTOPnocenterfolio \TOPnocenterfoliofalse
+\newif\ifTOPnocenterhead \TOPnocenterheadfalse
+\newif\ifTOPfolioinhead \TOPfolioinheadfalse
\newlength\T@Pbinding
\def\setbindingcorrection#1{\T@Pbinding=#1}
\newif\if@binding \@bindingfalse
@@ -68,6 +70,11 @@ Extension for toptesi.cls]
\fi}
\DeclareOptionX{autoretitolo}[true]{\ifclassica\@utoretitolotrue\fi}
\DeclareOptionX{oldstyle}[true]{\ifclassica\@ldstyletrue\fi}
+\DeclareOptionX{nocenterfolio}[true]%
+ {\unless\ifclassica\TOPnocenterfoliotrue\fi}
+\DeclareOptionX{nocenterhead}[true]%
+ {\unless\ifclassica\TOPnocenterheadtrue\fi}
+\DeclareOptionX{folioinhead}[true]{\unless\ifclassica\TOPfolioinheadtrue\fi}
\DeclareOptionX{pdfa}{\PackageWarning{toptesi}{%
***********************************************\MessageBreak%
Option pdfa ignored.\MessageBreak%
@@ -169,37 +176,122 @@ Extension for toptesi.cls]
\mark{{}{}}
\newbox\@intesta
\def\ps@plain{\let\@mkboth\@gobbletwo
-\def\@oddfoot{\null\hfill {\scshape\lapagina}\hfill \null}\def\@oddhead{}
-\def\@evenhead{}\let\@evenfoot\@oddfoot}
+\let\@oddhead\@empty\let\@evenhead\@empty%
\if@twoside
- \def\ps@headings{\let\@mkboth\markboth% autoretitolo
- \def\@oddfoot{\null\hfill {\scshape\lapagina} \hfill\null}
- \let\@evenfoot\@oddfoot
- %
- \def\@evenhead{\setbox\@intesta\hbox{\footnotesize\slshape
- \leftmark}%
+ \ifTOPnocenterfolio
+ \def\@oddfoot{\makebox[\textwidth][r]{\scshape\lapagina}}
+ \def\@evenfoot{\makebox[\textwidth][l]{\scshape\lapagina}}
+ \else
+ \def\@oddfoot{\makebox[\textwidth][c]{\scshape\lapagina}}%
+ \def\@evenfoot{\makebox[\textwidth][c]{\scshape\lapagina}}%
+ \fi
+\else
+ \ifTOPnocenterfolio
+ \def\@oddfoot{\makebox[\textwidth][r]{\scshape\lapagina}}%
+ \let\@evenfoot\@oddfoot
+ \else
+ \def\@oddfoot{\makebox[\textwidth][c]{\scshape\lapagina}}%
+ \let\@evenfoot\@oddfoot
+ \fi
+\fi
+}
+
+\if@twoside % two side
+ \def\ps@headings{%
+ \let\@mkboth\markboth\let\@oddhead\@empty\let\@evenhead\@empty
+ \unless\ifTOPfolioinhead % folio in head
+ \ifTOPnocenterfolio
+ \def\@oddfoot{\makebox[\textwidth][r]{\scshape\lapagina}}
+ \def\@evenfoot{\makebox[\textwidth][l]{\scshape\lapagina}}
+ \else
+ \def\@oddfoot{\makebox[\textwidth][c]{\scshape\lapagina}}
+ \def\@evenfoot{\makebox[\textwidth][c]{\scshape\lapagina}}
+ \fi
+ \def\@oddhead{\setbox\@intesta\hbox{\footnotesize\slshape
+ \rightmark}%
\ifdim\wd\@intesta>\textwidth \headWarn{\chapter}\fi%
- \underline{\makebox[\textwidth]{\footnotesize\slshape
- \strut\leftmark}}}%
+ \ifTOPnocenterhead
+ \underline{\makebox[\textwidth][r]{\footnotesize\slshape
+ \strut\rightmark}}%
+ \else
+ \underline{\makebox[\textwidth][c]{\footnotesize\slshape
+ \strut\rightmark}}%
+ \fi}%
+ \def\@evenhead{\setbox\@intesta\hbox{\footnotesize\slshape
+ \rightmark}%
+ \ifdim\wd\@intesta>\textwidth \headWarn{\section}\fi%
+ \ifTOPnocenterhead
+ \underline{\makebox[\textwidth][r]{\footnotesize\slshape
+ \strut\leftmark}}%
+ \else
+ \underline{\makebox[\textwidth][c]{\footnotesize\slshape
+ \strut\leftmark}}%
+ \fi}%
+ \else % folio in foot
+ \let\@oddfoot\@empty\let\@evenfoot\@empty
\def\@oddhead{\setbox\@intesta\hbox{\footnotesize\slshape
\rightmark}%
\ifdim\wd\@intesta>\textwidth \headWarn{\section}\fi%
- \underline{\makebox[\textwidth]{\footnotesize\slshape
- \strut\rightmark}}}%
- \def\chaptermark##1{%
- \markboth{\thechapter\ -- ##1}{\thechapter\ -- ##1}}
- \def\sectionmark##1{\markright{\ifnum\c@secnumdepth>\z@
- \thesection\ -- \fi ##1}}}
-\else
- \def\ps@headings{\let\@mkboth\markboth
- \def\@oddfoot{\null\hfill {\scshape\lapagina} \hfill\null}
- \def\@evenfoot{}
+ \ifTOPnocenterhead
+ \underline{\makebox[\textwidth][r]{\footnotesize\slshape
+ \strut\rightmark}}\rlap{\quad\scshape\lapagina}%
+ \else
+ \underline{\makebox[\textwidth][c]{\footnotesize\slshape
+ \strut\rightmark}}\rlap{\quad\scshape\lapagina}%
+ \fi}
+ \def\@evenhead{\setbox\@intesta\hbox{\footnotesize\slshape
+ \rightmark}%
+ \ifdim\wd\@intesta>\textwidth \headWarn{\chapter}\fi%
+ \ifTOPnocenterhead
+ \underline{\llap{\scshape\lapagina\quad}%
+ \makebox[\textwidth][l]{\footnotesize\slshape\strut\rightmark}}%
+ \else
+ \underline{\llap{\scshape\lapagina\quad}%
+ \makebox[\textwidth][c]{\footnotesize\slshape\strut\rightmark}}%
+ \fi}
+ \fi
+ \def\chaptermark##1{\markboth{\thechapter\ -- ##1}{\thechapter\ -- ##1}}
+ \def\sectionmark##1{\markright{\ifnum\c@secnumdepth>\z@
+ \thesection\ -- \fi ##1}}%
+ }
+\else% oneside
+ \def\ps@headings{%
+ \let\@mkboth\markboth\let\@oddhead\@empty\let\@evenhead\@empty
+ \let\@oddfoot\@empty\let\@evenfoot\@empty
+ \def\@evenfoot{}\def\@evenhead{}%
+ \unless\ifTOPfolioinhead % folio in head
+ \ifTOPnocenterfolio
+ \def\@oddfoot{\makebox[\textwidth][r]{\scshape\lapagina}}
+ \else
+ \def\@oddfoot{\makebox[\textwidth][c]{\scshape\lapagina}}
+ \fi
+ \def\@oddhead{%
+ \setbox\@intesta\hbox{\footnotesize\slshape
+ \rightmark}%
+ \ifdim\wd\@intesta>\textwidth \headWarn{\chapter}\fi%
+ \ifTOPnocenterhead
+ \underline{\makebox[\textwidth][r]{\footnotesize\slshape
+ \strut\rightmark}}%
+ \else
+ \underline{\makebox[\textwidth][c]{\footnotesize\slshape
+ \strut\rightmark}}%
+ \fi
+ }%
+ \else % folio in foot
+ \let\@oddfoot\@empty\let\@evenfoot\@empty
\def\@oddhead{\setbox\@intesta\hbox{\footnotesize\slshape
\rightmark}%
\ifdim\wd\@intesta>\textwidth \headWarn{\chapter}\fi%
- \underline{\makebox[\textwidth]{\footnotesize\slshape
- \strut\rightmark}}}%
- \def\chaptermark##1{\markright{\thechapter\ -- ##1}}}
+ \ifTOPnocenterhead
+ \underline{\makebox[\textwidth][r]{\footnotesize\slshape
+ \strut\rightmark}}\makebox[\z@][l]{\enspace\scshape\lapagina}%
+ \else
+ \underline{\makebox[\textwidth][c]{\footnotesize\slshape
+ \strut\rightmark}}\makebox[\z@][l]{\enspace\scshape\lapagina}%
+ \fi}
+ \fi
+ \def\chaptermark##1{\markright{\thechapter\ -- ##1}}%
+ }
\fi
\def\headWarn#1{\PackageWarning{toptesi}{%
@@ -270,6 +362,8 @@ Extension for toptesi.cls]
\iffrontmatter\else\frontmattertrue\fi
\chapter*{\acknowledgename}}
\let\acknowledgements\ringraziamenti
+\newenvironment{pdfxmetadata}{%
+\VerbatimOut{\jobname.xmpdata}}{\endVerbatimOut}
\RenewDocumentCommand{\chapter}
{s O{#4} O{#2} m O{plain}}{%
\if@openright\cleardoublepage
@@ -311,6 +405,9 @@ Extension for toptesi.cls]
\@afterheading
\fi
}
+\RenewDocumentCommand\part{s O{#3} m}{\iffrontmatter\mainmatter\fi
+\if@openright \cleardoublepage \else \clearpage \fi
+\thispagestyle{plain}\if@twocolumn \onecolumn \@tempswatrue \else \@tempswafalse \fi \null \vfil \IfBooleanTF{#1}{\@spart{#3}}{\@part[#2]{#3}}}
\def\@part[#1]#2{\iffrontmatter\mainmatter\fi
\ifnum \c@secnumdepth >-2\relax
\refstepcounter{part}%
@@ -329,7 +426,6 @@ Extension for toptesi.cls]
\fi
\Huge \bfseries #2\par}%
\@endpart}
-
\renewcommand\tableofcontents{%
\chapter*{\contentsname}%
\@starttoc{toc}%
@@ -356,7 +452,7 @@ Extension for toptesi.cls]
\clearpage
\if@restonecol\twocolumn\fi
}
-\def\indici{% If headings are desired, the pagestyle must be set in advance
+\def\indici{% If headings are desired, the page style must be set in advance
\iffrontmatter\else\frontmattertrue\fi
\tableofcontents
\iftablespage
@@ -684,51 +780,51 @@ Skipping any redefinition\MessageBreak}%
\fi
}
\if@utoretitolo
- \if@twoside
- \renewcommand*{\ps@headings}{\let\@mkboth\markboth%
- \def\@oddfoot{\null \hfill \textbf{\lapagina} \hfill \null}%
- \let\@evenfoot\@oddfoot
- \def\@evenhead{%
- \setbox\@intesta\hbox{\ifPDFTeX\latintext\fi
- \footnotesize\strut\textsc{%
- \@@author\ifcsvoid{@secondauthor}{\ et al.}: \@stitle}%
- }%
- \ifdim\wd\@intesta>\textwidth\headwrn{\titolo}\fi
- \underline{\makebox[\textwidth]{\box\@intesta}}}%
- \def\@oddhead{\ifPDFTeX\latintext\fi
- \setbox\@intesta\hbox{%
- \footnotesize\strut\textsl{\rightmark}}%
- \ifdim\wd\@intesta>\textwidth \headWarn{\section}\fi%
- \underline{\makebox[\textwidth]{\box\@intesta}}}%
- \def\chaptermark##1{\markright{\thechapter\ -- ##1}}%
- \def\sectionmark##1{}}%
- \else
- \renewcommand*{\ps@headings}{\let\@mkboth\markboth
- \def\@oddfoot{\null \hfill \textbf{\lapagina}\hfill \null}%
- \let\@evenfoot\empty\let\@evenhead\empty
- \def\@oddhead{{\setbox\z@\hbox{\ifPDFTeX\latintext\fi
- \footnotesize\textsc{%
- \@@author\ifcsvoid{@secondauthor}{}{\ et al.}: \@stitle}}%
- \setbox\tw@\hbox{\ifPDFTeX\latintext\fi
- \footnotesize\textsl{\rightmark}}%
- \dimen@=\dimexpr2em + \wd\z@ + \wd\tw@\relax
- \ifdim\dimen@<\textwidth \relax
- \else
- \setbox\z@\vbox{\hsize.48\textwidth\parindent\z@
- \raggedright
- \ifPDFTeX\latintext\fi\footnotesize\textsc{%
- \@@author\ifcsvoid{@secondauthor}{}{\ et al.}: \@stitle
- }}%
- \setbox\tw@\vbox{\hsize.48\textwidth\parindent\z@
- \raggedleft
- \ifPDFTeX\latintext\fi\footnotesize
- \textsl{\rightmark}}%
- \fi
- \setbox\@intesta\vbox to\z@{%
- \vss\hbox to\textwidth{\strut\box\z@\hfill\box\tw@}}%
- \underline{\box\@intesta}}}%
- \def\chaptermark##1{\markright{\thechapter\ -- ##1}}}
+ \if@twoside
+ \renewcommand*{\ps@headings}{\let\@mkboth\markboth%
+ \def\@oddfoot{\null \hfill \textbf{\lapagina} \hfill \null}%
+ \let\@evenfoot\@oddfoot
+ \def\@evenhead{%
+ \setbox\@intesta\hbox{\ifPDFTeX\latintext\fi
+ \footnotesize\strut\textsc{%
+ \@@author\ifcsvoid{@secondauthor}{\ et al.}: \@stitle}%
+ }%
+ \ifdim\wd\@intesta>\textwidth\headwrn{\titolo}\fi
+ \underline{\makebox[\textwidth]{\box\@intesta}}}%
+ \def\@oddhead{\ifPDFTeX\latintext\fi
+ \setbox\@intesta\hbox{%
+ \footnotesize\strut\textsl{\rightmark}}%
+ \ifdim\wd\@intesta>\textwidth \headWarn{\section}\fi%
+ \underline{\makebox[\textwidth]{\box\@intesta}}}%
+ \def\chaptermark##1{\markright{\thechapter\ -- ##1}}%
+ \def\sectionmark##1{}}%
+ \else
+ \renewcommand*{\ps@headings}{\let\@mkboth\markboth
+ \def\@oddfoot{\null \hfill \textbf{\lapagina}\hfill \null}%
+ \let\@evenfoot\empty\let\@evenhead\empty
+ \def\@oddhead{{\setbox\z@\hbox{\ifPDFTeX\latintext\fi
+ \footnotesize\textsc{%
+ \@@author\ifcsvoid{@secondauthor}{}{\ et al.}: \@stitle}}%
+ \setbox\tw@\hbox{\ifPDFTeX\latintext\fi
+ \footnotesize\textsl{\rightmark}}%
+ \dimen@=\dimexpr2em + \wd\z@ + \wd\tw@\relax
+ \unless\ifdim\dimen@<\textwidth
+ \setbox\z@\vbox{\hsize.48\textwidth\parindent\z@
+ \raggedright
+ \ifPDFTeX\latintext\fi
+ \footnotesize\textsc{%
+ \@@author\ifcsvoid{@secondauthor}{}{\ et al.}: \@stitle
+ }}%
+ \setbox\tw@\vbox{\hsize.48\textwidth\parindent\z@
+ \raggedleft
+ \ifPDFTeX\latintext\fi\footnotesize
+ \textsl{\rightmark}}%
\fi
+ \setbox\@intesta\vbox to\z@{%
+ \vss\hbox to\textwidth{\strut\box\z@\hfill\box\tw@}}%
+ \underline{\box\@intesta}}}%
+ \def\chaptermark##1{\markright{\thechapter\ -- ##1}}}
+ \fi
\fi
\renewcommand\footnoterule{%
\kern-6\p@