diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/toptesi/toptesi.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/toptesi/toptesi.sty | 132 |
1 files changed, 125 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/latex/toptesi/toptesi.sty b/Master/texmf-dist/tex/latex/toptesi/toptesi.sty index 2351c8144a6..cb92cff2b75 100644 --- a/Master/texmf-dist/tex/latex/toptesi/toptesi.sty +++ b/Master/texmf-dist/tex/latex/toptesi/toptesi.sty @@ -30,19 +30,25 @@ \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{toptesi}% -[2011/04/11 v.5.04 Extension for toptesi.cls]% +[2011/05/11 v.5.05 Extension for toptesi.cls]% \def\TRON{\tracingcommands \tw@ \tracingmacros \tw@} \def\TROFF{\tracingcommands\z@ \tracingmacros \z@} \let\TROF\TROFF +\newif\if@utoretitolo \@utoretitolofalse +\newif\if@ldstyle \@ldstylefalse + \newlength\T@Pbinding\setlength\T@Pbinding{7mm}\def\setbindingcorrection#1{\T@Pbinding=#1} \newif\if@binding \@bindingfalse \newif\ifT@Ppdfa \T@Ppdfafalse \newif\ifchapterbibliography \chapterbibliographyfalse +\newif\ifclassica \classicafalse \DeclareOption{cucitura}{\@bindingtrue} \DeclareOption{14pt}{\input{topsiz14.clo}} \DeclareOption{chapterbib}{\chapterbibliographytrue} -\DeclareOption{trieste}{\AtEndOfPackage{\RequirePackage{trieste}}} -\DeclareOption{classica}{\AtEndOfPackage{\RequirePackage{trieste}}} +\DeclareOption{trieste}{\classicatrue} +\DeclareOption{classica}{\classicatrue} +\DeclareOption{autoretitolo}{\ifclassica\@utoretitolotrue\fi} +\DeclareOption{oldstyle}{\ifclassica\@ldstyletrue\fi} \DeclareOption{pdfa}{\T@Ppdfatrue} \ProcessOptions\relax \RequirePackage{graphicx} @@ -69,7 +75,6 @@ \advance\oddsidemargin \T@Pbinding \advance\evensidemargin -\T@Pbinding \advance\marginparwidth -\T@Pbinding - \advance\marginparwidth -\T@Pbinding \fi} \def\lapagina{\thepage} \mark{{}{}} @@ -327,6 +332,119 @@ Skipping any redefinition\MessageBreak}% \RequirePackage{topfront} \RequirePackage{topcoman} \def\sf@size{7} +\ifclassica +\def\Candidato{Laureando} +\def\Candidata{Laureanda} +\def\Candidati{Laureandi} +\def\Candidate{Laureande} +\fi +\newcounter{tomo} +\newcommand*{\tomo}{\clearpage\stepcounter{tomo}\frontespizio} +\renewcommand*{\lapagina}{% + \ifnumeriromani + \thepage + \else + \if@ldstyle + \expandafter\oldstylenums\expandafter{\thepage}% + \else + \thepage + \fi + \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{\latintext + \footnotesize\strut\textsc{% + \@author\ifx\@secondauthor\empty\else\ et al.\fi: \@stitle}% + }% + \ifdim\wd\@intesta>\textwidth\headwrn{\titolo}\fi + \underline{\makebox[\textwidth]{\box\@intesta}}}% + \def\@oddhead{\latintext + \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{\latintext\footnotesize + \textsc{% + \@author\ifx\@secondauthor\empty\else\ et al.\fi: \@stitle}}% + \setbox\tw@\hbox{\latintext\footnotesize\textsl{\rightmark}}% + \dimen@=2em\advance\dimen@\wd\z@\advance\dimen@\wd\tw@ + \ifdim\dimen@<\textwidth \relax + \else + \setbox\z@\vbox{\hsize.48\textwidth\parindent\z@\raggedright + \latintext\footnotesize\textsc{% + \@author\ifx\@secondauthor\empty\else\ et al.\fi: \@stitle + }}% + \setbox\tw@\vbox{\hsize.48\textwidth\parindent\z@\raggedleft + \latintext\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 +\newcommand*\NomeAnnoAccademico[1]{\gdef\AnnoAccademico{#1}} +\@ifundefined{AnnoAccademico}{\gdef\AnnoAccademico{Anno accademico}}{} +\def\annoaccademico#1{\ifclassica + \def\@submitdate{{\large\textsc{\AnnoAccademico}} {\Large\s@tanno#1!}} + \else + \PackageWarning{toptesi}{\string\annoaccademico\space is usable only + when the\MessageBreak + `classica' option is in force}% + \def\@submitdate{\AnnoAccademico\ #1 --- Needs `classica' option} + \fi} +\def\s@tanno#1-#2!{\oldstylenums{#1\EnDash#2}} + +\def\EnDash{{\settowidth{\dimen@}{\large\sc I}% +\setbox\tw@\hbox{2}\dimen\tw@.5\ht\tw@\advance\dimen\tw@-.5\dp\tw@ +\dimen4\dimen\tw@\advance\dimen4by.0385ex\relax +\advance\dimen\tw@-.0385ex\relax +\makebox[1.5\dimen@]{% + \vrule\@width\dimen@\@height\dimen4\@depth-\dimen\tw@}}} +\renewcommand\footnoterule{% + \kern-6\p@ + \hrule\@width.4\columnwidth + \kern5.6\p@} +\setlength\footnotesep{12\p@} +\setlength{\skip\footins}{24\p@ \@plus 4\p@ \@minus 2\p@} +\DeclareMathSymbol{*}{\mathalpha}{symbols}{"03} +\newcommand*\nota[1][*]{% + \xdef\@thefnmark{\ensuremath{\m@th#1}}\@footnotemark\@footnotetext +} +\newcommand*{\NoteWhiteLine}{\par\vspace*{-.3\baselineskip}} +\newcommand*\paginavuota{\clearpage\thispagestyle{empty}\null\clearpage} +\newenvironment{dedica}{\clearpage + \if@twoside + \ifodd\c@page\else\thispagestyle{empty}\null\clearpage\fi + \fi + \thispagestyle{empty}% + \list{}{\labelwidth\z@ + \leftmargin.5\textwidth + \parindent\z@ + \raggedright\LARGE\itshape}\item[] +}{% + \endlist\clearpage +} +\newenvironment{citazioni}{% + \clearpage\thispagestyle{empty} + \list{}{\labelwidth\z@ + \leftmargin.5\textwidth + \parindent\z@ + \raggedright}\item[] +}{% + \endlist\clearpage +} \renewcommand*\not{\mathrel{\mathchoice% {\rlap{$\displaystyle\mkern2.5mu\mathnormal{/}$}}% {\rlap{$\textstyle\mkern2.5mu\mathnormal{/}$}}% @@ -349,7 +467,7 @@ Skipping any redefinition\MessageBreak}% }} \ifT@Ppdfa\RequirePackage[a-1b]{pdfx}\fi %% -%% Copyright 2005-2010 Claudio Beccari +%% Copyright 2005-2011 Claudio Beccari %% %% Distributable under the LaTeX Project Public License, %% version 1.3c or higher (your choice). The latest version of @@ -361,13 +479,13 @@ Skipping any redefinition\MessageBreak}% %% and the derived files: %% %% toptesi.cls, toptesi.sty, topfront.sty, topcommand.sty, topsize14, -%% trieste.sty, toptesi.cfg, and the English documentation toptesi.pdf; +%% toptesi.cfg, and the English documentation toptesi.pdf; %% %% Furthermore the bundle contains the documentation source file toptesi-doc.tex %% and the derived file toptesi-doc.pdf. %% %% The toptesi-example.tex source file is just an example that shows how -%% to use the various commands; by commenting or decommenting certain +%% to use the various commands; by commenting or uncommenting certain %% source lines it is possible to typeset different kind of theses and their %% frontpages. %% |