From 8c22ed00b585dfd0ec2dbd6d97058a126e88ffa1 Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Sat, 8 Nov 2014 23:51:32 +0000
Subject: toptesi (8nov14)

git-svn-id: svn://tug.org/texlive/trunk@35546 c570f23f-e606-0410-a88d-b1316a301751
---
 Master/texmf-dist/tex/latex/toptesi/topfront.sty | 24 +++++++++++++-----------
 1 file changed, 13 insertions(+), 11 deletions(-)

(limited to 'Master/texmf-dist/tex/latex/toptesi/topfront.sty')

diff --git a/Master/texmf-dist/tex/latex/toptesi/topfront.sty b/Master/texmf-dist/tex/latex/toptesi/topfront.sty
index 7c84c047121..beb924083e0 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/02 v.5.83 Title page for TOPtesi]
+\ProvidesPackage{topfront}[2014/11/07 v.5.84 Title page for TOPtesi]
 \@ifpackageloaded{etoolbox}{}{\RequirePackage{etoolbox}}
 \ifcsundef{ifclassica}{%
     \newif\ifclassica
@@ -238,20 +238,22 @@
 \@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}{\topTPTlogosfalse}{% else
-    \@ifstar{\topTPTlogosfalse}{\topTPTlogostrue}}%
-    \fr@ntespizio}
+\ifbool{classica}{\boolfalse{topTPTlogos}\fr@ntespizio}{\TPTcheckstar}
+}
 
 \def\fr@ntespizio{%
 \begingroup
-   \iftopTPTlogos
-      \thispagestyle{titlepage}
-   \else
-      \thispagestyle{classica}
-   \fi
-      \oddsidemargin=\dimexpr(\oddsidemargin+\evensidemargin)/2\relax
-      \evensidemargin \oddsidemargin
+\ifclassica
+   \thispagestyle{classica}
+\else
+\ifdefstring{\TPTmaybestar}{*}{\@firstoftwo}{\@secondoftwo}%
+   {\boolfalse{topTPTlogos}\thispagestyle{classica}\TPTmaybestar}%
+   {\booltrue{topTPTlogos}\thispagestyle{titlepage}}
+\fi
+   \oddsidemargin=\dimexpr(\oddsidemargin+\evensidemargin)/2\relax
+   \evensidemargin \oddsidemargin
       \null\setcounter{page}{1}%
       \normalfont
 \iftopTPTlogos
-- 
cgit v1.2.3

