diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/minitoc/minitoc.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/minitoc/minitoc.sty | 74 |
1 files changed, 49 insertions, 25 deletions
diff --git a/Master/texmf-dist/tex/latex/minitoc/minitoc.sty b/Master/texmf-dist/tex/latex/minitoc/minitoc.sty index 5d6170bff9a..c769378ba52 100644 --- a/Master/texmf-dist/tex/latex/minitoc/minitoc.sty +++ b/Master/texmf-dist/tex/latex/minitoc/minitoc.sty @@ -5,7 +5,6 @@ %% The original source files were: %% %% minitoc.dtx (with options: `minitoc') -%% %% This is a generated file. %% %% Copyright (C) 2005, 2006 by: @@ -28,15 +27,15 @@ %% %% This work consists of all the files listed in the file `minitoc.l' %% distributed with it. -%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \NeedsTeXFormat{LaTeX2e}[1996/06/02]% \ProvidesPackage{minitoc}% - [2006/07/20 v46 Package minitoc (JPFD)] + [2006/08/03 v47 Package minitoc (JPFD)] \RequirePackage{mtcmess}[2006/03/14] \mtcPackageInfo[<I0001>]{minitoc}% - {*** minitoc package, version 46 ***\@gobble} + {*** minitoc package, version 47 ***\@gobble} \newwrite\tf@mtc \newlength\mtcindent \newskip\mtcskipamount @@ -44,6 +43,24 @@ \def\mtcskip{{\parskip=\z@\addvspace{\mtcskipamount}}} \def\mtcgapbeforeheads{50\p@} \def\mtcgapafterheads{40\p@} + \@ifundefined{part}{}{% + \def\kernafterparttoc{\kern-1.\baselineskip\kern.5ex}% + \def\kernafterpartlof{\kern-1.\baselineskip\kern.5ex}% + \def\kernafterpartlot{\kern-1.\baselineskip\kern.5ex}% + }% + \@ifundefined{chapter}{% + \@ifundefined{section}{}% + {% + \def\kernaftersecttoc{\kern-1.\baselineskip\kern.5ex}% + \def\kernaftersectlof{\kern-1.\baselineskip\kern.5ex}% + \def\kernaftersectlot{\kern-1.\baselineskip\kern.5ex}% + }% + }% + {% + \def\kernafterminitoc{\kern-.5\baselineskip\kern.5ex}% + \def\kernafterminilof{\kern-1.\baselineskip\kern0.ex}% + \def\kernafterminilot{\kern-1.\baselineskip\kern0.ex}% + }% \newif\if@mtc@hints@ \@mtc@hints@true \newif\if@mtc@hints@w@ \@mtc@hints@w@false \newif\if@mtc@hints@given@ \@mtc@hints@given@false @@ -152,6 +169,7 @@ \def\toclevel@xpart{1000}% \def\toclevel@xchapter{1000}% \def\toclevel@xsect{1000}% + \def\toclevel@xsection{1000}% \let\toclevel@starpart\toclevel@part \let\toclevel@starchapter\toclevel@chapter \let\toclevel@starsection\toclevel@section @@ -666,7 +684,7 @@ \leavevmode\mtc@strut \global\@nobreakfalse\endgroup \end{mtc@verse}% - \kern0.\baselineskip% + \kernafterminitoc \nopagebreak[4]\mtc@bottom@rule\null\leavevmode\\% \vskip-1.0\baselineskip\mtc@zrule \end{samepage}% @@ -739,7 +757,7 @@ \leavevmode\mtc@strut \global\@nobreakfalse\endgroup \end{mtc@verse}% - \kern-1.\baselineskip% + \kernafterminilof \nopagebreak[4]\mlf@rule\null\leavevmode\\% \vskip-1.0\baselineskip\mtc@zrule\end{samepage}% \par\pagebreak[1]\vspace*{-1ex}\afterminilof\fi}% @@ -807,7 +825,7 @@ \leavevmode\mtc@strut \global\@nobreakfalse\endgroup \end{mtc@verse}% - \kern-1.\baselineskip% + \kernafterminilot \nopagebreak[4]\mlt@rule\null\leavevmode\\% \vskip-1.0\baselineskip\mtc@zrule\end{samepage}% \par\pagebreak[1]\vspace*{-1ex}\afterminilot\fi}% @@ -1406,7 +1424,7 @@ \leavevmode\mtc@strut \global\@nobreakfalse\endgroup \end{ptc@verse}% - \kern-1.\baselineskip% + \kernafterparttoc \nopagebreak[4]\ptc@rule\null\leavevmode\\% \vskip-1.0\baselineskip\mtc@zrule\end{samepage}% \par\@ifundefined{chapter}{\pagebreak[1]\vspace*{-1ex}}% @@ -1476,11 +1494,11 @@ \@fileswfalse\mtc@hook@beforeinputfile \plf@setform \@input{\jobname.\@tocfile} - \vspace{-1ex} \vspace{-0\baselineskip} + \vspace{-1ex} \vspace{-1\baselineskip} \leavevmode\mtc@strut \global\@nobreakfalse\endgroup \end{ptc@verse}% - \kern-1.\baselineskip% + \kernafterpartlof \nopagebreak[4]\plf@rule\null\leavevmode\\% \vskip-1.0\baselineskip\mtc@zrule\end{samepage}% \par\@ifundefined{chapter}{\pagebreak[1]\vspace*{-1ex}}% @@ -1550,11 +1568,11 @@ \@fileswfalse\mtc@hook@beforeinputfile \plt@setform \@input{\jobname.\@tocfile} - \vspace{-1ex} \vspace{-0\baselineskip} + \vspace{-1ex} \vspace{-1\baselineskip} \leavevmode\mtc@strut \global\@nobreakfalse\endgroup \end{ptc@verse}% - \kern-1.\baselineskip% + \kernafterpartlot \nopagebreak[4]\plt@rule\null\leavevmode\\% \vskip-1.0\baselineskip\mtc@zrule\end{samepage}% \par\@ifundefined{chapter}{\pagebreak[1]\vspace*{-1ex}}% @@ -1925,7 +1943,7 @@ \partopsep \z@ \iftightmtc \parsep \z@ \fi \ifktightmtc \parskip \z@ \fi - \topsep \z@ + \topsep 1ex %% 20060731 was \z@ \leftmargin\stcindent \rightmargin\leftmargin}\item[]} \def\endstc@verse{\nopagebreak[4]\endlist} @@ -1991,7 +2009,7 @@ \leavevmode\mtc@strut \global\@nobreakfalse\endgroup \end{stc@verse}% - \kern-1.\baselineskip% + \kernaftersecttoc \nopagebreak[4]\stc@rule\null\leavevmode\\% \vskip-1.0\baselineskip\mtc@zrule\end{samepage}% \par\pagebreak[1]\vspace*{-1ex}\aftersecttoc\fi}% @@ -2058,7 +2076,7 @@ \@input{\jobname.\@tocfile} \global\@nobreakfalse\endgroup \end{stc@verse}% - \kern-0.\baselineskip% ABCD + \kernaftersectlof \nopagebreak[4]\slf@rule\null\leavevmode\\% \vskip-1.0\baselineskip\mtc@zrule\end{samepage}% \par\pagebreak[1]\vspace*{-1ex}\aftersectlof\fi}% @@ -2126,13 +2144,15 @@ \@input{\jobname.\@tocfile} \global\@nobreakfalse\endgroup \end{stc@verse}% - \kern-0.\baselineskip% ABCD + \kernaftersectlof \nopagebreak[4]\slt@rule\null\leavevmode\\% \vskip-1.0\baselineskip\mtc@zrule\end{samepage}% \par\pagebreak[1]\vspace*{-1ex}\aftersectlot\fi}% \def\l@xsect{\@dottedtocline{\@M}{1.0em}{2.3em}} +\def\l@xsection{\@dottedtocline{\@M}{1.0em}{2.3em}} \def\l@schapter{\@dottedtocline{1}{1.0em}{2.3em}} \def\xsect{xsect} +\def\xsection{xsection} \def\schapter{schapter} \let\sv@sect\@sect \gdef\@sect#1#2#3#4#5#6[#7]#8{% @@ -2498,7 +2518,7 @@ hints about the preparation commands,\MessageBreak because it invokes ALL the preparation\MessageBreak commands allowed by the document class,\MessageBreak - without any previous check.\MessageBreak}% + without any previous check\@gobble}% \fi } \@ifundefined{section}{}{\let\l@listof\l@section} @@ -3427,6 +3447,7 @@ \DeclareOption{american}{\mtcselectlanguage{american}}% \DeclareOption{arab}{\mtcselectlanguage{arab}}% \DeclareOption{arab2}{\mtcselectlanguage{arab2}}% +\DeclareOption{arabi}{\mtcselectlanguage{arabi}}% \DeclareOption{arabic}{\mtcselectlanguage{arabic}}% \DeclareOption{armenian}{\mtcselectlanguage{armenian}}% \DeclareOption{australian}{\mtcselectlanguage{australian}}% @@ -3470,6 +3491,7 @@ \DeclareOption{ethiopian2}{\mtcselectlanguage{ethiopian2}}% \DeclareOption{farsi1}{\mtcselectlanguage{farsi1}}% \DeclareOption{farsi2}{\mtcselectlanguage{farsi2}}% +\DeclareOption{farsi3}{\mtcselectlanguage{farsi3}}% \DeclareOption{finnish}{\mtcselectlanguage{finnish}}% \DeclareOption{finnish2}{\mtcselectlanguage{finnish2}}% \DeclareOption{francais}{\mtcselectlanguage{francais}}% @@ -3751,11 +3773,12 @@ \else\@mtc@hints@w@true\fi} \if@mtc@hints@w@\@mtc@hints@given@true% \mtcPackageWarningNoLine[<W0030>]{minitoc(hints)}% - {--- The \string\part\space command is altered\MessageBreak after minitoc} + {--- The \string\part\space command is altered\MessageBreak + after minitoc} \if@mtc@hyper@used@ \mtcPackageWarningNoLine[<W0023>]{minitoc(hints)}% {--- It may be the consequence\MessageBreak - of loading the ``hyperref'' package} + of loading the ``hyperref'' package} \fi \fi \@mtc@hints@w@false @@ -3767,11 +3790,12 @@ \else\@mtc@hints@w@true\fi}% \if@mtc@hints@w@\@mtc@hints@given@true% \mtcPackageWarningNoLine[<W0028>]{minitoc(hints)}% - {--- The \string\chapter\space command is altered\MessageBreak after minitoc} + {--- The \string\chapter\space command is altered\MessageBreak + after minitoc} \if@mtc@hyper@used@ \mtcPackageWarningNoLine[<W0023>]{minitoc(hints)}% {--- It may be the consequence\MessageBreak - of loading the ``hyperref'' package} + of loading the ``hyperref'' package} \fi \fi \@mtc@hints@w@false @@ -3784,11 +3808,12 @@ \@mtc@hints@w@true\fi} \if@mtc@hints@w@\@mtc@hints@given@true% \mtcPackageWarningNoLine[<W0039>]{minitoc(hints)}% - {--- The \string\section\space command is altered\MessageBreak after minitoc} + {--- The \string\section\space command is altered\MessageBreak + after minitoc} \if@mtc@hyper@used@ \mtcPackageWarningNoLine[<W0023>]{minitoc(hints)}% {--- It may be the consequence\MessageBreak - of loading the ``hyperref'' package} + of loading the ``hyperref'' package} \fi \relax\else\fi}{}% \if@mtc@hints@ @@ -4276,8 +4301,7 @@ \RequirePackage{flafter}[2000/07/23]% \RequirePackage[section,verbose]{placeins}[2005/04/18]% \@ifpackageloaded{placeins}% - {\@mtc@placeinsLoaded@true}% - {\@mtc@placeinsLoaded@false}% + {\@mtc@placeinsLoaded@true}{\@mtc@placeinsLoaded@false}% \fi \if@mtc@notoccite@ \RequirePackage{notoccite}% |