| 1 |
## TITLESEC |
| 2 |
|
| 3 |
History of v1.0 |
| 4 |
~~~~~~~~~~~~~~~ |
| 5 |
1998/02/25 Added nops option |
| 6 |
1998/02/28 Added \@mkboth stuff in \setmarks |
| 7 |
1998/03/01 Changed test in \ttl@secnum |
| 8 |
1998/03/03 Corrected some \fil... commands |
| 9 |
1998/03/03 Replaced the faulty \@hangfrom by new commands |
| 10 |
1998/03/03 Some \def replaced by \newcommand |
| 11 |
1998/03/04 .dtx/.ins scheme finally rejected. Useless |
| 12 |
for users, obtrusive for `readers' and proned |
| 13 |
to errors |
| 14 |
1998/03/04 Tidied up documentation |
| 15 |
1998/03/06 \wordsep renamed and documented |
| 16 |
1998/03/06 Added dummy asignation in \ttl@chap. |
| 17 |
1998/03/06 Removed \ttl@xsect and merged into \tl@sect |
| 18 |
1998/03/06 Added \ProvidesPackage |
| 19 |
|
| 20 |
History of v1.1 |
| 21 |
~~~~~~~~~~~~~~~~ |
| 22 |
1998/03/25 \chapter corrected, as well as the size options |
| 23 |
1998/03/26 Added compact option |
| 24 |
1998/03/26 Added flushleft, flushright and center options |
| 25 |
1998/04/08 Changed all instances of \noindent by \parindent\z@ |
| 26 |
1998/04/14 Added \filinner, \filouter |
| 27 |
1998/04/14 Added drop shape |
| 28 |
1998/05/01 Added rightmargin shape (and margin renamed to |
| 29 |
leftmargin) |
| 30 |
1998/05/03 Added \setheadindent |
| 31 |
|
| 32 |
History of v1.2 (unreleased) |
| 33 |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 34 |
|
| 35 |
1998/06/01 Compatibility with AMS classes |
| 36 |
1998/06/08 On-demand loading of shapes |
| 37 |
1998/06/11 Frame shape. Some \fil... command |
| 38 |
modified to work in the label of this |
| 39 |
chapter shape. |
| 40 |
1998/07/03 Bottomtitle option (at last...) |
| 41 |
1998/07/14 ...margin styles bug fixed using a method |
| 42 |
similar to bottomtitle. |
| 43 |
1998/07/29 \titleline |
| 44 |
|
| 45 |
==================== |
| 46 |
|
| 47 |
History of v2.0 |
| 48 |
~~~~~~~~~~~~~~~~ |
| 49 |
|
| 50 |
1998/08/05 to |
| 51 |
1998/08/29 Fully reimplemented |
| 52 |
|
| 53 |
History of v2.1 |
| 54 |
~~~~~~~~~~~~~~~~ |
| 55 |
1999/01/05 We define in this file the three basic shapes. |
| 56 |
Additional ones remain defined in external files. |
| 57 |
Unified the shapes for sections and chapters. |
| 58 |
1999/01/05 \ttl@shape merged into \ttl@format@iii. |
| 59 |
1999/01/05 \titlerule |
| 60 |
1999/01/07 \ttl@defkeys splitted from \ttl@keys |
| 61 |
1999/01/10 Added the \part stuff, including a definition of \@openright |
| 62 |
1999/01/11 Removed unnecessary \ttl@numsecfalse in \ttl@sect@i. |
| 63 |
1999/01/14 Optimized \titlerule |
| 64 |
1999/01/27 Changed \titleline to correct the spacing at the |
| 65 |
top page and to fix a bug which changed the mode |
| 66 |
to horizontal, thus introducing unwanted space |
| 67 |
(\makebox -> \@makebox). |
| 68 |
1999/02/02 \ttl@secnum renamed to \ttl@write and introduced the |
| 69 |
\ttl@savewrite mechanism to sincronize the toc/marks |
| 70 |
with the title in case there is a \newpage in <after>. |
| 71 |
1999/02/03 wrap shape |
| 72 |
1999/02/03 Added a \kern\z@ for not to avoid hyphenation |
| 73 |
of the last word. Not strictly necessary, but |
| 74 |
it is more LaTeX-like. |
| 75 |
1999/02/05 \partmark defined (and in \setmarks, too). |
| 76 |
1999/02/08 \ttl@row@i simplified. |
| 77 |
1999/02/08 \ttl@savefn mechanism. |
| 78 |
1999/02/10 Removed extra \leavevmode in display |
| 79 |
1999/02/13 Now \titleline doesn't add the width. It's set. |
| 80 |
1999/02/17 The part mark is catched, even if unused. |
| 81 |
1999/02/17 old/newparttoc added. |
| 82 |
1999/02/18 Changed many TeX assignments to the LaTeX |
| 83 |
counterpart. |
| 84 |
1999/02/19 Introduced \ttl@startargs. |
| 85 |
|
| 86 |
History of v2.1.1 |
| 87 |
~~~~~~~~~~~~~~~~~ |
| 88 |
1999/08/04 Moved misplaced lines in \ttl@makeboth |
| 89 |
|
| 90 |
History of v2.2 (unreleased) |
| 91 |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 92 |
1999/11/03 We load titleps if pagestyles are required, but |
| 93 |
some old definitions are restored. |
| 94 |
1999/11/06 Improved outermarks test in \ttl@sect@i. Formerly |
| 95 |
the section number could be printed if a page ended |
| 96 |
with an unnumebered section followed by a numbered one. |
| 97 |
1999/11/06 \ttl@startargs now adds (and passes) automatically the |
| 98 |
section name. Involved macros modified accordingly. |
| 99 |
1999/11/06 Replaced explicit part names by the parameter in |
| 100 |
\ttl@part@i. The same for chapter. |
| 101 |
1999/11/21 \ttl@try's are not given explicitly, but built by |
| 102 |
\ttl@setkeys. Intruduced the \ttl@key@... and |
| 103 |
\ttl@extra@... commands. |
| 104 |
1999/11/23 Minor problems with keys fixed. |
| 105 |
1999/12/10 Added the nobottomtitles* option and \ttl@addstretch. |
| 106 |
2000/01/07 First steps towards the calcwidth feature (basic code). |
| 107 |
2000/01/08 (Continued.) \titleline* for rules of width \titlewidth. |
| 108 |
Option calcwidth implemented. |
| 109 |
2000/01/12 Finished with changes in wrap.tss (no longer |
| 110 |
"experimental" :-) ) |
| 111 |
|
| 112 |
History of v2.3 |
| 113 |
~~~~~~~~~~~~~~~ |
| 114 |
2000/01/19 All keys are grouped in a single file tttkeys. Removed |
| 115 |
page.tsk and deleted the corresponding code in the sty. |
| 116 |
2000/01/19 Classes begun. |
| 117 |
2000/01/19 The level numbers are stored in \ttll@ macros, and not |
| 118 |
passed as arguments. |
| 119 |
2000/01/21 Introduced the new mark scheme. It's mostly compatible |
| 120 |
with the old one, but a compatibility mode seems |
| 121 |
imposible (it was introduced in a preliminary test |
| 122 |
but eventually removed). |
| 123 |
2000/01/23 loadonly package option. |
| 124 |
2000/02/01 Classes finished. Many things had to be rewritten. |
| 125 |
2000/02/02 Made partially compatible with hyperref (dvips). |
| 126 |
2000/02/08 \ttl@savewrite moved from shapes to classes. But |
| 127 |
explicit page breaks expand it, too, to avoid wrong |
| 128 |
toc entries. |
| 129 |
2000/02/18 A new box named \ttl@box stores the title in runin |
| 130 |
leftmargin etc shapes, to increase reliability. |
| 131 |
|
| 132 |
(2.3.1 -- 2.3.3 No changes on this file) |
| 133 |
|
| 134 |
History of v2.3.4 |
| 135 |
~~~~~~~~~~~~~~~~~ |
| 136 |
2000/05/12 nonindentfirst redefine \titlespacing instead of |
| 137 |
\@afterindent... so that they don't interfere with |
| 138 |
the first entry in tocs. |
| 139 |
2000/05/17 The marks in \ttl@select are protected to prevent |
| 140 |
endless loop if the title is expanded, say, by |
| 141 |
\MakeUppercase. |
| 142 |
|
| 143 |
History of v2.3.5 |
| 144 |
~~~~~~~~~~~~~~~~~ |
| 145 |
2000/05/21 Restores missing test for secnumdepth in \ttl@mkchap, |
| 146 |
and instead of setting \ttl@toclevel in ttlps now is |
| 147 |
done in \secdef. Except inside the macros, \ttl@toclevel |
| 148 |
is false, so that an explicit \...mark works. |
| 149 |
2000/06/04 \partmark defined with \providecommand |
| 150 |
2000/06/14 A patch mechanism added, for small bug fixes. |
| 151 |
|
| 152 |
History of v2.4 |
| 153 |
~~~~~~~~~~~~~~~~ |
| 154 |
2001/01/18 Minor changes in code. Essentialy an incremental |
| 155 |
update. |
| 156 |
2001/01/22 \titleformat has a new "easy" starred variant. |
| 157 |
|
| 158 |
History of v2.5 |
| 159 |
~~~~~~~~~~~~~~~ |
| 160 |
2002/01/02 New macros for \ttl@assign. Now * length allow |
| 161 |
non integer values. |
| 162 |
2002/03/22 Added \ttl@calc and \ttl@calcneg to make titlesec |
| 163 |
calc-savvy. |
| 164 |
- Merged bug fixes of .new into this file. |
| 165 |
- Bugs in frame fixed -- gap in lines, misplaced |
| 166 |
label, wrong margins (sometimes), |
| 167 |
- \leftskip, \rightskip and \linewidth (re)set in |
| 168 |
margin shapes. |
| 169 |
- Removed obsolete flush... options. |
| 170 |
- indentafter and noindentafter, new names for |
| 171 |
indentfirst and nonindentfirst. |
| 172 |
- A new level (\titleclass) without its "location" |
| 173 |
now raises a meaningful error. |
| 174 |
- Bug in top-level \titleclass fixed. |
| 175 |
2002/03/23 Tests for undefined and unformatted sectioning levels, |
| 176 |
and horizontal material in <format>. |
| 177 |
- Missing \if@openright inside \if@twoside in |
| 178 |
page class added. |
| 179 |
- Removed extra (but inoffensive) \expandafter |
| 180 |
in \ttl@class@iii. |
| 181 |
2002/03/27 Added \titlewidthfirst and ...last |
| 182 |
- "Not definable" gives a more meaningful message in |
| 183 |
the context of the package. |
| 184 |
|
| 185 |
History of v.2.6 |
| 186 |
~~~~~~~~~~~~~~~~ |
| 187 |
2004/08/30 Corrected typo in margin \hsiz -> \hsize. |
| 188 |
2004/10/17 Added a couple of missing \noexpand's in drop. |
| 189 |
2004/12/01 Removed the error about the mode in block because this |
| 190 |
style is general purpose. |
| 191 |
2005/01/16 Missing braces around #2 in the last else part of |
| 192 |
\ttl@headinline added |
| 193 |
- Replaced explicit \makeatother's by a saved value as |
| 194 |
the macros can be used in a class/package file. |
| 195 |
2005/01/18 newlinetospace mechanism |
| 196 |
- // does not break pages; option pageatnewline to |
| 197 |
restore the LaTeX behaviour. |
| 198 |
2005/01/19 \...break in top shape. |
| 199 |
- Renumbered several scratch registers to follow the |
| 200 |
TeXbook (p. 346), with \ttl@box in a few cases. In |
| 201 |
wrap \titlewidthfirst and \titlewidthlast made global. |
| 202 |
- Float heads and foots have now a further argument for |
| 203 |
additional stuff (eg, to remove rules). Option is now |
| 204 |
psfloats while floatps enters in compatibility mode. |
| 205 |
- \ttl@savetitle in all classes. Option toctitles. |
| 206 |
2005/01/21 Changed pageatnewline to make it compatible with |
| 207 |
titletoc, with \ttl@changecentercr. |
| 208 |
2005/01/22 \...tolist in top class. |
| 209 |
|
| 210 |
History of v.2.7 |
| 211 |
~~~~~~~~~~~~~~~~ |
| 212 |
2007-03-27 Added the `explicit' option. |
| 213 |
- Added \titlepagestyle. |
| 214 |
2007-03-29 Fixed wrong number for chapter in log |
| 215 |
- Patch file named .270 instead of .new |
| 216 |
2007-05-09 Added <after> to leftmargin, so that you can add stuff |
| 217 |
at the beginning of the paragraph, eg, the sec number. |
| 218 |
2007-07-07 Removed the patch mechanism. |
| 219 |
2007-08-07 `explicit' improved. |
| 220 |
|
| 221 |
History of v.2.8 |
| 222 |
~~~~~~~~~~~~~~~~ |
| 223 |
2007-08-12 \titlepagestyle already used by KOMA-Script. Renamed |
| 224 |
to \assignpagestyle. |
| 225 |
|
| 226 |
History of v.2.9 |
| 227 |
~~~~~~~~~~~~~~~~ |
| 228 |
2010-05-04 Add \nobreak in \ttl@addcontentsline, to prevent the title |
| 229 |
going to footnotes (!) in runin style in some (rare) cases. |
| 230 |
2010-05-06 Option uppercase (and \ttl@case). |
| 231 |
2011-02-25 \iftitlemeasuring test |
| 232 |
2011-07-14 Fixed \assignpagestyle |
| 233 |
2011-07-15 Introduced the \scantokens mechanism to make sure section |
| 234 |
names are 'letters' and not 'others' |
| 235 |
2011-07-18 Removed \if@nobreak test in wrap/drop, which added a line |
| 236 |
to the title after another section (why?) |
| 237 |
|
| 238 |
History of v.2.9.1 |
| 239 |
~~~~~~~~~~~~~~~~~~ |
| 240 |
2011-08-28 Removed a spurious > in wrap.tss |
| 241 |
|
| 242 |
History of v.2.9.2 |
| 243 |
~~~~~~~~~~~~~~~~~~ |
| 244 |
2011-11-11 Fixed a typo in ttlps.def (\MessageBreag) |
| 245 |
|
| 246 |
History of v.2.10.0 |
| 247 |
~~~~~~~~~~~~~~~~~~~~ |
| 248 |
|
| 249 |
2011-12-15 Split titlesp |
| 250 |
|
| 251 |
History of v.2.10.1 |
| 252 |
~~~~~~~~~~~~~~~~~~~~ |
| 253 |
|
| 254 |
2015-02-27 Fix: An explict \newpage in 'after' wrote the toc entry twice |
| 255 |
2015-03-09 Fix (partial): A list containing just a sectioning command |
| 256 |
raised an error |
| 257 |
|
| 258 |
History of v.2.10.2 |
| 259 |
~~~~~~~~~~~~~~~~~~~~ |
| 260 |
|
| 261 |
2015-03-21 Fix: With 2.10.1 labels vanished in hang shape (due to a |
| 262 |
misplaced \noindent) |
| 263 |
|
| 264 |
## TITLEPS |
| 265 |
|
| 266 |
History of v.1.1.1 |
| 267 |
~~~~~~~~~~~~~~~~~~ |
| 268 |
2016-03-15 New macro \setmarkboth for compatibility |
| 269 |
|
| 270 |
## TITLETOC |
| 271 |
|
| 272 |
History of v1.1 |
| 273 |
~~~~~~~~~~~~~~~ |
| 274 |
99/04/22: A bug fix. Some missing global assignments in \ttl@tocentry |
| 275 |
were missing, and page numbers messed up with |
| 276 |
\titlecontents* |
| 277 |
|
| 278 |
History of v1.2 |
| 279 |
~~~~~~~~~~~~~~~~ |
| 280 |
1999/10/20: Added \contentsafter. \ttl@tocentry modified to accept |
| 281 |
the new command for grouping in a paragraph entries of |
| 282 |
different levels. |
| 283 |
1999/10/27: Instead of defining the level numbers explicitly, that's |
| 284 |
done with \ttl@setlevels and \ttl@levels. |
| 285 |
1999/10/27: Added the basic code for multiple indexes. |
| 286 |
1999/10/29: Added the toctop test to the \ttl@savel@... commands. |
| 287 |
1999/12/28: Simplified \ttl@savel@... with \ttl@lselect. |
| 288 |
2000/01/12: \contentsafter rejected. An aditional optional parameter |
| 289 |
is used instead. (Too) many thing had to be rewritten. |
| 290 |
2000/01/27: Removed \ttl@setlevels. Any change of levels are |
| 291 |
best done with titlesec. |
| 292 |
2000/02/14: Moved misplaced \vskip in ttl@tocentry. |
| 293 |
2000/02/16: A few changes in the "block" separators. |
| 294 |
2000/02/16: Fixed bug in \ttl@margin. For the right margin the |
| 295 |
correction was used instead of the margin. |
| 296 |
|
| 297 |
History of v1.2.1 |
| 298 |
~~~~~~~~~~~~~~~~~ |
| 299 |
2000/04/25: Dirty trick to make sure that \ttl@finish is the very |
| 300 |
last thing in lists of floats (lof, lot, etc.). |
| 301 |
2000/05/14: Missing \global before \ttl@labelfalse added. |
| 302 |
|
| 303 |
History of 1.2.2 |
| 304 |
~~~~~~~~~~~~~~~~ |
| 305 |
2000/06/05: The optional argument no longer mandatory, but |
| 306 |
still reporting an error if the length is missing. |
| 307 |
Minor internal changes, and a patch mechanism added. |
| 308 |
|
| 309 |
History of 1.3 |
| 310 |
~~~~~~~~~~~~~~ |
| 311 |
2001/01/12: Minor changes and some missing \globals added for |
| 312 |
partial tocs to work inside a group. |
| 313 |
2001/01/21: Added \dottedcontents. |
| 314 |
|
| 315 |
History of 1.4 |
| 316 |
~~~~~~~~~~~~~~ |
| 317 |
2002/03/27: titletoc.new merged into this file |
| 318 |
2002/03/27: \ttl@finish written by the last \newpage. |
| 319 |
2002/03/27: \ttl@lsection broke paragraphs always. Now |
| 320 |
only if the sublevel is typeset. |
| 321 |
2002/03/27: \ttl@finish -> \contentsfinish |
| 322 |
|
| 323 |
History of 1.5 |
| 324 |
~~~~~~~~~~~~~~ |
| 325 |
2003/06/14: \contentspush didn't work because of the change of |
| 326 |
(.new) \leftskip was done inside a group before the |
| 327 |
corresponding \par |
| 328 |
2003/06/14: Added an useful error if a partial TOC is not |
| 329 |
(.new) defined. |
| 330 |
2005/01/17: New options rubber/rigidseps, to remove if desired |
| 331 |
the small vertical "plus" between entries. |
| 332 |
2005/01/20: Begin work on partial lists. |
| 333 |
2005/01/21: \ttl@outblock and \ttl@outnoblock just to avoid a |
| 334 |
huge definition and to ease patching. |
| 335 |
2005/01/22: Work on partial lists finished (but to be resumed). |
| 336 |
|
| 337 |
History of 1.6 |
| 338 |
~~~~~~~~~~~~~~ |
| 339 |
2007/05/04: Added the patch 2005/05/03 which fixed a wrong |
| 340 |
result with \included (F. Mittelbach) |
| 341 |
2007/07/14: Removed the patch mechanism. |