texlive[51664] Master/texmf-dist: titlesec (18jul19)
commits+karl at tug.org
commits+karl at tug.org
Thu Jul 18 22:34:43 CEST 2019
Revision: 51664
http://tug.org/svn/texlive?view=revision&revision=51664
Author: karl
Date: 2019-07-18 22:34:43 +0200 (Thu, 18 Jul 2019)
Log Message:
-----------
titlesec (18jul19)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/titlesec/titleps.pdf
trunk/Master/texmf-dist/doc/latex/titlesec/titleps.tex
trunk/Master/texmf-dist/doc/latex/titlesec/titlesec.pdf
trunk/Master/texmf-dist/doc/latex/titlesec/titlesec.tex
trunk/Master/texmf-dist/tex/latex/titlesec/titleps.sty
trunk/Master/texmf-dist/tex/latex/titlesec/titlesec.sty
trunk/Master/texmf-dist/tex/latex/titlesec/titletoc.sty
Added Paths:
-----------
trunk/Master/texmf-dist/doc/latex/titlesec/CHANGES.old
trunk/Master/texmf-dist/doc/latex/titlesec/README.md
Removed Paths:
-------------
trunk/Master/texmf-dist/doc/latex/titlesec/CHANGES
trunk/Master/texmf-dist/doc/latex/titlesec/README
trunk/Master/texmf-dist/tex/latex/titlesec/block.tss
trunk/Master/texmf-dist/tex/latex/titlesec/drop.tss
trunk/Master/texmf-dist/tex/latex/titlesec/frame.tss
trunk/Master/texmf-dist/tex/latex/titlesec/leftmargin.tss
trunk/Master/texmf-dist/tex/latex/titlesec/margin.tss
trunk/Master/texmf-dist/tex/latex/titlesec/rightmargin.tss
trunk/Master/texmf-dist/tex/latex/titlesec/ttlkeys.def
trunk/Master/texmf-dist/tex/latex/titlesec/ttlps.def
trunk/Master/texmf-dist/tex/latex/titlesec/wrap.tss
Deleted: trunk/Master/texmf-dist/doc/latex/titlesec/CHANGES
===================================================================
--- trunk/Master/texmf-dist/doc/latex/titlesec/CHANGES 2019-07-18 20:34:08 UTC (rev 51663)
+++ trunk/Master/texmf-dist/doc/latex/titlesec/CHANGES 2019-07-18 20:34:43 UTC (rev 51664)
@@ -1,267 +0,0 @@
-Titlesec changes
-
-History of v1.0
-~~~~~~~~~~~~~~~
-1998/02/25 Added nops option
-1998/02/28 Added \@mkboth stuff in \setmarks
-1998/03/01 Changed test in \ttl at secnum
-1998/03/03 Corrected some \fil... commands
-1998/03/03 Replaced the faulty \@hangfrom by new commands
-1998/03/03 Some \def replaced by \newcommand
-1998/03/04 .dtx/.ins scheme finally rejected. Useless
- for users, obtrusive for `readers' and proned
- to errors
-1998/03/04 Tidied up documentation
-1998/03/06 \wordsep renamed and documented
-1998/03/06 Added dummy asignation in \ttl at chap.
-1998/03/06 Removed \ttl at xsect and merged into \tl at sect
-1998/03/06 Added \ProvidesPackage
-
-History of v1.1
-~~~~~~~~~~~~~~~~
-1998/03/25 \chapter corrected, as well as the size options
-1998/03/26 Added compact option
-1998/03/26 Added flushleft, flushright and center options
-1998/04/08 Changed all instances of \noindent by \parindent\z@
-1998/04/14 Added \filinner, \filouter
-1998/04/14 Added drop shape
-1998/05/01 Added rightmargin shape (and margin renamed to
- leftmargin)
-1998/05/03 Added \setheadindent
-
-History of v1.2 (unreleased)
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
-1998/06/01 Compatibility with AMS classes
-1998/06/08 On-demand loading of shapes
-1998/06/11 Frame shape. Some \fil... command
- modified to work in the label of this
- chapter shape.
-1998/07/03 Bottomtitle option (at last...)
-1998/07/14 ...margin styles bug fixed using a method
- similar to bottomtitle.
-1998/07/29 \titleline
-
-====================
-
-History of v2.0
-~~~~~~~~~~~~~~~~
-
-1998/08/05 to
-1998/08/29 Fully reimplemented
-
-History of v2.1
-~~~~~~~~~~~~~~~~
-1999/01/05 We define in this file the three basic shapes.
- Additional ones remain defined in external files.
- Unified the shapes for sections and chapters.
-1999/01/05 \ttl at shape merged into \ttl at format@iii.
-1999/01/05 \titlerule
-1999/01/07 \ttl at defkeys splitted from \ttl at keys
-1999/01/10 Added the \part stuff, including a definition of \@openright
-1999/01/11 Removed unnecessary \ttl at numsecfalse in \ttl at sect@i.
-1999/01/14 Optimized \titlerule
-1999/01/27 Changed \titleline to correct the spacing at the
- top page and to fix a bug which changed the mode
- to horizontal, thus introducing unwanted space
- (\makebox -> \@makebox).
-1999/02/02 \ttl at secnum renamed to \ttl at write and introduced the
- \ttl at savewrite mechanism to sincronize the toc/marks
- with the title in case there is a \newpage in <after>.
-1999/02/03 wrap shape
-1999/02/03 Added a \kern\z@ for not to avoid hyphenation
- of the last word. Not strictly necessary, but
- it is more LaTeX-like.
-1999/02/05 \partmark defined (and in \setmarks, too).
-1999/02/08 \ttl at row@i simplified.
-1999/02/08 \ttl at savefn mechanism.
-1999/02/10 Removed extra \leavevmode in display
-1999/02/13 Now \titleline doesn't add the width. It's set.
-1999/02/17 The part mark is catched, even if unused.
-1999/02/17 old/newparttoc added.
-1999/02/18 Changed many TeX assignments to the LaTeX
- counterpart.
-1999/02/19 Introduced \ttl at startargs.
-
-History of v2.1.1
-~~~~~~~~~~~~~~~~~
-1999/08/04 Moved misplaced lines in \ttl at makeboth
-
-History of v2.2 (unreleased)
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-1999/11/03 We load titleps if pagestyles are required, but
- some old definitions are restored.
-1999/11/06 Improved outermarks test in \ttl at sect@i. Formerly
- the section number could be printed if a page ended
- with an unnumebered section followed by a numbered one.
-1999/11/06 \ttl at startargs now adds (and passes) automatically the
- section name. Involved macros modified accordingly.
-1999/11/06 Replaced explicit part names by the parameter in
- \ttl at part@i. The same for chapter.
-1999/11/21 \ttl at try's are not given explicitly, but built by
- \ttl at setkeys. Intruduced the \ttl at key@... and
- \ttl at extra@... commands.
-1999/11/23 Minor problems with keys fixed.
-1999/12/10 Added the nobottomtitles* option and \ttl at addstretch.
-2000/01/07 First steps towards the calcwidth feature (basic code).
-2000/01/08 (Continued.) \titleline* for rules of width \titlewidth.
- Option calcwidth implemented.
-2000/01/12 Finished with changes in wrap.tss (no longer
- "experimental" :-) )
-
-History of v2.3
-~~~~~~~~~~~~~~~
-2000/01/19 All keys are grouped in a single file tttkeys. Removed
- page.tsk and deleted the corresponding code in the sty.
-2000/01/19 Classes begun.
-2000/01/19 The level numbers are stored in \ttll@ macros, and not
- passed as arguments.
-2000/01/21 Introduced the new mark scheme. It's mostly compatible
- with the old one, but a compatibility mode seems
- imposible (it was introduced in a preliminary test
- but eventually removed).
-2000/01/23 loadonly package option.
-2000/02/01 Classes finished. Many things had to be rewritten.
-2000/02/02 Made partially compatible with hyperref (dvips).
-2000/02/08 \ttl at savewrite moved from shapes to classes. But
- explicit page breaks expand it, too, to avoid wrong
- toc entries.
-2000/02/18 A new box named \ttl at box stores the title in runin
- leftmargin etc shapes, to increase reliability.
-
-(2.3.1 -- 2.3.3 No changes on this file)
-
-History of v2.3.4
-~~~~~~~~~~~~~~~~~
-2000/05/12 nonindentfirst redefine \titlespacing instead of
- \@afterindent... so that they don't interfere with
- the first entry in tocs.
-2000/05/17 The marks in \ttl at select are protected to prevent
- endless loop if the title is expanded, say, by
- \MakeUppercase.
-
-History of v2.3.5
-~~~~~~~~~~~~~~~~~
-2000/05/21 Restores missing test for secnumdepth in \ttl at mkchap,
- and instead of setting \ttl at toclevel in ttlps now is
- done in \secdef. Except inside the macros, \ttl at toclevel
- is false, so that an explicit \...mark works.
-2000/06/04 \partmark defined with \providecommand
-2000/06/14 A patch mechanism added, for small bug fixes.
-
-History of v2.4
-~~~~~~~~~~~~~~~~
-2001/01/18 Minor changes in code. Essentialy an incremental
- update.
-2001/01/22 \titleformat has a new "easy" starred variant.
-
-History of v2.5
-~~~~~~~~~~~~~~~
-2002/01/02 New macros for \ttl at assign. Now * length allow
- non integer values.
-2002/03/22 Added \ttl at calc and \ttl at calcneg to make titlesec
- calc-savvy.
- - Merged bug fixes of .new into this file.
- - Bugs in frame fixed -- gap in lines, misplaced
- label, wrong margins (sometimes),
- - \leftskip, \rightskip and \linewidth (re)set in
- margin shapes.
- - Removed obsolete flush... options.
- - indentafter and noindentafter, new names for
- indentfirst and nonindentfirst.
- - A new level (\titleclass) without its "location"
- now raises a meaningful error.
- - Bug in top-level \titleclass fixed.
-2002/03/23 Tests for undefined and unformatted sectioning levels,
- and horizontal material in <format>.
- - Missing \if at openright inside \if at twoside in
- page class added.
- - Removed extra (but inoffensive) \expandafter
- in \ttl at class@iii.
-2002/03/27 Added \titlewidthfirst and ...last
- - "Not definable" gives a more meaningful message in
- the context of the package.
-
-History of v.2.6
-~~~~~~~~~~~~~~~~
-2004/08/30 Corrected typo in margin \hsiz -> \hsize.
-2004/10/17 Added a couple of missing \noexpand's in drop.
-2004/12/01 Removed the error about the mode in block because this
- style is general purpose.
-2005/01/16 Missing braces around #2 in the last else part of
- \ttl at headinline added
- - Replaced explicit \makeatother's by a saved value as
- the macros can be used in a class/package file.
-2005/01/18 newlinetospace mechanism
- - // does not break pages; option pageatnewline to
- restore the LaTeX behaviour.
-2005/01/19 \...break in top shape.
- - Renumbered several scratch registers to follow the
- TeXbook (p. 346), with \ttl at box in a few cases. In
- wrap \titlewidthfirst and \titlewidthlast made global.
- - Float heads and foots have now a further argument for
- additional stuff (eg, to remove rules). Option is now
- psfloats while floatps enters in compatibility mode.
- - \ttl at savetitle in all classes. Option toctitles.
-2005/01/21 Changed pageatnewline to make it compatible with
- titletoc, with \ttl at changecentercr.
-2005/01/22 \...tolist in top class.
-
-History of v.2.7
-~~~~~~~~~~~~~~~~
-2007-03-27 Added the `explicit' option.
- - Added \titlepagestyle.
-2007-03-29 Fixed wrong number for chapter in log
- - Patch file named .270 instead of .new
-2007-05-09 Added <after> to leftmargin, so that you can add stuff
- at the beginning of the paragraph, eg, the sec number.
-2007-07-07 Removed the patch mechanism.
-2007-08-07 `explicit' improved.
-
-History of v.2.8
-~~~~~~~~~~~~~~~~
-2007-08-12 \titlepagestyle already used by KOMA-Script. Renamed
- to \assignpagestyle.
-
-History of v.2.9
-~~~~~~~~~~~~~~~~
-2010-05-04 Add \nobreak in \ttl at addcontentsline, to prevent the title
- going to footnotes (!) in runin style in some (rare) cases.
-2010-05-06 Option uppercase (and \ttl at case).
-2011-02-25 \iftitlemeasuring test
-2011-07-14 Fixed \assignpagestyle
-2011-07-15 Introduced the \scantokens mechanism to make sure section
- names are 'letters' and not 'others'
-2011-07-18 Removed \if at nobreak test in wrap/drop, which added a line
- to the title after another section (why?)
-
-History of v.2.9.1
-~~~~~~~~~~~~~~~~~~
-2011-08-28 Removed a spurious > in wrap.tss
-
-History of v.2.9.2
-~~~~~~~~~~~~~~~~~~
-2011-11-11 Fixed a typo in ttlps.def (\MessageBreag)
-
-History of v.2.10.0
-~~~~~~~~~~~~~~~~~~~~
-
-2011-12-15 Split titlesp
-
-History of v.2.10.1
-~~~~~~~~~~~~~~~~~~~~
-
-2015-02-27 Fix: An explict \newpage in 'after' wrote the toc entry twice
-2015-03-09 Fix (partial): A list containing just a sectioning command
- raised an error
-
-History of v.2.10.2
-~~~~~~~~~~~~~~~~~~~~
-
-2015-03-21 Fix: With 2.10.1 labels vanished in hang shape (due to a
- misplaced \noindent)
-
-History of titleps v.1.1.1
-~~~~~~~~~~~~~~~~~~~~~~~~~~
-2016-03-15 New macro \setmarkboth for compatibility
-
Added: trunk/Master/texmf-dist/doc/latex/titlesec/CHANGES.old
===================================================================
--- trunk/Master/texmf-dist/doc/latex/titlesec/CHANGES.old (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/titlesec/CHANGES.old 2019-07-18 20:34:43 UTC (rev 51664)
@@ -0,0 +1,341 @@
+## TITLESEC
+
+History of v1.0
+~~~~~~~~~~~~~~~
+1998/02/25 Added nops option
+1998/02/28 Added \@mkboth stuff in \setmarks
+1998/03/01 Changed test in \ttl at secnum
+1998/03/03 Corrected some \fil... commands
+1998/03/03 Replaced the faulty \@hangfrom by new commands
+1998/03/03 Some \def replaced by \newcommand
+1998/03/04 .dtx/.ins scheme finally rejected. Useless
+ for users, obtrusive for `readers' and proned
+ to errors
+1998/03/04 Tidied up documentation
+1998/03/06 \wordsep renamed and documented
+1998/03/06 Added dummy asignation in \ttl at chap.
+1998/03/06 Removed \ttl at xsect and merged into \tl at sect
+1998/03/06 Added \ProvidesPackage
+
+History of v1.1
+~~~~~~~~~~~~~~~~
+1998/03/25 \chapter corrected, as well as the size options
+1998/03/26 Added compact option
+1998/03/26 Added flushleft, flushright and center options
+1998/04/08 Changed all instances of \noindent by \parindent\z@
+1998/04/14 Added \filinner, \filouter
+1998/04/14 Added drop shape
+1998/05/01 Added rightmargin shape (and margin renamed to
+ leftmargin)
+1998/05/03 Added \setheadindent
+
+History of v1.2 (unreleased)
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+1998/06/01 Compatibility with AMS classes
+1998/06/08 On-demand loading of shapes
+1998/06/11 Frame shape. Some \fil... command
+ modified to work in the label of this
+ chapter shape.
+1998/07/03 Bottomtitle option (at last...)
+1998/07/14 ...margin styles bug fixed using a method
+ similar to bottomtitle.
+1998/07/29 \titleline
+
+====================
+
+History of v2.0
+~~~~~~~~~~~~~~~~
+
+1998/08/05 to
+1998/08/29 Fully reimplemented
+
+History of v2.1
+~~~~~~~~~~~~~~~~
+1999/01/05 We define in this file the three basic shapes.
+ Additional ones remain defined in external files.
+ Unified the shapes for sections and chapters.
+1999/01/05 \ttl at shape merged into \ttl at format@iii.
+1999/01/05 \titlerule
+1999/01/07 \ttl at defkeys splitted from \ttl at keys
+1999/01/10 Added the \part stuff, including a definition of \@openright
+1999/01/11 Removed unnecessary \ttl at numsecfalse in \ttl at sect@i.
+1999/01/14 Optimized \titlerule
+1999/01/27 Changed \titleline to correct the spacing at the
+ top page and to fix a bug which changed the mode
+ to horizontal, thus introducing unwanted space
+ (\makebox -> \@makebox).
+1999/02/02 \ttl at secnum renamed to \ttl at write and introduced the
+ \ttl at savewrite mechanism to sincronize the toc/marks
+ with the title in case there is a \newpage in <after>.
+1999/02/03 wrap shape
+1999/02/03 Added a \kern\z@ for not to avoid hyphenation
+ of the last word. Not strictly necessary, but
+ it is more LaTeX-like.
+1999/02/05 \partmark defined (and in \setmarks, too).
+1999/02/08 \ttl at row@i simplified.
+1999/02/08 \ttl at savefn mechanism.
+1999/02/10 Removed extra \leavevmode in display
+1999/02/13 Now \titleline doesn't add the width. It's set.
+1999/02/17 The part mark is catched, even if unused.
+1999/02/17 old/newparttoc added.
+1999/02/18 Changed many TeX assignments to the LaTeX
+ counterpart.
+1999/02/19 Introduced \ttl at startargs.
+
+History of v2.1.1
+~~~~~~~~~~~~~~~~~
+1999/08/04 Moved misplaced lines in \ttl at makeboth
+
+History of v2.2 (unreleased)
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+1999/11/03 We load titleps if pagestyles are required, but
+ some old definitions are restored.
+1999/11/06 Improved outermarks test in \ttl at sect@i. Formerly
+ the section number could be printed if a page ended
+ with an unnumebered section followed by a numbered one.
+1999/11/06 \ttl at startargs now adds (and passes) automatically the
+ section name. Involved macros modified accordingly.
+1999/11/06 Replaced explicit part names by the parameter in
+ \ttl at part@i. The same for chapter.
+1999/11/21 \ttl at try's are not given explicitly, but built by
+ \ttl at setkeys. Intruduced the \ttl at key@... and
+ \ttl at extra@... commands.
+1999/11/23 Minor problems with keys fixed.
+1999/12/10 Added the nobottomtitles* option and \ttl at addstretch.
+2000/01/07 First steps towards the calcwidth feature (basic code).
+2000/01/08 (Continued.) \titleline* for rules of width \titlewidth.
+ Option calcwidth implemented.
+2000/01/12 Finished with changes in wrap.tss (no longer
+ "experimental" :-) )
+
+History of v2.3
+~~~~~~~~~~~~~~~
+2000/01/19 All keys are grouped in a single file tttkeys. Removed
+ page.tsk and deleted the corresponding code in the sty.
+2000/01/19 Classes begun.
+2000/01/19 The level numbers are stored in \ttll@ macros, and not
+ passed as arguments.
+2000/01/21 Introduced the new mark scheme. It's mostly compatible
+ with the old one, but a compatibility mode seems
+ imposible (it was introduced in a preliminary test
+ but eventually removed).
+2000/01/23 loadonly package option.
+2000/02/01 Classes finished. Many things had to be rewritten.
+2000/02/02 Made partially compatible with hyperref (dvips).
+2000/02/08 \ttl at savewrite moved from shapes to classes. But
+ explicit page breaks expand it, too, to avoid wrong
+ toc entries.
+2000/02/18 A new box named \ttl at box stores the title in runin
+ leftmargin etc shapes, to increase reliability.
+
+(2.3.1 -- 2.3.3 No changes on this file)
+
+History of v2.3.4
+~~~~~~~~~~~~~~~~~
+2000/05/12 nonindentfirst redefine \titlespacing instead of
+ \@afterindent... so that they don't interfere with
+ the first entry in tocs.
+2000/05/17 The marks in \ttl at select are protected to prevent
+ endless loop if the title is expanded, say, by
+ \MakeUppercase.
+
+History of v2.3.5
+~~~~~~~~~~~~~~~~~
+2000/05/21 Restores missing test for secnumdepth in \ttl at mkchap,
+ and instead of setting \ttl at toclevel in ttlps now is
+ done in \secdef. Except inside the macros, \ttl at toclevel
+ is false, so that an explicit \...mark works.
+2000/06/04 \partmark defined with \providecommand
+2000/06/14 A patch mechanism added, for small bug fixes.
+
+History of v2.4
+~~~~~~~~~~~~~~~~
+2001/01/18 Minor changes in code. Essentialy an incremental
+ update.
+2001/01/22 \titleformat has a new "easy" starred variant.
+
+History of v2.5
+~~~~~~~~~~~~~~~
+2002/01/02 New macros for \ttl at assign. Now * length allow
+ non integer values.
+2002/03/22 Added \ttl at calc and \ttl at calcneg to make titlesec
+ calc-savvy.
+ - Merged bug fixes of .new into this file.
+ - Bugs in frame fixed -- gap in lines, misplaced
+ label, wrong margins (sometimes),
+ - \leftskip, \rightskip and \linewidth (re)set in
+ margin shapes.
+ - Removed obsolete flush... options.
+ - indentafter and noindentafter, new names for
+ indentfirst and nonindentfirst.
+ - A new level (\titleclass) without its "location"
+ now raises a meaningful error.
+ - Bug in top-level \titleclass fixed.
+2002/03/23 Tests for undefined and unformatted sectioning levels,
+ and horizontal material in <format>.
+ - Missing \if at openright inside \if at twoside in
+ page class added.
+ - Removed extra (but inoffensive) \expandafter
+ in \ttl at class@iii.
+2002/03/27 Added \titlewidthfirst and ...last
+ - "Not definable" gives a more meaningful message in
+ the context of the package.
+
+History of v.2.6
+~~~~~~~~~~~~~~~~
+2004/08/30 Corrected typo in margin \hsiz -> \hsize.
+2004/10/17 Added a couple of missing \noexpand's in drop.
+2004/12/01 Removed the error about the mode in block because this
+ style is general purpose.
+2005/01/16 Missing braces around #2 in the last else part of
+ \ttl at headinline added
+ - Replaced explicit \makeatother's by a saved value as
+ the macros can be used in a class/package file.
+2005/01/18 newlinetospace mechanism
+ - // does not break pages; option pageatnewline to
+ restore the LaTeX behaviour.
+2005/01/19 \...break in top shape.
+ - Renumbered several scratch registers to follow the
+ TeXbook (p. 346), with \ttl at box in a few cases. In
+ wrap \titlewidthfirst and \titlewidthlast made global.
+ - Float heads and foots have now a further argument for
+ additional stuff (eg, to remove rules). Option is now
+ psfloats while floatps enters in compatibility mode.
+ - \ttl at savetitle in all classes. Option toctitles.
+2005/01/21 Changed pageatnewline to make it compatible with
+ titletoc, with \ttl at changecentercr.
+2005/01/22 \...tolist in top class.
+
+History of v.2.7
+~~~~~~~~~~~~~~~~
+2007-03-27 Added the `explicit' option.
+ - Added \titlepagestyle.
+2007-03-29 Fixed wrong number for chapter in log
+ - Patch file named .270 instead of .new
+2007-05-09 Added <after> to leftmargin, so that you can add stuff
+ at the beginning of the paragraph, eg, the sec number.
+2007-07-07 Removed the patch mechanism.
+2007-08-07 `explicit' improved.
+
+History of v.2.8
+~~~~~~~~~~~~~~~~
+2007-08-12 \titlepagestyle already used by KOMA-Script. Renamed
+ to \assignpagestyle.
+
+History of v.2.9
+~~~~~~~~~~~~~~~~
+2010-05-04 Add \nobreak in \ttl at addcontentsline, to prevent the title
+ going to footnotes (!) in runin style in some (rare) cases.
+2010-05-06 Option uppercase (and \ttl at case).
+2011-02-25 \iftitlemeasuring test
+2011-07-14 Fixed \assignpagestyle
+2011-07-15 Introduced the \scantokens mechanism to make sure section
+ names are 'letters' and not 'others'
+2011-07-18 Removed \if at nobreak test in wrap/drop, which added a line
+ to the title after another section (why?)
+
+History of v.2.9.1
+~~~~~~~~~~~~~~~~~~
+2011-08-28 Removed a spurious > in wrap.tss
+
+History of v.2.9.2
+~~~~~~~~~~~~~~~~~~
+2011-11-11 Fixed a typo in ttlps.def (\MessageBreag)
+
+History of v.2.10.0
+~~~~~~~~~~~~~~~~~~~~
+
+2011-12-15 Split titlesp
+
+History of v.2.10.1
+~~~~~~~~~~~~~~~~~~~~
+
+2015-02-27 Fix: An explict \newpage in 'after' wrote the toc entry twice
+2015-03-09 Fix (partial): A list containing just a sectioning command
+ raised an error
+
+History of v.2.10.2
+~~~~~~~~~~~~~~~~~~~~
+
+2015-03-21 Fix: With 2.10.1 labels vanished in hang shape (due to a
+ misplaced \noindent)
+
+## TITLEPS
+
+History of v.1.1.1
+~~~~~~~~~~~~~~~~~~
+2016-03-15 New macro \setmarkboth for compatibility
+
+## TITLETOC
+
+History of v1.1
+~~~~~~~~~~~~~~~
+99/04/22: A bug fix. Some missing global assignments in \ttl at tocentry
+ were missing, and page numbers messed up with
+ \titlecontents*
+
+History of v1.2
+~~~~~~~~~~~~~~~~
+1999/10/20: Added \contentsafter. \ttl at tocentry modified to accept
+ the new command for grouping in a paragraph entries of
+ different levels.
+1999/10/27: Instead of defining the level numbers explicitly, that's
+ done with \ttl at setlevels and \ttl at levels.
+1999/10/27: Added the basic code for multiple indexes.
+1999/10/29: Added the toctop test to the \ttl at savel@... commands.
+1999/12/28: Simplified \ttl at savel@... with \ttl at lselect.
+2000/01/12: \contentsafter rejected. An aditional optional parameter
+ is used instead. (Too) many thing had to be rewritten.
+2000/01/27: Removed \ttl at setlevels. Any change of levels are
+ best done with titlesec.
+2000/02/14: Moved misplaced \vskip in ttl at tocentry.
+2000/02/16: A few changes in the "block" separators.
+2000/02/16: Fixed bug in \ttl at margin. For the right margin the
+ correction was used instead of the margin.
+
+History of v1.2.1
+~~~~~~~~~~~~~~~~~
+2000/04/25: Dirty trick to make sure that \ttl at finish is the very
+ last thing in lists of floats (lof, lot, etc.).
+2000/05/14: Missing \global before \ttl at labelfalse added.
+
+History of 1.2.2
+~~~~~~~~~~~~~~~~
+2000/06/05: The optional argument no longer mandatory, but
+ still reporting an error if the length is missing.
+ Minor internal changes, and a patch mechanism added.
+
+History of 1.3
+~~~~~~~~~~~~~~
+2001/01/12: Minor changes and some missing \globals added for
+ partial tocs to work inside a group.
+2001/01/21: Added \dottedcontents.
+
+History of 1.4
+~~~~~~~~~~~~~~
+2002/03/27: titletoc.new merged into this file
+2002/03/27: \ttl at finish written by the last \newpage.
+2002/03/27: \ttl at lsection broke paragraphs always. Now
+ only if the sublevel is typeset.
+2002/03/27: \ttl at finish -> \contentsfinish
+
+History of 1.5
+~~~~~~~~~~~~~~
+2003/06/14: \contentspush didn't work because of the change of
+(.new) \leftskip was done inside a group before the
+ corresponding \par
+2003/06/14: Added an useful error if a partial TOC is not
+(.new) defined.
+2005/01/17: New options rubber/rigidseps, to remove if desired
+ the small vertical "plus" between entries.
+2005/01/20: Begin work on partial lists.
+2005/01/21: \ttl at outblock and \ttl at outnoblock just to avoid a
+ huge definition and to ease patching.
+2005/01/22: Work on partial lists finished (but to be resumed).
+
+History of 1.6
+~~~~~~~~~~~~~~
+2007/05/04: Added the patch 2005/05/03 which fixed a wrong
+ result with \included (F. Mittelbach)
+2007/07/14: Removed the patch mechanism.
Deleted: trunk/Master/texmf-dist/doc/latex/titlesec/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/titlesec/README 2019-07-18 20:34:08 UTC (rev 51663)
+++ trunk/Master/texmf-dist/doc/latex/titlesec/README 2019-07-18 20:34:43 UTC (rev 51664)
@@ -1,74 +0,0 @@
-This directory holds 3 packages for sectioning titles -- when used as
-such (titlesec), in headers and footers (titleps) and in tables of
-contents (titletoc). They can be used separately, but you will get
-most of them when used together.
-
-Titlesec
-~~~~~~~~
-Sectioning titles, including margin and `wrap' titles, different
-format in odd and even pages, rules above and below the title,
-adding new sectioning levels, measuring the width of the title, etc.
-
-Titletoc
-~~~~~~~~
-TOC entries, with the possibility of changing the format in the middle
-of a document, grouping the entries in a single paragraph, pretty
-free-forms entries, partial tocs, etc. It's described in titlesec.pdf
-(or .tex).
-
-Titleps
-~~~~~~~
-Page styles with working top marks, access to top, first and bot marks
-in a single header/footer, rules, headers/footers for specific floats
-(kinda \thispagestyle), multiple sets of marks, etc. An one-stage
-mechanims is used, without intermediate \leftmark's or \rightmark's.
-
-What's new (2.9. 2.10)
-~~~~~~~~~~~~~~~~
-
-- Fixed \assignpagestyle, which did not work except in a
-few cases.
-- Fixed an incompatibility with hyperref (wrong appendix
-name).
-- Added \iftitlemeasuring
-- Added package option uppercase
-- Fixed a bug when reckoning the number of lines in wrap/drop.
-
-2.9.1: Fixed a typo (a spurious > in wrap.tss).
-2.9.2: Fixed another typo (\MessageBreag in ttlps.def)
-2.10.0: New features in titleps also available in titlesec
-
-Installation
-~~~~~~~~~~~~
-No .ins/.dtx preinstalation is required. Move the files to a place
-where LaTeX can find them and typeset titlesec.tex. All of files in
-this directory are necessary for titlesec.sty to work, except the
-manual titlesec.tex (and this 'readme' file). The manual requires
-titlesec.sty and titletoc.sty, and hence all the .tss and .def
-files as well.
-
-Formerly there were files with extension .new (titlesec.new and
-titletoc.new) used to patch the packages, but if present should be
-removed (they will be ignored, however).
-
-Web site, manual in PDF format and info
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-Further details are available on
-
- http://www.texnia.com/titlesec.html
-
-Contact
-~~~~~~~
-Please, for suggestions, bug reports, etc., go to
-More
- http://www.texnia.com/contact.html
-
-Known problems
-~~~~~~~~~~
-Some language styles (for babel) add the indentation
-after a section in a so radical way that titlesec (which
-uses the internal LaTeX macros) cannot supress it again.
-For example, spanish (fixed in version 5.0) and frenchb.
-
-2016/03/21
-
Added: trunk/Master/texmf-dist/doc/latex/titlesec/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/titlesec/README.md (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/titlesec/README.md 2019-07-18 20:34:43 UTC (rev 51664)
@@ -0,0 +1,62 @@
+## Titlesec, Titletoc, Titleps
+
+This directory holds 3 packages for sectioning titles -- when used as
+such (titlesec), in headers and footers (titleps) and in tables of
+contents (titletoc). They can be used separately, but you will get
+most of them when used together.
+
+### Titlesec
+
+Sectioning titles, including margin and `wrap` titles, different
+format in odd and even pages, rules above and below the title,
+adding new sectioning levels, measuring the width of the title, etc.
+
+### Titletoc
+
+TOC entries, with the possibility of changing the format in the middle
+of a document, grouping the entries in a single paragraph, pretty
+free-forms entries, partial tocs, etc. It's described in
+`titlesec.pdf`.
+
+### Titleps
+
+Page styles with working top marks, access to top, first and bot marks
+in a single header/footer, rules, headers/footers for specific floats
+(kinda `\thispagestyle`), multiple sets of marks, etc. An one-stage
+mechanims is used, without intermediate `\leftmark`s or `\rightmark`s.
+
+### Latest changes
+
+```
+2.11 2019-07-16
+ - New license: MIT.
+ - Option nostruts, to remove struts inserted by titlesec.
+ - Reorganized code: only sty files, removed def and tss ones
+ (although the mechanism for tss still works).
+ - Fix - Wrong hyperlinks in table of contents with the starred
+ versions, because of a change of behavior of hyperref (it
+ patches the behaviour of an internal macro in hyperref).
+ - Fix - Wrong spacing with titleps and displayed text after a
+ section.
+ - Fix - Newly defined floats raised an error with titletoc.
+```
+
+### Installation
+
+No .ins/.dtx preinstalation is required. Move the files to a place
+where LaTeX can find them and typeset titlesec.tex. All of files in
+this directory are necessary for titlesec.sty to work, except the
+manual titlesec.tex (and this 'readme' file). The manual requires
+titlesec.sty and titletoc.sty.
+
+Further details are available on
+
+ http://www.texnia.com/titlesec.html
+
+### Contact
+
+Please, for suggestions, bug reports, etc., go to
+More
+ http://www.texnia.com/contact.html
+
+
Property changes on: trunk/Master/texmf-dist/doc/latex/titlesec/README.md
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/texmf-dist/doc/latex/titlesec/titleps.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/titlesec/titleps.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/titlesec/titleps.tex 2019-07-18 20:34:08 UTC (rev 51663)
+++ trunk/Master/texmf-dist/doc/latex/titlesec/titleps.tex 2019-07-18 20:34:43 UTC (rev 51664)
@@ -1,27 +1,14 @@
-% +--------------------------------------------------+
-% | Typeset this file to get the documentation. |
-% +--------------------------------------------------+
%
-% Copyright (c) 1998-2016 by Javier Bezos.
-% All Rights Reserved.
+% Copyright (C) 1998-2019 Javier Bezos http://www.texnia.com
%
-% This file is part of the titlesec distribution release 2.10.2
-% -----------------------------------------------------------
+% This file may be distributed and/or modified under the conditions of
+% the MIT License. A version can be found at the end of this file.
%
-% It may be distributed and/or modified under the
-% conditions of the LaTeX Project Public License, either version 1.3
-% of this license or (at your option) any later version.
-% The latest version of this license is in
-% http://www.latex-project.org/lppl.txt
-% and version 1.3 or later is part of all distributions of LaTeX
-% version 2003/12/01 or later.
-%
-% This work has the LPPL maintenance status "maintained".
-%
-% The Current Maintainer of this work is Javier Bezos.
+% Repository: https://github.com/jbezos/titlesec
+%
-\def\fileversion{1.1.1}
-\def\docdate{2016-03-15}
+\def\fileversion{2.11}
+\def\docdate{2019/07/16}
\documentclass[a4paper]{ltxguide}
\usepackage[sf,bf,compact,topmarks,calcwidth,pagestyles]{titlesec}
@@ -621,7 +608,7 @@
\verb|\sectionmark{}|), as well as to synchronize the language by
hand.
-In many cases, the following \x93short\x94 marks mechanism will be enough.
+In many cases, the following ``short'' marks mechanism will be enough.
With it, you simply say with \verb|\newshormark| the name of a command
to be used in heads or foots, and then emit the mark at appropiated
places (short marks for variables are not available). An example
@@ -823,3 +810,26 @@
\end{document}
+MIT License
+-----------
+
+Permission is hereby granted, free of charge, to any person obtaining a
+copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be included
+in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+
Modified: trunk/Master/texmf-dist/doc/latex/titlesec/titlesec.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/titlesec/titlesec.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/titlesec/titlesec.tex 2019-07-18 20:34:08 UTC (rev 51663)
+++ trunk/Master/texmf-dist/doc/latex/titlesec/titlesec.tex 2019-07-18 20:34:43 UTC (rev 51664)
@@ -1,27 +1,14 @@
-% +--------------------------------------------------+
-% | Typeset this file to get the documentation. |
-% +--------------------------------------------------+
%
-% Copyright (c) 1998-2016 by Javier Bezos.
-% All Rights Reserved.
+% Copyright (C) 1998-2019 Javier Bezos http://www.texnia.com
%
-% This file is part of the titlesec distribution release 2.10.2
-% -----------------------------------------------------------
+% This file may be distributed and/or modified under the conditions of
+% the MIT License. A version can be found at the end of this file.
%
-% It may be distributed and/or modified under the
-% conditions of the LaTeX Project Public License, either version 1.3
-% of this license or (at your option) any later version.
-% The latest version of this license is in
-% http://www.latex-project.org/lppl.txt
-% and version 1.3 or later is part of all distributions of LaTeX
-% version 2003/12/01 or later.
-%
-% This work has the LPPL maintenance status "maintained".
-%
-% The Current Maintainer of this work is Javier Bezos.
+% Repository: https://github.com/jbezos/titlesec
+%
-\def\fileversion{2.10.2}
-\def\docdate{2016-03-21}
+\def\fileversion{2.11}
+\def\docdate{2019/07/16}
\documentclass[a4paper]{ltxguide}
\usepackage[sf,bf,compact,topmarks,calcwidth,pagestyles]{titlesec}
@@ -69,7 +56,7 @@
\newpagestyle{myps}[\small\sffamily\slshape]{
\headrule
\sethead{Titlesec}{\sectiontitle}{\usepage}}
-
+
\pagestyle{myps}
\newcommand{\examplesep}{%
@@ -157,7 +144,6 @@
non-standard way, it remains untouched by the simple settings and
should be changed with the help of the ``Advanced Interface.''
-
\section{Quick Reference}
%~~~~~~~~~~~~~~~~~~~~~~
@@ -334,7 +320,7 @@
there is no section label at that level, but this is not recommended
because by doing so the number is not suppressed in the table of
contents and running heads.
-
+
\item |<sep>| is the horizontal separation between label and title
body and must be a length (it must not be empty). This space is
vertical in |display| shape; in |frame| it is the distance from text
@@ -342,20 +328,26 @@
of sectioning commands. If you are using |picture| and the like, set
this parameter to 0 pt.
-\item |<before-code>| is code preceding the title body. The very last
-command can take an argument, which is the title
-text.\footnote{Remember font size can be changed safely between
-paragraphs only, and changes in the text should be made local with
-a group; otherwise the leading might be wrong---too large or too small.}
-However, with the package option \texttt{explicit} the title must
-be given explicitly with |#1| (see below).
+\item |<before-code>| is code preceding the title body. The very last
+command can take an argument, which is the title
+text.\footnote{Remember font size can be changed safely between
+paragraphs only, and changes in the text should be made local with a
+group; otherwise the leading might be wrong---too large or too small.}
+However, with the package option \texttt{explicit} the title must be
+given explicitly with |#1| (see below). Penalties in this argument may
+lead to unexpected results.
\item |<after-code>| is code following the title body. The typeset
-material is in vertical mode with |hang|, |block| and |display|;
-in horizontal mode with |runin| and |leftmargin| (\fbox{2.7} with the latter,
-at the beginning of the paragraph). Otherwise is ignored.
+material is in vertical mode with |hang|, |block| and |display|; in
+horizontal mode with |runin| and |leftmargin| (\fbox{2.7} with the
+latter, at the beginning of the paragraph). Otherwise is ignored.
+Penalties in this argument may lead to unexpected results.
\end{itemize}
+Penalties, marks and the like must be properly synchronized with page
+breaks. So, |<before-code>| and |<after-code>| are \textit{not} the
+proper places for penalties. See |\sectionbreak| below.
+
\begin{desc}
|\chaptertitlename|
\end{desc}
@@ -457,7 +449,6 @@
\footnote{Formerly |indentfirst| and |nonindentfirst|, now
deprecated.}
-
\begin{desc}
|rigidchapters rubberchapters| \quad (Package options)
\end{desc}
@@ -514,6 +505,18 @@
titles, use the package option \verb|pageatnewline|, which is provided
for backward compatibility.
+\begin{desc}
+|\nostruts|\\
+|nostruts| \quad (Package option)
+\end{desc}
+
+\fbox{2.11} The styles defined by \textsf{titlesec} insert some struts
+at certain places to make sure the vertical space is the same with
+relation with the baseline. This is not always the desired behavior, so
+the package options |nostruts| is provided. An alternative is the macro
+|\nostruts| when defining a section (note this macros is defined only
+within a title).
+
\subsection{Rules}
The package includes some tools for helping in adding rules and other
@@ -674,6 +677,10 @@
changed to \verb|top| (in this example, parts will continue with the
\verb|openright| setting).
+Note these macros apply the penalties at the right place. In other
+words, penalties in |<before-code>| and |<after-code>| can lead to
+unexpected (and even weird) results.
+
\begin{desc}
|\chaptertolists|
\end{desc}
@@ -890,11 +897,10 @@
\end{desc}
Here, the |<name>| title is considered the top level, with number
-|<start-level-num>| (typically 0 or $-$1). It should be used only
-when creating sectioning commands from scratch with the help of
-|loadonly|, and there must be exactly one (no more, no less)
-declaration of this kind. After it, the rest of levels are added as
-explained above.
+|<start-level-num>| (typically 0 or $-$1). It should be used only when
+creating sectioning commands from scratch with the help of |loadonly|,
+and there must be exactly one (no more, no less) declaration of this
+kind. After it, the rest of levels are added as explained above.
\section{Additional Notes}
%~~~~~~~~~~~~~~~~~~~~~~~~
@@ -1230,10 +1236,10 @@
\item |<left>| even if bracketed is currently mandatory and it
sets the left margin from the left page margin.
-
+
\item |<label width>| is the width of the space created for the label,
as described above.
-
+
\item |<leader width>| is the width of the box containing the char to
be used as filler, as described below.
\end{itemize}
@@ -1490,7 +1496,7 @@
those macros will not be used very often.
\begin{desc}
-|\printcontents[<name>]{<prefix>}{<start-level>}{<toc-code>}|
+|\printcontents[<name>]{<prefix>}{<start-level>}[<toc-depth>]{<toc-code>}|
\end{desc}
Print the current partial toc of |<name>| kind. The format
@@ -1500,9 +1506,12 @@
|lsection| is defined, then this definition will be used; otherwise,
the format is that of |section|. The |<start-level>| parameter sets the
top level of the tocs---for a part toc it would be |0| (chapter), for a
-chapter toc |1| (section), and so on. Finally, |<toc-code>| is
+chapter toc |1| (section), and so on. The |<toc-code>| is
local code for the current toc; it may be used to change the
-|tocdepth| value or |\contentsmargin|, for instance.
+|\contentsmargin|, for instance. \textbf{New 2.11} Finally,
+|<toc-depth>| sets the |tocdepth| locally (in former versions it was
+suggested setting this value with |\setcounter| in the last argument,
+but that was wrong, because this command set counters globally).
A simple usage might look like (provided you are using
\textsf{titlesec} as well):
@@ -1511,8 +1520,8 @@
{...}{...}{...} % Your definitions come here
[\vspace*{4pc}%
\startcontents
- \printcontents{l}{1}{\setcounter{tocdepth}{2}}]
-
+ \printcontents{l}{1}[2]{}]
+
\titlecontents*{lsection}[0pt]
{\small\itshape}{}{}
{}[ \textbullet\ ][.]
@@ -1529,7 +1538,7 @@
|\startlist[<name>]{<list>}|\\
|\stoplist[<name>]{<list>}|\\
|\resumelist[<name>]{<list>}|\\
-|\printlist[<name>]{<list>}{<prefix>}{<toc-code>}|
+|\printlist[<name>]{<list>}{<prefix>}[<toc-depth>]{<toc-code>}|
\end{desc}
Here |<list>| is either |lof| or |lot|. Note as well |\printlist|
@@ -1577,7 +1586,7 @@
{} % That is, without page number
[\addvspace{.5pc}]
\end{verbatim}
-
+
The chapter title is centered with the chapter label on top
of it. There is no page number.
@@ -1702,7 +1711,7 @@
\titleformat{\section}[block]
{\normalfont\sffamily}
{\thesection}{.5em}{\titlerule\\[.8ex]\bfseries}
-
+
\section[Appendix]{Another Ruled Title}
\begin{verbatim}
@@ -1778,7 +1787,7 @@
{}{0pt}{}
\titlespacing{\section}
{\parindent}{*2}{\wordsep}
-
+
\section*{This part is the title itself}
and this part is the section body\ldots
@@ -1920,7 +1929,7 @@
\vspace{1pc}%
\Huge}
\end{verbatim}
-
+
\examplesep
\def\thesection{\Roman{section}}
@@ -1980,7 +1989,7 @@
% 5+1=6, ie, the negative left margin in section
\widenhead{6pc}{0pc}
-
+
\renewpagestyle{plain}{}
\newpagestyle{special}[\small\sffamily]{
@@ -1987,7 +1996,7 @@
\headrule
\sethead[\usepage][\textsl{\chaptertitle}][]
{}{\textsl{\chaptertitle}}{\usepage}}
-
+
\newpagestyle{main}[\small\sffamily]{
\headrule
\sethead[\usepage][\textsl{\thechapter. \chaptertitle}][]
@@ -2048,7 +2057,7 @@
\begin{verbatim}
\usepackage[dvips]{color}
\usepackage[rigidchapters,explicit]{titlesec}
-
+
\DeclareFixedFont{\chapterfont}{T1}{phv}{bx}{n}{11cm}
\titlespacing{\chapter}{0pt}{0pt}{210pt}
@@ -2074,3 +2083,24 @@
\end{document}
+MIT License
+-----------
+
+Permission is hereby granted, free of charge, to any person obtaining a
+copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be included
+in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Deleted: trunk/Master/texmf-dist/tex/latex/titlesec/block.tss
===================================================================
--- trunk/Master/texmf-dist/tex/latex/titlesec/block.tss 2019-07-18 20:34:08 UTC (rev 51663)
+++ trunk/Master/texmf-dist/tex/latex/titlesec/block.tss 2019-07-18 20:34:43 UTC (rev 51664)
@@ -1,44 +0,0 @@
-% +--------------------------------------------------+
-% | Typeset titlesec.tex to get the documentation. |
-% +--------------------------------------------------+
-%
-% Copyright (c) 1998-2016 by Javier Bezos.
-% All Rights Reserved.
-%
-% This file is part of the titlesec distribution release 2.10.2
-% -----------------------------------------------------------
-%
-% It may be distributed and/or modified under the
-% conditions of the LaTeX Project Public License, either version 1.3
-% of this license or (at your option) any later version.
-% The latest version of this license is in
-% http://www.latex-project.org/lppl.txt
-% and version 1.3 or later is part of all distributions of LaTeX
-% version 2003/12/01 or later.
-%
-% This work has the LPPL maintenance status "maintained".
-%
-% The Current Maintainer of this work is Javier Bezos.
-
-\ProvidesFile{block.tss}[2016/03/15]
-
-\gdef\ttlh at block#1#2#3#4#5#6#7#8{%
- \gdef\ttl at makeline##1{\ttl at calc\hspace{#6}##1\ttl at calc\hspace{#7}}%
- \setlength\leftskip{#6}%
- \setlength\rightskip{#7}%
- \interlinepenalty\@M
- \ttl at changecentercr
- \ttl at beginlongest
- #1% \ifhmode\ttl at hmode@error\fi
- \ttl at glcmds
- \parindent\z@
- \leavevmode
- \ifttl at label
- {#2}%
- \setlength\@tempskipa{#3}%
- \ifdim\@tempskipa=\z@\else\ttl at calc\hspace{#3}\fi
- \fi
- #4{#8}%
- \kern\z@\strut\@@par
- \nobreak\ttl at midlongest#5\@@par
- \ttl at endlongest}
Deleted: trunk/Master/texmf-dist/tex/latex/titlesec/drop.tss
===================================================================
--- trunk/Master/texmf-dist/tex/latex/titlesec/drop.tss 2019-07-18 20:34:08 UTC (rev 51663)
+++ trunk/Master/texmf-dist/tex/latex/titlesec/drop.tss 2019-07-18 20:34:43 UTC (rev 51664)
@@ -1,61 +0,0 @@
-% +--------------------------------------------------+
-% | Typeset titlesec.tex to get the documentation. |
-% +--------------------------------------------------+
-%
-% Copyright (c) 1998-2016 by Javier Bezos.
-% All Rights Reserved.
-%
-% This file is part of the titlesec distribution release 2.10.2
-% -----------------------------------------------------------
-%
-% It may be distributed and/or modified under the
-% conditions of the LaTeX Project Public License, either version 1.3
-% of this license or (at your option) any later version.
-% The latest version of this license is in
-% http://www.latex-project.org/lppl.txt
-% and version 1.3 or later is part of all distributions of LaTeX
-% version 2003/12/01 or later.
-%
-% This work has the LPPL maintenance status "maintained".
-%
-% The Current Maintainer of this work is Javier Bezos.
-
-\ProvidesFile{drop.tss}[2016/03/15]
-
-\gdef\ttlh at drop#1#2#3#4#5#6#7#8{%
- \global\@noskipsectrue
- \gdef\ttl at makeline##1{##1}%
- \ttl at changecentercr
- #1\ifhmode\ttl at hmode@error\fi
- \parindent\z@
- \global\setbox\ttl at box\vtop{\setlength\hsize{#6}%
- \color at begingroup
- \ifttl at label{#2}\ttl at calc\hspace{#3}\fi
- #4{#8}\kern\z@\strut
- \@@par
- \color at endgroup}%
- \advance\@tempskipa1.5\baselineskip
- \advance\@tempskipa\ht\ttl at box
- \advance\@tempskipa\dp\ttl at box
- \advance\@tempskipa-\pagegoal
- \advance\@tempskipa\pagestretch
- \@tempskipb\pagegoal
- \pagegoal-\@tempskipa
- \ifdim\bottomtitlespace<\z@\else
- \def\@textbottom{\vskip\z@\@plus.0001fil}%
- \fi
- \penalty9999
- \pagegoal\@tempskipb
- \@tempdima\ht\ttl at box \advance\@tempdima\dp\ttl at box
- \@tempdimb\@tempdima
- \divide\@tempdima\baselineskip \count@\@tempdima
- \advance\count@
- \ifdim\@tempdimb<\the\count at .5\baselineskip\@ne\else\tw@\fi
- \dp\ttl at box=\z@
- \xdef\@svsechd##1##2{%
- \noexpand\llap{\box\ttl at box##2}%
- \setbox\z@\hbox{\noexpand\ttl at calc\noexpand\hspace{#6}\relax##2}%
- \global\hangindent\wd\z@
- \global\hangafter-\the\count@\relax}}
-
-\endinput
Deleted: trunk/Master/texmf-dist/tex/latex/titlesec/frame.tss
===================================================================
--- trunk/Master/texmf-dist/tex/latex/titlesec/frame.tss 2019-07-18 20:34:08 UTC (rev 51663)
+++ trunk/Master/texmf-dist/tex/latex/titlesec/frame.tss 2019-07-18 20:34:43 UTC (rev 51664)
@@ -1,68 +0,0 @@
-% +--------------------------------------------------+
-% | Typeset titlesec.tex to get the documentation. |
-% +--------------------------------------------------+
-%
-% Copyright (c) 1998-2016 by Javier Bezos.
-% All Rights Reserved.
-%
-% This file is part of the titlesec distribution release 2.10.2
-% -----------------------------------------------------------
-%
-% It may be distributed and/or modified under the
-% conditions of the LaTeX Project Public License, either version 1.3
-% of this license or (at your option) any later version.
-% The latest version of this license is in
-% http://www.latex-project.org/lppl.txt
-% and version 1.3 or later is part of all distributions of LaTeX
-% version 2003/12/01 or later.
-%
-% This work has the LPPL maintenance status "maintained".
-%
-% The Current Maintainer of this work is Javier Bezos.
-
-\ProvidesFile{frame.tss}[2016/03/15]
-
-\gdef\ttlh at frame#1#2#3#4#5#6#7#8{%
- \def\ttl at filleft##1{\hfill}%
- \def\ttl at filright##1{\hfill}%
- \gdef\ttl at makeline##1{%
- \ttl at calc\hspace{#6}##1\ttl at calc\hspace{#7}}%
- \interlinepenalty\@M
- \ttl at changecentercr
- #1\ifhmode\ttl at hmode@error\fi
- \parindent\z@
- \leavevmode
- \@tempdima\fboxrule
- \addtolength\@tempdima{#3}%
- \setlength\leftskip{#6}%
- \setlength\rightskip{#7}%
- \lower\@tempdima\hbox{%
- \everypar{}%
- \setbox\z@\hbox{#2}%
- \addtolength\hsize{-#6}%
- \addtolength\hsize{-#7}%
- \@tempdima\dp\z@ % 2002/3/22
- \advance\@tempdima.5\ht\z@
- \vbox{%
- \hbox to \hsize{%
- \leaders\hrule\@height\fboxrule\ttl at filleft{#3}%
- \ifttl at label\lower.5\ht\z@\box\z@\fi
- \leaders\hrule\@height\fboxrule\ttl at filright{#3}}%
- \vskip-\lineskip
- \ifttl at label\vskip-\@tempdima\fi
- \hbox{%
- \vrule\@width\fboxrule
- \kern-\fboxrule
- \vbox{%
- \ttl at calc\vspace{#3}%
- \leavevmode
- \addtolength\leftskip {#3}\addtolength\leftskip{-#6}%
- \addtolength\rightskip{#3}\addtolength\rightskip{-#7}%
- \strut#4{#8}\kern\z@\strut\@@par
- \ttl at calc\vspace{#3}}%
- \kern-\fboxrule
- \vrule\@width\fboxrule}%
- \hrule\@height\fboxrule}}%
- \@@par\nobreak#5\@@par}
-
-\endinput
Deleted: trunk/Master/texmf-dist/tex/latex/titlesec/leftmargin.tss
===================================================================
--- trunk/Master/texmf-dist/tex/latex/titlesec/leftmargin.tss 2019-07-18 20:34:08 UTC (rev 51663)
+++ trunk/Master/texmf-dist/tex/latex/titlesec/leftmargin.tss 2019-07-18 20:34:43 UTC (rev 51664)
@@ -1,62 +0,0 @@
-% +--------------------------------------------------+
-% | Typeset titlesec.tex to get the documentation. |
-% +--------------------------------------------------+
-%
-% Copyright (c) 1998-2016 by Javier Bezos.
-% All Rights Reserved.
-%
-% This file is part of the titlesec distribution release 2.10.2
-% -----------------------------------------------------------
-%
-% It may be distributed and/or modified under the
-% conditions of the LaTeX Project Public License, either version 1.3
-% of this license or (at your option) any later version.
-% The latest version of this license is in
-% http://www.latex-project.org/lppl.txt
-% and version 1.3 or later is part of all distributions of LaTeX
-% version 2003/12/01 or later.
-%
-% This work has the LPPL maintenance status "maintained".
-%
-% The Current Maintainer of this work is Javier Bezos.
-
-\ProvidesFile{leftmargin.tss}[2016/03/15]
-
-\gdef\ttlh at leftmargin#1#2#3#4#5#6#7#8{%
- \global\@noskipsectrue
- \addtolength\@tempskipb{#6}%
- \xdef\ttl at makeline##1{\hskip-\the\@tempskipb\relax##1}%
- \leftskip\z at skip
- \rightskip\z at skip
- \ttl at changecentercr
- #1\ifhmode\ttl at hmode@error\fi
- \parindent\z@
- \global\setbox\ttl at box\vtop{%
- \setlength\hsize{#6}%
- \linewidth\hsize
- \everypar{}%
- \color at begingroup
- \ifttl at label{\strut#2\strut}\ttl at calc\hspace{#3}\fi
- \strut#4{#8}\kern\z@\strut\@@par
- \color at endgroup}%
- \advance\@tempskipa\ht\ttl at box
- \advance\@tempskipa\dp\ttl at box
- \advance\@tempskipa-\pagegoal
- \advance\@tempskipa\pagestretch
- \@tempskipb\pagegoal
- \pagegoal-\@tempskipa
- \ifdim\bottomtitlespace<\z@\else
- \def\@textbottom{\vskip\z@\@plus.0001fil}%
- \fi
- \penalty9999
- \pagegoal\@tempskipb
- \dp\ttl at box=\z@
- \gdef\@svsechd##1##2{%
- \llap{\box\ttl at box##2}%
- \if at afterindent\hskip\parindent\fi
- #5}}
-
-\endinput
-
-
-
Deleted: trunk/Master/texmf-dist/tex/latex/titlesec/margin.tss
===================================================================
--- trunk/Master/texmf-dist/tex/latex/titlesec/margin.tss 2019-07-18 20:34:08 UTC (rev 51663)
+++ trunk/Master/texmf-dist/tex/latex/titlesec/margin.tss 2019-07-18 20:34:43 UTC (rev 51664)
@@ -1,61 +0,0 @@
-% +--------------------------------------------------+
-% | Typeset titlesec.tex to get the documentation. |
-% +--------------------------------------------------+
-%
-% Copyright (c) 1998-2016 by Javier Bezos.
-% All Rights Reserved.
-%
-% This file is part of the titlesec distribution release 2.10.2
-% -----------------------------------------------------------
-%
-% It may be distributed and/or modified under the
-% conditions of the LaTeX Project Public License, either version 1.3
-% of this license or (at your option) any later version.
-% The latest version of this license is in
-% http://www.latex-project.org/lppl.txt
-% and version 1.3 or later is part of all distributions of LaTeX
-% version 2003/12/01 or later.
-%
-% This work has the LPPL maintenance status "maintained".
-%
-% The Current Maintainer of this work is Javier Bezos.
-
-\ProvidesFile{margin.tss}[2016/03/15]
-
-\gdef\ttlh at margin#1#2#3#4#5#6#7#8{%
- \global\@noskipsectrue
- \addtolength\@tempskipb{#6}%
- \xdef\ttl at makeline##1{\hskip-\the\@tempskipb\relax##1}%
- \leftskip\z at skip
- \rightskip\z at skip
- \ttl at changecentercr
- #1\ifhmode\ttl at hmode@error\fi
- \parindent\z@
- \global\setbox\ttl at box\vtop{%
- \setlength\hsize{#6}%
- \linewidth\hsize
- \everypar{}%
- \color at begingroup
- \ifttl at label{\strut#2\strut}\ttl at calc\hspace{#3}\fi
- \strut#4{#8}\kern\z@\strut\@@par
- \color at endgroup}%
- \advance\@tempskipa\ht\ttl at box
- \advance\@tempskipa\dp\ttl at box
- \advance\@tempskipa-\pagegoal
- \advance\@tempskipa\pagestretch
- \@tempskipb\pagegoal
- \pagegoal-\@tempskipa
- \ifdim\bottomtitlespace<\z@\else
- \def\@textbottom{\vskip\z@\@plus.0001fil}%
- \fi
- \penalty9999
- \pagegoal\@tempskipb
- \dp\ttl at box=\z@
- \gdef\@svsechd##1##2{%
- \llap{\box\ttl at box##2}%
- \if at afterindent\hskip\parindent\fi}}
-
-\endinput
-
-
-
Deleted: trunk/Master/texmf-dist/tex/latex/titlesec/rightmargin.tss
===================================================================
--- trunk/Master/texmf-dist/tex/latex/titlesec/rightmargin.tss 2019-07-18 20:34:08 UTC (rev 51663)
+++ trunk/Master/texmf-dist/tex/latex/titlesec/rightmargin.tss 2019-07-18 20:34:43 UTC (rev 51664)
@@ -1,59 +0,0 @@
-% +--------------------------------------------------+
-% | Typeset titlesec.tex to get the documentation. |
-% +--------------------------------------------------+
-%
-% Copyright (c) 1998-2016 by Javier Bezos.
-% All Rights Reserved.
-%
-% This file is part of the titlesec distribution release 2.10.2
-% -----------------------------------------------------------
-%
-%
-% It may be distributed and/or modified under the
-% conditions of the LaTeX Project Public License, either version 1.3
-% of this license or (at your option) any later version.
-% The latest version of this license is in
-% http://www.latex-project.org/lppl.txt
-% and version 1.3 or later is part of all distributions of LaTeX
-% version 2003/12/01 or later.
-%
-% This work has the LPPL maintenance status "maintained".
-%
-% The Current Maintainer of this work is Javier Bezos.
-
-\ProvidesFile{rightmargin.tss}[2016/03/15]
-
-\gdef\ttlh at rightmargin#1#2#3#4#5#6#7#8{%
- \global\@noskipsectrue
- \addtolength\@tempskipb{#6}%
- \xdef\ttl at makeline##1{##1\hskip-\the\@tempskipb}%
- \leftskip\z at skip
- \rightskip\z at skip
- \ttl at changecentercr
- #1\ifhmode\ttl at hmode@error\fi
- \parindent\z@
- \global\setbox\ttl at box\vtop{%
- \setlength\hsize{#6}%
- \linewidth\hsize
- \everypar{}%
- \color at begingroup
- \ifttl at label{\strut#2\strut}\ttl at calc\hspace{#3}\fi
- \strut#4{#8}\kern\z@\strut\@@par
- \color at endgroup}%
- \advance\@tempskipa\ht\ttl at box
- \advance\@tempskipa\dp\ttl at box
- \advance\@tempskipa-\pagegoal
- \advance\@tempskipa\pagestretch
- \@tempskipb\pagegoal
- \pagegoal-\@tempskipa
- \ifdim\bottomtitlespace<\z@\else
- \def\@textbottom{\vskip\z@\@plus.0001fil}%
- \fi
- \penalty9999
- \pagegoal\@tempskipb
- \dp\ttl at box=\z@
- \gdef\@svsechd##1##2{%
- \rlap{\hskip\textwidth##2\box\ttl at box}%
- \if at afterindent\hskip\parindent\fi}}
-
-\endinput
Modified: trunk/Master/texmf-dist/tex/latex/titlesec/titleps.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/titlesec/titleps.sty 2019-07-18 20:34:08 UTC (rev 51663)
+++ trunk/Master/texmf-dist/tex/latex/titlesec/titleps.sty 2019-07-18 20:34:43 UTC (rev 51664)
@@ -1,37 +1,26 @@
-% +--------------------------------------------------+
-% | Typeset titlesec.tex to get the documentation. |
-% +--------------------------------------------------+
%
-% Copyright (c) 1998-2016 by Javier Bezos.
-% All Rights Reserved.
+% Copyright (C) 1998-2019 Javier Bezos http://www.texnia.com
%
-% This file is part of the titlesec distribution release 2.10.2
-% -----------------------------------------------------------
+% This file may be distributed and/or modified under the conditions of
+% the MIT License. A version can be found at the end of this file.
%
-% It may be distributed and/or modified under the
-% conditions of the LaTeX Project Public License, either version 1.3
-% of this license or (at your option) any later version.
-% The latest version of this license is in
-% http://www.latex-project.org/lppl.txt
-% and version 1.3 or later is part of all distributions of LaTeX
-% version 2003/12/01 or later.
-%
-% This work has the LPPL maintenance status "maintained".
-%
-% The Current Maintainer of this work is Javier Bezos.
+% Repository: https://github.com/jbezos/titlesec
%
+%
% Release
% ~~~~~~~
+\ifx\ttl at coreps\@empty\else % START code for package
+
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{titleps}[2016/03/15 v1.1.1 Page styles]
+\ProvidesPackage{titleps}[2019/07/16 v2.11 Page styles]
% This package is mainly a wrapper for the pagestyle macros provided
% by titlesec, so that they can be used without it. Functionality is
% almost similar. First, some definitions from titlesec.
-\newif\ifttl at ps
-\newif\ifttl at toclabel
+\expandafter\newif\csname ifttl at ps\endcsname
+\expandafter\newif\csname ifttl at toclabel\endcsname
\ttl at toclabeltrue
\def\ttl at calcneg#1#2{%
@@ -38,12 +27,25 @@
{\setlength\@tempskipa{#2}%
#1{-\@tempskipa}}}
-\newif\ifttl at premark % to be used in ttlps.def
+\expandafter\newif\csname ifttl at premark\endcsname
\ttl at premarkfalse
+% 2019-02-25. Added the \lastskip stuff, because a mark 'forgets' the
+% last skip.
+
\def\ttl at premark#1#2{%
+ \let\ttl at lastskip\relax
+ \ifvmode
+ \ifdim\lastskip=\z@\else
+ \edef\ttl at lastskip{\the\lastskip}%
+ \vskip-\ttl at lastskip\relax
+ \fi
+ \fi
\protected at xdef\ttl at prevmarks{\ttl at marks}%
\csname#1mark\endcsname{#2}%
+ \ifx\ttl at lastskip\relax\else
+ \vskip\ttl at lastskip\relax
+ \fi
\gdef\ttl at prevmarks{\ttl at marks}}
\let\ttl at savemark\@empty
@@ -82,7 +84,7 @@
\AtBeginDocument{\ttl at atbegin}
% Package options
-
+
\DeclareOption{psfloats}{\let\ttl at replace\@empty} % a flag
\DeclareOption{outermarks}{%
@@ -106,10 +108,689 @@
\let\renewpagestyle\@empty
\let\widenhead\@empty
-\input ttlps.def
+\fi % PAUSE code for package
-% Raise error if the following are used
+% START core code
+% As before, all marks has two parts but now they don't refer to left or
+% right pages at all. There are some issues related to top marks which
+% are explained by Knuth in \textit{The \TeX book}, pp. 259f, as well
+% as an incompatibility between them and \LaTeX{} floats. To overcome
+% both limitations, in the \textsf{titleps} page styles, the second
+% part in |\cs{firstmark}| is a \emph{fixed} top mark and the first one
+% the actual first mark; the right way to get the bot mark is from the
+% second part. Marks are stored at each section and used before and
+% after the title (straight class); the first part contains the values
+% of current title, but the second one contains the previously stored
+% values in the mark before the title, and the current values in the
+% mark after.
+
+\ifx\ttl at compatps\@undefined\else
+ \PackageWarningNoLine{titlesec}
+ {You are using an old interface for page styles\MessageBreak
+ (or you forgot the package option 'pagestyles').\MessageBreak
+ You could proceed but don't complain if you run\MessageBreak
+ into errors}
+\fi
+
+\ttl at pstrue
+
+\let\parttitle\@empty
+\let\chaptertitle\@empty
+\let\sectiontitle\@empty
+\let\subsectiontitle\@empty
+\let\subsubsectiontitle\@empty
+\let\paragraphtitle\@empty
+\let\subparagraphtitle\@empty
+
+\newcommand\iftitle[1]{%
+ \expandafter\ifx\csname #1title\endcsname\@empty
+ \expandafter\@secondoftwo
+ \else
+ \expandafter\@firstoftwo
+ \fi}
+
+% \newtitlemarks belongs to a nameless markset (ie, \@empty).
+% For named extra marksets see below.
+
+\newcommand\newtitlemark{%
+ \@ifstar{\@tempswafalse\ttl at newmk@i\@empty}%
+ {\@tempswatrue\ttl at newmk@i\@empty}}
+
+\def\ttl at newmk@i#1#2{% markset, macro/var
+ \edef\ttl at a{\expandafter\@gobble\string#2}%
+ \expandafter\ifx\csname\ttl at a\endcsname#2\else
+ \edef\ttl at a{c@#2}%
+ \fi
+ \expandafter\ttl at newmk@ii\expandafter{\ttl at a}{#1}}
+
+\def\ttl at newmk@ii#1#2{% macro/var, markset
+ \expandafter\let\expandafter\ttl at a\csname ttl at mks@#2\endcsname
+ \if at tempswa
+ \expandafter\def\expandafter\ttl at a\expandafter{%
+ \ttl at a
+ \protect\@namedef{#1}{\@nameuse{#1}}}%
+ \else
+ \expandafter\def\expandafter\ttl at a\expandafter{%
+ \ttl at a
+ \protect\@nameuse{#1}=\the\@nameuse{#1}\relax}%
+ \fi
+ \expandafter\let\csname ttl at mks@#2\endcsname\ttl at a}
+
+\let\ttl at mks@\@empty
+\def\ttl at moremarks{\ttl at mks@} % backward compat
+
+\def\ttl at prevmarks{\ttl at marks}
+\let\ttl at marks\relax
+
+% The following command sets the ifthe... commands to
+% be used in heads. When the call is from inside a sectioning
+% command, toclabel is either true (in most of cases) or false
+% (a chapter in the front matter, for example). Otherwise (an
+% explicit \...mark) is false
+
+\def\ttl at setifthe#1{%
+ \expandafter\protected at edef\csname ifthe#1\endcsname{%
+ \ifttl at toclabel
+ \protect\@firstoftwo
+ \else
+ \protect\@secondoftwo
+ \fi}}
+
+% At this point \ttl at toclabel is always false
+
+\ttl at setifthe{part}
+\ttl at setifthe{chapter}
+\ttl at setifthe{section}
+\ttl at setifthe{subsection}
+\ttl at setifthe{subsubsection}
+\ttl at setifthe{paragraph}
+\ttl at setifthe{subparagraph}
+
+% Putting marks
+% -------------
+
+\newtitlemark{\ttl at running}
+\let\ttl at enccode\relax
+\def\ttl at running{\ttl at enccode}
+
+% \ttl at markboth redefines temporarily \mark to fetch changes made by
+% babel or ams, saved in \ttl at running. When this is done, the actual
+% \mark es emitted, which has \ttl at running as part of the markset (see
+% the \newtitlemark above).
+
+\def\ttl at mb@mark{\markboth}
+\def\ttl at mb@warn{%
+ \PackageWarningNoLine{titleps}
+ {Direct use of \string\markboth\space and \string\markleft\space
+ can lead\MessageBreak
+ to unpredictable results. Please, read the manual\MessageBreak
+ for an explanation of this warning.}}
+
+\def\ttl at markboth#1{%
+ \begingroup
+ \let\protect\@unexpandable at protect
+ \let\@mkboth\@gobbletwo
+ \let\ttl at enccode\relax
+ \let\label\relax
+ \let\index\relax
+ \let\glossary\relax
+ \let\ttl at c\mark
+ \def\mark##1{\xdef\ttl at running{\expandafter\@gobble##1}}%
+ \ttl at mb@mark{}{\ttl at enccode}%
+ \expandafter\let\csname#1mark\endcsname\@gobble
+ \xdef\ttl at marks{\ttl at marks}%
+ \gdef\@themark{{\ttl at marks}{\ttl at prevmarks}}%
+ \ttl at c{\@themark\let\noexpand\ttl at mb@warn\relax}%
+ \@nameuse{ttl at tem@#1}%
+ \if at nobreak\ifvmode\nobreak\fi\fi
+ \endgroup}
+
+\newcommand\settitlemarks{\@ifstar\ttl at svmarks@s\ttl at svmarks@x}
+
+\def\ttl at svmarks@x#1{\def\ttl at marksset{{#1}}}
+\def\ttl at svmarks@s#1{\def\ttl at marksset{*{#1}}}
+
+\newcommand\setmarks[2]{\settitlemarks{#1,#2}} % back compat
+
+\def\ttl at settopmark#1\@@{%
+ \expandafter\def\csname#1mark\endcsname##1{%
+ \expandafter\gdef\csname#1title\endcsname{##1}%
+ \ttl at setifthe{#1}%
+ \expandafter\let\expandafter\ttl at marks\csname ttl at tm@#1\endcsname
+ \ttl at markboth{#1}}%
+ \global\@namedef{ttl at tm@#1}{%
+ \protect\@namedef{#1title}{\@nameuse{#1title}}%
+ \protect\@namedef{the#1}{\@nameuse{the#1}}%
+ \protect\@namedef{ifthe#1}{\@nameuse{ifthe#1}}}%
+ \def\ttl at elt##1{%
+ \expandafter\ttl at setsubmark\ttl at a\@@{##1}}%
+ \ttl at c}%
+
+\def\ttl at setsubmark#1\@@#2{%
+ \expandafter\g at addto@macro\csname ttl at tm@#2\endcsname{%
+ \protect\@namedef{#1title}{}%
+ \protect\@namedef{the#1}{}%
+ \protect\@namedef{ifthe#1}{\protect\@secondoftwo}}
+ \expandafter\g at addto@macro\csname ttl at tm@#1\endcsname{%
+ \protect\@namedef{#2title}{\@nameuse{#2title}}%
+ \protect\@namedef{the#2}{\@nameuse{the#2}}%
+ \protect\@namedef{ifthe#2}{\@nameuse{ifthe#2}}}}%
+
+\def\ttl at setmarks@x#1{%
+ \let\ttl at c\@empty % sub list
+ \@for\ttl at a:=#1\do{%
+ \expandafter\ttl at settopmark\ttl at a\@@
+ \let\ttl at elt\relax
+ \xdef\ttl at c{\ttl at c\ttl at elt{\ttl at a}}}%
+ \@for\ttl at a:=#1\do{%
+ \expandafter\g at addto@macro\csname ttl at tm@\ttl at a\endcsname{%
+ \ttl at moremarks}}}
+
+\def\ttl at setmarks@s#1{% Solo con extramarks
+ \PackageError{titleps}%
+ {You need `extramarks' for \string\settitlemarks*}%
+ {\string\settitlemarks* requires the package option `extramarks'}}
+
+\newcommand\pretitlemark{%
+ \global\ttl at premarktrue
+ \@ifstar{\ttl at pretitlemark\z@}%
+ {\ttl at pretitlemark\@ne}}
+
+\def\ttl at pretitlemark#1#2#3{%
+ \addtocounter{#2}#1%
+ \ttl at premark{#2}{#3}%
+ \addtocounter{#2}{-#1}}
+
+% Rules
+% -----
+
+\newcommand\headrule{\setheadrule{.4\p@}}
+\newcommand\footrule{\setfootrule{.4\p@}}
+
+\newcommand\setheadrule[1]{%
+ \ifdim#1=\z@
+ \let\makeheadrule\@empty
+ \else
+ \def\makeheadrule{\rule[-.3\baselineskip]{\linewidth}{#1}}%
+ \fi}
+\newcommand\setfootrule[1]{%
+ \ifdim#1=\z@
+ \let\makefootrule\@empty
+ \else
+ \def\makefootrule{\rule[.7\baselineskip]{\linewidth}{#1}}%
+ \fi}
+
+\renewcommand\newpagestyle[1]{%
+ \begingroup
+ \catcode`\^^M=9
+ \@ifnextchar[%
+ {\ttl at pagestyle\newcommand{#1}}%
+ {\ttl at pagestyle\newcommand{#1}[]}}
+
+\renewcommand\renewpagestyle[1]{%
+ \begingroup
+ \catcode`\^^M=9
+ \@ifnextchar[%
+ {\ttl at pagestyle\renewcommand{#1}}%
+ {\ttl at pagestyle\renewcommand{#1}[]}}
+
+\def\ttl at pagestyle#1#2[#3]#4{%
+ \endgroup
+ \expandafter#1\csname ps@#2\endcsname{%
+ \ttl at defaultps
+ \def\ttl at headfmt{#3}%
+ #4%
+ \def\settitlemarks{\@ifstar\ttl at svmarks@s\ttl at svmarks@x}}}
+
+\def\ttl at userunning#1#2{\csname ttlr@#1#2\endcsname}
+
+\def\ttl at defaultps{%
+ \let\makeheadrule\@empty
+ \let\makefootrule\@empty
+ \def\@mkboth{\ttl at savemark\@gobbletwo}%
+ \def\@oddfoot{\ttl at userunning of}%
+ \def\@evenfoot{\ttl at userunning ef}%
+ \def\@oddhead{\ttl at userunning oh}%
+ \def\@evenhead{\ttl at userunning eh}%
+ \def\ttlr at of{\ttl at makefoot\@empty\@@\ttl at hiol\ttl at hior}%
+ \def\ttlr at ef{\ttl at makefoot\@empty\@@\ttl at hiel\ttl at hier}%
+ \def\ttlr at oh{\ttl at makehead\@empty\@@\ttl at hiol\ttl at hior}%
+ \def\ttlr at eh{\ttl at makehead\@empty\@@\ttl at hiel\ttl at hier}%
+ \let\ttlr at of@b\relax \let\ttlr at of@p\relax
+ \let\ttlr at ef@b\relax \let\ttlr at ef@p\relax
+ \let\ttlr at oh@t\relax \let\ttlr at oh@p\relax
+ \let\ttlr at eh@t\relax \let\ttlr at eh@p\relax
+ \def\settitlemarks{\@ifstar\ttl at setmarks@s\ttl at setmarks@x}%
+ \expandafter\settitlemarks\ttl at marksset}
+
+\@ifundefined{chapter}%
+ {\settitlemarks{section,subsection}}%
+ {\settitlemarks{chapter,section}}
+
+\newcommand\usepage{\protect\thepage} % back compat
+
+\newcommand\toptitlemarks{\expandafter\@secondoftwo\firstmark{}{}{}}
+\def\firsttitlemarks{%
+ \toks@\expandafter\expandafter\expandafter{%
+ \expandafter\@secondoftwo \firstmark{}{}{}}%
+ \@temptokena\expandafter\expandafter\expandafter{%
+ \expandafter\@secondoftwo \botmark{}{}{}}%
+ \edef\ttl at a{\the\toks@}%
+ \edef\ttl at b{\the\@temptokena}%
+ \ifx\ttl at a\ttl at b
+ \expandafter\@secondoftwo\firstmark{}{}{}%
+ \else
+ \expandafter\@firstoftwo \firstmark{}{}{}%
+ \fi}
+\newcommand\bottitlemarks{\expandafter\@secondoftwo\botmark{}{}{}}
+\newcommand\nexttoptitlemarks{\expandafter\@firstoftwo\botmark{}{}{}}
+\newcommand\outertitlemarks{%
+ \if at twoside
+ \ifodd\c at page\relax
+ \bottitlemarks
+ \else
+ \toptitlemarks
+ \fi
+ \else
+ \toptitlemarks
+ \fi}
+\newcommand\innertitlemarks{%
+ \if at twoside
+ \ifodd\c at page\relax
+ \firsttitlemarks
+ \else
+ \bottitlemarks
+ \fi
+ \else
+ \bottitlemarks
+ \fi}
+
+\def\ttl at duplthreeargs#1#2#3#4{#1[#2][#3][#4]{#2}{#3}{#4}}
+\def\ttl at dupltwoargs#1#2#3{#1[#2][#3]{#2}{#3}}
+\def\ttl at duplthreeargsrev#1#2#3#4{#1[#4][#3][#2]{#2}{#3}{#4}}
+\def\ttl at dupltwoargsrev#1#2#3{#1[#3][#2]{#2}{#3}}
+
+\def\ttl at setany#1{%
+ \@ifstar{\ttl at duplthreeargsrev#1}%
+ {\@ifnextchar[{#1}{\ttl at duplthreeargs#1}}}
+
+\newcommand\setfoot{\ttl at setany\ttl at setfoot}
+\newcommand\sethead{\ttl at setany\ttl at sethead}
+
+\def\ttl at setfoot[#1][#2][#3]#4#5#6{%
+ \def\ttlr at ef{\ttl at makefoot{#1}{#2}{#3}\@@\ttl at hiel\ttl at hier}%
+ \def\ttlr at of{\ttl at makefoot{#4}{#5}{#6}\@@\ttl at hiol\ttl at hior}}
+
+\def\ttl at sethead[#1][#2][#3]#4#5#6{%
+ \def\ttlr at eh{\ttl at makehead{#1}{#2}{#3}\@@\ttl at hiel\ttl at hier}%
+ \def\ttlr at oh{\ttl at makehead{#4}{#5}{#6}\@@\ttl at hiol\ttl at hior}}
+
+\def\ttl at headinline#1#2#3{%
+ \ttl at headfmt
+ \def\ttl at a{#1#3}\def\ttl at b{#2}%
+ \ifx\ttl at a\@empty
+ \hfil{#2}\hfil
+ \else\ifx\ttl at b\@empty
+ {#1}\hfil{#3}%
+ \else
+ \sbox\z@ {#1}%
+ \sbox\tw@{#3}%
+ \copy\z@
+ \ifdim\wd\z@<\wd\tw@
+ \kern-\wd\z@\kern\wd\tw@
+ \fi
+ \hfil{#2}\hfil
+ \ifdim\wd\z@>\wd\tw@
+ \kern-\wd\tw@\kern\wd\z@
+ \fi
+ \box\tw@
+ \fi\fi}
+
+\def\ttl at makeboth#1#2#3#4{%
+ \ttl at calcneg\hspace{#3}%
+ \normalsize
+ \linewidth\textwidth
+ \addtolength\linewidth{#3}%
+ \addtolength\linewidth{#4}%
+ \ifx#2\@empty\else
+ \setbox\z@\hb at xt@\linewidth{%
+ \color at begingroup
+ #2%
+ \color at endgroup}%
+ \wd\z@\z@
+ \ht\z@\z@
+ \dp\z@\z@
+ \box\z@
+ \fi
+ \ttl at titlemarks % Must precede the format. Defines \ttl at running
+ \def\ttl at enccode{\ttl at headinline#1{}{}{}}% which contains ttl at enccode
+ \ttl at running
+ \ttl at calcneg\hspace{#4}}%
+
+\def\ttl at makehead#1\@@{\ttl at makeboth{#1}\makeheadrule}
+\def\ttl at makefoot#1\@@{\ttl at makeboth{#1}\makefootrule}
+
+\renewcommand\widenhead{%
+ \@ifstar{\ttl at dupltwoargsrev\ttl at widenhd}%
+ {\@ifnextchar[{\ttl at widenhd}{\ttl at dupltwoargs\ttl at widenhd}}}
+
+\def\ttl at widenhd[#1][#2]#3#4{%
+ \def\ttl at hiel{#1}\def\ttl at hier{#2}%
+ \def\ttl at hiol{#3}\def\ttl at hior{#4}}
+
+\let\setheadindent\widenhead
+
+\def\ttl at hiel{\z@}\def\ttl at hier{\z@}
+\def\ttl at hiol{\z@}\def\ttl at hior{\z@}
+
+% A tool:
+
+\def\ifsamemark#1#2{%
+ {#1\global\let\ttl at c#2}%
+ \ifx\ttl at c#2%
+ \expandafter\@firstoftwo
+ \else
+ \expandafter\@secondoftwo
+ \fi}
+
+% Another tool:
+
+\newcommand\setmarkboth{%
+ \ifx\markboth\ttl at mb@use\else
+ \let\ttl at mb@mark\markboth
+ \let\markboth\ttl at mb@use
+ \fi
+ \def\ttl at mb@new##1##2}
+
+% \ttl at mb@temp is a trick to allow resetting inside \setmarkboth.
+
+\def\ttl at mb@use#1#2{%
+ \let\markboth\ttl at mb@mark
+ \def\ttl at mb@temp{\let\markboth\ttl at mb@use}%
+ \ttl at mb@new{#1}{#2}%
+ \ttl at mb@temp
+ \let\ttl at mb@temp\@undefined}
+
+\newcommand\resetmarkboth{%
+ \ifx\ttl at mb@temp\@undefined
+ \let\markboth\ttl at mb@mark
+ \def\ttl at mb@mark{\markboth}%
+ \else
+ \def\ttl at mb@temp{%
+ \let\markboth\ttl at mb@mark
+ \def\ttl at mb@mark{\markboth}}%
+ \fi}
+
+% ===========
+% EXTRA MARKS
+% ===========
+
+\ifx\ttl at fetchmark\@empty
+
+\ifx\newmarks\@undefined
+ \PackageInfo{titleps}{%
+ You have requested `extramarks' but etex or similar\MessageBreak
+ has not been loaded. I'll do it for you.}
+ \RequirePackage{etex}
+\fi
+
+\def\ttl at setmarks@s#1{%
+ \@for\ttl at a:=#1\do{%
+ \@ifundefined{ttl at mkc@\ttl at a}{%
+ \expandafter\newmarks\csname ttl at mkc@\ttl at a\endcsname}{}%
+ \expandafter\xdef\csname ttl at tem@\ttl at a\endcsname{%
+ \marks\expandafter\noexpand\csname ttl at mkc@\ttl at a\endcsname
+ {\noexpand\@themark}}}%
+ \ttl at setmarks@x{#1}}%
+
+\newcommand\newmarkset[1]{%
+ \expandafter\newmarks\csname ttl at mkc@#1\endcsname
+ \@namedef{ttl at mks@#1}{}%
+ \@namedef{ttl at premks@#1}{\@nameuse{ttl at mks@#1}}}
+
+\newcommand\newextramark{%
+ \@ifstar{\@tempswafalse\ttl at newmk@i}%
+ {\@tempswatrue\ttl at newmk@i}}
+
+\def\ttl at extramark#1{%
+ \begingroup
+ \let\protect\@unexpandable at protect
+ \let\@mkboth\@gobbletwo
+ \let\label\relax
+ \let\index\relax
+ \let\glossary\relax\endgroup}
+
+\newcommand\extramark[1]{%
+ \begingroup
+ \let\protect\@unexpandable at protect
+ \let\@mkboth\@gobbletwo
+ \let\label\relax
+ \let\index\relax
+ \let\glossary\relax
+ \marks\csname ttl at mkc@#1\endcsname{%
+ {\@nameuse{ttl at mks@#1}}%
+ {\@nameuse{ttl at mks@#1}}}%
+ \expandafter\xdef\csname ttl at premks@#1\endcsname
+ {\@nameuse{ttl at mks@#1}}%
+ \endgroup
+ \if at nobreak\ifvmode\nobreak\fi\fi}%
+
+\newcommand\preextramark[1]{%
+ \begingroup
+ \let\protect\@unexpandable at protect
+ \let\@mkboth\@gobbletwo
+ \let\label\relax
+ \let\index\relax
+ \let\glossary\relax
+ \marks\csname ttl at mkc@#1\endcsname{%
+ {\csname ttl at mks@#1\endcsname}%
+ {\csname ttl at premks@#1\endcsname}}%
+ \endgroup
+ \if at nobreak\ifvmode\nobreak\fi\fi}
+
+\newcommand\newshortmark[1]{%
+ \newmarkset{\string#1}%
+ \newextramark{\string#1}#1}
+
+\newcommand\shortmark[1]{\extramark{\string#1}}
+\newcommand\preshortmark[1]{\preextramark{\string#1}}
+
+\newcommand\topshortmark[1]{{\topextramarks{\string#1}#1}}
+\newcommand\firstshortmark[1]{{\firstextramarks{\string#1}#1}}
+\newcommand\botshortmark[1]{{\botextramarks{\string#1}#1}}
+\newcommand\nexttopshortmark[1]{{\nexttopextramarks{\string#1}#1}}
+
+\def\ttl at fetchmark#1#2#3{%
+ \expandafter#1#2\csname ttl at mkc@#3\endcsname{}{}{}}
+
+\newcommand\topextramarks[1]{\ttl at fetchmark\@secondoftwo\firstmarks{#1}}
+\newcommand\firstextramarks[1]{%
+ \toks@\expandafter\expandafter\expandafter{%
+ \ttl at fetchmark\@secondoftwo\firstmarks{#1}}%
+ \@temptokena\expandafter\expandafter\expandafter{%
+ \ttl at fetchmark\@secondoftwo\botmarks{#1}}%
+ \edef\ttl at a{\the\toks@}%
+ \edef\ttl at b{\the\@temptokena}%
+ \ifx\ttl at a\ttl at b
+ \ttl at fetchmark\@secondoftwo\firstmarks{#1}%
+ \else
+ \ttl at fetchmark\@firstoftwo\firstmarks{#1}%
+ \fi}
+\newcommand\botextramarks[1]{\ttl at fetchmark\@secondoftwo\botmarks{#1}}
+\newcommand\nexttopextramarks[1]{\ttl at fetchmark\@firstoftwo\botmarks{#1}}
+
+\newcommand\outerextramarks[1]{%
+ \if at twoside
+ \ifodd\c at page\relax
+ \botextramarks{#1}%
+ \else
+ \topextramarks{#1}%
+ \fi
+ \else
+ \topextramarks{#1}%
+ \fi}
+\newcommand\innerextramarks[1]{%
+ \if at twoside
+ \ifodd\c at page\relax
+ \firstextramarks{#1}%
+ \else
+ \botextramarks{#1}%
+ \fi
+ \else
+ \botextramarks{#1}%
+ \fi}
+
+\fi
+
+% ======
+% FLOATS
+% ======
+%
+% Pagestyles with floats. There macros are defined only with the
+% psfloats package option.
+
+\ifx\ttl at replace\@undefined\else
+
+% User interface
+
+ \newcommand\setfloatfoot{%
+ \let\ttl at c\@empty % <- current float, empty if general
+ \ttl at setany\ttl at setftfoot}
+
+ \newcommand\setfloathead{%
+ \let\ttl at c\@empty % <- current float, empty if general
+ \ttl at setany\ttl at setfthead}
+
+ \def\ttl at setftfoot[#1][#2][#3]#4#5#6#7{%
+ \@ifnextchar[{\ttl at setftfoot@i{#1}{#2}{#3}{#4}{#5}{#6}{#7}}%
+ {\ttl at setftfoot@i{#1}{#2}{#3}{#4}{#5}{#6}{#7}[bp]}}
+
+ \def\ttl at setfthead[#1][#2][#3]#4#5#6#7{%
+ \@ifnextchar[{\ttl at setfthead@i{#1}{#2}{#3}{#4}{#5}{#6}{#7}}%
+ {\ttl at setfthead@i{#1}{#2}{#3}{#4}{#5}{#6}{#7}[tp]}}
+
+ \def\ttl at setftfoot@i#1#2#3#4#5#6#7[#8]{%
+ \@tfor\ttl at b:=#8\do{%
+ \@namedef{ttlr at ef@\ttl at b\ttl at c}%
+ {#7\ttl at makefoot{#1}{#2}{#3}\@@\ttl at hiel\ttl at hier}%
+ \@namedef{ttlr at of@\ttl at b\ttl at c}%
+ {#7\ttl at makefoot{#4}{#5}{#6}\@@\ttl at hiol\ttl at hior}}}
+
+ \def\ttl at setfthead@i#1#2#3#4#5#6#7[#8]{%
+ \@tfor\ttl at b:=#8\do{%
+ \@namedef{ttlr at eh@\ttl at b\ttl at c}%
+ {#7\ttl at makehead{#1}{#2}{#3}\@@\ttl at hiel\ttl at hier}%
+ \@namedef{ttlr at oh@\ttl at b\ttl at c}%
+ {#7\ttl at makehead{#4}{#5}{#6}\@@\ttl at hiol\ttl at hior}}}
+
+ \newcommand\nextfloathead{%
+ \ttl at nextfree % returns ttl at c with the next float
+ \ttl at setany\ttl at setfthead}
+
+ \newcommand\nextfloatfoot{%
+ \ttl at nextfree % returns ttl at c with the next float
+ \ttl at setany\ttl at setftfoot}
+
+% Compat mode with floatps
+
+ \ifx\ttl at replace\space
+
+ \let\ttl at setnewfoot\ttl at setftfoot
+ \let\ttl at setnewhead\ttl at setfthead
+
+ \def\ttl at setftfoot[#1][#2][#3]#4#5#6{%
+ \ttl at setnewfoot[#1][#2][#3]{#4}{#5}{#6}{}}
+ \def\ttl at setfthead[#1][#2][#3]#4#5#6{%
+ \ttl at setnewhead[#1][#2][#3]{#4}{#5}{#6}{}}
+
+ \fi
+
+% The simple default value of \ttl at userunning is
+% replaced by one more elaborated
+
+ \def\ttl at userunning#1#2{%
+ \if at fcolmade % From a post by D. Arseneau to comp.text.tex
+ \def\@elt##1{\edef\ttl at pageft{\string##1}}%
+ \@flsucceed
+ \let\@elt\relax
+ \if#2h%
+ \ttl at replace #1hp\ttl at pageft
+ \else
+ \ttl at replace #1fp\ttl at pageft
+ \ttl at killftps\ttl at pageft
+ \fi
+ \else\if#2h%
+ \ifx\ttl at topft\@empty\else
+ \ttl at replace #1ht\ttl at topft
+ \fi
+ \else
+ \ifx\ttl at botft\@empty\else
+ \ttl at replace #1fb\ttl at botft
+ \fi
+ \fi\fi
+ \csname ttlr@#1#2\endcsname}
+
+% [Don't move above as \ttl at replace is used as a flag.]
+
+ \def\ttl at replace#1#2#3#4{%
+ \@ifundefined{ttlr@#1#2@#3#4}%
+ {\@ifundefined{ttlr@#1#2@#3}{}%
+ {\@namedef{ttlr@#1#2}{\@nameuse{ttlr@#1#2@#3}}}}%
+ {\csname ttlr at xx@x#4\endcsname\@gobble
+ {\expandafter\let\csname ttlr@#1#2\expandafter\endcsname
+ \csname ttlr@#1#2@#3#4\endcsname}}}
+
+ \def\ttl at nextfree{%
+ \def\@elt##1{%
+ \edef\ttl at c{\string##1}%
+ \let\@elt\@gobble}%
+ \@freelist
+ \let\@elt\relax
+ \@ifundefined{ttlr at xx@x\ttl at c}%
+ {\expandafter\let\csname ttlr at xx@x\ttl at c\endcsname\@secondoftwo
+ \@tfor\ttl at a:={eh at t}{oh at t}{ef at b}{of at b}{eh at p}{oh at p}{ef at p}{of at p}\do{%
+ \expandafter\global\expandafter
+ \let\csname ttlr@\ttl at a\ttl at c\endcsname\relax}}{}}
+
+ \def\ttl at killftps#1{%
+ \expandafter\global\expandafter
+ \let\csname ttlr at xx@x#1\endcsname\relax}
+
+ \let\ttl at topft\@empty
+ \let\ttl at botft\@empty
+ \let\ttl at pageft\@empty
+
+ \def\ttl at combinefloats{%
+ \ifx\@toplist\@empty\else
+ \def\@elt##1{%
+ \edef\ttl at topft{\string##1}%
+ \def\@elt####1{\ttl at killftps{\string####1}}}%
+ \@toplist
+ \fi
+ \ifx\@botlist\@empty\else
+ \def\@elt##1{%
+ \def\@elt####1{%
+ \def\@elt####1{\ttl at killftps\ttl at botft}%
+ \edef\ttl at botft{\string####1}}%
+ \edef\ttl at botft{\string##1}}%
+ \@botlist
+ \fi
+ \let\@elt\relax
+ \ttl at combinefloats@x}
+
+ \AtBeginDocument{%
+ \let\ttl at combinefloats@x\@combinefloats
+ \let\@combinefloats\ttl at combinefloats}
+
+\fi
+
+% END core code
+
+\ifx\ttl at coreps\@empty\else % CONTINUE code for package
+
+% Raise error if the following are used without titlesec
+
\DeclareRobustCommand\ttl at naerror[1]{%
\PackageError{titleps}%
{#1\space only available in titlesec.\MessageBreak
@@ -129,4 +810,28 @@
\ttl at setifthe{paragraph}
\ttl at setifthe{subparagraph}
-\endinput
\ No newline at end of file
+\fi
+
+\endinput
+
+MIT License
+-----------
+
+Permission is hereby granted, free of charge, to any person obtaining a
+copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be included
+in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Modified: trunk/Master/texmf-dist/tex/latex/titlesec/titlesec.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/titlesec/titlesec.sty 2019-07-18 20:34:08 UTC (rev 51663)
+++ trunk/Master/texmf-dist/tex/latex/titlesec/titlesec.sty 2019-07-18 20:34:43 UTC (rev 51664)
@@ -1,24 +1,10 @@
-% +--------------------------------------------------+
-% | Typeset titlesec.tex to get the documentation. |
-% +--------------------------------------------------+
%
-% Copyright (c) 1998-2016 by Javier Bezos.
-% All Rights Reserved.
+% Copyright (C) 1998-2019 Javier Bezos http://www.texnia.com
%
-% This file is part of the titlesec distribution release 2.10.2
-% -----------------------------------------------------------
+% This file may be distributed and/or modified under the conditions of
+% the MIT License. A version can be found at the end of this file.
%
-% It may be distributed and/or modified under the
-% conditions of the LaTeX Project Public License, either version 1.3
-% of this license or (at your option) any later version.
-% The latest version of this license is in
-% http://www.latex-project.org/lppl.txt
-% and version 1.3 or later is part of all distributions of LaTeX
-% version 2003/12/01 or later.
-%
-% This work has the LPPL maintenance status "maintained".
-%
-% The Current Maintainer of this work is Javier Bezos.
+% Repository: https://github.com/jbezos/titlesec
%
% Notes
% ~~~~~
@@ -48,7 +34,7 @@
% ~~~~~~~
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{titlesec}[2016/03/21 v2.10.2 Sectioning titles]
+\ProvidesPackage{titlesec}[2019/07/16 v2.11 Sectioning titles]
% Initialization
% ~~~~~~~~~~~~~~
@@ -87,11 +73,7 @@
\edef\ttl at b{\expandafter\@gobble\string#1}%
\let\ttl at a\ttl at b
\else
- \makeatletter
- \edef\ttl at d{%
- \noexpand\input{ttlkeys.def}%
- \catcode`\noexpand\@=\the\catcode`\@}%
- \ttl at d
+ \ttl at keys
\ttl at getkeys{#1}{#2}%
\fi}
@@ -282,7 +264,7 @@
\global\let\ttl at fn\@empty
\begingroup
\if at inlabel\else % Keep item's \everypar
- \everypar{\setbox\z@\lastbox\strut}%
+ \everypar{\setbox\z@\lastbox\ttl at strut}%
\fi
\let\ttl at straight@i\ttl at nest@error
\let\ttl at top@i \ttl at nest@error
@@ -341,11 +323,24 @@
\newif\ifttl at premark % to be used in ttlps.def
\ttl at premarkfalse
+% 2019-06-20. Added the \lastskip stuff, because a mark 'forgets' the
+% last skip.
+
\def\ttl at premark#1#2{%
+ \let\ttl at lastskip\relax
+ \ifvmode
+ \ifdim\lastskip=\z@\else
+ \edef\ttl at lastskip{\the\lastskip}%
+ \vskip-\ttl at lastskip\relax
+ \fi
+ \fi
\protected at xdef\ttl at prevmarks{\ttl at marks}%
\ttl at blinemarks
\csname#1mark\endcsname{#2}%
\ttl at elinemarks
+ \ifx\ttl at lastskip\relax\else
+ \vskip\ttl at lastskip\relax
+ \fi
\gdef\ttl at prevmarks{\ttl at marks}}
% Must be preceded by a default \ttl at savewrite, which is used
@@ -611,7 +606,6 @@
\fi
\ignorespaces}
-
% \def\ttl at noskipsectrue{%
% \if at noskipsec
% \PackageError{titlesec}{Invalid shape for top class}%
@@ -626,7 +620,7 @@
% | S H A P E S |
% +-----------------+
%
-% % Reformatting Titles: Interface
+% Reformatting Titles: Interface
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% The surrounding space is stored in a macro
@@ -694,10 +688,14 @@
\begingroup
\makeatletter
\InputIfFileExists{#1.tss}{}{%
- \PackageError{titlesec}{Unknown shape}%
- {Shapes are defined in files with extension tss\MessageBreak
- Either you have misspelled the shape\MessageBreak
- or there is no a #1.tss file}}%
+ \@ifundefined{ttlhx@#1}%
+ {\PackageError{titlesec}{Unknown shape}%
+ {Shapes are defined in files with extension tss\MessageBreak
+ Either you have misspelled the shape\MessageBreak
+ or there is no a #1.tss file}}%
+ {\global\expandafter
+ \let\csname ttlh@#1\expandafter\endcsname
+ \csname ttlhx@#1\endcsname}}%
\endgroup}{}%
\@temptokena{#2}%
\ifttl at explicit
@@ -725,6 +723,8 @@
% With the option explicit, #4 contains the title and #8 is
% empty.
+\def\ttl at strut{\strut}
+
\def\ttlh at display#1#2#3#4#5#6#7#8{%
\gdef\ttl at makeline##1{\ttl at calc\hspace{#6}##1\ttl at calc\hspace{#7}}%
\setlength\leftskip{#6}%
@@ -731,15 +731,16 @@
\setlength\rightskip{#7}%
\interlinepenalty\@M
\ttl at changecentercr
+ \ttl at defnostruts
\ttl at beginlongest
#1\ifhmode\ttl at hmode@error\fi
\ttl at glcmds
\parindent\z@
\ifttl at label
- {#2\strut\@@par}\nobreak\ttl at calc\vspace{#3}%
+ {#2\ttl at strut\@@par}\nobreak\ttl at calc\vspace{#3}%
\fi
#4{#8}%
- \kern\z@\strut\@@par
+ \kern\z@\ttl at strut\@@par
\nobreak\ttl at midlongest#5\@@par
\ttl at endlongest}
@@ -749,6 +750,7 @@
\setlength\rightskip{#7}%
\interlinepenalty\@M
\ttl at changecentercr
+ \ttl at defnostruts
\ttl at beginlongest
#1{\ifhmode\ttl at hmode@error\fi
\ttl at glcmds
@@ -756,12 +758,12 @@
\begingroup
\ifttl at label
\noindent
- \sbox\z@{#2\strut\ttl at calc\hspace{#3}}%
+ \sbox\z@{#2\ttl at strut\ttl at calc\hspace{#3}}%
\hangindent\wd\z@
\box\z@
\fi
#4{#8}%
- \kern\z@\strut\@@par
+ \kern\z@\ttl at strut\@@par
\endgroup
\nobreak\ttl at midlongest#5\@@par}%
\ttl at endlongest}
@@ -770,13 +772,250 @@
\global\@noskipsectrue
\gdef\ttl at makeline##1{##1}%
\ttl at changecentercr
+ \ttl at defnostruts
#1{\ifhmode\ttl at hmode@error\fi
\global\sbox\ttl at box{%
\ttl at calc\hspace{#6}%
- \ifttl at label{\strut#2}\ttl at calc\hspace{#3}\fi
+ \ifttl at label{\ttl at strut#2}\ttl at calc\hspace{#3}\fi
#4{#8}#5\unskip}}%
\gdef\@svsechd{\unhbox\ttl at box}}
+% ----------
+
+\gdef\ttlhx at block#1#2#3#4#5#6#7#8{%
+ \gdef\ttl at makeline##1{\ttl at calc\hspace{#6}##1\ttl at calc\hspace{#7}}%
+ \setlength\leftskip{#6}%
+ \setlength\rightskip{#7}%
+ \interlinepenalty\@M
+ \ttl at changecentercr
+ \ttl at defnostruts
+ \ttl at beginlongest
+ #1% \ifhmode\ttl at hmode@error\fi
+ \ttl at glcmds
+ \parindent\z@
+ \leavevmode
+ \ifttl at label
+ {#2}%
+ \setlength\@tempskipa{#3}%
+ \ifdim\@tempskipa=\z@\else\ttl at calc\hspace{#3}\fi
+ \fi
+ #4{#8}%
+ \kern\z@\ttl at strut\@@par
+ \nobreak\ttl at midlongest#5\@@par
+ \ttl at endlongest}
+
+
+\gdef\ttlhx at frame#1#2#3#4#5#6#7#8{%
+ \def\ttl at filleft##1{\hfill}%
+ \def\ttl at filright##1{\hfill}%
+ \gdef\ttl at makeline##1{%
+ \ttl at calc\hspace{#6}##1\ttl at calc\hspace{#7}}%
+ \interlinepenalty\@M
+ \ttl at changecentercr
+ \ttl at defnostruts
+ #1\ifhmode\ttl at hmode@error\fi
+ \parindent\z@
+ \leavevmode
+ \@tempdima\fboxrule
+ \addtolength\@tempdima{#3}%
+ \setlength\leftskip{#6}%
+ \setlength\rightskip{#7}%
+ \lower\@tempdima\hbox{%
+ \everypar{}%
+ \setbox\z@\hbox{#2}%
+ \addtolength\hsize{-#6}%
+ \addtolength\hsize{-#7}%
+ \@tempdima\dp\z@ % 2002/3/22
+ \advance\@tempdima.5\ht\z@
+ \vbox{%
+ \hbox to \hsize{%
+ \leaders\hrule\@height\fboxrule\ttl at filleft{#3}%
+ \ifttl at label\lower.5\ht\z@\box\z@\fi
+ \leaders\hrule\@height\fboxrule\ttl at filright{#3}}%
+ \vskip-\lineskip
+ \ifttl at label\vskip-\@tempdima\fi
+ \hbox{%
+ \vrule\@width\fboxrule
+ \kern-\fboxrule
+ \vbox{%
+ \ttl at calc\vspace{#3}%
+ \leavevmode
+ \addtolength\leftskip {#3}\addtolength\leftskip{-#6}%
+ \addtolength\rightskip{#3}\addtolength\rightskip{-#7}%
+ \ttl at strut#4{#8}\kern\z@\ttl at strut\@@par
+ \ttl at calc\vspace{#3}}%
+ \kern-\fboxrule
+ \vrule\@width\fboxrule}%
+ \hrule\@height\fboxrule}}%
+ \@@par\nobreak#5\@@par}
+
+\gdef\ttlhx at leftmargin#1#2#3#4#5#6#7#8{%
+ \global\@noskipsectrue
+ \addtolength\@tempskipb{#6}%
+ \xdef\ttl at makeline##1{\hskip-\the\@tempskipb\relax##1}%
+ \leftskip\z at skip
+ \rightskip\z at skip
+ \ttl at changecentercr
+ \ttl at defnostruts
+ #1\ifhmode\ttl at hmode@error\fi
+ \parindent\z@
+ \global\setbox\ttl at box\vtop{%
+ \setlength\hsize{#6}%
+ \linewidth\hsize
+ \everypar{}%
+ \color at begingroup
+ \ifttl at label{\ttl at strut#2\ttl at strut}\ttl at calc\hspace{#3}\fi
+ \ttl at strut#4{#8}\kern\z@\ttl at strut\@@par
+ \color at endgroup}%
+ \advance\@tempskipa\ht\ttl at box
+ \advance\@tempskipa\dp\ttl at box
+ \advance\@tempskipa-\pagegoal
+ \advance\@tempskipa\pagestretch
+ \@tempskipb\pagegoal
+ \pagegoal-\@tempskipa
+ \ifdim\bottomtitlespace<\z@\else
+ \def\@textbottom{\vskip\z@\@plus.0001fil}%
+ \fi
+ \penalty9999
+ \pagegoal\@tempskipb
+ \dp\ttl at box=\z@
+ \gdef\@svsechd##1##2{%
+ \llap{\box\ttl at box##2}%
+ \if at afterindent\hskip\parindent\fi
+ #5}}
+
+\let\ttlhx at margin\ttlhx at leftmargin
+
+\gdef\ttlhx at rightmargin#1#2#3#4#5#6#7#8{%
+ \global\@noskipsectrue
+ \addtolength\@tempskipb{#6}%
+ \xdef\ttl at makeline##1{##1\hskip-\the\@tempskipb}%
+ \leftskip\z at skip
+ \rightskip\z at skip
+ \ttl at changecentercr
+ \ttl at defnostruts
+ #1\ifhmode\ttl at hmode@error\fi
+ \parindent\z@
+ \global\setbox\ttl at box\vtop{%
+ \setlength\hsize{#6}%
+ \linewidth\hsize
+ \everypar{}%
+ \color at begingroup
+ \ifttl at label{\ttl at strut#2\ttl at strut}\ttl at calc\hspace{#3}\fi
+ \ttl at strut#4{#8}\kern\z@\ttl at strut\@@par
+ \color at endgroup}%
+ \advance\@tempskipa\ht\ttl at box
+ \advance\@tempskipa\dp\ttl at box
+ \advance\@tempskipa-\pagegoal
+ \advance\@tempskipa\pagestretch
+ \@tempskipb\pagegoal
+ \pagegoal-\@tempskipa
+ \ifdim\bottomtitlespace<\z@\else
+ \def\@textbottom{\vskip\z@\@plus.0001fil}%
+ \fi
+ \penalty9999
+ \pagegoal\@tempskipb
+ \dp\ttl at box=\z@
+ \gdef\@svsechd##1##2{%
+ \rlap{\hskip\textwidth##2\box\ttl at box}%
+ \if at afterindent\hskip\parindent\fi}}
+
+\gdef\ttlhx at wrap#1#2#3#4#5#6#7#8{%
+ \global\@noskipsectrue
+ \gdef\ttl at makeline##1{##1}%
+ \ttl at changecentercr
+ \ttl at defnostruts
+ \begingroup
+ #1\ifhmode\ttl at hmode@error\fi
+ \titlewidth\z@
+ \def\\{\@ifstar{\@ifnextchar[{\ttl at bs}{\newline}}%
+ {\@ifnextchar[{\ttl at bs}{\newline}}}%
+ \def\ttl at bs[##1]{\newline}%
+ \let\@centercr\\%
+ \advance\rightskip 1\leftskip plus 1fil
+ \leftskip=\z@
+ \parindent\z@
+ \let\iftitlemeasuring\@firstoftwo
+ \global\setbox\ttl at box\vtop{\setlength\hsize{#6}%
+ \color at begingroup
+ \ifttl at label{#2}\ttl at calc\hspace{#3}\fi
+ #4{#8}\kern\z@\ttl at strut
+ \@@par
+ \color at endgroup}%
+ \let\iftitlemeasuring\@secondoftwo
+ \ttl at boxprocess
+ \global\titlewidth\titlewidth
+ \global\titlewidthfirst\titlewidthfirst
+ \global\titlewidthlast\titlewidthlast
+ \endgroup
+ \edef\ttl at maxdimen{\the\titlewidth}%
+ #1\ifhmode\ttl at hmode@error\fi
+ \global\setbox\ttl at box\vtop{\setlength\hsize{\ttl at maxdimen}%
+ \color at begingroup
+ \ifttl at label{#2}\ttl at calc\hspace{#3}\fi#4{#8}\kern\z@\ttl at strut
+ \@@par
+ \color at endgroup}%
+ \advance\@tempskipa1.5\baselineskip
+ \advance\@tempskipa\ht\ttl at box
+ \advance\@tempskipa\dp\ttl at box
+ \advance\@tempskipa-\pagegoal
+ \advance\@tempskipa\pagestretch
+ \@tempskipb\pagegoal
+ \pagegoal-\@tempskipa
+ \ifdim\bottomtitlespace<\z@\else
+ \def\@textbottom{\vskip\z@\@plus.0001fil}%
+ \fi
+ \penalty9999
+ \pagegoal\@tempskipb
+ \@tempdima\ht\ttl at box \advance\@tempdima\dp\ttl at box
+ \@tempdimb\@tempdima
+ \divide\@tempdima\baselineskip \count@\@tempdima
+ \advance\count@
+ \ifdim\@tempdimb<\the\count at .5\baselineskip\@ne\else\tw@\fi
+ \dp\ttl at box=\z@
+ \xdef\@svsechd##1##2{%
+ \noexpand\llap{\box\ttl at box##2}%
+ \setbox\z@\hbox{\hskip\ttl at maxdimen\relax##2}%
+ \global\hangindent\wd\z@
+ \global\hangafter-\the\count@\relax}}
+
+\gdef\ttlhx at drop#1#2#3#4#5#6#7#8{%
+ \global\@noskipsectrue
+ \gdef\ttl at makeline##1{##1}%
+ \ttl at changecentercr
+ \ttl at defnostruts
+ #1\ifhmode\ttl at hmode@error\fi
+ \parindent\z@
+ \global\setbox\ttl at box\vtop{\setlength\hsize{#6}%
+ \color at begingroup
+ \ifttl at label{#2}\ttl at calc\hspace{#3}\fi
+ #4{#8}\kern\z@\ttl at strut
+ \@@par
+ \color at endgroup}%
+ \advance\@tempskipa1.5\baselineskip
+ \advance\@tempskipa\ht\ttl at box
+ \advance\@tempskipa\dp\ttl at box
+ \advance\@tempskipa-\pagegoal
+ \advance\@tempskipa\pagestretch
+ \@tempskipb\pagegoal
+ \pagegoal-\@tempskipa
+ \ifdim\bottomtitlespace<\z@\else
+ \def\@textbottom{\vskip\z@\@plus.0001fil}%
+ \fi
+ \penalty9999
+ \pagegoal\@tempskipb
+ \@tempdima\ht\ttl at box \advance\@tempdima\dp\ttl at box
+ \@tempdimb\@tempdima
+ \divide\@tempdima\baselineskip \count@\@tempdima
+ \advance\count@
+ \ifdim\@tempdimb<\the\count at .5\baselineskip\@ne\else\tw@\fi
+ \dp\ttl at box=\z@
+ \xdef\@svsechd##1##2{%
+ \noexpand\llap{\box\ttl at box##2}%
+ \setbox\z@\hbox{\noexpand\ttl at calc\noexpand\hspace{#6}\relax##2}%
+ \global\hangindent\wd\z@
+ \global\hangafter-\the\count@\relax}}
+
% +-----------------+
% | T O O L S |
% +-----------------+
@@ -913,11 +1152,17 @@
\newcommand\wordsep{\fontdimen\tw@\font \@plus
\fontdimen\thr@@\font \@minus \fontdimen4\font}
+% Struts.
+% ~~~~~~
+% A way to remove the struts added by styles. May be redefined below
+% with option nostruts.
+
+\def\ttl at defnostruts{\def\nostruts{\let\ttl at strut\@empty}}
+
% +-----------------+
% | O P T I O N S |
% +-----------------+
-
\DeclareOption{pagestyles}{\let\sectiontitle\@empty}
\DeclareOption{extramarks}{\let\ttl at fetchmark\@empty}
\DeclareOption{floatps}{%
@@ -1088,6 +1333,14 @@
\def\ttl at fonts{}
+% nostruts
+
+\DeclareOption{nostruts}{%
+ \let\ttl at strut\@empty
+ \def\ttl at defnostruts{%
+ \let\ttl at strut\@empty
+ \def\nostruts{\let\ttl at strut\@empty}}}
+
\ExecuteOptions{rubberchapters,bottomtitles,aftersep,oldparttoc,%
innermarks}
@@ -1121,9 +1374,10 @@
\providecommand\newpagestyle{%
\let\ttl at compatps\@empty % marks the ``old interface''
+ \let\ttl at coreps\@empty
\makeatletter
\edef\ttl at d{%
- \noexpand\input{ttlps.def}%
+ \noexpand\input{titleps.sty}%
\catcode`\noexpand\@=\the\catcode`\@}%
\ttl at d
\newpagestyle}
@@ -1130,9 +1384,10 @@
\providecommand\renewpagestyle{%
\let\ttl at compatps\@empty % marks the ``old interface''
+ \let\ttl at coreps\@empty
\makeatletter
\edef\ttl at d{%
- \noexpand\input{ttlps.def}%
+ \noexpand\input{titleps.sty}%
\catcode`\noexpand\@=\the\catcode`\@}%
\ttl at d
\renewpagestyle}
@@ -1139,9 +1394,10 @@
\providecommand\widenhead{%
\let\ttl at compatps\@empty % marks the ``old interface''
+ \let\ttl at coreps\@empty
\makeatletter
\edef\ttl at d{%
- \noexpand\input{ttlps.def}%
+ \noexpand\input{titleps.sty}%
\catcode`\noexpand\@=\the\catcode`\@}%
\ttl at d
\widenhead}
@@ -1149,9 +1405,88 @@
% New pagestyles
% ~~~~~~~~~~~~~~
-\@ifundefined{sectiontitle}{}{\input{ttlps.def}}
+\@ifundefined{sectiontitle}{}{%
+ \let\ttl at coreps\@empty
+ \input{titleps.sty}}
% +-----------------+
+% | K E Y S |
+% +-----------------+
+
+\def\ttl at keys{%
+ \let\ttl at keys\relax
+ \@ifundefined{define at key}{\RequirePackage{keyval}}{}%
+ \def\ttl at getkeys##1##2{%
+ \let\ttl at a\@empty
+ \if\expandafter @\@gobble##1@\@empty % if there is a single token
+ \edef\ttl at b{\expandafter\@gobble\string##1}%
+ \let\ttl at a\ttl at b
+ \else
+ \ttl at labelfalse % A temporary flag: true if there is page key
+ \setkeys{##2}{##1}%
+ \ifttl at label
+ \@ifundefined{ttlp@\ttl at b}{%
+ \expandafter\let\csname ttlp@\ttl at b\endcsname\@empty}{}%
+ \fi
+ \edef\ttl at a{\ttl at b\ttl at a}%
+ \fi}%
+ %
+ \define at key{titlesec}{name}{%
+ \edef\ttl at b{\expandafter\@gobble\string##1}}%
+ \define at key{titlesec}{numberless}[true]{%
+ \csname @tempswa##1\endcsname
+ \if at tempswa
+ \edef\ttl at a{\ttl at a/*}%
+ \fi}%
+ \define at key{titlesec}{page}{%
+ \ttl at labeltrue % Used as flag
+ \edef\ttl at a{/##1\ttl at a}}%
+ %
+ \def\ttl at extra@numberless{\ttl at labeltrue}% The actual meaning
+ \let\ttl at key@numberless\@empty
+ %\let\ttl at key@matter\@empty
+ \let\ttlp at append\@gobbletwo
+ \def\ttl at setkeys##1{%
+ \def\ttl at trylist{\ttl at try{}}%
+ \@for\ttl at b:=##1\do{%
+ \begingroup
+ \let\ttl at a\relax
+ \def\ttl at try####1{%
+ \noexpand\ttl at try{####1\ttl at a{\ttl at b}}%
+ \noexpand\ttl at try{####1}}%
+ \xdef\ttl at trylist{\ttl at trylist}%
+ \endgroup}}%
+ \ttl at setkeys{page,numberless}% matter
+ %
+ \if at twoside
+ \newcounter{ttlp at side}%
+ \newcount\ttlp at side
+ \def\ttlp at theside{\ifodd\c at page o\else e\fi}%
+ \def\ttlp at append##1##2{%
+ {\let\@elt\relax
+ \expandafter\xdef\csname ttlp@##1\endcsname{%
+ \csname ttlp@##1\endcsname\@elt ##2}}}%
+ \def\ttlp at write##1{%
+ {\let\ttlp at theside\relax
+ \protected at write\@auxout{}%
+ {\string\ttlp at append{##1}{\ttlp at theside}}}}%
+ \def\ttlp at fetch##1{%
+ \stepcounter{ttlp at side}%
+ \global\advance\ttlp at side\@ne
+ \@whilenum\ttlp at side<\c at ttlp@side\do{%
+ \expandafter\@next\expandafter\@tempa\csname ttlp@##1\endcsname{}{}%
+ \global\advance\ttlp at side\@ne}%
+ \expandafter\@next\expandafter\ttl at b\csname ttlp@##1\endcsname{%
+ \xdef\ttl at key@page{/\if\ttl at b oodd\else even\fi}%
+ }{%
+ \xdef\ttl at key@page{/\ifodd\c at page odd\else even\fi}%
+ \@@warning{Unsynchronized `##1' title on page \thepage}}}%
+ \else
+ \let\ttlp at write\@gobble
+ \def\ttlp at fetch##1{\gdef\ttl at key@page{/odd}}%
+ \fi}
+
+% +-----------------+
% | C O M P A T |
% +-----------------+
% Easy setup, i.e., that of package options, is
@@ -1348,3 +1683,26 @@
\titleclass{\subparagraph} {straight}[\paragraph]
\endinput
+
+MIT License
+-----------
+
+Permission is hereby granted, free of charge, to any person obtaining a
+copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be included
+in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
Modified: trunk/Master/texmf-dist/tex/latex/titlesec/titletoc.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/titlesec/titletoc.sty 2019-07-18 20:34:08 UTC (rev 51663)
+++ trunk/Master/texmf-dist/tex/latex/titlesec/titletoc.sty 2019-07-18 20:34:43 UTC (rev 51664)
@@ -1,98 +1,14 @@
-% +---------------------------------------------+
-% | Documentation is in the titlesec.tex file. |
-% +---------------------------------------------+
%
-% Copyright (c) 1998-2016 by Javier Bezos.
-% All Rights Reserved.
+% Copyright (C) 1998-2019 Javier Bezos http://www.texnia.com
%
-% This file is part of the titlesec distribution release 2.10.2
-% -----------------------------------------------------------
+% This file may be distributed and/or modified under the conditions of
+% the MIT License. A version can be found at the end of this file.
%
-% It may be distributed and/or modified under the
-% conditions of the LaTeX Project Public License, either version 1.3
-% of this license or (at your option) any later version.
-% The latest version of this license is in
-% http://www.latex-project.org/lppl.txt
-% and version 1.3 or later is part of all distributions of LaTeX
-% version 2003/12/01 or later.
-%
-% This work has the LPPL maintenance status "maintained".
-%
-% The Current Maintainer of this work is Javier Bezos.
-
-% History of v1.1
-% ~~~~~~~~~~~~~~~
-% 99/04/22: A bug fix. Some missing global assignments in \ttl at tocentry
-% were missing, and page numbers messed up with
-% \titlecontents*
-%
-% History of v1.2
-% ~~~~~~~~~~~~~~~~
-% 99/10/20: Added \contentsafter. \ttl at tocentry modified to accept
-% the new command for grouping in a paragraph entries of
-% different levels.
-% 99/10/27: Instead of defining the level numbers explicitly, that's
-% done with \ttl at setlevels and \ttl at levels.
-% 99/10/27: Added the basic code for multiple indexes.
-% 99/10/29: Added the toctop test to the \ttl at savel@... commands.
-% 99/12/28: Simplified \ttl at savel@... with \ttl at lselect.
-% 00/01/12: \contentsafter rejected. An aditional optional parameter
-% is used instead. (Too) many thing had to be rewritten.
-% 00/01/27: Removed \ttl at setlevels. Any change of levels are
-% best done with titlesec.
-% 00/02/14: Moved misplaced \vskip in ttl at tocentry.
-% 00/02/16: A few changes in the "block" separators.
-% 00/02/16: Fixed bug in \ttl at margin. For the right margin the
-% correction was used instead of the margin.
+% Repository: https://github.com/jbezos/titlesec
%
-% History of v1.2.1
-% ~~~~~~~~~~~~~~~~~
-% 00/04/25: Dirty trick to make sure that \ttl at finish is the very
-% last thing in lists of floats (lof, lot, etc.).
-% 00/05/14: Missing \global before \ttl at labelfalse added.
-%
-% History of 1.2.2
-% ~~~~~~~~~~~~~~~~
-% 00/06/05: The optional argument no longer mandatory, but
-% still reporting an error if the length is missing.
-% Minor internal changes, and a patch mechanism added.
-%
-% History of 1.3
-% ~~~~~~~~~~~~~~
-% 01/01/12: Minor changes and some missing \globals added for
-% partial tocs to work inside a group.
-% 01/01/21: Added \dottedcontents.
-%
-% History of 1.4
-% ~~~~~~~~~~~~~~
-% 02/03/27: titletoc.new merged into this file
-% 02/03/27: \ttl at finish written by the last \newpage.
-% 02/03/27: \ttl at lsection broke paragraphs always. Now
-% only if the sublevel is typeset.
-% 02/03/27: \ttl at finish -> \contentsfinish
-%
-% History of 1.5
-% ~~~~~~~~~~~~~~
-% 03/06/14: \contentspush didn't work because of the change of
-% (.new) \leftskip was done inside a group before the
-% corresponding \par
-% 03/06/14: Added an useful error if a partial TOC is not
-% (.new) defined.
-% 05/01/17: New options rubber/rigidseps, to remove if desired
-% the small vertical "plus" between entries.
-% 05/01/20: Begin work on partial lists.
-% 05/01/21: \ttl at outblock and \ttl at outnoblock just to avoid a
-% huge definition and to ease patching.
-% 05/01/22: Work on partial lists finished (but to be resumed).
-% History of 1.6
-% ~~~~~~~~~~~~~~
-% 07/05/04: Added the patch 2005/05/03 which fixed a wrong
-% result with \included (F. Mittelbach)
-% 07/07/14: Removed the patch mechanism.
+\ProvidesPackage{titletoc}[2019/07/16 v2.11 TOC entries]
-\ProvidesPackage{titletoc}[2011/12/15 v1.6 TOC entries]
-
% The following tags are used:
% ttl@ : the generic one, shared with titlesec
% ttlb@ : starting punctuation for block format
@@ -171,7 +87,7 @@
\let\\\@centercr
\filleft\advance\rightskip\z@ \@plus -1fil
\parfillskip\z@ \@plus 2fil\relax}
-
+
% Now, the specific titletoc part
% User interface
@@ -292,7 +208,20 @@
\@ifnextchar[{\ttl at contents@i{#1}{#2}}%
{\ttl at contents@i{#1}{#2}[\@nil]}}
+% A dirty hack to fix wrong destinations with hyperref. But activate
+% only if some inline entry is defined (ie, #1 = 0):
+\let\ttl at fixhyperref\relax
+
\def\ttl at contents@i#1#2[#3]#4#5#6#7{%
+ \@ifundefined{ttll@#2}%
+ {\expandafter\def\csname ttll@#2\endcsname{-1000}}%
+ {}%
+ \ifcase#1\relax
+ \def\ttl at fixhyperref{%
+ \ifx\Hy at tocdestname\@undefined\else
+ \global\let\Hy at tocdestname\Hy at tocdestname
+ \fi}%
+ \fi
\expandafter\def\csname l@#2\endcsname
{\ttl at tocentry{#1}{#2}{#3}{#4}{{#5}{#6}}{#7}}%
\@ifnextchar[{\ttl at contents@ii{#1}{#2}}%
@@ -422,6 +351,7 @@
\let\ttl at leaders\leaders}
\def\ttl at tocentry#1#2#3#4#5#6#7#8{%
+ \ttl at fixhyperref
\xdef\ttl at b{\csname ttll@#2\endcsname}%
\ifnum\ttl at b>\c at tocdepth\else
\ifnum\ttl at b<\ttl at toctop\else
@@ -474,10 +404,10 @@
% Multiple tocs and lists
% ~~~~~~~~~~~~~~~~~~~~~~~~
-% After some attemps to adapt titletoc to minitoc, I've decided
-% to implement my own solution, because entries as written by
-% minitoc are non standard and unmanageable. The new commands
-% provides a good deal of flexibility, too.
+% After some attemps to adapt titletoc to minitoc, I decided to
+% implement my own solution, because entries as written by minitoc are
+% non standard. The new commands provides a good deal of flexibility,
+% too.
\let\ttl at startlists\@empty
\let\ttl at writefile\@writefile
@@ -554,13 +484,19 @@
\fi
\ignorespaces}
-\newcommand\printcontents[4][default]{%
- \ttl at printlist[#1]{toc}{#2}{#3}{#4}}
+\newcommand\printcontents[3][default]{%
+ \def\ttl at a{[#1]{toc}{#2}{#3}}%
+ \ttl at preprint}
+
+\newcommand\printlist[3][default]{%
+ \def\ttl at a{[#1]{#2}{#3}{-1001}}%
+ \ttl at preprint}
-\newcommand\printlist[4][default]{%
- \ttl at printlist[#1]{#2}{#3}{-1001}{#4}}
+\newcommand\ttl at preprint[2][\c at tocdepth]{%
+ \expandafter\ttl at printlist\ttl at a{#1}{#2}}
-\newcommand\ttl at printlist[5][default]{%
+% 1:name 2:list 3:prefix 4:startlevel 5:depth 6:toccode
+\newcommand\ttl at printlist[6][default]{%
\begingroup
\@ifundefined{c at ttl@#2@#1}%
{\PackageError{titletoc}{No partial #2 named #1}%
@@ -568,7 +504,8 @@
with \string/startcontents/\string\startlist.}}{}%
\edef\ttl at ptoc{#1@\arabic{ttl@#2@#1}}%
\def\ttl at toctop{#4}%
- #5%
+ \c at tocdepth=#5\relax
+ #6%
\let\ttl at xcontentsline\contentsline
\let\contentsline\ttl at gobblecontents
\def\ttl at contentsline##1{%
@@ -591,10 +528,12 @@
\def\ttl at toctop{-1000}
-% Now the we add \contentsfinish to the current definitions
-% and a "selector" for partial tocs
+% Now the we add \contentsfinish to the current definitions and a
+% "selector" for partial tocs with a wrapper for the original
+% definitions (saved as \ttl at savel@#1).
\def\ttl at lselect#1{%
+ \ttl at fixhyperref
\ifnum\csname ttll@#1\endcsname>\c at tocdepth\else
\contentsfinish
\fi
@@ -638,3 +577,24 @@
\endinput
+MIT License
+-----------
+
+Permission is hereby granted, free of charge, to any person obtaining a
+copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be included
+in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Deleted: trunk/Master/texmf-dist/tex/latex/titlesec/ttlkeys.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/titlesec/ttlkeys.def 2019-07-18 20:34:08 UTC (rev 51663)
+++ trunk/Master/texmf-dist/tex/latex/titlesec/ttlkeys.def 2019-07-18 20:34:43 UTC (rev 51664)
@@ -1,121 +0,0 @@
-% +--------------------------------------------------+
-% | Typeset titlesec.tex to get the documentation. |
-% +--------------------------------------------------+
-%
-% Copyright (c) 1998-2016 by Javier Bezos.
-% All Rights Reserved.
-%
-% This file is part of the titlesec distribution release 2.10.2
-% -----------------------------------------------------------
-%
-% It may be distributed and/or modified under the
-% conditions of the LaTeX Project Public License, either version 1.3
-% of this license or (at your option) any later version.
-% The latest version of this license is in
-% http://www.latex-project.org/lppl.txt
-% and version 1.3 or later is part of all distributions of LaTeX
-% version 2003/12/01 or later.
-%
-% This work has the LPPL maintenance status "maintained".
-%
-% The Current Maintainer of this work is Javier Bezos.
-
-\ProvidesFile{ttlkeys.def}[2016/03/15]
-
-% This command takes a list in "keyval" format, \ttl at a containing the
-% star spec, and returns \ttl at a with the full string name to be defined
-% and \ttl at b with the string sectioning name (without tag). But if the
-% argument has no keys then simply does the last step. Finally, an
-% error is reported if the sectioning command does not exist. All these
-% testing must be improved (still).
-
-\@ifundefined{define at key}{\RequirePackage{keyval}}{}%
-
-\def\ttl at getkeys#1#2{%
- \let\ttl at a\@empty
- \if\expandafter @\@gobble#1@\@empty % if there is a single token
- \edef\ttl at b{\expandafter\@gobble\string#1}%
- \let\ttl at a\ttl at b
- \else
- \ttl at labelfalse % A temporary flag: true if there is page key
- \setkeys{#2}{#1}%
- \ifttl at label
- \@ifundefined{ttlp@\ttl at b}{%
- \expandafter\let\csname ttlp@\ttl at b\endcsname\@empty}{}%
- \fi
- \edef\ttl at a{\ttl at b\ttl at a}%
- \fi}
-
-\define at key{titlesec}{name}{%
- \edef\ttl at b{\expandafter\@gobble\string#1}}
-
-\define at key{titlesec}{numberless}[true]{%
- \csname @tempswa#1\endcsname
- \if at tempswa
- \edef\ttl at a{\ttl at a/*}%
- \fi}
-
-\define at key{titlesec}{page}{%
- \ttl at labeltrue % Used as flag
- \edef\ttl at a{/#1\ttl at a}}
-
-\def\ttl at extra@numberless{\ttl at labeltrue}% The actual meaning
-
-\let\ttl at key@numberless\@empty
-%\let\ttl at key@matter\@empty
-
-\let\ttlp at append\@gobbletwo
-
-\def\ttl at setkeys#1{%
- \def\ttl at trylist{\ttl at try{}}%
- \@for\ttl at b:=#1\do{%
- \begingroup
- \let\ttl at a\relax
- \def\ttl at try##1{%
- \noexpand\ttl at try{##1\ttl at a{\ttl at b}}%
- \noexpand\ttl at try{##1}}%
- \xdef\ttl at trylist{\ttl at trylist}%
- \endgroup}}
-
-\ttl at setkeys{page,numberless} % matter
-
-%___
-\if at twoside
-
-\newcounter{ttlp at side}
-\newcount\ttlp at side
-
-\def\ttlp at theside{\ifodd\c at page o\else e\fi}
-
-\def\ttlp at append#1#2{%
- {\let\@elt\relax
- \expandafter\xdef\csname ttlp@#1\endcsname{%
- \csname ttlp@#1\endcsname\@elt #2}}}
-
-\def\ttlp at write#1{%
- {\let\ttlp at theside\relax
- \protected at write\@auxout{}%
- {\string\ttlp at append{#1}{\ttlp at theside}}}}
-
-\def\ttlp at fetch#1{%
- \stepcounter{ttlp at side}%
- \global\advance\ttlp at side\@ne
- \@whilenum\ttlp at side<\c at ttlp@side\do{%
- \expandafter\@next\expandafter\@tempa\csname ttlp@#1\endcsname{}{}%
- \global\advance\ttlp at side\@ne}%
- \expandafter\@next\expandafter\ttl at b\csname ttlp@#1\endcsname{%
- \xdef\ttl at key@page{/\if\ttl at b oodd\else even\fi}%
- }{%
- \xdef\ttl at key@page{/\ifodd\c at page odd\else even\fi}%
- \@@warning{Unsynchronized `#1' title on page \thepage}}}
-
-%___
-\else
-
-\let\ttlp at write\@gobble
-\def\ttlp at fetch#1{\gdef\ttl at key@page{/odd}}
-
-%___
-\fi
-
-\endinput
Deleted: trunk/Master/texmf-dist/tex/latex/titlesec/ttlps.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/titlesec/ttlps.def 2019-07-18 20:34:08 UTC (rev 51663)
+++ trunk/Master/texmf-dist/tex/latex/titlesec/ttlps.def 2019-07-18 20:34:43 UTC (rev 51664)
@@ -1,739 +0,0 @@
-% +--------------------------------------------------+
-% | Typeset titlesec.tex to get the documentation. |
-% +--------------------------------------------------+
-%
-% Copyright (c) 1998-2016 by Javier Bezos.
-% All Rights Reserved.
-%
-% This file is part of the titlesec distribution release 2.10.2
-% -----------------------------------------------------------
-%
-% It may be distributed and/or modified under the
-% conditions of the LaTeX Project Public License, either version 1.3
-% of this license or (at your option) any later version.
-% The latest version of this license is in
-% http://www.latex-project.org/lppl.txt
-% and version 1.3 or later is part of all distributions of LaTeX
-% version 2003/12/01 or later.
-%
-% This work has the LPPL maintenance status "maintained".
-%
-% The Current Maintainer of this work is Javier Bezos.
-
-% History of v1.0 (actually not 1.0)
-% ~~~~~~~~~~~~~~~
-% 99/11/03: Split from titlesec.sty
-% 99/11/03: Changed \setmarks, \ttl at sethead, \ttl at setfoot to follow
-% the new scheme
-% 99/11/03: Removed the redefinition of \markboth. The arguments are
-% expanded on the fly by the corresponding \...mark.
-% 00/01/06: Added the \newtitlemark device.
-% 00/01/19: Rejected the idea of a separate package (for the time
-% being). Now it's ttlps.def.
-% 00/01/20: Starred versions of \widenhead, \sethead, \setfoot.
-% 00/01/23: Added \ifthe..., \iftitle, etc.
-% 00/02/05: Modified \ifthe... mechanism
-% 00/02/25: Fixed a bug which made enter in an endless loop.
-% Now \ttl at marks is just \relax. The new scheme made
-% compatible with babel. (2.3.1)
-% 00/03/01: Fixed a bug in the previous bug fix. (2.3.2)
-% 00/03/08: Removed the code for AMS and babel. A general procedure
-% to catch the changes of \markboth is introduced, with
-% \ttl at enccode and \ttl at running. (2.3.3)
-% 00/05/05: \setmarks may be used outside of \newpagestyle, with
-% the help of \ttl at setmarks and \ttl at marksset (2.3.4)
-% 00/05/25: Tests for \ttl at toclabel moved to the redefinition of
-% \secdef in titlesec. (2.3.5)
-% 00/06/07: Added the first attempt for pagestyles with floats.
-% With slight changes, it will become the final form
-% for that. (2.3.5)
-% 00/06/14: The default \ifthe... are now defined with \ttl at setifthe
-% so that they are robust from the very beginning. (2.3.5)
-% 01/01/21: Replaced some \defs by \newcommand
-% 10/12/03: A little addition to the warning, for those who don't
-% read the docs.
-%
-% History of v1.1
-% ~~~~~~~~~~~~~~~
-% 11/11/26: Add the extra mark mechanim
-% 11/12/07: Enlarged, eg, multilevel \newtitlemark, \newtitlemark*,
-% premarks
-%
-% As before, all marks has two parts but now they don't refer to left or
-% right pages at all. There are some issues related to top marks which
-% are explained by Knuth in \textit{The \TeX book}, pp. 259f, as well
-% as an uncompatibility between them and \LaTeX{} floats. To overcome
-% both limitations, in the \textsf{titleps} page styles, the second
-% part in |\cs{firstmark}| is a \emph{fixed} top mark and the first one
-% the actual first mark; the right way to get the bot mark is from the
-% second part. Marks are stored at each section and used before and
-% after the title (straight class); the first part contains the values
-% of current title, but the second one contains the previolusly stored
-% values in the mark before the title, and the current values in the
-% mark after.
-
-\ProvidesFile{ttlps.def}[2016/03/15]
-
-%
-% Page Styles
-% ~~~~~~~~~~~
-
-\ifx\ttl at compatps\@undefined\else
- \PackageWarningNoLine{titlesec}
- {You are using an old interface for page styles\MessageBreak
- (or you forgot the package option 'pagestyles').\MessageBreak
- You could proceed but don't complain if you run\MessageBreak
- into errors}
-\fi
-
-\ttl at pstrue
-
-\let\parttitle\@empty
-\let\chaptertitle\@empty
-\let\sectiontitle\@empty
-\let\subsectiontitle\@empty
-\let\subsubsectiontitle\@empty
-\let\paragraphtitle\@empty
-\let\subparagraphtitle\@empty
-
-\newcommand\iftitle[1]{%
- \expandafter\ifx\csname #1title\endcsname\@empty
- \expandafter\@secondoftwo
- \else
- \expandafter\@firstoftwo
- \fi}
-
-% \newtitlemarks belongs to a nameless markset (ie, \@empty).
-% For named extra marksets see below.
-
-\newcommand\newtitlemark{%
- \@ifstar{\@tempswafalse\ttl at newmk@i\@empty}%
- {\@tempswatrue\ttl at newmk@i\@empty}}
-
-\def\ttl at newmk@i#1#2{% markset, macro/var
- \edef\ttl at a{\expandafter\@gobble\string#2}%
- \expandafter\ifx\csname\ttl at a\endcsname#2\else
- \edef\ttl at a{c@#2}%
- \fi
- \expandafter\ttl at newmk@ii\expandafter{\ttl at a}{#1}}
-
-\def\ttl at newmk@ii#1#2{% macro/var, markset
- \expandafter\let\expandafter\ttl at a\csname ttl at mks@#2\endcsname
- \if at tempswa
- \expandafter\def\expandafter\ttl at a\expandafter{%
- \ttl at a
- \protect\@namedef{#1}{\@nameuse{#1}}}%
- \else
- \expandafter\def\expandafter\ttl at a\expandafter{%
- \ttl at a
- \protect\@nameuse{#1}=\the\@nameuse{#1}\relax}%
- \fi
- \expandafter\let\csname ttl at mks@#2\endcsname\ttl at a}
-
-\let\ttl at mks@\@empty
-\def\ttl at moremarks{\ttl at mks@} % backward compat
-
-\def\ttl at prevmarks{\ttl at marks}
-\let\ttl at marks\relax
-
-% The following command sets the ifthe... commands to
-% be used in heads. When the call is from inside a sectioning
-% command, toclabel is either true (in most of cases) or false
-% (a chapter in the front matter, for example). Otherwise (an
-% explicit \...mark) is false
-
-\def\ttl at setifthe#1{%
- \expandafter\protected at edef\csname ifthe#1\endcsname{%
- \ifttl at toclabel
- \protect\@firstoftwo
- \else
- \protect\@secondoftwo
- \fi}}
-
-% At this point \ttl at toclabel is always false
-
-\ttl at setifthe{part}
-\ttl at setifthe{chapter}
-\ttl at setifthe{section}
-\ttl at setifthe{subsection}
-\ttl at setifthe{subsubsection}
-\ttl at setifthe{paragraph}
-\ttl at setifthe{subparagraph}
-
-% Putting marks
-% -------------
-
-\newtitlemark{\ttl at running}
-\let\ttl at enccode\relax
-\def\ttl at running{\ttl at enccode}
-
-% \ttl at markboth redefines temporarily \mark to fetch changes made by
-% babel or ams, saved in \ttl at running. When this is done, the actual
-% \mark es emitted, which has \ttl at running as part of the markset (see
-% the \newtitlemark above).
-
-\def\ttl at mb@mark{\markboth}
-\def\ttl at mb@warn{%
- \PackageWarningNoLine{titleps}
- {Direct use of \string\markboth\space and \string\markleft\space
- can lead\MessageBreak
- to unpredictable results. Please, read the manual\MessageBreak
- for an explanation of this warning.}}
-
-\def\ttl at markboth#1{%
- \begingroup
- \let\protect\@unexpandable at protect
- \let\@mkboth\@gobbletwo
- \let\ttl at enccode\relax
- \let\label\relax
- \let\index\relax
- \let\glossary\relax
- \let\ttl at c\mark
- \def\mark##1{\xdef\ttl at running{\expandafter\@gobble##1}}%
- \ttl at mb@mark{}{\ttl at enccode}%
- \expandafter\let\csname#1mark\endcsname\@gobble
- \xdef\ttl at marks{\ttl at marks}%
- \gdef\@themark{{\ttl at marks}{\ttl at prevmarks}}%
- \ttl at c{\@themark\let\noexpand\ttl at mb@warn\relax}%
- \@nameuse{ttl at tem@#1}%
- \if at nobreak\ifvmode\nobreak\fi\fi
- \endgroup}
-
-\newcommand\settitlemarks{\@ifstar\ttl at svmarks@s\ttl at svmarks@x}
-
-\def\ttl at svmarks@x#1{\def\ttl at marksset{{#1}}}
-\def\ttl at svmarks@s#1{\def\ttl at marksset{*{#1}}}
-
-\newcommand\setmarks[2]{\settitlemarks{#1,#2}} % back compat
-
-\def\ttl at settopmark#1\@@{%
- \expandafter\def\csname#1mark\endcsname##1{%
- \expandafter\gdef\csname#1title\endcsname{##1}%
- \ttl at setifthe{#1}%
- \expandafter\let\expandafter\ttl at marks\csname ttl at tm@#1\endcsname
- \ttl at markboth{#1}}%
- \global\@namedef{ttl at tm@#1}{%
- \protect\@namedef{#1title}{\@nameuse{#1title}}%
- \protect\@namedef{the#1}{\@nameuse{the#1}}%
- \protect\@namedef{ifthe#1}{\@nameuse{ifthe#1}}}%
- \def\ttl at elt##1{%
- \expandafter\ttl at setsubmark\ttl at a\@@{##1}}%
- \ttl at c}%
-
-\def\ttl at setsubmark#1\@@#2{%
- \expandafter\g at addto@macro\csname ttl at tm@#2\endcsname{%
- \protect\@namedef{#1title}{}%
- \protect\@namedef{the#1}{}%
- \protect\@namedef{ifthe#1}{\protect\@secondoftwo}}
- \expandafter\g at addto@macro\csname ttl at tm@#1\endcsname{%
- \protect\@namedef{#2title}{\@nameuse{#2title}}%
- \protect\@namedef{the#2}{\@nameuse{the#2}}%
- \protect\@namedef{ifthe#2}{\@nameuse{ifthe#2}}}}%
-
-\def\ttl at setmarks@x#1{%
- \let\ttl at c\@empty % sub list
- \@for\ttl at a:=#1\do{%
- \expandafter\ttl at settopmark\ttl at a\@@
- \let\ttl at elt\relax
- \xdef\ttl at c{\ttl at c\ttl at elt{\ttl at a}}}%
- \@for\ttl at a:=#1\do{%
- \expandafter\g at addto@macro\csname ttl at tm@\ttl at a\endcsname{%
- \ttl at moremarks}}}
-
-\def\ttl at setmarks@s#1{% Solo con extramarks
- \PackageError{titleps}%
- {You need `extramarks' for \string\settitlemarks*}%
- {\string\settitlemarks* requires the package option `extramarks'}}
-
-\newcommand\pretitlemark{%
- \global\ttl at premarktrue
- \@ifstar{\ttl at pretitlemark\z@}%
- {\ttl at pretitlemark\@ne}}
-
-\def\ttl at pretitlemark#1#2#3{%
- \addtocounter{#2}#1%
- \ttl at premark{#2}{#3}%
- \addtocounter{#2}{-#1}}
-
-% Rules
-% -----
-
-\newcommand\headrule{\setheadrule{.4\p@}}
-\newcommand\footrule{\setfootrule{.4\p@}}
-
-\newcommand\setheadrule[1]{%
- \ifdim#1=\z@
- \let\makeheadrule\@empty
- \else
- \def\makeheadrule{\rule[-.3\baselineskip]{\linewidth}{#1}}%
- \fi}
-\newcommand\setfootrule[1]{%
- \ifdim#1=\z@
- \let\makefootrule\@empty
- \else
- \def\makefootrule{\rule[.7\baselineskip]{\linewidth}{#1}}%
- \fi}
-
-\renewcommand\newpagestyle[1]{%
- \begingroup
- \catcode`\^^M=9
- \@ifnextchar[%
- {\ttl at pagestyle\newcommand{#1}}%
- {\ttl at pagestyle\newcommand{#1}[]}}
-
-\renewcommand\renewpagestyle[1]{%
- \begingroup
- \catcode`\^^M=9
- \@ifnextchar[%
- {\ttl at pagestyle\renewcommand{#1}}%
- {\ttl at pagestyle\renewcommand{#1}[]}}
-
-\def\ttl at pagestyle#1#2[#3]#4{%
- \endgroup
- \expandafter#1\csname ps@#2\endcsname{%
- \ttl at defaultps
- \def\ttl at headfmt{#3}%
- #4%
- \def\settitlemarks{\@ifstar\ttl at svmarks@s\ttl at svmarks@x}}}
-
-\def\ttl at userunning#1#2{\csname ttlr@#1#2\endcsname}
-
-\def\ttl at defaultps{%
- \let\makeheadrule\@empty
- \let\makefootrule\@empty
- \def\@mkboth{\ttl at savemark\@gobbletwo}%
- \def\@oddfoot{\ttl at userunning of}%
- \def\@evenfoot{\ttl at userunning ef}%
- \def\@oddhead{\ttl at userunning oh}%
- \def\@evenhead{\ttl at userunning eh}%
- \def\ttlr at of{\ttl at makefoot\@empty\@@\ttl at hiol\ttl at hior}%
- \def\ttlr at ef{\ttl at makefoot\@empty\@@\ttl at hiel\ttl at hier}%
- \def\ttlr at oh{\ttl at makehead\@empty\@@\ttl at hiol\ttl at hior}%
- \def\ttlr at eh{\ttl at makehead\@empty\@@\ttl at hiel\ttl at hier}%
- \let\ttlr at of@b\relax \let\ttlr at of@p\relax
- \let\ttlr at ef@b\relax \let\ttlr at ef@p\relax
- \let\ttlr at oh@t\relax \let\ttlr at oh@p\relax
- \let\ttlr at eh@t\relax \let\ttlr at eh@p\relax
- \def\settitlemarks{\@ifstar\ttl at setmarks@s\ttl at setmarks@x}%
- \expandafter\settitlemarks\ttl at marksset}
-
-\@ifundefined{chapter}%
- {\settitlemarks{section,subsection}}%
- {\settitlemarks{chapter,section}}
-
-\newcommand\usepage{\protect\thepage} % back compat
-
-\newcommand\toptitlemarks{\expandafter\@secondoftwo\firstmark{}{}{}}
-\def\firsttitlemarks{%
- \toks@\expandafter\expandafter\expandafter{%
- \expandafter\@secondoftwo \firstmark{}{}{}}%
- \@temptokena\expandafter\expandafter\expandafter{%
- \expandafter\@secondoftwo \botmark{}{}{}}%
- \edef\ttl at a{\the\toks@}%
- \edef\ttl at b{\the\@temptokena}%
- \ifx\ttl at a\ttl at b
- \expandafter\@secondoftwo\firstmark{}{}{}%
- \else
- \expandafter\@firstoftwo \firstmark{}{}{}%
- \fi}
-\newcommand\bottitlemarks{\expandafter\@secondoftwo\botmark{}{}{}}
-\newcommand\nexttoptitlemarks{\expandafter\@firstoftwo\botmark{}{}{}}
-\newcommand\outertitlemarks{%
- \if at twoside
- \ifodd\c at page\relax
- \bottitlemarks
- \else
- \toptitlemarks
- \fi
- \else
- \toptitlemarks
- \fi}
-\newcommand\innertitlemarks{%
- \if at twoside
- \ifodd\c at page\relax
- \firsttitlemarks
- \else
- \bottitlemarks
- \fi
- \else
- \bottitlemarks
- \fi}
-
-\def\ttl at duplthreeargs#1#2#3#4{#1[#2][#3][#4]{#2}{#3}{#4}}
-\def\ttl at dupltwoargs#1#2#3{#1[#2][#3]{#2}{#3}}
-\def\ttl at duplthreeargsrev#1#2#3#4{#1[#4][#3][#2]{#2}{#3}{#4}}
-\def\ttl at dupltwoargsrev#1#2#3{#1[#3][#2]{#2}{#3}}
-
-\def\ttl at setany#1{%
- \@ifstar{\ttl at duplthreeargsrev#1}%
- {\@ifnextchar[{#1}{\ttl at duplthreeargs#1}}}
-
-\newcommand\setfoot{\ttl at setany\ttl at setfoot}
-\newcommand\sethead{\ttl at setany\ttl at sethead}
-
-\def\ttl at setfoot[#1][#2][#3]#4#5#6{%
- \def\ttlr at ef{\ttl at makefoot{#1}{#2}{#3}\@@\ttl at hiel\ttl at hier}%
- \def\ttlr at of{\ttl at makefoot{#4}{#5}{#6}\@@\ttl at hiol\ttl at hior}}
-
-\def\ttl at sethead[#1][#2][#3]#4#5#6{%
- \def\ttlr at eh{\ttl at makehead{#1}{#2}{#3}\@@\ttl at hiel\ttl at hier}%
- \def\ttlr at oh{\ttl at makehead{#4}{#5}{#6}\@@\ttl at hiol\ttl at hior}}
-
-\def\ttl at headinline#1#2#3{%
- \ttl at headfmt
- \def\ttl at a{#1#3}\def\ttl at b{#2}%
- \ifx\ttl at a\@empty
- \hfil{#2}\hfil
- \else\ifx\ttl at b\@empty
- {#1}\hfil{#3}%
- \else
- \sbox\z@ {#1}%
- \sbox\tw@{#3}%
- \copy\z@
- \ifdim\wd\z@<\wd\tw@
- \kern-\wd\z@\kern\wd\tw@
- \fi
- \hfil{#2}\hfil
- \ifdim\wd\z@>\wd\tw@
- \kern-\wd\tw@\kern\wd\z@
- \fi
- \box\tw@
- \fi\fi}
-
-\def\ttl at makeboth#1#2#3#4{%
- \ttl at calcneg\hspace{#3}%
- \normalsize
- \linewidth\textwidth
- \addtolength\linewidth{#3}%
- \addtolength\linewidth{#4}%
- \ifx#2\@empty\else
- \setbox\z@\hb at xt@\linewidth{%
- \color at begingroup
- #2%
- \color at endgroup}%
- \wd\z@\z@
- \ht\z@\z@
- \dp\z@\z@
- \box\z@
- \fi
- \ttl at titlemarks % Must precede the format. Defines \ttl at running
- \def\ttl at enccode{\ttl at headinline#1{}{}{}}% which contains ttl at enccode
- \ttl at running
- \ttl at calcneg\hspace{#4}}%
-
-\def\ttl at makehead#1\@@{\ttl at makeboth{#1}\makeheadrule}
-\def\ttl at makefoot#1\@@{\ttl at makeboth{#1}\makefootrule}
-
-\renewcommand\widenhead{%
- \@ifstar{\ttl at dupltwoargsrev\ttl at widenhd}%
- {\@ifnextchar[{\ttl at widenhd}{\ttl at dupltwoargs\ttl at widenhd}}}
-
-\def\ttl at widenhd[#1][#2]#3#4{%
- \def\ttl at hiel{#1}\def\ttl at hier{#2}%
- \def\ttl at hiol{#3}\def\ttl at hior{#4}}
-
-\let\setheadindent\widenhead
-
-\def\ttl at hiel{\z@}\def\ttl at hier{\z@}
-\def\ttl at hiol{\z@}\def\ttl at hior{\z@}
-
-% A tool:
-
-\def\ifsamemark#1#2{%
- {#1\global\let\ttl at c#2}%
- \ifx\ttl at c#2%
- \expandafter\@firstoftwo
- \else
- \expandafter\@secondoftwo
- \fi}
-
-% Another tool:
-
-\newcommand\setmarkboth{%
- \ifx\markboth\ttl at mb@use\else
- \let\ttl at mb@mark\markboth
- \let\markboth\ttl at mb@use
- \fi
- \def\ttl at mb@new##1##2}
-
-% \ttl at mb@temp is a trick to allow resetting inside \setmarkboth.
-
-\def\ttl at mb@use#1#2{%
- \let\markboth\ttl at mb@mark
- \def\ttl at mb@temp{\let\markboth\ttl at mb@use}%
- \ttl at mb@new{#1}{#2}%
- \ttl at mb@temp
- \let\ttl at mb@temp\@undefined}
-
-\newcommand\resetmarkboth{%
- \ifx\ttl at mb@temp\@undefined
- \let\markboth\ttl at mb@mark
- \def\ttl at mb@mark{\markboth}%
- \else
- \def\ttl at mb@temp{%
- \let\markboth\ttl at mb@mark
- \def\ttl at mb@mark{\markboth}}%
- \fi}
-
-% ===========
-% EXTRA MARKS
-% ===========
-
-\ifx\ttl at fetchmark\@empty
-
-\ifx\newmarks\@undefined
- \PackageInfo{titleps}{%
- You have requested `extramarks' but etex or similar\MessageBreak
- has not been loaded. I'll do it for you.}
- \RequirePackage{etex}
-\fi
-
-\def\ttl at setmarks@s#1{%
- \@for\ttl at a:=#1\do{%
- \@ifundefined{ttl at mkc@\ttl at a}{%
- \expandafter\newmarks\csname ttl at mkc@\ttl at a\endcsname}{}%
- \expandafter\xdef\csname ttl at tem@\ttl at a\endcsname{%
- \marks\expandafter\noexpand\csname ttl at mkc@\ttl at a\endcsname
- {\noexpand\@themark}}}%
- \ttl at setmarks@x{#1}}%
-
-\newcommand\newmarkset[1]{%
- \expandafter\newmarks\csname ttl at mkc@#1\endcsname
- \@namedef{ttl at mks@#1}{}%
- \@namedef{ttl at premks@#1}{\@nameuse{ttl at mks@#1}}}
-
-\newcommand\newextramark{%
- \@ifstar{\@tempswafalse\ttl at newmk@i}%
- {\@tempswatrue\ttl at newmk@i}}
-
-\def\ttl at extramark#1{%
- \begingroup
- \let\protect\@unexpandable at protect
- \let\@mkboth\@gobbletwo
- \let\label\relax
- \let\index\relax
- \let\glossary\relax\endgroup}
-
-\newcommand\extramark[1]{%
- \begingroup
- \let\protect\@unexpandable at protect
- \let\@mkboth\@gobbletwo
- \let\label\relax
- \let\index\relax
- \let\glossary\relax
- \marks\csname ttl at mkc@#1\endcsname{%
- {\@nameuse{ttl at mks@#1}}%
- {\@nameuse{ttl at mks@#1}}}%
- \expandafter\xdef\csname ttl at premks@#1\endcsname
- {\@nameuse{ttl at mks@#1}}%
- \endgroup
- \if at nobreak\ifvmode\nobreak\fi\fi}%
-
-\newcommand\preextramark[1]{%
- \begingroup
- \let\protect\@unexpandable at protect
- \let\@mkboth\@gobbletwo
- \let\label\relax
- \let\index\relax
- \let\glossary\relax
- \marks\csname ttl at mkc@#1\endcsname{%
- {\csname ttl at mks@#1\endcsname}%
- {\csname ttl at premks@#1\endcsname}}%
- \endgroup
- \if at nobreak\ifvmode\nobreak\fi\fi}
-
-\newcommand\newshortmark[1]{%
- \newmarkset{\string#1}%
- \newextramark{\string#1}#1}
-
-\newcommand\shortmark[1]{\extramark{\string#1}}
-\newcommand\preshortmark[1]{\preextramark{\string#1}}
-
-\newcommand\topshortmark[1]{{\topextramarks{\string#1}#1}}
-\newcommand\firstshortmark[1]{{\firstextramarks{\string#1}#1}}
-\newcommand\botshortmark[1]{{\botextramarks{\string#1}#1}}
-\newcommand\nexttopshortmark[1]{{\nexttopextramarks{\string#1}#1}}
-
-\def\ttl at fetchmark#1#2#3{%
- \expandafter#1#2\csname ttl at mkc@#3\endcsname{}{}{}}
-
-\newcommand\topextramarks[1]{\ttl at fetchmark\@secondoftwo\firstmarks{#1}}
-\newcommand\firstextramarks[1]{%
- \toks@\expandafter\expandafter\expandafter{%
- \ttl at fetchmark\@secondoftwo\firstmarks{#1}}%
- \@temptokena\expandafter\expandafter\expandafter{%
- \ttl at fetchmark\@secondoftwo\botmarks{#1}}%
- \edef\ttl at a{\the\toks@}%
- \edef\ttl at b{\the\@temptokena}%
- \ifx\ttl at a\ttl at b
- \ttl at fetchmark\@secondoftwo\firstmarks{#1}%
- \else
- \ttl at fetchmark\@firstoftwo\firstmarks{#1}%
- \fi}
-\newcommand\botextramarks[1]{\ttl at fetchmark\@secondoftwo\botmarks{#1}}
-\newcommand\nexttopextramarks[1]{\ttl at fetchmark\@firstoftwo\botmarks{#1}}
-
-\newcommand\outerextramarks[1]{%
- \if at twoside
- \ifodd\c at page\relax
- \botextramarks{#1}%
- \else
- \topextramarks{#1}%
- \fi
- \else
- \topextramarks{#1}%
- \fi}
-\newcommand\innerextramarks[1]{%
- \if at twoside
- \ifodd\c at page\relax
- \firstextramarks{#1}%
- \else
- \botextramarks{#1}%
- \fi
- \else
- \botextramarks{#1}%
- \fi}
-
-\fi
-
-% ======
-% FLOATS
-% ======
-%
-% Pagestyles with floats. There macros are defined only with the
-% psfloats package option.
-
-\@ifundefined{ttl at replace}{\endinput}{}
-
-% User interface
-
-\newcommand\setfloatfoot{%
- \let\ttl at c\@empty % <- current float, empty if general
- \ttl at setany\ttl at setftfoot}
-
-\newcommand\setfloathead{%
- \let\ttl at c\@empty % <- current float, empty if general
- \ttl at setany\ttl at setfthead}
-
-\def\ttl at setftfoot[#1][#2][#3]#4#5#6#7{%
- \@ifnextchar[{\ttl at setftfoot@i{#1}{#2}{#3}{#4}{#5}{#6}{#7}}%
- {\ttl at setftfoot@i{#1}{#2}{#3}{#4}{#5}{#6}{#7}[bp]}}
-
-\def\ttl at setfthead[#1][#2][#3]#4#5#6#7{%
- \@ifnextchar[{\ttl at setfthead@i{#1}{#2}{#3}{#4}{#5}{#6}{#7}}%
- {\ttl at setfthead@i{#1}{#2}{#3}{#4}{#5}{#6}{#7}[tp]}}
-
-\def\ttl at setftfoot@i#1#2#3#4#5#6#7[#8]{%
- \@tfor\ttl at b:=#8\do{%
- \@namedef{ttlr at ef@\ttl at b\ttl at c}%
- {#7\ttl at makefoot{#1}{#2}{#3}\@@\ttl at hiel\ttl at hier}%
- \@namedef{ttlr at of@\ttl at b\ttl at c}%
- {#7\ttl at makefoot{#4}{#5}{#6}\@@\ttl at hiol\ttl at hior}}}
-
-\def\ttl at setfthead@i#1#2#3#4#5#6#7[#8]{%
- \@tfor\ttl at b:=#8\do{%
- \@namedef{ttlr at eh@\ttl at b\ttl at c}%
- {#7\ttl at makehead{#1}{#2}{#3}\@@\ttl at hiel\ttl at hier}%
- \@namedef{ttlr at oh@\ttl at b\ttl at c}%
- {#7\ttl at makehead{#4}{#5}{#6}\@@\ttl at hiol\ttl at hior}}}
-
-\newcommand\nextfloathead{%
- \ttl at nextfree % returns ttl at c with the next float
- \ttl at setany\ttl at setfthead}
-
-\newcommand\nextfloatfoot{%
- \ttl at nextfree % returns ttl at c with the next float
- \ttl at setany\ttl at setftfoot}
-
-% Compat mode with floatps
-
-\ifx\ttl at replace\space
-
- \let\ttl at setnewfoot\ttl at setftfoot
- \let\ttl at setnewhead\ttl at setfthead
-
- \def\ttl at setftfoot[#1][#2][#3]#4#5#6{%
- \ttl at setnewfoot[#1][#2][#3]{#4}{#5}{#6}{}}
- \def\ttl at setfthead[#1][#2][#3]#4#5#6{%
- \ttl at setnewhead[#1][#2][#3]{#4}{#5}{#6}{}}
-
-\fi
-
-% The simple default value of \ttl at userunning is
-% replaced by one more elaborated
-
-\def\ttl at userunning#1#2{%
- \if at fcolmade % From a post by D. Arseneau to comp.text.tex
- \def\@elt##1{\edef\ttl at pageft{\string##1}}%
- \@flsucceed
- \let\@elt\relax
- \if#2h%
- \ttl at replace #1hp\ttl at pageft
- \else
- \ttl at replace #1fp\ttl at pageft
- \ttl at killftps\ttl at pageft
- \fi
- \else\if#2h%
- \ifx\ttl at topft\@empty\else
- \ttl at replace #1ht\ttl at topft
- \fi
- \else
- \ifx\ttl at botft\@empty\else
- \ttl at replace #1fb\ttl at botft
- \fi
- \fi\fi
- \csname ttlr@#1#2\endcsname}
-
-% [Don't move above as \ttl at replace is used as a flag.]
-
-\def\ttl at replace#1#2#3#4{%
- \@ifundefined{ttlr@#1#2@#3#4}%
- {\@ifundefined{ttlr@#1#2@#3}{}%
- {\@namedef{ttlr@#1#2}{\@nameuse{ttlr@#1#2@#3}}}}%
- {\csname ttlr at xx@x#4\endcsname\@gobble
- {\expandafter\let\csname ttlr@#1#2\expandafter\endcsname
- \csname ttlr@#1#2@#3#4\endcsname}}}
-
-\def\ttl at nextfree{%
- \def\@elt##1{%
- \edef\ttl at c{\string##1}%
- \let\@elt\@gobble}%
- \@freelist
- \let\@elt\relax
- \@ifundefined{ttlr at xx@x\ttl at c}%
- {\expandafter\let\csname ttlr at xx@x\ttl at c\endcsname\@secondoftwo
- \@tfor\ttl at a:={eh at t}{oh at t}{ef at b}{of at b}{eh at p}{oh at p}{ef at p}{of at p}\do{%
- \expandafter\global\expandafter
- \let\csname ttlr@\ttl at a\ttl at c\endcsname\relax}}{}}
-
-\def\ttl at killftps#1{%
- \expandafter\global\expandafter
- \let\csname ttlr at xx@x#1\endcsname\relax}
-
-\let\ttl at topft\@empty
-\let\ttl at botft\@empty
-\let\ttl at pageft\@empty
-
-\def\ttl at combinefloats{%
- \ifx\@toplist\@empty\else
- \def\@elt##1{%
- \edef\ttl at topft{\string##1}%
- \def\@elt####1{\ttl at killftps{\string####1}}}%
- \@toplist
- \fi
- \ifx\@botlist\@empty\else
- \def\@elt##1{%
- \def\@elt####1{%
- \def\@elt####1{\ttl at killftps\ttl at botft}%
- \edef\ttl at botft{\string####1}}%
- \edef\ttl at botft{\string##1}}%
- \@botlist
- \fi
- \let\@elt\relax
- \ttl at combinefloats@x}
-
-\AtBeginDocument{%
- \let\ttl at combinefloats@x\@combinefloats
- \let\@combinefloats\ttl at combinefloats}
-
-\endinput
Deleted: trunk/Master/texmf-dist/tex/latex/titlesec/wrap.tss
===================================================================
--- trunk/Master/texmf-dist/tex/latex/titlesec/wrap.tss 2019-07-18 20:34:08 UTC (rev 51663)
+++ trunk/Master/texmf-dist/tex/latex/titlesec/wrap.tss 2019-07-18 20:34:43 UTC (rev 51664)
@@ -1,83 +0,0 @@
-% +--------------------------------------------------+
-% | Typeset titlesec.tex to get the documentation. |
-% +--------------------------------------------------+
-%
-% Copyright (c) 1998-2016 by Javier Bezos.
-% All Rights Reserved.
-%
-% This file is part of the titlesec distribution release 2.10.2
-% -----------------------------------------------------------
-%
-% It may be distributed and/or modified under the
-% conditions of the LaTeX Project Public License, either version 1.3
-% of this license or (at your option) any later version.
-% The latest version of this license is in
-% http://www.latex-project.org/lppl.txt
-% and version 1.3 or later is part of all distributions of LaTeX
-% version 2003/12/01 or later.
-%
-% This work has the LPPL maintenance status "maintained".
-%
-% The Current Maintainer of this work is Javier Bezos.
-
-\ProvidesFile{wrap.tss}[2016/03/15]
-
-\gdef\ttlh at wrap#1#2#3#4#5#6#7#8{%
- \global\@noskipsectrue
- \gdef\ttl at makeline##1{##1}%
- \ttl at changecentercr
- \begingroup
- #1\ifhmode\ttl at hmode@error\fi
- \titlewidth\z@
- \def\\{\@ifstar{\@ifnextchar[{\ttl at bs}{\newline}}%
- {\@ifnextchar[{\ttl at bs}{\newline}}}%
- \def\ttl at bs[##1]{\newline}%
- \let\@centercr\\%
- \advance\rightskip 1\leftskip plus 1fil
- \leftskip=\z@
- \parindent\z@
- \let\iftitlemeasuring\@firstoftwo
- \global\setbox\ttl at box\vtop{\setlength\hsize{#6}%
- \color at begingroup
- \ifttl at label{#2}\ttl at calc\hspace{#3}\fi
- #4{#8}\kern\z@\strut
- \@@par
- \color at endgroup}%
- \let\iftitlemeasuring\@secondoftwo
- \ttl at boxprocess
- \global\titlewidth\titlewidth
- \global\titlewidthfirst\titlewidthfirst
- \global\titlewidthlast\titlewidthlast
- \endgroup
- \edef\ttl at maxdimen{\the\titlewidth}%
- #1\ifhmode\ttl at hmode@error\fi
- \global\setbox\ttl at box\vtop{\setlength\hsize{\ttl at maxdimen}%
- \color at begingroup
- \ifttl at label{#2}\ttl at calc\hspace{#3}\fi#4{#8}\kern\z@\strut
- \@@par
- \color at endgroup}%
- \advance\@tempskipa1.5\baselineskip
- \advance\@tempskipa\ht\ttl at box
- \advance\@tempskipa\dp\ttl at box
- \advance\@tempskipa-\pagegoal
- \advance\@tempskipa\pagestretch
- \@tempskipb\pagegoal
- \pagegoal-\@tempskipa
- \ifdim\bottomtitlespace<\z@\else
- \def\@textbottom{\vskip\z@\@plus.0001fil}%
- \fi
- \penalty9999
- \pagegoal\@tempskipb
- \@tempdima\ht\ttl at box \advance\@tempdima\dp\ttl at box
- \@tempdimb\@tempdima
- \divide\@tempdima\baselineskip \count@\@tempdima
- \advance\count@
- \ifdim\@tempdimb<\the\count at .5\baselineskip\@ne\else\tw@\fi
- \dp\ttl at box=\z@
- \xdef\@svsechd##1##2{%
- \noexpand\llap{\box\ttl at box##2}%
- \setbox\z@\hbox{\hskip\ttl at maxdimen\relax##2}%
- \global\hangindent\wd\z@
- \global\hangafter-\the\count@\relax}}
-
-\endinput
More information about the tex-live-commits
mailing list