summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/toptesi/topfront.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2014-12-29 23:22:14 +0000
committerKarl Berry <karl@freefriends.org>2014-12-29 23:22:14 +0000
commit1502159a0ea1bde12aee24add557f14386539361 (patch)
tree0e356221f90454c8e972a9b5c268a13cc1780829 /Master/texmf-dist/tex/latex/toptesi/topfront.sty
parent8a59fc071605caee4bf4c22580cc26015d967f68 (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/topfront.sty')
-rw-r--r--Master/texmf-dist/tex/latex/toptesi/topfront.sty37
1 files changed, 25 insertions, 12 deletions
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