summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/toptesi/topfront.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2014-12-13 23:38:15 +0000
committerKarl Berry <karl@freefriends.org>2014-12-13 23:38:15 +0000
commiteb9b398b309be6def2fcf03d84da4865fdba6a04 (patch)
tree0ae59d5c893775b65eaa2a49979aa8a141a6c79e /Master/texmf-dist/tex/latex/toptesi/topfront.sty
parent6e60746f3bb4513d40f0802d177e7f11587680a2 (diff)
toptesi (13dec14)
git-svn-id: svn://tug.org/texlive/trunk@35817 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.sty76
1 files changed, 44 insertions, 32 deletions
diff --git a/Master/texmf-dist/tex/latex/toptesi/topfront.sty b/Master/texmf-dist/tex/latex/toptesi/topfront.sty
index beb924083e0..e85fe335068 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/07 v.5.84 Title page for TOPtesi]
+\ProvidesPackage{topfront}[2014/11/13 v.5.85b Title page for TOPtesi and other classes]
\@ifpackageloaded{etoolbox}{}{\RequirePackage{etoolbox}}
\ifcsundef{ifclassica}{%
\newif\ifclassica
@@ -40,11 +40,13 @@
\hbox to\hsize{\hfil{\Large{\@submitdate}}\hfil}}}%
\let\@evenfoot\@oddfoot
\def\@oddhead{
- \vbox to\headheight{\vss
+ \vbox to\headheight{\vss\iftopTPTlogos
\hbox to\textwidth{%
\headstrut\hfil
\raisebox{3\baselineskip}{\usebox\TPT@logobox}\hfil\null%
- }%
+ }\fi
+ \ifcsvoid{@ateneo}{}{\vskip\smallskipamount
+ \hbox to\textwidth{\hss\LARGE\@ateneo\hss}}
\vss
}%
}%
@@ -74,14 +76,21 @@
\newif\iflaureatriennale \laureatriennalefalse
\def\monografia#1{\global\laureatriennaletrue
\global\dottoratofalse
- \global\def\titolo##1{\PackageWarning{toptesi}%
+ \global\def\titolo##1{\PackageWarning{topfront}%
{Il titolo e' gia' stato impostato con
il comando \string\monografia}}%
- \gdef\@title{#1}}
+ \gdef\@titolo{#1}}
\let\@stitle\empty
-\newcommand*{\titolo}[2][]{{\def\@tempA{#1}%
- \ifx\@tempA\empty\gdef\@stitle{#2}\else\gdef\@stitle{#1}\fi
- \gdef\@title{#2}}}
+\newcommand*{\titolo}[2][]{%
+\ifbool{laureatriennale}{%
+\PackageWarning{topfront}{Il titolo deve essere impostato con
+ il comando \string\monografia}
+}
+{\def\@tempA{#1}\ifdefempty{\@tempA}%
+ {\gdef\@stitle{#2}}
+ {\gdef\@stitle{#1}}%
+ \gdef\@titolo{#2}%
+}}
\def\sottotitolo#1{\gdef\@subtitle{#1}}
\let\@materia\empty
\def\Materia#1{\def\@materia{#1}}\let\materia\Materia
@@ -89,7 +98,7 @@
\def\tutore#1{\gdef\@tutore{#1}}
\def\direttore{\Direttoretrue\relatore}%
\def\coordinatore{\Direttorefalse\relatore}%
-\def\QualificaDirettore#1{\gdef{#1}}
+\def\QualificaDirettore#1{\gdef\@PhDdirector{#1}}%
\def\relatore#1{\gdef\@principaladviser{#1}}
\def\secondorelatore#1{\gdef\@secondadviser{#1}}
\def\terzorelatore#1{\gdef\@thirdadviser{#1}}
@@ -108,11 +117,11 @@
\unless\ifclassica
\def\@submitdate{#1 #2}%
\else
- \s@dutaTrieste#1 #2!%
+ \s@dutaclassica#1 #2!%
\fi
\fi
}%
-\def\s@dutaTrieste#1 #2!{%
+\def\s@dutaclassica#1 #2!{%
\if@ldstyle
\s@paranumeri#2-!%
\ifx\2\empty
@@ -163,7 +172,6 @@
\newcommand\printloghi{\unless\ifvoid\TPT@logobox\usebox{\TPT@logobox}\fi}
-
\def\tutoreaziendale#1{\gdef\@tutoreaziendale{#1}}
\newcommand\retrofrontespizio[1]{\long\gdef\@retrofrontespizio{#1}}
\newcommand\FacoltaDi[1]{\gdef\@faculty{#1}}
@@ -188,7 +196,7 @@
\IfFileExists{\jobname.cfg}{\input{\jobname.cfg}}%
{\IfFileExists{toptesi.cfg}{\input{toptesi.cfg}}{}}
\@ifundefined{@cyclename}{\def\@cyclename{ciclo}}{}
-\@ifundefined{@title}{\def\@title{}}{}
+\@ifundefined{@titolo}{\def\@titolo{}}{}
\@ifundefined{@author}{\def\@author{}}{}
\@ifundefined{@principaladviser}{\def\@principaladviser{}}{}
\@ifundefined{@secondadviser}{\def\@secondadviser{}}{}
@@ -237,36 +245,40 @@
\@ifundefined{@dissertazione}{\def\@dissertazione{Tesi di Dottorato}}{}
\@ifundefined{@monografia}{\def\@monografia{Monografia di Laurea}}{}
\@ifundefined{@InName}{\def\@InName{in}}{}
-\newif\iftopTPTlogos
-\newcommand\TPTcheckstar[1]{\def\TPTmaybestar{#1}\fr@ntespizio}
-\def\frontespizio{%
-\ifbool{classica}{\boolfalse{topTPTlogos}\fr@ntespizio}{\TPTcheckstar}
-}
+\newbool{topTPTlogos} \booltrue{topTPTlogos}
+\newenvironment{frontespizio*}{\boolfalse{topTPTlogos}}{\fr@ntespizio}
+
+\newenvironment{frontespizio}{%
+ \ifdefstring{\@currenvir}{frontespizio}
+ {\booltrue{topTPTlogos}}{\fr@ntespizio}
+ }{%
+ \fr@ntespizio
+ }
+
+\newbool{AteneoInHead}\boolfalse{AteneoInHead}
\def\fr@ntespizio{%
\begingroup
\ifclassica
+ \boolfalse{topTPTlogos}
\thispagestyle{classica}
+ \ifcsvoid{@ateneo}{\def\@ateneo{Manca il nome dell'ateneo}
+ }{}
\else
-\ifdefstring{\TPTmaybestar}{*}{\@firstoftwo}{\@secondoftwo}%
- {\boolfalse{topTPTlogos}\thispagestyle{classica}\TPTmaybestar}%
- {\booltrue{topTPTlogos}\thispagestyle{titlepage}}
+ \thispagestyle{titlepage}
\fi
+\ifcsvoid{@ateneo}{}{\booltrue{AteneoInHead}}
\oddsidemargin=\dimexpr(\oddsidemargin+\evensidemargin)/2\relax
\evensidemargin \oddsidemargin
\null\setcounter{page}{1}%
\normalfont
-\iftopTPTlogos
- \ifcsvoid{@ateneo}{}{%
- {\centering\LARGE \@ateneo\par}\bigskip
+ \ifbool{AteneoInHead}{}{%
+ {{\centering\LARGE \@ateneo\par}}
}
-\fi
+ \ifcsvoid{@nomeat}{}
+ {\ifbool{topTPTlogos}{\vspace*{3.5ex}}{\vspace*{-3ex}}%
+ {\centering\Large \@nomeat\par}\vfill}
- \ifx\@nomeat\empty \else
- {%
- \centering
- {\Large \@nomeat}\par}\vfill
- \fi
\begin{center}
{\rmfamily\mdseries
\ifdottorato
@@ -305,7 +317,7 @@
\vspace{\stretch{0.2}}
\begin{center}
{\huge\bfseries \baselineskip=0.95em plus 1pt
- \@title \par}
+ \@titolo \par}
\end{center}
\unless\ifx\@subtitle\empty
\begin{center}%
@@ -442,7 +454,7 @@
\@tutoreaziendale\par}}
\par\clearpage
\ifcsvoid{@retrofrontespizio}{}%
- {\null\vfill\pagestyle{empty}\@retrofrontespizio\par\clearpage}%
+ {\null\vfill\thispagestyle{empty}\@retrofrontespizio\par\clearpage}%
\endgroup}
%%
%% Copyright 2005-2014 Claudio Beccari