From f0c23554405bd929a290a9a0532aeecaaf94a255 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 3 Jul 2016 20:44:48 +0000 Subject: toptesi (3jul16) git-svn-id: svn://tug.org/texlive/trunk@41608 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/toptesi/topcoman.sty | 2 +- Master/texmf-dist/tex/latex/toptesi/topfront.sty | 4 ++-- Master/texmf-dist/tex/latex/toptesi/toptesi.cls | 2 +- Master/texmf-dist/tex/latex/toptesi/toptesi.sty | 22 ++++++++++++++-------- 4 files changed, 18 insertions(+), 12 deletions(-) (limited to 'Master/texmf-dist/tex/latex/toptesi') diff --git a/Master/texmf-dist/tex/latex/toptesi/topcoman.sty b/Master/texmf-dist/tex/latex/toptesi/topcoman.sty index f48be5ac854..787e7bd3d9e 100644 --- a/Master/texmf-dist/tex/latex/toptesi/topcoman.sty +++ b/Master/texmf-dist/tex/latex/toptesi/topcoman.sty @@ -14,7 +14,7 @@ %% \NeedsTeXFormat{LaTeX2e}[2015/01/01] \ProvidesPackage{topcoman}[% -2015/12/18 v.5.91 +2016/06/29 v.5.92 Additional commands for the TOPtesi bundle] \RequirePackage{iftex} \ifPDFTeX diff --git a/Master/texmf-dist/tex/latex/toptesi/topfront.sty b/Master/texmf-dist/tex/latex/toptesi/topfront.sty index a299188d2f5..061ccdf5862 100644 --- a/Master/texmf-dist/tex/latex/toptesi/topfront.sty +++ b/Master/texmf-dist/tex/latex/toptesi/topfront.sty @@ -14,7 +14,7 @@ %% \NeedsTeXFormat{LaTeX2e}[2015/01/01] \ProvidesPackage{topfront}[% -2015/12/18 v.5.91 +2016/06/29 v.5.92 Title page for TOPtesi and other classes] \@ifpackageloaded{etoolbox}{}{\RequirePackage{etoolbox}} \ifcsundef{ifclassica}{% @@ -26,7 +26,7 @@ Title page for TOPtesi and other classes] \def\@oddfoot{\vbox to 0.05\paperheight{\vss \hbox to\hsize{\hfil{\Large{\@submitdate}}\hfil}}}% \let\@evenfoot\@oddfoot - \def\@oddhead{ + \def\@oddhead{% \vbox to\headheight{\vss\iftopTPTlogos \hbox to\textwidth{% \headstrut\hfil diff --git a/Master/texmf-dist/tex/latex/toptesi/toptesi.cls b/Master/texmf-dist/tex/latex/toptesi/toptesi.cls index fc2579d16d5..1d954e963b0 100644 --- a/Master/texmf-dist/tex/latex/toptesi/toptesi.cls +++ b/Master/texmf-dist/tex/latex/toptesi/toptesi.cls @@ -14,7 +14,7 @@ %% \NeedsTeXFormat{LaTeX2e}[2015/01/01] \ProvidesClass{toptesi}[% -2015/12/18 v.5.91 +2016/06/29 v.5.92 Class for typesetting university theses] \DeclareOption{a4paper}{\PassOptionsToClass{\CurrentOption}{report}} \DeclareOption{titlepage}{\PassOptionsToClass{\CurrentOption}{report}} diff --git a/Master/texmf-dist/tex/latex/toptesi/toptesi.sty b/Master/texmf-dist/tex/latex/toptesi/toptesi.sty index f7f909e555a..66365df5ab0 100644 --- a/Master/texmf-dist/tex/latex/toptesi/toptesi.sty +++ b/Master/texmf-dist/tex/latex/toptesi/toptesi.sty @@ -14,7 +14,7 @@ %% \NeedsTeXFormat{LaTeX2e}[2015/01/01] \ProvidesPackage{toptesi}[% -2015/12/18 v.5.91 +2016/06/29 v.5.92 Extension for toptesi.cls] \def\TRON{\tracingcommands \tw@ \tracingmacros \tw@} \def\TROFF{\tracingcommands\z@ \tracingmacros \z@} @@ -150,13 +150,10 @@ Read documentation toptesi-it-*.pdf, because package pdfx has changed}} \clearpage\null\thispagestyle{#1}\clearpage\fi\fi\fi} \def\sommario{% \iffrontmatter\else\frontmattertrue\fi - \chapter*{\summaryname}% - \addcontentsline{toc}{chapter}{\summaryname}% - } + \chapter*{\summaryname}} \def\ringraziamenti{% \iffrontmatter\else\frontmattertrue\fi - \chapter*{\acknowledgename}% - } + \chapter*{\acknowledgename}} \def\@chapter[#1]#2{\iffrontmatter\mainmatter\fi \ifnum \c@secnumdepth >\m@ne \refstepcounter{chapter}% @@ -247,7 +244,7 @@ Read documentation toptesi-it-*.pdf, because package pdfx has changed}} \brokenpenalty=10000 \def\interlinea#1{\linespread{#1}\selectfont} \def\endinterlinea{\par} -\def\@floatboxreset {% +\def\@floatboxreset{% \reset@font \linespread{1}% \normalsize @@ -264,7 +261,11 @@ Read documentation toptesi-it-*.pdf, because package pdfx has changed}} \setcounter{dbltopnumber}{2} \def\dbltopfraction{1} \def\dblfloatpagefraction{0} + +\AtBeginDocument{\@ifpackageloaded{caption}{}{% +\providecommand\captionsetup{}\renewcommand\captionsetup[2][]{}% \newdimen\captionwidth +\belowcaptionskip=\abovecaptionskip \long\def\@makecaption#1#2{% \begingroup \small \parskip\z@ \parindent\z@ @@ -296,8 +297,13 @@ Read documentation toptesi-it-*.pdf, because package pdfx has changed}} \fi \fi \makebox[\hsize]{\box0}% + \vskip \belowcaptionskip \endgroup -} +}}} + +\newcommand\goodpagebreak[1][4]{\ifvmode +\unless\ifdim\dimexpr\pagegoal-\pagetotal>#1\baselineskip\newpage\fi +\else\ifhmode\vadjust{\newpage}\fi\fi} \def\redef@bibitem{\def\@bibitem##1{\item\if@filesw \immediate\write\@auxout {\string\bibcite{##1}{\thechapter.\the\c@enumi}}\fi\ignorespaces}} -- cgit v1.2.3