diff options
author | Karl Berry <karl@freefriends.org> | 2007-05-05 00:32:25 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2007-05-05 00:32:25 +0000 |
commit | 9b4d9fe2a30822e0aa2a2e8c7e21552dc58adec0 (patch) | |
tree | 645ae2b48d74eb006d6c9a8ec8b97d0a1d2e8b79 /Master/texmf-dist/tex/latex/minitoc/minitoc.sty | |
parent | fa6c84fd7d86f3f01d6f2f41f5623a93a474fe99 (diff) |
minitoc 53 (23mar07), now from an author-prepared tds.zip
git-svn-id: svn://tug.org/texlive/trunk@4240 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/minitoc/minitoc.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/minitoc/minitoc.sty | 258 |
1 files changed, 114 insertions, 144 deletions
diff --git a/Master/texmf-dist/tex/latex/minitoc/minitoc.sty b/Master/texmf-dist/tex/latex/minitoc/minitoc.sty index 54fea6f9ed2..fd45b9e01a3 100644 --- a/Master/texmf-dist/tex/latex/minitoc/minitoc.sty +++ b/Master/texmf-dist/tex/latex/minitoc/minitoc.sty @@ -7,9 +7,6 @@ %% minitoc.dtx (with options: `minitoc') %% This is a generated file. %% -%% Copyright (C) 2005, 2006, 2007 by: -%% Jean-Pierre F. Drucbert (JPFD) -%% <jean-pierre.drucbert@onera.fr> %% %% This file may be distributed and/or modified under the conditions of %% the LaTeX Project Public License, either version 1.3 of this license @@ -27,12 +24,16 @@ %% %% This work consists of all the files listed in the file `minitoc.l' %% distributed with it. +%% Copyright 1993 1994 1995 1996 1997 1998 1999 2000 +%% 2001 2002 2003 2004 2005 2006 2007 +%% Jean-Pierre F. Drucbert +%% <jean-pierre.drucbert@onera.fr> \NeedsTeXFormat{LaTeX2e}[1996/06/02]% \ProvidesPackage{minitoc}% - [2007/02/12 v52 Package minitoc (JPFD)] + [2007/03/22 v53 Package minitoc (JPFD)] \RequirePackage{mtcmess}[2006/03/14] \mtcPackageInfo[<I0001>]{minitoc}% - {*** minitoc package, version 52 ***\@gobble} + {*** minitoc package, version 53 ***\@gobble} \newwrite\tf@mtc \newlength\mtcindent \newskip\mtcskipamount @@ -75,6 +76,8 @@ \newif\if@mtc@ccaptionLoaded@a@ \@mtc@ccaptionLoaded@a@false \newif\if@mtc@mcaptionLoaded@ \@mtc@mcaptionLoaded@false \newif\if@mtc@mcaptionLoaded@a@ \@mtc@mcaptionLoaded@a@false +\newif\if@mtc@captcontLoaded@ \@mtc@captcontLoaded@false +\newif\if@mtc@captcontLoaded@a@ \@mtc@captcontLoaded@a@false \newif\if@mtc@varsectsLoaded@ \@mtc@varsectsLoaded@false \newif\if@mtc@varsectsLoaded@a@ \@mtc@varsectsLoaded@a@false \newif\if@mtc@fncychapLoaded@ \@mtc@fncychapLoaded@false @@ -89,8 +92,6 @@ \newif\if@mtc@sfheadersLoaded@a@ \@mtc@sfheadersLoaded@a@false \newif\if@mtc@alnumsecLoaded@ \@mtc@alnumsecLoaded@false \newif\if@mtc@alnumsecLoaded@a@ \@mtc@alnumsecLoaded@a@false -\newif\if@mtc@captcontLoaded@ \@mtc@captcontLoaded@false -\newif\if@mtc@captcontLoaded@a@ \@mtc@captcontLoaded@a@false \newif\if@mtc@empty@parttoc@ \@mtc@empty@parttoc@false \newif\if@mtc@empty@partlof@ \@mtc@empty@partlof@false \newif\if@mtc@empty@partlot@ \@mtc@empty@partlot@false @@ -632,16 +633,16 @@ \iftightmtc \parsep\z@ \fi \ifktightmtc \parskip\z@ \fi \topsep=1ex - \leftmargin\mtcindent - \rightmargin\leftmargin}\item[]} + \leftmargin\mtcindent \rightmargin\leftmargin}% + \item[]} \def\endmtc@verse{\nopagebreak[4]\endlist} \def\minitoc{\@ifnextchar[{\minitoc@}{\minitoc@[d]}} \def\minitoc@[#1]{% \global\@minitoc@used@true \if@longextensions@ -\def\@tocfile{mtc\The@mtc}% + \def\@tocfile{mtc\The@mtc}% \else -\def\@tocfile{M\The@mtc}% + \def\@tocfile{M\The@mtc}% \fi \mtc@CkFile{\jobname.\@tocfile} \if@mtc@FE @@ -678,8 +679,7 @@ \end{tabular}% \fi \nopagebreak[4]\null\leavevmode\mtc@zrule\\\mtc@BBR - \leftmargin\mtcindent - \rightmargin\mtcindent + \leftmargin\mtcindent \rightmargin\mtcindent \itemindent=\z@\labelwidth=\z@% \labelsep=\z@\listparindent=\z@% \begin{mtc@verse}% @@ -698,8 +698,7 @@ \end{mtc@verse}% \kernafterminitoc \nopagebreak[4]\mtc@bottom@rule\null\leavevmode\\% - \vskip-1.0\baselineskip\mtc@zrule - \end{samepage}% + \vskip-1.0\baselineskip\mtc@zrule\end{samepage}% \par\pagebreak[1]\vspace*{-1ex}\afterminitoc\fi} \def\mtc@bottom@rule{% \ifx\mtc@rule\relax\relax\else @@ -709,9 +708,9 @@ \def\minilof@[#1]{% \global\@minilof@used@true \if@longextensions@% -\def\@tocfile{mlf\The@mtc}% + \def\@tocfile{mlf\The@mtc}% \else -\def\@tocfile{F\The@mtc}% + \def\@tocfile{F\The@mtc}% \fi \mtc@CkFile{\jobname.\@tocfile} \if@mtc@FE @@ -748,13 +747,11 @@ \end{tabular}% \fi \nopagebreak[4]\null\leavevmode\mtc@zrule\\\mtc@BBR - \leftmargin\mtcindent - \rightmargin\mtcindent + \leftmargin\mtcindent \rightmargin\mtcindent \itemindent=\z@\labelwidth=\z@% \labelsep=\z@\listparindent=\z@% \begin{mtc@verse}% - \@ifundefined{c@lofdepth}% - {}% + \@ifundefined{c@lofdepth}{}% {\c@lofdepth=\c@minilofdepth \ifnum\c@lofdepth<1\relax\c@lofdepth=1\fi} \leavevmode\\\mtc@BBR\vskip -.5\baselineskip @@ -777,9 +774,9 @@ \def\minilot@[#1]{% \global\@minilot@used@true \if@longextensions@% -\def\@tocfile{mlt\The@mtc}% + \def\@tocfile{mlt\The@mtc}% \else -\def\@tocfile{T\The@mtc}% + \def\@tocfile{T\The@mtc}% \fi \mtc@CkFile{\jobname.\@tocfile} \if@mtc@FE @@ -816,13 +813,11 @@ \end{tabular}% \fi \nopagebreak[4]\null\leavevmode\mtc@zrule\\\mtc@BBR - \leftmargin\mtcindent - \rightmargin\mtcindent + \leftmargin\mtcindent \rightmargin\mtcindent \itemindent=\z@\labelwidth=\z@% \labelsep=\z@\listparindent=\z@% \begin{mtc@verse}% - \@ifundefined{c@lotdepth}% - {}% + \@ifundefined{c@lotdepth}{}% {\c@lotdepth=\c@minilotdepth \ifnum\c@lotdepth<1\relax\c@lotdepth=1\fi} \leavevmode\\\mtc@BBR\vskip -.5\baselineskip @@ -1000,8 +995,8 @@ \def\MTC@toc{% \ifx\MTC@list\@empty\else\expandafter\MTC@explist\fi } -\def\MTC@contentsline#1#2#3#4{% %%HO/BJ: 4 instead of 3 parameters - \gdef\themtc{\arabic{mtc}}% %%HO: space removed +\def\MTC@contentsline#1#2#3#4{% + \gdef\themtc{\arabic{mtc}}% \expandafter\ifx\csname #1\endcsname\chapter \stepcounter{mtc}% \if@longextensions@% @@ -1080,15 +1075,12 @@ } \def\MTC@read{% \read\@inputcheck to\MTC@line - \expandafter\MTC@test\MTC@line.....\MTC@% %%HO: . added + \expandafter\MTC@test\MTC@line.....\MTC@% }% -%%HO/BJ: now patch \MTC@test, -%%HO/BJ: call \MTC@contentsline with 4 instead of 3 parameters -\long\def\MTC@test#1#2#3#4#5#6\MTC@{% %%HO: #6 added +\long\def\MTC@test#1#2#3#4#5#6\MTC@{% \ifx#1\contentsline \let\mtc@string\string \MTC@contentsline{#2}{#3}{#4}{#5}% - %%HO/BJ: 4. parameter added by Tony Roberts \let\mtc@string\relax \else\ifx#1\@input \edef\MTC@list{\MTC@list#2\relax}% @@ -1109,8 +1101,8 @@ \MLF@loop{#1}} \def\MLF@lof{% \ifx\MLF@list\@empty\else\expandafter\MLF@explist\fi} -\def\MLF@contentsline#1#2#3#4{% %%HO: added #4 - \gdef\themtc{\arabic{mtc}}% %%HO: space removed +\def\MLF@contentsline#1#2#3#4{% + \gdef\themtc{\arabic{mtc}}% \expandafter\ifx\csname #1\endcsname\xchapter \stepcounter{mtc}% \if@longextensions@% @@ -1148,12 +1140,12 @@ \expandafter\MLF@read\fi} \def\MLF@read{% \read\@inputcheck to\MLF@line - \expandafter\MLF@test\MLF@line.....\MLF@% %%HO: . added + \expandafter\MLF@test\MLF@line.....\MLF@% }% -\long\def\MLF@test#1#2#3#4#5#6\MLF@{% %%HO: #6 added +\long\def\MLF@test#1#2#3#4#5#6\MLF@{% \ifx#1\contentsline \let\mtc@string\string - \MLF@contentsline{#2}{#3}{#4}{#5}% %%HO: #4 added + \MLF@contentsline{#2}{#3}{#4}{#5}% \let\mtc@string\relax \else\ifx#1\@input \edef\MLF@list{\MLF@list#2\relax}% @@ -1170,8 +1162,8 @@ \MLT@loop{#1}} \def\MLT@lot{% \ifx\MLT@list\@empty\else\expandafter\MLT@explist\fi} -\def\MLT@contentsline#1#2#3#4{% %%HO: added #4 - \gdef\themtc{\arabic{mtc}}% %%HO: space removed +\def\MLT@contentsline#1#2#3#4{% + \gdef\themtc{\arabic{mtc}}% \expandafter\ifx\csname #1\endcsname\xchapter \stepcounter{mtc}% \if@longextensions@% @@ -1209,12 +1201,12 @@ \expandafter\MLT@read\fi} \def\MLT@read{% \read\@inputcheck to\MLT@line - \expandafter\MLT@test\MLT@line.....\MLT@% %%HO: . added + \expandafter\MLT@test\MLT@line.....\MLT@% }% -\long\def\MLT@test#1#2#3#4#5#6\MLT@{% %%HO: #6 added +\long\def\MLT@test#1#2#3#4#5#6\MLT@{% \ifx#1\contentsline \let\mtc@string\string - \MLT@contentsline{#2}{#3}{#4}{#5}% %%HO: #4 added + \MLT@contentsline{#2}{#3}{#4}{#5}% \let\mtc@string\relax \else\ifx#1\@input \edef\MLT@list{\MLT@list#2\relax}% @@ -1242,7 +1234,7 @@ }% \ifx\mtc@dot\mtc@param \else - {#4}% %%HO/BJ: #4 is hyperlink + {#4}% \fi }% }% @@ -1379,16 +1371,16 @@ \iftightmtc \parsep\z@ \fi \ifktightmtc \parskip\z@ \fi \topsep=1ex - \leftmargin\ptcindent - \rightmargin\leftmargin}\item[]} + \leftmargin\ptcindent \rightmargin\leftmargin}% + \item[]} \def\endptc@verse{\nopagebreak[4]\endlist} \def\parttoc{\@ifnextchar[{\parttoc@}{\parttoc@[d]}} \def\parttoc@[#1]{% \global\@parttoc@used@true \if@longextensions@% -\def\@tocfile{ptc\Thepart}% + \def\@tocfile{ptc\Thepart}% \else -\def\@tocfile{P\Thepart}% + \def\@tocfile{P\Thepart}% \fi \mtc@CkFile{\jobname.\@tocfile} \if@mtc@FE @@ -1430,8 +1422,7 @@ \end{tabular}% \fi \nopagebreak[4]\null\leavevmode\mtc@zrule\\*[-\baselineskip]\mtc@BBR - \leftmargin\ptcindent - \rightmargin\ptcindent + \leftmargin\ptcindent \rightmargin\ptcindent \itemindent=\z@\labelwidth=\z@% \labelsep=\z@\listparindent=\z@% \begin{ptc@verse}\c@tocdepth=\c@parttocdepth% @@ -1439,10 +1430,10 @@ \begingroup \makeatletter \@ifundefined{ptc@pgno}% - {\let\@dottedtocline\@undottedtocline}{} + {\let\@dottedtocline\@undottedtocline}{} \@ifundefined{ptc@pgno}% - {\let\l@chapter@SVPN\l@chapter% - \def\l@chapter##1##2{\l@chapter@SVPN{##1}{\hbox{}}}}{} + {\let\l@chapter@SVPN\l@chapter% + \def\l@chapter##1##2{\l@chapter@SVPN{##1}{\hbox{}}}}{} \@fileswfalse\mtc@hook@beforeinputfile \ptc@setform \@input{\jobname.\@tocfile} @@ -1459,9 +1450,9 @@ \def\partlof@[#1]{% \global\@partlof@used@true \if@longextensions@% -\def\@tocfile{plf\Thepart}% + \def\@tocfile{plf\Thepart}% \else -\def\@tocfile{G\Thepart}% + \def\@tocfile{G\Thepart}% \fi \mtc@CkFile{\jobname.\@tocfile} \if@mtc@FE @@ -1470,11 +1461,11 @@ \@mtc@empty@partlof@true \else \beforepartlof - \@ifundefined{chapter}{}{% - \global\let\mtc@markboth\markboth - \global\let\@mkboth\markboth - \thispagepartlofstyle - \mtc@markboth{\MakeUppercase{\plftitle}}{\MakeUppercase{\plftitle}}% + \@ifundefined{chapter}{}% +{\global\let\mtc@markboth\markboth + \global\let\@mkboth\markboth + \thispagepartlofstyle + \mtc@markboth{\MakeUppercase{\plftitle}}{\MakeUppercase{\plftitle}}% }% \relax\begin{samepage}% \if #1e\let\do@ptilf\e@pti @@ -1503,20 +1494,18 @@ \end{tabular}% \fi \nopagebreak[4]\null\leavevmode\mtc@zrule\\*[-\baselineskip]\mtc@BBR - \leftmargin\ptcindent - \rightmargin\ptcindent + \leftmargin\ptcindent \rightmargin\ptcindent \itemindent=\z@\labelwidth=\z@% \labelsep=\z@\listparindent=\z@% \begin{ptc@verse}% - \@ifundefined{c@lofdepth}% - {}% - {\c@lofdepth=\c@partlofdepth - \ifnum\c@lofdepth<1\relax\c@lofdepth=1\fi} - \leavevmode\\\mtc@BBR\vskip -.5\baselineskip + \@ifundefined{c@lofdepth}{}% + {\c@lofdepth=\c@partlofdepth + \ifnum\c@lofdepth<1\relax\c@lofdepth=1\fi} + \leavevmode\\\mtc@BBR\vskip -.5\baselineskip \begingroup \makeatletter \@ifundefined{plf@pgno}% - {\let\@dottedtocline\@undottedtocline}{} + {\let\@dottedtocline\@undottedtocline}{} \@fileswfalse\mtc@hook@beforeinputfile \plf@setform \@input{\jobname.\@tocfile} @@ -1533,9 +1522,9 @@ \def\partlot@[#1]{% \global\@partlot@used@true \if@longextensions@% -\def\@tocfile{plt\Thepart}% + \def\@tocfile{plt\Thepart}% \else -\def\@tocfile{U\Thepart}% + \def\@tocfile{U\Thepart}% \fi \mtc@CkFile{\jobname.\@tocfile} \if@mtc@FE @@ -1545,10 +1534,10 @@ \else \beforepartlot \@ifundefined{chapter}{}{% - \global\let\mtc@markboth\markboth - \global\let\@mkboth\markboth - \thispagepartlotstyle - \mtc@markboth{\MakeUppercase{\plttitle}}{\MakeUppercase{\plttitle}}% + \global\let\mtc@markboth\markboth + \global\let\@mkboth\markboth + \thispagepartlotstyle + \mtc@markboth{\MakeUppercase{\plttitle}}{\MakeUppercase{\plttitle}}% }% \relax\begin{samepage}% \if #1e\let\do@ptilt\e@pti @@ -1577,20 +1566,18 @@ \end{tabular}% \fi \nopagebreak[4]\null\leavevmode\mtc@zrule\\*[-\baselineskip]\mtc@BBR - \leftmargin\ptcindent - \rightmargin\ptcindent + \leftmargin\ptcindent \rightmargin\ptcindent \itemindent=\z@\labelwidth=\z@% \labelsep=\z@\listparindent=\z@% \begin{ptc@verse}% - \@ifundefined{c@lotdepth}% - {}% + \@ifundefined{c@lotdepth}{}% {\c@lotdepth=\c@partlotdepth \ifnum\c@lotdepth<1\relax\c@lotdepth=1\fi} - \leavevmode\\\mtc@BBR\vskip -.5\baselineskip + \leavevmode\\\mtc@BBR\vskip -.5\baselineskip \begingroup \makeatletter \@ifundefined{plt@pgno}% - {\let\@dottedtocline\@undottedtocline}{} + {\let\@dottedtocline\@undottedtocline}{} \@fileswfalse\mtc@hook@beforeinputfile \plt@setform \@input{\jobname.\@tocfile} @@ -1701,7 +1688,7 @@ \PTC@loop{#1}} \def\PTC@toc{% \ifx\PTC@list\@empty\else\expandafter\PTC@explist\fi} -\def\PTC@contentsline#1#2#3#4{% %%HO/DV: 4 instead of 3 parameters +\def\PTC@contentsline#1#2#3#4{% \expandafter\ifx\csname #1\endcsname\part \stepcounter{ptc}% \if@longextensions@% @@ -1756,7 +1743,6 @@ \MTC@WriteContentsline{#1}{ptcSP}{#3}{#4}% \fi \expandafter\ifx\csname #1\endcsname\starchapter -%%HO: the following line should be disabled: \stepcounter{ptc}% \MTC@WriteContentsline{#1}{ptcC}{#3}{#4}% \fi \expandafter\ifx\csname #1\endcsname\starsection @@ -1789,15 +1775,12 @@ \expandafter\PTC@read\fi} \def\PTC@read{% \read\@inputcheck to\PTC@line - \expandafter\PTC@test\PTC@line.....\PTC@% %%HO: . added + \expandafter\PTC@test\PTC@line.....\PTC@% }% -%%HO/BJ: now patch \PTC@test, -%%HO/BJ: call \PTC@contentsline with 4 instead of 3 parameters -\long\def\PTC@test#1#2#3#4#5#6\PTC@{% %%HO: #6 added +\long\def\PTC@test#1#2#3#4#5#6\PTC@{% \ifx#1\contentsline \let\mtc@string\string \PTC@contentsline{#2}{#3}{#4}{#5}% - %%HO/DV: 4 instead of 3 parameters \let\mtc@string\relax \else\ifx#1\@input \edef\PTC@list{\PTC@list#2\relax}% @@ -1814,7 +1797,7 @@ \PLF@loop{#1}} \def\PLF@lof{% \ifx\PLF@list\@empty\else\expandafter\PLF@explist\fi} -\def\PLF@contentsline#1#2#3#4{% %%HO: #4 added +\def\PLF@contentsline#1#2#3#4{% \expandafter\ifx\csname #1\endcsname\xpart \stepcounter{ptc}% \if@longextensions@% @@ -1852,14 +1835,12 @@ \expandafter\PLF@read\fi} \def\PLF@read{% \read\@inputcheck to\PLF@line - \expandafter\PLF@test\PLF@line.....\PLF@% %%HO: . added + \expandafter\PLF@test\PLF@line.....\PLF@% }% -%%HO/BJ: now patch \PLF@test, -%%HO/BJ: call \PLF@contentsline with 4 instead of 3 parameters -\long\def\PLF@test#1#2#3#4#5#6\PLF@{% %%HO: #6 added +\long\def\PLF@test#1#2#3#4#5#6\PLF@{% \ifx#1\contentsline \let\mtc@string\string - \PLF@contentsline{#2}{#3}{#4}{#5}% %%HO: #4 added + \PLF@contentsline{#2}{#3}{#4}{#5}% \let\mtc@string\relax \else\ifx#1\@input \edef\PLF@list{\PLF@list#2\relax}% @@ -1876,7 +1857,7 @@ \PLT@loop{#1}} \def\PLT@lot{% \ifx\PLT@list\@empty\else\expandafter\PLT@explist\fi} -\def\PLT@contentsline#1#2#3#4{% %%HO: #4 added +\def\PLT@contentsline#1#2#3#4{% \expandafter\ifx\csname #1\endcsname\xpart \stepcounter{ptc}% \if@longextensions@% @@ -1914,14 +1895,12 @@ \expandafter\PLT@read\fi} \def\PLT@read{% \read\@inputcheck to\PLT@line - \expandafter\PLT@test\PLT@line.....\PLT@% %%HO: . added + \expandafter\PLT@test\PLT@line.....\PLT@% }% -%%HO/BJ: now patch \PLT@test, -%%HO/BJ: call \PLT@contentsline with 4 instead of 3 parameters -\long\def\PLT@test#1#2#3#4#5#6\PLT@{% %%HO: #6 added +\long\def\PLT@test#1#2#3#4#5#6\PLT@{% \ifx#1\contentsline \let\mtc@string\string - \PLT@contentsline{#2}{#3}{#4}{#5}% %%HO: #4 added + \PLT@contentsline{#2}{#3}{#4}{#5}% \let\mtc@string\relax \else\ifx#1\@input \edef\PLT@list{\PLT@list#2\relax}% @@ -1984,16 +1963,16 @@ \iftightmtc \parsep \z@ \fi \ifktightmtc \parskip \z@ \fi \topsep 1ex %% 20060731 was \z@ - \leftmargin\stcindent - \rightmargin\leftmargin}\item[]} + \leftmargin\stcindent \rightmargin\leftmargin}% + \item[]} \def\endstc@verse{\nopagebreak[4]\endlist} \def\secttoc{\@ifnextchar[{\secttoc@}{\secttoc@[d]}} \def\secttoc@[#1]{% \global\@secttoc@used@true \if@longextensions@% -\def\@tocfile{stc\thestc}% + \def\@tocfile{stc\thestc}% \else -\def\@tocfile{S\thestc}% + \def\@tocfile{S\thestc}% \fi \mtc@CkFile{\jobname.\@tocfile} \if@mtc@FE @@ -2031,8 +2010,7 @@ \end{tabular}% \fi \nopagebreak[4]\null\leavevmode\mtc@zrule\\\mtc@BBR - \leftmargin\stcindent - \rightmargin\stcindent + \leftmargin\stcindent \rightmargin\stcindent \itemindent=\z@\labelwidth=\z@% \labelsep=\z@\listparindent=\z@% \begin{stc@verse}\c@tocdepth=\c@secttocdepth% @@ -2057,9 +2035,9 @@ \def\sectlof@[#1]{% \global\@sectlof@used@true \if@longextensions@% -\def\@tocfile{slf\thestc}% + \def\@tocfile{slf\thestc}% \else -\def\@tocfile{H\thestc}% + \def\@tocfile{H\thestc}% \fi \mtc@CkFile{\jobname.\@tocfile} \if@mtc@FE @@ -2097,13 +2075,11 @@ \end{tabular}% \fi \nopagebreak[4]\null\leavevmode\mtc@zrule\\\mtc@BBR - \leftmargin\stcindent - \rightmargin\stcindent + \leftmargin\stcindent \rightmargin\stcindent \itemindent=\z@\labelwidth=\z@% \labelsep=\z@\listparindent=\z@% \begin{stc@verse}% - \@ifundefined{c@lofdepth}% - {}% + \@ifundefined{c@lofdepth}{}% {\c@lofdepth=\c@sectlofdepth \ifnum\c@lofdepth<1\relax\c@lofdepth=1\fi} \leavevmode\\\mtc@BBR\vskip -.5\baselineskip @@ -2124,9 +2100,9 @@ \def\sectlot@[#1]{% \global\@sectlot@used@true \if@longextensions@% -\def\@tocfile{slt\thestc}% + \def\@tocfile{slt\thestc}% \else -\def\@tocfile{I\thestc}% + \def\@tocfile{I\thestc}% \fi \mtc@CkFile{\jobname.\@tocfile} \if@mtc@FE @@ -2164,13 +2140,11 @@ \end{tabular}% \fi \nopagebreak[4]\null\leavevmode\mtc@zrule\\\mtc@BBR - \leftmargin\stcindent - \rightmargin\stcindent + \leftmargin\stcindent \rightmargin\stcindent \itemindent=\z@\labelwidth=\z@% \labelsep=\z@\listparindent=\z@% \begin{stc@verse}% - \@ifundefined{c@lotdepth}% - {}% + \@ifundefined{c@lotdepth}{}% {\c@lotdepth=\c@sectlotdepth \ifnum\c@lotdepth<1\relax\c@lotdepth=1\fi} \leavevmode\\\mtc@BBR\vskip -.5\baselineskip @@ -2328,11 +2302,10 @@ \STC@loop{#1}} \def\STC@toc{% \ifx\STC@list\@empty\else\expandafter\STC@explist\fi} -\def\STC@contentsline#1#2#3#4{% %%HO: #4 added - \gdef\thestc{\arabic{stc}}% %%HO: space removed +\def\STC@contentsline#1#2#3#4{% + \gdef\thestc{\arabic{stc}}% \expandafter\ifx\csname #1\endcsname\section \stepcounter{stc}% -%% \def\thestc{\arabic{stc}} %% HO: removed \if@longextensions@% \mtcPackageInfo[<I0033>]{minitoc}% {Writing\space\jobname.stc\thestc}% @@ -2403,12 +2376,12 @@ \expandafter\STC@read\fi} \def\STC@read{% \read\@inputcheck to\STC@line - \expandafter\STC@test\STC@line.....\STC@% %%HO: . added + \expandafter\STC@test\STC@line.....\STC@% }% -\long\def\STC@test#1#2#3#4#5#6\STC@{% %%HO: #6 added +\long\def\STC@test#1#2#3#4#5#6\STC@{% \ifx#1\contentsline \let\mtc@string\string - \STC@contentsline{#2}{#3}{#4}{#5}% %%HO: #4 added + \STC@contentsline{#2}{#3}{#4}{#5}% \let\mtc@string\relax \else\ifx#1\@input \edef\STC@list{\STC@list#2\relax}% @@ -2425,11 +2398,10 @@ \SLF@loop{#1}} \def\SLF@lof{% \ifx\SLF@list\@empty\else\expandafter\SLF@explist\fi} -\def\SLF@contentsline#1#2#3#4{% %%HO: #4 added - \gdef\thestc{\arabic{stc}}% %%HO: space removed +\def\SLF@contentsline#1#2#3#4{% + \gdef\thestc{\arabic{stc}}% \expandafter\ifx\csname #1\endcsname\xsect \stepcounter{stc}% -%% \gdef\thestc{\arabic{stc}} %%HO: removed \if@longextensions@% \mtcPackageInfo[<I0033>]{minitoc}% {Writing\space\jobname.slf\thestc}% @@ -2464,12 +2436,12 @@ \expandafter\SLF@read\fi} \def\SLF@read{% \read\@inputcheck to\SLF@line - \expandafter\SLF@test\SLF@line.....\SLF@% %%HO: . added + \expandafter\SLF@test\SLF@line.....\SLF@% }% -\long\def\SLF@test#1#2#3#4#5#6\SLF@{% %%HO: #6 added +\long\def\SLF@test#1#2#3#4#5#6\SLF@{% \ifx#1\contentsline \let\mtc@string\string - \SLF@contentsline{#2}{#3}{#4}{#5}% %%HO: #4 added + \SLF@contentsline{#2}{#3}{#4}{#5}% \let\mtc@string\relax \else\ifx#1\@input \edef\SLF@list{\SLF@list#2\relax}% @@ -2486,11 +2458,10 @@ \SLT@loop{#1}} \def\SLT@lot{% \ifx\SLT@list\@empty\else\expandafter\SLT@explist\fi} -\def\SLT@contentsline#1#2#3#4{% %%HO: #4 added - \gdef\thestc{\arabic{stc}}% %%HO: space removed +\def\SLT@contentsline#1#2#3#4{% + \gdef\thestc{\arabic{stc}}% \expandafter\ifx\csname #1\endcsname\xsect \stepcounter{stc}% -%% \gdef\thestc{\arabic{stc}} %%HO: removed \if@longextensions@% \mtcPackageInfo[<I0033>]{minitoc}% {Writing\space\jobname.slt\thestc}% @@ -2525,12 +2496,12 @@ \expandafter\SLT@read\fi} \def\SLT@read{% \read\@inputcheck to\SLT@line - \expandafter\SLT@test\SLT@line.....\SLT@% %%HO: . added + \expandafter\SLT@test\SLT@line.....\SLT@% }% -\long\def\SLT@test#1#2#3#4#5#6\SLT@{% %%HO: #6 added +\long\def\SLT@test#1#2#3#4#5#6\SLT@{% \ifx#1\contentsline \let\mtc@string\string - \SLT@contentsline{#2}{#3}{#4}{#5}% %%HO: #4 added + \SLT@contentsline{#2}{#3}{#4}{#5}% \let\mtc@string\relax \else\ifx#1\@input \edef\SLT@list{\SLT@list#2\relax}% @@ -2812,8 +2783,7 @@ {Correct the source code. \MessageBreak Type <return> and rerun LaTeX} -\fi -} +\fi} \newif\if@mtc@settitlefont@\@mtc@settitlefont@true \newcommand{\mtcsettitlefont}[2]{% \def\mtc@mtatf@abbrev{X} @@ -3522,8 +3492,7 @@ outside of a .mld file}% {It will be ignored} \@mtc@insellang@false - \fi -} + \fi} \def\addcoffeeline#1#2#3{% \addtocontents{#1}{\protect\coffeeline{#2}{#3}{\null}}} \def\coffeeline#1{\csname l@#1\endcsname} @@ -3541,9 +3510,10 @@ \DeclareOption{undotted}{\undottedmtctrue} \DeclareOption{dotted}{\undottedmtcfalse} % default \DeclareOption{notoccite}{\@mtc@notoccite@true} -\DeclareOption{shortext}{\@longextensions@false -\mtcPackageWarningNoLine[<W0020>]{minitoc}% - {You have forced the use of short extensions}} +\DeclareOption{shortext}{% + \@longextensions@false + \mtcPackageWarningNoLine[<W0020>]{minitoc}% + {You have forced the use of short extensions}} \newif\if@mtc@ss@insection@ \@mtc@ss@insection@false \@ifundefined{chapter}{% \@ifundefined{section}{\DeclareOption{insection}{% @@ -4783,7 +4753,7 @@ \providecommand{\sectlof}[1][l]{\mtc@classck{sectlof}}% \providecommand{\sectlot}[1][l]{\mtc@classck{sectlot}}% } -%%%%%% ^^A NAB +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \endinput %% %% End of file `minitoc.sty'. |