diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/titlesec/titlesec.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/titlesec/titlesec.sty | 29 |
1 files changed, 18 insertions, 11 deletions
diff --git a/Master/texmf-dist/tex/latex/titlesec/titlesec.sty b/Master/texmf-dist/tex/latex/titlesec/titlesec.sty index 63271d50635..c9c4f5d1650 100644 --- a/Master/texmf-dist/tex/latex/titlesec/titlesec.sty +++ b/Master/texmf-dist/tex/latex/titlesec/titlesec.sty @@ -5,7 +5,7 @@ % Copyright (c) 1998-2011 by Javier Bezos. % All Rights Reserved. % -% This file is part of the titlesec distribution release 2.9.2 +% This file is part of the titlesec distribution release 2.10.0 % ----------------------------------------------------------- % % It may be distributed and/or modified under the @@ -48,7 +48,7 @@ % ~~~~~~~ \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{titlesec}[2011/11/11 v2.9.2 Sectioning titles] +\ProvidesPackage{titlesec}[2011/12/15 v2.10.0 Sectioning titles] % Initialization % ~~~~~~~~~~~~~~ @@ -334,6 +334,16 @@ \ttl@elinemarks \global\ttl@toclabelfalse} +\newif\ifttl@premark % to be used in ttlps.def +\ttl@premarkfalse + +\def\ttl@premark#1#2{% + \protected@xdef\ttl@prevmarks{\ttl@marks}% + \ttl@blinemarks + \csname#1mark\endcsname{#2}% + \ttl@elinemarks + \gdef\ttl@prevmarks{\ttl@marks}} + % Must be preceded by a default \ttl@savewrite, which is used % in starred variants--\@empty in top and straight classes. % In straight class, it is preceded by the setting of @@ -360,9 +370,11 @@ \let\ifttl@toclabel\ifttl@label \ifx\ttl@savewrite\@empty\else % If marks \ifttl@ps - \ttl@blinemarks - \csname#1mark\endcsname{#2}% - \ttl@elinemarks + \ifttl@premark + \global\ttl@premarkfalse + \else % if no \pretitlemark + \ttl@premark{#1}{#2}% + \fi \fi \ifttl@label\else\ttl@Hy@steplink{#1}\fi \fi} @@ -396,13 +408,7 @@ \gdef\thetitle{\csname the#1\endcsname}% \if@noskipsec \leavevmode \fi \par - \ifttl@ps - \protected@xdef\ttl@prevmarks{\ttl@marks}% - \fi \ttl@labelling{#1}{#2}% - \ifttl@ps - \gdef\ttl@prevmarks{\ttl@marks}% - \fi \ttl@startargs\ttl@straight@ii{#1}{#3}} % 1:left 2:right 3:before 4:after 5:afterindent 6:name 7:title @@ -901,6 +907,7 @@ \DeclareOption{pagestyles}{\let\sectiontitle\@empty} +\DeclareOption{extramarks}{\let\ttl@fetchmark\@empty} \DeclareOption{floatps}{% \ifx\sectiontitle\@empty \let\ttl@replace\space |