diff options
author | Karl Berry <karl@freefriends.org> | 2016-11-10 23:04:45 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2016-11-10 23:04:45 +0000 |
commit | 826cfcb9289b9f084253810e2bb65fe2ea98dc85 (patch) | |
tree | 1fddceb01e07e8ea51dcbc8d2634a74ecb1a3cf9 /Master/texmf-dist/tex/latex/toptesi/topfront.sty | |
parent | b030d68ae58e045c5fbe8138490681185d460b68 (diff) |
toptesi (10nov16)
git-svn-id: svn://tug.org/texlive/trunk@42479 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/toptesi/topfront.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/toptesi/topfront.sty | 30 |
1 files changed, 26 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/latex/toptesi/topfront.sty b/Master/texmf-dist/tex/latex/toptesi/topfront.sty index aedc83506df..e7a2b62830a 100644 --- a/Master/texmf-dist/tex/latex/toptesi/topfront.sty +++ b/Master/texmf-dist/tex/latex/toptesi/topfront.sty @@ -7,14 +7,14 @@ %% toptesi.dtx (with options: `topfrn') %% ______________________________________________________ %% The TOPtesi package -%% Copyright (C) 2015 Claudio Beccari +%% Copyright (C) 2005-2016 Claudio Beccari %% All rights reserved %% %% License information appended %% \NeedsTeXFormat{LaTeX2e}[2015/01/01] \ProvidesPackage{topfront}[% -2016/010/04 v.5.93 +2016/10/10 v.5.9.05 Title page for TOPtesi and other classes] \@ifpackageloaded{etoolbox}{}{\RequirePackage{etoolbox}} \ifcsundef{ifclassica}{% @@ -55,7 +55,11 @@ Title page for TOPtesi and other classes] } \def\ps@classica{\let\@mkboth\markboth \def\@oddhead{\vbox{% - \hbox to \hsize{\hfill {\LARGE\MakeUppercase{\@ateneo}}\hfill}% + \setbox256=\hbox{\LARGE\MakeUppercase{\@ateneo}} + \unless\ifdim\wd256<\textwidth + \setbox256=\hbox{\resizebox{\textwidth}{!}{\box256}}% + \fi + \hbox to \hsize{\hss\box256\hss}% \ifclassica \hbox to \hsize{\hfil\vrule\@width\z@ \@height2ex\vrule\@height1.4\p@\@depth-\p@\@width50mm\hfil}% @@ -146,6 +150,24 @@ Title page for TOPtesi and other classes] } \def\s@paranumeri#1-#2!{\def\1{#1}\def\2{#2}}% \let\esamedidottorato\sedutadilaurea +\newcommand*\NomeAnnoAccademico[1]{\gdef\AnnoAccademico{#1}} +\@ifundefined{AnnoAccademico}{\gdef\AnnoAccademico{Anno accademico}}{} +\def\annoaccademico#1{\ifclassica + \def\@submitdate{{\large\textsc{\AnnoAccademico}} {\Large\s@tanno#1!}} + \else + \PackageWarning{toptesi}{\string\annoaccademico\space + is usable only when the\MessageBreak + `classica' option is in force}% + \def\@submitdate{\AnnoAccademico\ #1 --- Needs the `classica' option} + \fi} +\def\s@tanno#1-#2!{\oldstylenums{#1}\EnDash\oldstylenums{#2}} + +\def\EnDash{{\settowidth{\dimen@}{\large\scshape I}% +\setbox\tw@\hbox{2}\dimen\tw@.5\ht\tw@\advance\dimen\tw@-.5\dp\tw@ +\dimen4\dimen\tw@\advance\dimen4by.0385ex\relax +\advance\dimen\tw@-.0385ex\relax +\makebox[1.5\dimen@]{% + \vrule\@width\dimen@\@height\dimen4\@depth-\dimen\tw@}}} \def\ciclodidottorato#1{\gdef\@ciclo{#1 \@cyclename}}% \def\corsodilaurea#1{\global\dottoratofalse\gdef\@corso{#1}} \def\corsodidottorato#1{\global\dottoratotrue\global\laureatriennalefalse @@ -305,7 +327,7 @@ Title page for TOPtesi and other classes] } \ifcsvoid{@nomeat}{} {\ifbool{topTPTlogos}{\vspace*{3.5ex}}{\vspace*{-3ex}}% - {\centering\Large \@nomeat\par}\vfill} + {\centering\@nomeat\par}\vfill} \begin{center} {\rmfamily\mdseries |