summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/koma-script/source/tocstyle.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/koma-script/source/tocstyle.dtx')
-rw-r--r--macros/latex/contrib/koma-script/source/tocstyle.dtx134
1 files changed, 58 insertions, 76 deletions
diff --git a/macros/latex/contrib/koma-script/source/tocstyle.dtx b/macros/latex/contrib/koma-script/source/tocstyle.dtx
index eda5188828..94c77591ff 100644
--- a/macros/latex/contrib/koma-script/source/tocstyle.dtx
+++ b/macros/latex/contrib/koma-script/source/tocstyle.dtx
@@ -1,8 +1,8 @@
-% \CheckSum{1867}
+% \CheckSum{1933}
% \iffalse meta-comment
% ======================================================================
% tocstyle.dtx
-% Copyright (c) Markus Kohm, 2007-2017
+% Copyright (c) Markus Kohm, 2007-2019
%
% This file is part of the LaTeX2e KOMA-Script bundle.
%
@@ -29,7 +29,7 @@
% at least three times.
% ----------------------------------------------------------------------
% tocstyle.dtx
-% Copyright (c) Markus Kohm, 2007-2017
+% Copyright (c) Markus Kohm, 2007-2019
%
% Diese Datei ist Teil des LaTeX2e KOMA-Script-Pakets.
%
@@ -75,7 +75,7 @@
% Right brace \} Tilde \~}
%
% \iffalse
-%%% From File: $Id: tocstyle.dtx 2600 2017-02-23 12:07:58Z kohm $
+%%% From File: $Id: tocstyle.dtx 3249 2019-10-09 11:35:26Z kohm $
%<*dtx>
% \fi
\def\LaTeXformat{LaTeX2e}
@@ -90,12 +90,7 @@
\ifToplevel{%
\Msg{**********************************************************************}
\Msg{*}
- \Msg{* KOMA-Script presents tocstyle}
- \Msg{* a package to define, configure and several different styles for}
- \Msg{* table of contents, list of floats and comparables.}
- \Msg{*}
- \Msg{* This is `\batchfile', a batchfile to unpack the package tocstyle,}
- \Msg{* the documentation of the package, and an archive of all these files.}
+ \Msg{* This is `\batchfile', a batchfile to unpack the package tocstyle.}
\Msg{*}
\Msg{**********************************************************************}
\keepsilent
@@ -104,7 +99,7 @@
\preamble
-Copyright (c) 2007-2017 by Markus Kohm <komascript(at)gmx.info>
+Copyright (c) 2007-2019 by Markus Kohm <komascript(at)gmx.info>
This file was generated from file(s) of the KOMA-Script bundle.
---------------------------------------------------------------
@@ -124,22 +119,9 @@ This file may only be distributed together with the file
`tocstyle.dtx' and `scrlogo.dtx'. You may however distribute the files
`tocstyle.dtx' and `scrlogo.dtx' without this file.
-If this file is a beta version, you are not allowed to distribute it.
-
-English and German manuals are part of KOMA-Script bundle.
-----------------------------------------------------------
-
The english manual is in `tocstyle.dtx', too.
-The KOMA-Script bundle (but not this file) was based upon the LaTeX2.09
-Script family created by Frank Neukam 1993 and the LaTeX2e standard
-classes created by The LaTeX3 Project 1994-1996.
-
-THIS IS AN ALPHA VERSION!
-USAGE OF THIS VERSION IS ON YOUR OWN RISK!
-EVERYTHING MAY HAPPEN!
-EVERYTHING MAY CHANGE IN FUTURE!
-THERE IS NO SUPPORT, IF YOU USE THIS PACKAGE!
+THIS IS AN OBSOLETE PACKAGE! YOU SHOULD NOT USE IT!
\endpreamble
@@ -158,33 +140,12 @@ THERE IS NO SUPPORT, IF YOU USE THIS PACKAGE!
\file{tocstyle.tex}{%
\from{tocstyle.dtx}{doc}%
}%
- \file{tocstyle.drv}{%
- \from{tocstyle.dtx}{driver}%
- }%
+% \file{tocstyle.drv}{%
+% \from{tocstyle.dtx}{driver}%
+% }%
}%
}
-\ifToplevel{%
- \Msg{**********************************************************************}
- \Msg{*}
- \ifbeta
- \Msg{* THIS IS A BETA VERSION. YOU SHOULD NOT INSTALL OR USE IT!}
- \Msg{* THERE MAY BE A LOT OF BUGS AT THIS VERSION!}
- \Msg{* PLEASE INSTALL THE RELEASE YOU MAY FIND AT CTAN!}
- \else
- \Msg{* To finish the installation you have to copy the file `tocstyle.sty'}
- \Msg{* to folder `tex/latex/tocstyle/' of one of your TEXMF trees.}
- \Msg{* You should also produce the documentation using}
- \Msg{*\space\space pdflatex tocstyle.dtx}
- \Msg{* and copy it to folder `doc/latex/tocstyle/' of one of your}
- \Msg{* TEXMF trees.}
- \Msg{*}
- \Msg{* See the manual of your TeX distribution for more informations about}
- \Msg{* package installation.}
- \fi
- \Msg{*}
- \Msg{**********************************************************************}
-}
% \iffalse
%</insfile>
%<*dtx>
@@ -199,7 +160,7 @@ THERE IS NO SUPPORT, IF YOU USE THIS PACKAGE!
%<driver>\ProvidesFile{tocstyle.drv}
%<doc>\ProvidesFile{tocstyle.tex}
%<*dtx|package|driver|doc>
- [2017/02/23 v0.2i-alpha KOMA-Script package (versatile toc styles)]
+ [2019/10/09 v0.2j-alpha deprecated package (versatile toc styles)]
%</dtx|package|driver|doc>
%<*driver>
\documentclass{scrdoc}
@@ -214,7 +175,7 @@ THERE IS NO SUPPORT, IF YOU USE THIS PACKAGE!
\CodelineIndex
\RecordChanges
\GetFileInfo{tocstyle.dtx}
-\title{The \KOMAScript{} package \texttt{tocstyle}%
+\title{The obsolete package \texttt{tocstyle}%
\footnote{This is version \fileversion\ of file \texttt{\filename}.}}
\date{\filedate}
\author{Markus Kohm}
@@ -265,9 +226,9 @@ THERE IS NO SUPPORT, IF YOU USE THIS PACKAGE!
%
% \selectlanguage{english}
%
-% \changes{v0.1}{2007/06/23}{start of new package}^^A
+% \changes{v0.1}{2007/06/23}{start of new package}%^^A
% \changes{v0.2h}{2016/04/12}{\cs{@ifnextchar} replaced by
-% \cs{kernel@ifnextchar}}^^A
+% \cs{kernel@ifnextchar}}%^^A
%
%\iffalse
%<doc>\chapter{Other Styles for Table of Contents and Lists of Floats}
@@ -316,12 +277,9 @@ status of the package would be for more than eight years.
With \KOMAScript~3.20 several features of \Package{tocstyle} can be found also
in \Package{tocbasic}. I recommend to use that official and essential part of
-\KOMAScript{} instead of \Package{tocstyle} whenever possible. Nevertheless, I
-plan to ensure the compatibility of \Package{tocstyle} with new releases of
-\KOMAScript{} for at least already existing, unchanged documents as long as it
-is possible. But expect that \Package{tocstyle} will move from
-\KOMAScript{} bundle to another package, e.\,g., \KOMAScript-obsolete or a
-stand-alone package.
+\KOMAScript{} instead of \Package{tocstyle} whenever possible. Expect that
+\Package{tocstyle} will move from \KOMAScript{} bundle to another package,
+e.\,g., \KOMAScript-obsolete or a stand-alone package soon.
\section{How It Works}
\label{sec:tocstyle.howitworks}
@@ -1018,10 +976,11 @@ usefull to define your own toc styles.
%
% \begin{macrocode}
\PackageWarningNoLine{tocstyle}{%
- THIS IS AN ALPHA VERSION!\MessageBreak
+ THIS IS A DEPRECATED ALPHA VERSION!\MessageBreak
USAGE OF THIS VERSION IS ON YOUR OWN RISK!\MessageBreak
EVERYTHING MAY HAPPEN!\MessageBreak
- EVERYTHING MAY CHANGE IN FUTURE!\MessageBreak
+ THE PACKAGE IS FROZEN WITH ALL IT'S BUGS!\MessageBreak
+ IT WILL BE REMOVED FROM KOMA-SCRIPT SOON!\MessageBreak
THERE IS NO SUPPORT, IF YOU USE THIS PACKAGE!\MessageBreak
Maybe it would be better, not to load this package%
}
@@ -1212,6 +1171,7 @@ usefull to define your own toc styles.
% \end{macrocode}
% \end{macro}
% \begin{macro}{\tocstyle@dottedtocline}
+% \changes{v0.2j}{2019/10/09}{newer \LaTeX{} uses two \cs{kern}}%^^A
% Implement new definition and redefine:
%^^A ------ Help me to find the \renecommand*{\@dottedtocline} ----------------
% \begin{macrocode}
@@ -1356,9 +1316,11 @@ usefull to define your own toc styles.
\fi
\nobreak
\ifx\tocstyle@feature@pagenumberbox\relax
- \hb@xt@\@pnumwidth{\hfil\tocstyle@feature@pagenumberhook #5}%
+ \hb@xt@\@pnumwidth{\hfil\tocstyle@feature@pagenumberhook #5%
+ \kern-\p@\kern\p@}%
\else
- \tocstyle@feature@pagenumberbox{\tocstyle@feature@pagenumberhook #5}%
+ \tocstyle@feature@pagenumberbox{\tocstyle@feature@pagenumberhook #5%
+ \kern-\p@\kern\p@}%
\fi
\par
}%
@@ -1433,7 +1395,7 @@ usefull to define your own toc styles.
% \subsubsection{Redefining Class Macros}
%
% \begin{macro}{\l@part}
-% \changes{v0.2d}{2009/11/11}{part level is always -1}
+% \changes{v0.2d}{2009/11/11}{part level is always -1}
% \begin{macro}{\l@chapter}
% \begin{macro}{\l@section}
% \begin{macro}{\l@subsection}
@@ -1443,13 +1405,13 @@ usefull to define your own toc styles.
% \begin{macro}{\l@table}
% \begin{macro}{\l@figure}
% Try to redefine the toc commands at startup.
-% \changes{v0.2f}{2016/03/22}{recognize all subs of part, chapter,
-% section and paragraph}^^A
-% \changes{v0.2g}{2016/03/23}{warning for usage of not recommended package
-% combinations}^^A
-% \changes{v0.2h}{2016/04/24}{lokal \cs{normalcolor} auf \cs{relax}
-% setzen}^^A
-% \changes{v0.2h}{2016/04/24}{lokal \cs{color} auf \cs{@gobble} setzen}^^A
+% \changes{v0.2f}{2016/03/22}{recognize all subs of part, chapter,
+% section and paragraph}%^^A
+% \changes{v0.2g}{2016/03/23}{warning for usage of not recommended package
+% combinations}%^^A
+% \changes{v0.2h}{2016/04/24}{lokal \cs{normalcolor} auf \cs{relax}
+% setzen}%^^A
+% \changes{v0.2h}{2016/04/24}{lokal \cs{color} auf \cs{@gobble} setzen}%^^A
% \begin{macrocode}
\AtBeginDocument{%
\@ifpackageloaded{tocbasic}{%
@@ -1586,6 +1548,7 @@ usefull to define your own toc styles.
}%
% \end{macrocode}
% \begin{macro}{\@dottedtocline}
+% \changes{v0.2j}{2019/10/09}{newer \LaTeX{} uses two \cs{kern}}%^^A
% This will be used even for undotted toc lines. First check the definition,
% then redefine.
% \begin{macrocode}
@@ -1607,7 +1570,26 @@ usefull to define your own toc styles.
\par}%
\fi}%
\ifx\@dottedtocline\@tempa\else
- \tocstyle@macrochangewarning\@dottedtocline
+ \def\@tempa#1#2#3#4#5{%
+ \ifnum #1>\c@tocdepth \else
+ \vskip \z@ \@plus.2\p@
+ {\leftskip #2\relax \rightskip \@tocrmarg \parfillskip -\rightskip
+ \parindent #2\relax\@afterindenttrue
+ \interlinepenalty\@M
+ \leavevmode
+ \@tempdima #3\relax
+ \advance\leftskip \@tempdima \null\nobreak\hskip -\leftskip
+ {#4}\nobreak
+ \leaders\hbox{$\m@th
+ \mkern \@dotsep mu\hbox{.}\mkern \@dotsep
+ mu$}\hfill
+ \nobreak
+ \hb@xt@\@pnumwidth{\hfil \normalfont \normalcolor #5\kern-\p@\kern\p@}%
+ \par}%
+ \fi}%
+ \ifx\@dottedtocline\@tempa\else
+ \tocstyle@macrochangewarning\@dottedtocline
+ \fi
\fi
\let\tocstyle@saved@dottedtocline\@dottedtocline
% \end{macrocode}
@@ -1811,8 +1793,8 @@ usefull to define your own toc styles.
% \end{macro}
%
% \begin{macro}{\tocstyle@set@width}
-% \changes{v0.2d}{2009/11/11}{improve handling of standard classes}^^A
-% \changes{v0.2h}{2016/03/25}{use after definition in \texttt{aux}-file}^^A
+% \changes{v0.2d}{2009/11/11}{improve handling of standard classes}%^^A
+% \changes{v0.2h}{2016/03/25}{use after definition in \texttt{aux}-file}%^^A
% Some classes do not use \cs{numberline}. This may result in negativ widths
% (esp. negativ skips). Following special handling of negativ values improves
% the toc handling of the standard classes. Nevertheless indentation of not
@@ -2052,7 +2034,7 @@ usefull to define your own toc styles.
%
% \begin{macro}{\usetocstyle}
% \begin{macro}{\@usetocstyle}
-% \changes{v0.2a}{2008/02/14}{extended for deprecated TOC styles}
+% \changes{v0.2a}{2008/02/14}{extended for deprecated TOC styles}
% Use the predefined TOC style. You may define
% |\tocstyle@deprecated@style@foo| to mark TOC style |foo| to be
% deprecated. If |\tocstyle@deprecated@style@foo| is |\@empty| TOC style
@@ -2197,7 +2179,7 @@ usefull to define your own toc styles.
% at \texttt{KOMAlike}}
%
% \begin{macro}{\ext@toc}
-% \changes{v0.2i}{2017/02/23}{use indirect extensions}
+% \changes{v0.2i}{2017/02/23}{use indirect extensions}
% From version 0.2i the indirect extension for the auxiliary file of the
% table of contents is used like the KOMA-Script classes do.
% \begin{macrocode}