diff options
author | Karl Berry <karl@freefriends.org> | 2014-12-29 23:22:14 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2014-12-29 23:22:14 +0000 |
commit | 1502159a0ea1bde12aee24add557f14386539361 (patch) | |
tree | 0e356221f90454c8e972a9b5c268a13cc1780829 /Master/texmf-dist/tex/latex/toptesi | |
parent | 8a59fc071605caee4bf4c22580cc26015d967f68 (diff) |
toptesi (28dec14)
git-svn-id: svn://tug.org/texlive/trunk@35916 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/toptesi')
-rw-r--r-- | Master/texmf-dist/tex/latex/toptesi/topcoman.sty | 8 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/toptesi/topfront.sty | 37 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/toptesi/toptesi.cfg | 18 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/toptesi/toptesi.cls | 2 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/toptesi/toptesi.sty | 2 |
5 files changed, 40 insertions, 27 deletions
diff --git a/Master/texmf-dist/tex/latex/toptesi/topcoman.sty b/Master/texmf-dist/tex/latex/toptesi/topcoman.sty index c30dd383dde..48cad0cf8e0 100644 --- a/Master/texmf-dist/tex/latex/toptesi/topcoman.sty +++ b/Master/texmf-dist/tex/latex/toptesi/topcoman.sty @@ -29,7 +29,7 @@ %% Right brace \} Tilde \~} \NeedsTeXFormat{LaTeX2e} % lavora solo con LaTeX 2e \ProvidesPackage{topcoman}% - [2014/11/13 v.5.85b Additional commands for the TOPtesi bundle] + [2014/12/13 v.5.86f Additional commands for the TOPtesi bundle] \RequirePackage{ifxetex} \ifxetex\else \newcommand*\DeclareSlantedCapitalGreekLetters{% @@ -50,6 +50,7 @@ \renewcommand{\textormath}{\ifmmode\expandafter\@secondoftwo\else \expandafter\@firstoftwo\fi} \providecommand*\textsubscript{\raisebox{-0.5ex}} + \ifxetex\else \RequirePackage{textcomp} \fi @@ -62,17 +63,18 @@ \providecommand{\micro}{\textormath{\textmu}{\ifxetex\mathup{\mu}\else \ifx\muup\undefined\mu\else\muup\fi\fi}} \providecommand{\gradi}{\textormath{\textdegree}{^\circ}} +\providecommand*{\programmafont}{\ttfamily\footnotesize} \def\listing#1{\par\begingroup \programma \input #1 \endgroup} \def\uncatcodespecials{\def\do##1{\catcode`##1=12}\dospecials} -\def\programma{\ttfamily\footnotesize \parindent 0pt +\def\programma{\programmafont \parindent 0pt \def\par{\leavevmode\egroup\box0\endgraf} \catcode`\`=\active \catcode`\^^I=\active \catcode`\^^L=\active \obeylines \uncatcodespecials \obeyspaces \begingroup\lccode`~=`\ \lowercase{\endgroup\global\let~}\ % \everypar{\startbox}} \newdimen\tabwidth -\setbox0=\hbox{\ttfamily\footnotesize\space} +\setbox0=\hbox{\programmafont\space} \tabwidth=8\wd0 \def\startbox{\setbox0=\hbox\bgroup} {\catcode`\`=\active \gdef`{\relax\lq}} diff --git a/Master/texmf-dist/tex/latex/toptesi/topfront.sty b/Master/texmf-dist/tex/latex/toptesi/topfront.sty index e85fe335068..7e67012a16f 100644 --- a/Master/texmf-dist/tex/latex/toptesi/topfront.sty +++ b/Master/texmf-dist/tex/latex/toptesi/topfront.sty @@ -28,7 +28,7 @@ %% Grave accent \` Left brace \{ Vertical bar \| %% Right brace \} Tilde \~} \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{topfront}[2014/11/13 v.5.85b Title page for TOPtesi and other classes] +\ProvidesPackage{topfront}[2014/12/13 v.5.86f Title page for TOPtesi and other classes] \@ifpackageloaded{etoolbox}{}{\RequirePackage{etoolbox}} \ifcsundef{ifclassica}{% \newif\ifclassica @@ -46,7 +46,7 @@ \raisebox{3\baselineskip}{\usebox\TPT@logobox}\hfil\null% }\fi \ifcsvoid{@ateneo}{}{\vskip\smallskipamount - \hbox to\textwidth{\hss\LARGE\@ateneo\hss}} + \hbox to\textwidth{\hss\LARGE\MakeUppercase{\@ateneo}\hss}} \vss }% }% @@ -55,7 +55,7 @@ } \def\ps@classica{\let\@mkboth\markboth \def\@oddhead{\vbox{% - \hbox to \hsize{\hfill {\LARGE \@ateneo}\hfill}% + \hbox to \hsize{\hfill {\LARGE\MakeUppercase{\@ateneo}}\hfill}% \ifclassica \hbox to \hsize{\hfil\vrule\@width\z@ \@height2ex\vrule\@height1.4\p@\@depth-\p@\@width50mm\hfil}% @@ -145,7 +145,7 @@ \gdef\@corso{#1}} \def\scuoladidottorato#1{\global\dottoratotrue\global\laureatriennalefalse \gdef\@phdschool{#1}} -\def\ateneo#1{\gdef\@ateneo{\expandafter\uppercase{\expandafter #1}}} +\def\ateneo#1{\gdef\@ateneo{#1}} \def\nomeateneo#1{\gdef\@nomeat{\expandafter\uppercase{\expandafter #1}}} \newcommand\facolta[2][]{\gdef\@facname{#2}\gdef\@facnumber{#1}} \let\struttura\facolta @@ -251,14 +251,24 @@ \newenvironment{frontespizio}{% \ifdefstring{\@currenvir}{frontespizio} - {\booltrue{topTPTlogos}}{\fr@ntespizio} + {\booltrue{topTPTlogos}}{\TPTmaybestar} }{% \fr@ntespizio } \newbool{AteneoInHead}\boolfalse{AteneoInHead} +\newcommand\TPTmaybestar[1]{\def\@tempA{#1}% +\ifdefstring{\@tempA}{*}% + {\boolfalse{topTPTlogos}\booltrue{AteneoInHead}\fr@ntespizio} + {\booltrue{topTPTlogos}\fr@ntespizio\@tempA} +} \def\fr@ntespizio{% -\begingroup +\begingroup\par + \oddsidemargin=\dimexpr(\oddsidemargin+\evensidemargin)/2\relax + \evensidemargin \oddsidemargin +\null +\setcounter{page}{1}% +\normalfont \ifclassica \boolfalse{topTPTlogos} \thispagestyle{classica} @@ -268,10 +278,13 @@ \thispagestyle{titlepage} \fi \ifcsvoid{@ateneo}{}{\booltrue{AteneoInHead}} - \oddsidemargin=\dimexpr(\oddsidemargin+\evensidemargin)/2\relax - \evensidemargin \oddsidemargin - \null\setcounter{page}{1}% - \normalfont +\ifcsvoid{@ateneo}{% + \ifbool{topTPTlogos} + {}{\booltrue{AteneoInHead}\def\@ateneo{Manca il nome dell'ateneo}}% +}{% + \booltrue{AteneoInHead}% +} + \ifbool{AteneoInHead}{}{% {{\centering\LARGE \@ateneo\par}} } @@ -310,7 +323,7 @@ \@TesiDiLaurea% \fi \fi - \ifx\empty\@materia\else + \unless\ifx\empty\@materia \\\@InName\\\@materia \fi \end{center} @@ -345,7 +358,7 @@ \fi \par \unless\iftopTPTlogos - {\centering \printloghi\par}\fi + {\vfill\centering \printloghi\par}\fi \vfill \iflaureatriennale \let\@nomerelatore\empty diff --git a/Master/texmf-dist/tex/latex/toptesi/toptesi.cfg b/Master/texmf-dist/tex/latex/toptesi/toptesi.cfg index 8dac35306b2..ad73f0c1d1d 100644 --- a/Master/texmf-dist/tex/latex/toptesi/toptesi.cfg +++ b/Master/texmf-dist/tex/latex/toptesi/toptesi.cfg @@ -30,22 +30,20 @@ %% %%================================================================ %% This file is the only file of the TOPtesi bundle that the user -%% can modify without restrictions in order to customize the +%% can modify without restrictions in order to customise the %% contents of this configuration file to his/her needs. The user %% can add or remove lines, comment or uncomment lines, change the %% arguments to the macros, add definitions and so on. -%% A better use of this file consists into copying it to another -%% file to be named as the thesis main file and with extension -%% .cfg; This bundle will try to read "\jobname.cfg"; if this file -%% does not exist, it looks for toptesi.cfg and if this further -%% does not exist, it does nothing. This means that the provided -%% file toptesi.cfg is to be used preferably as a model, not to -%% be used directly. +%% Use this file by copying it to another file to be named as the +%% thesis main file and with extension .cfg; This bundle will try +%% to read "\jobname.cfg"; if this file it does nothing. This means +%% that the provided file toptesi.cfg is to be used as a model, not +%% to% be used directly. %%================================================================ %% \ateneo{Politecnico di Torino} -\facolta{}% nessun nome di default -\FacoltaDi{}% non viene scritta nessuna indicazione per la facoltà +\facolta{}% nessun nome di default/ no default name +\FacoltaDi{}% nessun prefisso per la facoltà /no default faculty label %%\DottoratoIn{Corso di dottorato in } \CorsoDiLaureaIn{Corso di Laurea in } \TesiDiLaurea{Tesi di Laurea Magistrale} diff --git a/Master/texmf-dist/tex/latex/toptesi/toptesi.cls b/Master/texmf-dist/tex/latex/toptesi/toptesi.cls index 920bcdba6d6..abb1713ac3d 100644 --- a/Master/texmf-dist/tex/latex/toptesi/toptesi.cls +++ b/Master/texmf-dist/tex/latex/toptesi/toptesi.cls @@ -29,7 +29,7 @@ %% Right brace \} Tilde \~} \NeedsTeXFormat{LaTeX2e} \ProvidesClass{toptesi}% -[2014/11/13 v.5.85b Class for typesetting university theses] +[2014/12/13 v.5.86f Class for typesetting university theses] \DeclareOption{a4paper}{\PassOptionsToClass{\CurrentOption}{report}} \DeclareOption{titlepage}{\PassOptionsToClass{\CurrentOption}{report}} \DeclareOption*{\PassOptionsToClass{\CurrentOption}{report}} diff --git a/Master/texmf-dist/tex/latex/toptesi/toptesi.sty b/Master/texmf-dist/tex/latex/toptesi/toptesi.sty index 209ca0a4601..cc1f88b8981 100644 --- a/Master/texmf-dist/tex/latex/toptesi/toptesi.sty +++ b/Master/texmf-dist/tex/latex/toptesi/toptesi.sty @@ -29,7 +29,7 @@ %% Right brace \} Tilde \~} \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{toptesi}% -[2014/11/13 v.5.85b Extension for toptesi.cls]% +[2014/12/13 v.5.86f Extension for toptesi.cls]% \def\TRON{\tracingcommands \tw@ \tracingmacros \tw@} \def\TROFF{\tracingcommands\z@ \tracingmacros \z@} \let\TROF\TROFF |