diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/toptesi/toptesi.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/toptesi/toptesi.sty | 108 |
1 files changed, 69 insertions, 39 deletions
diff --git a/Master/texmf-dist/tex/latex/toptesi/toptesi.sty b/Master/texmf-dist/tex/latex/toptesi/toptesi.sty index a727632b4a1..8f27454d7cf 100644 --- a/Master/texmf-dist/tex/latex/toptesi/toptesi.sty +++ b/Master/texmf-dist/tex/latex/toptesi/toptesi.sty @@ -7,7 +7,7 @@ %% toptesi.dtx (with options: `topsty') %% ______________________________________________________ %% The TOPtesi package -%% Copyright (C) 2010 Claudio Beccari +%% Copyright (C) 2011 Claudio Beccari %% All rights reserved %% %% License information appended @@ -27,17 +27,17 @@ %% Right bracket \] Circumflex \^ Underscore \_ %% Grave accent \` Left brace \{ Vertical bar \| %% Right brace \} Tilde \~} - \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{toptesi}% -[2011/05/25 v.5.50 Extension for toptesi.cls]% +[2011/08/09 v.5.59 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 \newif\if@xivpt \@xivptfalse -\newlength\T@Pbinding\setlength\T@Pbinding{7mm}\def\setbindingcorrection#1{\T@Pbinding=#1} +\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 @@ -81,11 +81,11 @@ \mark{{}{}} \newbox\@intesta \def\ps@plain{\let\@mkboth\@gobbletwo -\def\@oddfoot{\null\hfill \textsc{\lapagina}\hfill \null}\def\@oddhead{} +\def\@oddfoot{\null\hfill {\scshape\lapagina}\hfill \null}\def\@oddhead{} \def\@evenhead{}\let\@evenfoot\@oddfoot} \if@twoside \def\ps@headings{\let\@mkboth\markboth% - \def\@oddfoot{\null\hfill \textsc{\lapagina} \hfill\null} + \def\@oddfoot{\null\hfill {\scshape\lapagina} \hfill\null} \let\@evenfoot\@oddfoot % \def\@evenhead{\setbox\@intesta\hbox{\footnotesize\slshape @@ -103,7 +103,7 @@ \thesection\ -- \fi ##1}}} \else \def\ps@headings{\let\@mkboth\markboth - \def\@oddfoot{\null \hfill \textsc{\lapagina} \hfill \null} + \def\@oddfoot{\null\hfill {\scshape\lapagina} \hfill\null} \def\@evenfoot{} \def\@oddhead{\setbox\@intesta\hbox{\footnotesize\slshape \rightmark}% @@ -112,10 +112,27 @@ \strut\rightmark}}}% \def\chaptermark##1{\markright{\thechapter\ -- ##1}}} \fi + \def\headWarn#1{\PackageWarning{toptesi}{% THE HEADING IS TOO LONG\MessageBreak Use the optional argument of command \string#1\MessageBreak See the LaTeX Handbook (1994) on section C.4.1\MessageBreak}} +\renewcommand*\l@chapter[2]{% + \ifnum \c@tocdepth >\m@ne + \addpenalty{-\@highpenalty}% + \vskip 1.0em \@plus\p@ + \setlength\@tempdima{1.5em}% + \begingroup + \parindent \z@ \rightskip \@pnumwidth + \parfillskip -\@pnumwidth + \leavevmode \bfseries + \advance\leftskip\@tempdima + \hskip -\leftskip + #1\nobreak\hfil \nobreak + \hb@xt@\@pnumwidth{\hss\unless\ifxetex\normalfont\fi\scshape{#2}}\par + \penalty\@highpenalty + \endgroup + \fi} \newif\iffigurespage \newif\iftablespage \newif\ifnumeriromani @@ -337,8 +354,42 @@ Skipping any redefinition\MessageBreak}% \italiano \renewcommand\@chapapp{\chaptername}% } +\ifxetex +\AtBeginDocument{\RequirePackage{topfront} +\RequirePackage{topcoman}} +\else \RequirePackage{topfront} \RequirePackage{topcoman} +\fi +\def\sf@size{7} +\ifxetex\else +\renewcommand*\not{\mathrel{\mathchoice% +{\rlap{$\displaystyle\mkern2.5mu\mathnormal{/}$}}% +{\rlap{$\textstyle\mkern2.5mu\mathnormal{/}$}}% +{\rlap{$\scriptstyle\mkern2.5mu\mathnormal{/}$}}% +{\rlap{$\scriptscriptstyle\mkern2.5mu\mathnormal{/}$}}% +}} +\renewcommand\mapstochar{\mathrel{\mathchoice +{\displaystyle\unitlength=0.0555\fontdimen6\font + \picture(0,0)\put(1,1.5){\linethickness{0.72\unitlength}% + \line(0,1){6}}\endpicture} +{\textstyle\unitlength=0.0555\fontdimen6\font + \picture(0,0)\put(1,1.5){\linethickness{0.72\unitlength}% + \line(0,1){6}}\endpicture} +{\scriptstyle\unitlength=0.0555\fontdimen6\font + \picture(0,0)\put(1,0.55){\linethickness{0.61\unitlength}% + \line(0,1){5}}\endpicture} +{\scriptscriptstyle\unitlength=0.0555\fontdimen6\font + \picture(0,0)\put(1,0.2){\linethickness{0.56\unitlength}% + \line(0,1){4}}\endpicture} +}}\fi +\ifT@Ppdfa + \unless\ifxetex + \RequirePackage[a-1b]{pdfx} + \else + \RequirePackage{hyperref} + \fi +\fi \ifclassica \def\Candidato{Laureando} \def\Candidata{Laureanda} @@ -364,13 +415,13 @@ Skipping any redefinition\MessageBreak}% \def\@oddfoot{\null \hfill \textbf{\lapagina} \hfill \null}% \let\@evenfoot\@oddfoot \def\@evenhead{% - \setbox\@intesta\hbox{\latintext + \setbox\@intesta\hbox{\unless\ifxetex\latintext\fi \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 + \def\@oddhead{\unless\ifxetex\latintext\fi \setbox\@intesta\hbox{% \footnotesize\strut\textsl{\rightmark}}% \ifdim\wd\@intesta>\textwidth \headWarn{\section}\fi% @@ -381,19 +432,19 @@ Skipping any redefinition\MessageBreak}% \renewcommand*{\ps@headings}{\let\@mkboth\markboth \def\@oddfoot{\null \hfill \textbf{\lapagina}\hfill \null}% \let\@evenfoot\empty\let\@evenhead\empty - \def\@oddhead{{\setbox\z@\hbox{\latintext\footnotesize + \def\@oddhead{{\setbox\z@\hbox{\unless\ifxetex\latintext\fi\footnotesize \textsc{% \@author\ifx\@secondauthor\empty\else\ et al.\fi: \@stitle}}% - \setbox\tw@\hbox{\latintext\footnotesize\textsl{\rightmark}}% + \setbox\tw@\hbox{\unless\ifxetex\latintext\fi\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{% + \unless\ifxetex\latintext\fi\footnotesize\textsc{% \@author\ifx\@secondauthor\empty\else\ et al.\fi: \@stitle }}% \setbox\tw@\vbox{\hsize.48\textwidth\parindent\z@\raggedleft - \latintext\footnotesize\textsl{\rightmark}}% + \unless\ifxetex\latintext\fi\footnotesize\textsl{\rightmark}}% \fi \setbox\@intesta\vbox to\z@{% \vss\hbox to\textwidth{\strut\box\z@\hfill\box\tw@}}% @@ -451,27 +502,6 @@ Skipping any redefinition\MessageBreak}% }{% \endlist\clearpage } -\renewcommand*\not{\mathrel{\mathchoice% -{\rlap{$\displaystyle\mkern2.5mu\mathnormal{/}$}}% -{\rlap{$\textstyle\mkern2.5mu\mathnormal{/}$}}% -{\rlap{$\scriptstyle\mkern2.5mu\mathnormal{/}$}}% -{\rlap{$\scriptscriptstyle\mkern2.5mu\mathnormal{/}$}}% -}} -\renewcommand\mapstochar{\mathrel{\mathchoice -{\displaystyle\unitlength=0.0555\fontdimen6\font - \picture(0,0)\put(1,1.5){\linethickness{0.72\unitlength}% - \line(0,1){6}}\endpicture} -{\textstyle\unitlength=0.0555\fontdimen6\font - \picture(0,0)\put(1,1.5){\linethickness{0.72\unitlength}% - \line(0,1){6}}\endpicture} -{\scriptstyle\unitlength=0.0555\fontdimen6\font - \picture(0,0)\put(1,0.55){\linethickness{0.61\unitlength}% - \line(0,1){5}}\endpicture} -{\scriptscriptstyle\unitlength=0.0555\fontdimen6\font - \picture(0,0)\put(1,0.2){\linethickness{0.56\unitlength}% - \line(0,1){4}}\endpicture} -}} -\ifT@Ppdfa\RequirePackage[a-1b]{pdfx}\fi %% %% Copyright 2005-2011 Claudio Beccari %% @@ -485,10 +515,10 @@ Skipping any redefinition\MessageBreak}% %% and the derived files: %% %% toptesi.cls, toptesi.sty, topfront.sty, topcommand.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. +%% Furthermore the bundle contains the documentation source file toptesi-doc-xetex.tex +%% and the derived file toptesi-doc-xetex.pdf. %% %% The toptesi-example.tex source file is just an example that shows how %% to use the various commands; by commenting or uncommenting certain @@ -498,10 +528,10 @@ Skipping any redefinition\MessageBreak}% %% The toptesi.cfg file is a sample of a local configuration file that can be %% freely edited and modified. %% -%% By running pdflatex on toptesi.dtx the user gets the cls, sty and cfg files +%% By running pdflatex on toptesi.dtx the user gets the class, sty and cfg files %% and the English documentation file in pdf format. %% -%% The documentation file toptesi-doc.pdf is in Italian; its source file is +%% The documentation file toptesi-doc-xetex.pdf is in Italian; its source file is %% another example of how to use toptesi. %% %% End of file `toptesi.sty'. |