From 826cfcb9289b9f084253810e2bb65fe2ea98dc85 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 10 Nov 2016 23:04:45 +0000 Subject: toptesi (10nov16) git-svn-id: svn://tug.org/texlive/trunk@42479 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/source/latex/toptesi/toptesi.dtx | 101 ++++++++++++--------- 1 file changed, 57 insertions(+), 44 deletions(-) (limited to 'Master/texmf-dist/source/latex/toptesi') diff --git a/Master/texmf-dist/source/latex/toptesi/toptesi.dtx b/Master/texmf-dist/source/latex/toptesi/toptesi.dtx index b29223b5075..60295868a28 100644 --- a/Master/texmf-dist/source/latex/toptesi/toptesi.dtx +++ b/Master/texmf-dist/source/latex/toptesi/toptesi.dtx @@ -8,7 +8,7 @@ \preamble ______________________________________________________ The TOPtesi package - Copyright (C) 2015 Claudio Beccari + Copyright (C) 2005-2016 Claudio Beccari All rights reserved License information appended @@ -107,7 +107,7 @@ lines of the file for how-to information. %\ProvidesPackage{topcoman}[% %\ProvidesPackage{topfront}[% %<*driver,class,topsty,topcmn,topfrn> -2016/010/04 v.5.93 +2016/10/10 v.5.9.05 %Class for typesetting university theses] %Extension for toptesi.cls] %Additional commands for the TOPtesi bundle] @@ -138,7 +138,7 @@ lines of the file for how-to information. % % \fi % -% \CheckSum{2829} +% \CheckSum{2842} % % \begin{abstract} % This file describes the TOPtesi bundle; it is a set of files designed to @@ -460,18 +460,19 @@ lines of the file for how-to information. % another qualification, for example ``Tesi di Laurea Magistrale''. % \Item[NomeDissertazione] gets the phrase that describes the doctoral thesis; % by default it is ``Tesi di Dottorato''. -% \Item[InName] infix strings often require adjusting of the prepositions; this macro -% gets the preposition that stands for ``in'' (the default). In German -% it might become ``auf''. -% \Item[NomeAnnoAccademico] defines the infix string that stands for ``Academic year''. -% This macro is defined only if the option \texttt{classica} is in force; -% after all the command |\annoaccademico| is defined only with that -% option. -% \Item[logosede] specifies the name of the file or the files that contain the university -% logos; no default is defined; rather a warning message is issued if no -% name is given or the file is missing, but typesetting goes on without -% the inclusion of any logo. A list of logos can be specified, useful -% when a thesis is carried on in a multiple University environment +% \Item[InName] infix strings often require adjusting of the prepositions; this +% macro gets the preposition that stands for ``in'' (the default). +% In German it might become ``auf''. +% \Item[NomeAnnoAccademico] defines the infix string that stands for ``Academic +% year''. This macro is defined only if the option +% \texttt{classica} is in force; after all the command +% |\annoaccademico| is defined only with that option. +% \Item[logosede] specifies the name of the file or the files that contain +% the university logos; no default is defined; rather a warning +% message is issued if no name is given or the file is missing, +% but typesetting goes on without the inclusion of any logo. +% A list of logos can be specified, useful when a thesis is +% carried on in a multiple University environment % such as, for example, in a double degree Erasmus % program; or under the Erasmus Mundus program. The ``string'' of % logos is scaled properly so that they may fit in |\textwidth|. @@ -1850,34 +1851,7 @@ Skipping any redefinition\MessageBreak}% \fi \fi % \end{macrocode} -% Here |\annoaccademico| is defined to typesets the infix string corresponding to -% ``Anno accademico'' followed by the year range in old style numbers (irrespective -% of the \texttt{oldstyle} option); localisation commands are provided so as -% to set a different string, possibly through the configuration file. In order to set -% an adequate en-dash between the old style numbers a new definition is given that -% takes care to set the dash at a height above the base line that copes with the -% specific shape of the old style numbers. -% \begin{macrocode} -\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\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@}}} -% \end{macrocode} % The footnote rule separator is also longer that the default one. Dealing % with notes the footnote separator is also changed as well as the footnote % skip. But the humanists like to have also unnumbered notes within numbered @@ -2052,7 +2026,11 @@ Skipping any redefinition\MessageBreak}% % \begin{macrocode} \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}% @@ -2269,6 +2247,41 @@ Skipping any redefinition\MessageBreak}% \def\s@paranumeri#1-#2!{\def\1{#1}\def\2{#2}}% \let\esamedidottorato\sedutadilaurea % \end{macrocode} +% Here |\annoaccademico| is defined to typesets the infix string corresponding +% to ``Anno accademico'' followed by the year range in old style numbers +% (irrespective of the \texttt{oldstyle} option); localisation commands are +% provided so as to set a different string, possibly through the configuration +% file. In order to set an adequate en-dash between the old style numbers a new +% definition is given that takes care to set the dash at a height above the base +% line that copes with the specific shape of the old style numbers. +% Notice that |\annoaccademico| and |\sedutadilaurea| do not do the same +% things, besides the fact that |\annoaccademico| works only with the +% |classica| option in force and a special format is chosen. Therefore +% the user has to use only one of these twocommands, and if s/he uses +% |\annoaccademico| while the |classica| option is not in force, s/he +% gets an warning and the ``date'' gets formatted in a special way so as +% to remember the user that |\annoaccademico| requires the |classica| option. +% \begin{macrocode} +\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@}}} +% \end{macrocode} % % The next macros are used to assign strings to some literal information % to be typeset in the title page. |\ciclodidottorato| requires an uppercase @@ -2698,7 +2711,7 @@ Skipping any redefinition\MessageBreak}% % \begin{macrocode} \ifcsvoid{@nomeat}{} {\ifbool{topTPTlogos}{\vspace*{3.5ex}}{\vspace*{-3ex}}% - {\centering\Large \@nomeat\par}\vfill} + {\centering\@nomeat\par}\vfill} % \end{macrocode} % Then the faculty name comes next; but for the doctoral school it uses the doctoral -- cgit v1.2.3