diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/minitoc/minitoc.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/minitoc/minitoc.sty | 1147 |
1 files changed, 662 insertions, 485 deletions
diff --git a/Master/texmf-dist/tex/latex/minitoc/minitoc.sty b/Master/texmf-dist/tex/latex/minitoc/minitoc.sty index fd45b9e01a3..fc21cfef30a 100644 --- a/Master/texmf-dist/tex/latex/minitoc/minitoc.sty +++ b/Master/texmf-dist/tex/latex/minitoc/minitoc.sty @@ -25,15 +25,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 +%% 2001 2002 2003 2004 2005 2006 2007 2008 %% Jean-Pierre F. Drucbert %% <jean-pierre.drucbert@onera.fr> +\makeatletter \NeedsTeXFormat{LaTeX2e}[1996/06/02]% \ProvidesPackage{minitoc}% - [2007/03/22 v53 Package minitoc (JPFD)] + [2007/06/29 v55 Package minitoc (JPFD)] % message I0000 \RequirePackage{mtcmess}[2006/03/14] -\mtcPackageInfo[<I0001>]{minitoc}% - {*** minitoc package, version 53 ***\@gobble} +\mtcPackageInfo[I0001]{minitoc}% + {*** minitoc package, version 55 ***\@gobble} \newwrite\tf@mtc \newlength\mtcindent \newskip\mtcskipamount @@ -59,6 +60,24 @@ \def\kernafterminilof{\kern-1.\baselineskip\kern0.ex}% \def\kernafterminilot{\kern-1.\baselineskip\kern0.ex}% }% + \@ifundefined{part}{}{% + \def\ptcoffset{0pt}% + \def\plfoffset{0pt}% + \def\pltoffset{0pt}% + }% + \@ifundefined{chapter}{% + \@ifundefined{section}{}% + {% + \def\stcoffset{0pt}% + \def\slfoffset{0pt}% + \def\sltoffset{0pt}% + }% + }% + {% + \def\mtcoffset{0pt}% + \def\mlfoffset{0pt}% + \def\mltoffset{0pt}% + }% \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 @@ -92,6 +111,10 @@ \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@floatLoaded@ \@mtc@floatLoaded@false +\newif\if@mtc@floatrowLoaded@ \@mtc@floatrowLoaded@false +\newif\if@mtc@trivfloatLoaded@ \@mtc@trivfloatLoaded@false +\newif\if@mtc@rotfloatLoaded@ \@mtc@rotfloatLoaded@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 @@ -161,7 +184,7 @@ {\let\mtc@hook@beforeinputfile\relax}{} \newif\iftightmtc \tightmtcfalse \newif\ifktightmtc \ktightmtcfalse -\mtcPackageInfo[<I0005>]{minitoc}{compatible with hyperref\@gobble} +\mtcPackageInfo[I0005]{minitoc}{compatible with hyperref\@gobble} \newif\if@mtc@hyper@used@ \global\@mtc@hyper@used@false \AtBeginDocument{% \@ifpackageloaded{hyperref}{% @@ -177,47 +200,51 @@ \let\toclevel@starsubsubsection\toclevel@subsubsection \let\toclevel@starparagraph\toclevel@paragraph \let\toclevel@starsubparagraph\toclevel@subparagraph - }{}} - \@ifpackageloaded{sectsty}{\@mtc@sectstyLoaded@true}{} - \AtBeginDocument{\@ifpackageloaded{sectsty}{\@mtc@sectstyLoaded@a@true}{}} - \@ifpackageloaded{varsects}{\@mtc@varsectsLoaded@true}{} - \AtBeginDocument{\@ifpackageloaded{varsects}{\@mtc@varsectsLoaded@a@true}{}} - \@ifpackageloaded{fncychap}{\@mtc@fncychapLoaded@true}{} - \AtBeginDocument{\@ifpackageloaded{fncychap}{\@mtc@fncychapLoaded@a@true}{}} - \@ifpackageloaded{hangcaption}{\@mtc@HgcLoaded@true}{} - \AtBeginDocument{\@ifpackageloaded{hangcaption}{\@mtc@HgcLoaded@a@true}{}} - \@ifpackageloaded{quotchap}{\@mtc@quotchapLoaded@true}{} - \AtBeginDocument{\@ifpackageloaded{quotchap}{\@mtc@quotchapLoaded@a@true}{}} - \@ifpackageloaded{romannum}{\@mtc@romannumLoaded@true}{} - \AtBeginDocument{\@ifpackageloaded{romannum}{\@mtc@romannumLoaded@a@true}{}} - \@ifpackageloaded{sfheaders}{\@mtc@sfheadersLoaded@true}{} - \AtBeginDocument{\@ifpackageloaded{sfheaders}{\@mtc@sfheadersLoaded@a@true}{}} - \@ifpackageloaded{alnumsec}{\@mtc@alnumsecLoaded@true}{} - \AtBeginDocument{\@ifpackageloaded{alnumsec}{\@mtc@alnumsecLoaded@a@true}{}} - \@ifpackageloaded{captcont}{\@mtc@captcontLoaded@true}{} - \AtBeginDocument{\@ifpackageloaded{captcont}{\@mtc@captcontLoaded@a@true}{}} - \@ifpackageloaded{caption}{\@mtc@captionLoaded@true}{} - \AtBeginDocument{\@ifpackageloaded{caption}{\@mtc@captionLoaded@a@true}{}} - \@ifpackageloaded{caption2}{\@mtc@captionIILoaded@true}{} - \AtBeginDocument{\@ifpackageloaded{caption2}{\@mtc@captionIILoaded@a@true}{}} - \@ifpackageloaded{ccaption}{\@mtc@ccaptionLoaded@true}{} - \AtBeginDocument{\@ifpackageloaded{ccaption}{\@mtc@ccaptionLoaded@a@true}{}} - \@ifpackageloaded{mcaption}{\@mtc@mcaptionLoaded@true}{} - \AtBeginDocument{\@ifpackageloaded{mcaption}{\@mtc@mcaptionLoaded@a@true}{}} + }{}}% + \@ifpackageloaded{sectsty}{\@mtc@sectstyLoaded@true}{}% + \AtBeginDocument{\@ifpackageloaded{sectsty}{\@mtc@sectstyLoaded@a@true}{}}% + \@ifpackageloaded{varsects}%{\@mtc@varsectsLoaded@true}{} + \AtBeginDocument{\@ifpackageloaded{varsects}{\@mtc@varsectsLoaded@a@true}{}}% + \@ifpackageloaded{fncychap}{\@mtc@fncychapLoaded@true}{}% + \AtBeginDocument{\@ifpackageloaded{fncychap}{\@mtc@fncychapLoaded@a@true}{}}% + \@ifpackageloaded{hangcaption}{\@mtc@HgcLoaded@true}{}% + \AtBeginDocument{\@ifpackageloaded{hangcaption}{\@mtc@HgcLoaded@a@true}{}}% + \@ifpackageloaded{quotchap}{\@mtc@quotchapLoaded@true}{}% + \AtBeginDocument{\@ifpackageloaded{quotchap}{\@mtc@quotchapLoaded@a@true}{}}% + \@ifpackageloaded{romannum}{\@mtc@romannumLoaded@true}{}% + \AtBeginDocument{\@ifpackageloaded{romannum}{\@mtc@romannumLoaded@a@true}{}}% + \@ifpackageloaded{sfheaders}{\@mtc@sfheadersLoaded@true}{}% + \AtBeginDocument{\@ifpackageloaded{sfheaders}{\@mtc@sfheadersLoaded@a@true}{}}% + \@ifpackageloaded{alnumsec}{\@mtc@alnumsecLoaded@true}{}% + \AtBeginDocument{\@ifpackageloaded{alnumsec}{\@mtc@alnumsecLoaded@a@true}{}}% + \@ifpackageloaded{captcont}{\@mtc@captcontLoaded@true}{}% + \AtBeginDocument{\@ifpackageloaded{captcont}{\@mtc@captcontLoaded@a@true}{}}% + \@ifpackageloaded{caption}{\@mtc@captionLoaded@true}{}% + \AtBeginDocument{\@ifpackageloaded{caption}{\@mtc@captionLoaded@a@true}{}}% + \@ifpackageloaded{caption2}{\@mtc@captionIILoaded@true}{}% + \AtBeginDocument{\@ifpackageloaded{caption2}{\@mtc@captionIILoaded@a@true}{}}% + \@ifpackageloaded{ccaption}{\@mtc@ccaptionLoaded@true}{}% + \AtBeginDocument{\@ifpackageloaded{ccaption}{\@mtc@ccaptionLoaded@a@true}{}}% + \@ifpackageloaded{mcaption}{\@mtc@mcaptionLoaded@true}{}% + \AtBeginDocument{\@ifpackageloaded{mcaption}{\@mtc@mcaptionLoaded@a@true}{}}% + \AtBeginDocument{\@ifpackageloaded{float}{\@mtc@floatLoaded@true}{}}% + \AtBeginDocument{\@ifpackageloaded{floatrow}{\@mtc@floatrowLoaded@true}{}}% + \AtBeginDocument{\@ifpackageloaded{trivfloat}{\@mtc@trivfloatLoaded@true}{}}% + \AtBeginDocument{\@ifpackageloaded{rotfloat}{\@mtc@rotfloatLoaded@true}{}}% \newif\if@mtcpatchmemoir@ \@mtcpatchmemoir@false \@ifclassloaded{memoir}{\@mtc@memoirLoaded@true\relax% - \mtcPackageInfo[<I0030>]{minitoc}% + \mtcPackageInfo[I0030]{minitoc}% {the memoir class is loaded: \MessageBreak compatibility attempted\@gobble}}% {\@mtc@memoirLoaded@false} \if@mtc@memoirLoaded@ \@ifundefined{@m@mchapter}% - {\@mtc@memoirnew@false\mtcPackageInfo[<I0020>]{minitoc}% + {\@mtc@memoirnew@false\mtcPackageInfo[I0020]{minitoc}% {old version of the memoir class\@gobble}} - {\@mtc@memoirnew@true\mtcPackageInfo[<I0027>]{minitoc}% + {\@mtc@memoirnew@true\mtcPackageInfo[I0027]{minitoc}% {recent version of the memoir class\@gobble} - \mtcPackageInfo[<I0032>]{minitoc}% + \mtcPackageInfo[I0032]{minitoc}% {This version of the memoir class uses \MessageBreak a version of \string\chapter\space which is @@ -230,7 +257,7 @@ \if@mtcpatchmemoir@ \IfFileExists{mtcpatchmem.sty}{% \@ifclasslater{memoir}{2005/09/25}{}{\RequirePackage{mtcpatchmem}}}{% - \mtcPackageError[<E0028>]{minitoc}% + \mtcPackageError[E0028]{minitoc}% {Unable to patch the memoir class}% {So it remains incompatible. Sorry.}} \fi @@ -262,45 +289,40 @@ \newif\if@mtc@LI\@mtc@LItrue \newif\if@mtc@FE\@mtc@FEtrue \newif\if@mtc@checkfiles\@mtc@checkfilestrue -\def\mtc@Body{\immediate\read\@inputcheck to - \mtc@Rline\relax +\def\mtc@Body{\immediate\read\@inputcheck to \mtc@Rline\relax \ifeof\@inputcheck\relax\@mtc@LIfalse\fi \expandafter\ifx\mtc@Rline\par\relax \def\mtc@Rline{} \else \ifeof\@inputcheck\relax\global\@mtc@LIfalse\fi - \mtc@ifmtarg{\mtc@Rline}{\relax}% - {\@mtc@FEfalse\@mtc@LIfalse} - \fi -} + \mtc@ifmtarg{\mtc@Rline}{\relax}{\@mtc@FEfalse\@mtc@LIfalse} + \fi} \def\mtc@CkFile#1{% -\@mtc@LItrue\@mtc@FEtrue -\if@mtc@checkfiles -\IfFileExists{#1}{% -\immediate\openin\@inputcheck #1\relax -\mtc@While{}{\if@mtc@LI\relax}% - {\mtc@Body}% -\mtc@EndWhile}% -{\@mtc@FEtrue}% -\else -\@mtc@FEfalse% -\fi} + \@mtc@LItrue\@mtc@FEtrue + \if@mtc@checkfiles + \IfFileExists{#1}{% + \immediate\openin\@inputcheck #1\relax + \mtc@While{}{\if@mtc@LI\relax}{\mtc@Body}\mtc@EndWhile}% + {\@mtc@FEtrue}% + \else + \@mtc@FEfalse% + \fi} \closein\@inputcheck\relax \def\mtc@CkStr#1{% -\immediate\openout\tf@mtc \jobname.mtc -\immediate\write\tf@mtc{#1}% -\immediate\closeout\tf@mtc -\mtc@CkFile{\jobname.mtc}% -\immediate\openout\tf@mtc \jobname.mtc -\immediate\closeout\tf@mtc} + \immediate\openout\tf@mtc \jobname.mtc + \immediate\write\tf@mtc{#1}% + \immediate\closeout\tf@mtc + \mtc@CkFile{\jobname.mtc}% + \immediate\openout\tf@mtc \jobname.mtc + \immediate\closeout\tf@mtc} \def\mtc@onebackpart{\addtocounter{ptc}{-1}} \def\mtc@onebackchap{\addtocounter{mtc}{-1}} \def\mtc@onebacksect{\addtocounter{stc}{-1}} \@ifundefined{part}{% - \mtcPackageWarningNoLine[<W0018>]{minitoc}% + \mtcPackageWarningNoLine[W0018]{minitoc}% {part level macros NOT available} }{%% else undefined part (\part defined) - \mtcPackageInfo[<I0023>]{minitoc}% + \mtcPackageInfo[I0023]{minitoc}% {part level macros available\@gobble} \let\mtc@svspart\@spart \def\@spart{\stepcounter{ptc}\mtc@svspart} @@ -313,15 +335,15 @@ \addcontentsline{lot}{xpart}{}% \adjustptc} }% -\@ifundefined{chapter}{\mtcPackageInfo[<I0004>]{minitoc}% +\@ifundefined{chapter}{\mtcPackageInfo[I0004]{minitoc}% {chapter level macros NOT available\@gobble}% - \@ifundefined{section}{\mtcPackageInfo[<I0029>]{minitoc}% + \@ifundefined{section}{\mtcPackageInfo[I0029]{minitoc}% {section level macros NOT available\@gobble}% - \mtcPackageWarningNoLine[<W0017>]{minitoc}% + \mtcPackageWarningNoLine[W0017]{minitoc}% {no section or chapter level macros available \MessageBreak PLEASE VERIFY YOUR MAIN DOCUMENT CLASS}}% - {\mtcPackageInfo[<I0028>]{minitoc}% + {\mtcPackageInfo[I0028]{minitoc}% {section level macros available\@gobble}% \let\mtcsv@tableofcontents\tableofcontents \let\mtcsv@listoffigures\listoffigures @@ -338,17 +360,15 @@ \addcontentsline{lof}{xsect}{}% \addcontentsline{lot}{xsect}{}% \adjuststc} - }}% - {% - \mtcPackageInfo[<I0003>]{minitoc}{chapter level macros available\@gobble} -\let\mtc@svchapter\@chapter -\def\@chapter{\stepcounter{mtc}\mtc@svchapter} + }}{% + \mtcPackageInfo[I0003]{minitoc}{chapter level macros available\@gobble} +\let\mtc@svchapter\@chapter \def\@chapter{\stepcounter{mtc}\mtc@svchapter} \newcommand{\mtcaddchapter}[1][]{% \mtc@ifmtarg{#1}{\addcontentsline{toc}{xchapter}{}}% {\addcontentsline{toc}{chapter}{#1}}% \addcontentsline{lof}{xchapter}{}% \addcontentsline{lot}{xchapter}{}% - \adjustmtc} + \adjustmtc}% }% \def\newread{\alloc@6\read\chardef\sixt@@n} \newtoks\mtc@toks @@ -364,7 +384,7 @@ \def\mtc@v{\leavevmode\mtc@strut} \def\mtc@zrule{\rule[\z@]{\z@}{\z@}} \def\mtc@BBR{\unpenalty\nopagebreak[4]} -\mtcPackageInfo[<I0002>]{minitoc}% +\mtcPackageInfo[I0002]{minitoc}% {Autoconfiguration of extensions\@gobble} \newif\if@longextensions@\@longextensions@false \immediate\openout\tf@mtc \jobname.mtc1 @@ -375,14 +395,14 @@ \immediate\closeout\tf@mtc \input{\jobname.mtc1} \if@longextensions@ - \mtcPackageInfo[<I0012>]{minitoc}% + \mtcPackageInfo[I0012]{minitoc}% {Long extensions (Unix-like) will be used\@gobble} - \mtcPackageInfo[<I0031>]{minitoc}% + \mtcPackageInfo[I0031]{minitoc}% {==> this version is configured for UNIX-like \MessageBreak \space\space\space\space(long extensions) file names\@gobble}% \else - \mtcPackageWarningNoLine[<W0019>]{minitoc}% + \mtcPackageWarningNoLine[W0019]{minitoc}% {Short extensions (MSDOS-like) will be used \MessageBreak ==> this version is configured for MSDOS-like @@ -394,12 +414,12 @@ \immediate\openout\tf@mtc \jobname.mtc1 \immediate\closeout\tf@mtc \@ifundefined{@inputcheck}% - {\mtcPackageWarningNoLine[<W0021>]{minitoc}% + {\mtcPackageWarningNoLine[W0021]{minitoc}% {Your version of latex.tex is obsolete. \MessageBreak Trying to continue..}\newread\@inputcheck\relax}{} \@ifundefined{reset@font}% - {\mtcPackageWarningNoLine[<W0022>]{minitoc}% + {\mtcPackageWarningNoLine[W0022]{minitoc}% {Your version of latex.tex is very obsolete. \MessageBreak Trying to continue... crossing fingers}% @@ -521,6 +541,15 @@ \let\aftersecttoc\empty \let\aftersectlof\empty \let\aftersectlot\empty +\let\openparttoc\empty \let\closeparttoc\empty +\let\openpartlof\empty \let\closepartlof\empty +\let\openpartlot\empty \let\closepartlot\empty +\let\openminitoc\empty \let\closeminitoc\empty +\let\openminilof\empty \let\closeminilof\empty +\let\openminilot\empty \let\closeminilot\empty +\let\opensecttoc\empty \let\closesecttoc\empty +\let\opensectlof\empty \let\closesectlof\empty +\let\opensectlot\empty \let\closesectlot\empty \@ifundefined{chapter}{% \def\thispageparttocstyle{\empty} \def\thispagepartlofstyle{\empty} @@ -541,19 +570,17 @@ } \def\fakelistoffigures{\fake@starttoc{lof}} \def\fakelistoftables{\fake@starttoc{lot}} -\def\fake@starttoc#1{\begingroup - \makeatletter +\def\fake@starttoc#1{\begingroup \makeatletter \if@filesw \expandafter\newwrite\csname tf@#1\endcsname \immediate\openout \csname tf@#1\endcsname - \jobname.#1\relax - \fi + \jobname.#1\relax \fi \global\@nobreakfalse \endgroup} \AtBeginDocument{% \@ifundefined{c@lofdepth}{}% {\newcounter{minilofdepth}\setcounter{minilofdepth}{2}}% \@ifundefined{c@lotdepth}{}% {\newcounter{minilotdepth}\setcounter{minilotdepth}{2}}% -} +}% \global\let\mtc@markboth\markboth \global\let\@mkboth\markboth \def\addst@rred#1#2{% @@ -567,6 +594,9 @@ \expandafter\ifx\csname #1\endcsname\chapter\relax \stepcounter{mtc}% \fi + \expandafter\ifx\csname #1\endcsname\appendix\relax + \stepcounter{mtc}% + \fi }% \@ifundefined{c@stc}{}{% \expandafter\ifx\csname #1\endcsname\section\relax @@ -581,8 +611,8 @@ {% \def\The@mtc{\arabic{mtc}} \def\firstchapteris#1% - {\mtcPackageWarning[<W0003>]{minitoc}% - {\string\firstchapteris \space is an obsolete + {\mtcPackageWarning[W0003]{minitoc}% + {\string\firstchapteris \space is an obsolete (ignored) \MessageBreak command}% \@firstchapteris@used@true} @@ -604,14 +634,10 @@ \mtcindent=24\p@ \def\mtcfont{\small\rmfamily\upshape\mdseries} \def\mtcSfont{\small\rmfamily\upshape\bfseries} -\let\mtcSSfont\mtcfont -\let\mtcSSSfont\mtcfont -\let\mtcPfont\mtcfont -\let\mtcSPfont\mtcfont -\let\mlffont\mtcfont -\let\mlfSfont\mtcfont -\let\mltfont\mtcfont -\let\mltSfont\mtcfont +\let\mtcSSfont\mtcfont \let\mtcSSSfont\mtcfont +\let\mtcPfont\mtcfont \let\mtcSPfont\mtcfont +\let\mlffont\mtcfont \let\mlfSfont\mtcfont +\let\mltfont\mtcfont \let\mltSfont\mtcfont \def\mtifont{\large\rmfamily\upshape\bfseries} \def\coffeefont{\small\rmfamily\slshape\mdseries} \def\c@mti#1{\null\hfill #1\hfill\null} @@ -625,15 +651,15 @@ \let\df@mtilf\l@mti \let\do@mtilt\l@mti \let\df@mtilt\l@mti -\def\mtc@verse{\let\\=\@centercr - \list{}{\itemsep\z@ - \itemindent \z@ - \listparindent \itemindent - \partopsep\z@ - \iftightmtc \parsep\z@ \fi - \ifktightmtc \parskip\z@ \fi - \topsep=1ex - \leftmargin\mtcindent \rightmargin\leftmargin}% +\def\mtc@verse#1{\let\\=\@centercr + \list{}{% + \itemsep=\z@ \itemindent=\z@ \partopsep=\z@ + \listparindent=\itemindent \topsep=1ex + \iftightmtc \parsep=\z@ \fi \ifktightmtc \parskip=\z@ \fi + \leftmargin=\mtcindent \rightmargin=\leftmargin + \addtolength{\leftmargin}{+#1}% + \addtolength{\rightmargin}{-#1}% + }% \item[]} \def\endmtc@verse{\nopagebreak[4]\endlist} \def\minitoc{\@ifnextchar[{\minitoc@}{\minitoc@[d]}} @@ -646,7 +672,7 @@ \fi \mtc@CkFile{\jobname.\@tocfile} \if@mtc@FE - \mtcPackageInfo[<I0006>]{minitoc}% + \mtcPackageInfo[I0006]{minitoc}% {\jobname.\@tocfile\space is empty} \@mtc@empty@minitoc@true \else @@ -682,7 +708,7 @@ \leftmargin\mtcindent \rightmargin\mtcindent \itemindent=\z@\labelwidth=\z@% \labelsep=\z@\listparindent=\z@% - \begin{mtc@verse}% + \begin{mtc@verse}{\mtcoffset}% \c@tocdepth=\c@minitocdepth \leavevmode\\\mtc@BBR\vskip -.5\baselineskip \begingroup @@ -691,7 +717,9 @@ {\let\@dottedtocline\@undottedtocline}{} \@fileswfalse\mtc@hook@beforeinputfile \mtc@setform% - \@input{\jobname.\@tocfile} + \openminitoc + \@input{\jobname.\@tocfile}% + \closeminitoc \vspace{-1ex} \vspace{-\baselineskip} \leavevmode\mtc@strut \global\@nobreakfalse\endgroup @@ -714,7 +742,7 @@ \fi \mtc@CkFile{\jobname.\@tocfile} \if@mtc@FE - \mtcPackageInfo[<I0006>]{minitoc}% + \mtcPackageInfo[I0006]{minitoc}% {\jobname.\@tocfile\space is empty} \@mtc@empty@minilof@true \else @@ -750,7 +778,7 @@ \leftmargin\mtcindent \rightmargin\mtcindent \itemindent=\z@\labelwidth=\z@% \labelsep=\z@\listparindent=\z@% - \begin{mtc@verse}% + \begin{mtc@verse}{\mlfoffset}% \@ifundefined{c@lofdepth}{}% {\c@lofdepth=\c@minilofdepth \ifnum\c@lofdepth<1\relax\c@lofdepth=1\fi} @@ -761,7 +789,9 @@ {\let\@dottedtocline\@undottedtocline}{} \@fileswfalse\mtc@hook@beforeinputfile \mlf@setform - \@input{\jobname.\@tocfile} + \openminilof + \@input{\jobname.\@tocfile}% + \closeminilof \vspace{-1ex} \vspace{-\baselineskip} \leavevmode\mtc@strut \global\@nobreakfalse\endgroup @@ -780,7 +810,7 @@ \fi \mtc@CkFile{\jobname.\@tocfile} \if@mtc@FE - \mtcPackageInfo[<I0006>]{minitoc}% + \mtcPackageInfo[I0006]{minitoc}% {\jobname.\@tocfile\space is empty} \@mtc@empty@minilot@true \else @@ -816,7 +846,7 @@ \leftmargin\mtcindent \rightmargin\mtcindent \itemindent=\z@\labelwidth=\z@% \labelsep=\z@\listparindent=\z@% - \begin{mtc@verse}% + \begin{mtc@verse}{\mltoffset}% \@ifundefined{c@lotdepth}{}% {\c@lotdepth=\c@minilotdepth \ifnum\c@lotdepth<1\relax\c@lotdepth=1\fi} @@ -827,7 +857,9 @@ {\let\@dottedtocline\@undottedtocline}{} \@fileswfalse\mtc@hook@beforeinputfile \mlt@setform - \@input{\jobname.\@tocfile} + \openminilot + \@input{\jobname.\@tocfile}% + \closeminilot \vspace{-1ex} \vspace{-\baselineskip} \leavevmode\mtc@strut \global\@nobreakfalse\endgroup @@ -863,9 +895,8 @@ \leavevmode \@tempdima #3\relax \advance\leftskip \@tempdima \null\nobreak\hskip -\leftskip - {\coffeefont #4}\nobreak - \nobreak\null - \par}% + {\coffeefont #4}\nobreak \nobreak\null + \par}% \fi} \def\@Undottedtoclinep#1#2#3#4#5{% \ifnum #1>\c@tocdepth\relax \else @@ -876,11 +907,9 @@ \leavevmode \@tempdima #3\relax \advance\leftskip \@tempdima \null\nobreak\hskip -\leftskip - {#4}\nobreak - \hfill - \nobreak\null + {#4}\nobreak \hfill \nobreak\null \hb@xt@\@pnumwidth{\hfil\normalfont \normalcolor #5}% - \par}% + \par}% \fi} \@ifundefined{chapter}{}{% \let\sv@minitoc@\minitoc@ @@ -931,7 +960,7 @@ \def\dominitoc@[#1]{% \if@mtc@hints@ \if@dominitoc@used@ - \mtcPackageInfo[<I0045>]{minitoc(hints)}% + \mtcPackageInfo[I0045]{minitoc(hints)}% {The \string\dominitoc \space command \MessageBreak has been invoked more than once @@ -950,7 +979,7 @@ \def\dominilof@[#1]{% \if@mtc@hints@ \if@dominilof@used@ - \mtcPackageInfo[<I0045>]{minitoc(hints)}% + \mtcPackageInfo[I0045]{minitoc(hints)}% {The \string\dominilof \space command \MessageBreak has been invoked more than once @@ -969,7 +998,7 @@ \def\dominilot@[#1]{% \if@mtc@hints@ \if@dominilot@used@ - \mtcPackageInfo[<I0045>]{minitoc(hints)}% + \mtcPackageInfo[I0045]{minitoc(hints)}% {The \string\dominilot \space command \MessageBreak has been invoked more than once @@ -1000,11 +1029,25 @@ \expandafter\ifx\csname #1\endcsname\chapter \stepcounter{mtc}% \if@longextensions@% - \mtcPackageInfo[<I0033>]{minitoc}% + \mtcPackageInfo[I0033]{minitoc}% {Writing\space\jobname.mtc\themtc\@gobble}% \def\mtcname{\jobname.mtc\themtc}% \else - \mtcPackageInfo[<I0033>]{minitoc}% + \mtcPackageInfo[I0033]{minitoc}% + {Writing\space\jobname.M\themtc\@gobble}% + \def\mtcname{\jobname.M\themtc}% + \fi + \immediate\closeout\tf@mtc + \immediate\openout\tf@mtc=\mtcname + \fi + \expandafter\ifx\csname #1\endcsname\appendix + \stepcounter{mtc}% + \if@longextensions@% + \mtcPackageInfo[I0033]{minitoc}% + {Writing\space\jobname.mtc\themtc\@gobble}% + \def\mtcname{\jobname.mtc\themtc}% + \else + \mtcPackageInfo[I0033]{minitoc}% {Writing\space\jobname.M\themtc\@gobble}% \def\mtcname{\jobname.M\themtc}% \fi @@ -1033,11 +1076,11 @@ \expandafter\ifx\csname #1\endcsname\starchapter \stepcounter{mtc}% \if@longextensions@ - \mtcPackageInfo[<I0033>]{minitoc}% + \mtcPackageInfo[I0033]{minitoc}% {Writing\space\jobname.mtc\themtc\@gobble}% \def\mtcname{\jobname.mtc\themtc}% \else - \mtcPackageInfo[<I0033>]{minitoc}% + \mtcPackageInfo[I0033]{minitoc}% {Writing\space\jobname.M\themtc\@gobble}% \def\mtcname{\jobname.M\themtc}% \fi @@ -1063,13 +1106,13 @@ \def\MTC@explist{\expandafter\MTC@next\MTC@list\\} \def\MTC@loop#1{\openin\@inputcheck#1\relax \ifeof\@inputcheck - \mtcPackageWarning[<W0010>]{minitoc}% + \mtcPackageWarning[W0010]{minitoc}% {No file #1. \MessageBreak MINITOCS NOT PREPARED}% \expandafter\MTC@toc \else - \mtcPackageInfo[<I0024>]{minitoc}{PREPARING MINITOCS FROM #1}% + \mtcPackageInfo[I0024]{minitoc}{PREPARING MINITOCS FROM #1}% \expandafter\MTC@read \fi } @@ -1106,11 +1149,11 @@ \expandafter\ifx\csname #1\endcsname\xchapter \stepcounter{mtc}% \if@longextensions@% - \mtcPackageInfo[<I0033>]{minitoc}% + \mtcPackageInfo[I0033]{minitoc}% {Writing\space\jobname.mlf\themtc\@gobble} \def\mlfname{\jobname.mlf\themtc}% \else - \mtcPackageInfo[<I0033>]{minitoc}% + \mtcPackageInfo[I0033]{minitoc}% {Writing\space\jobname.F\themtc\@gobble} \def\mlfname{\jobname.F\themtc}% \fi @@ -1129,13 +1172,13 @@ \def\MLF@explist{\expandafter\MLF@next\MLF@list\\} \def\MLF@loop#1{\openin\@inputcheck#1\relax \ifeof\@inputcheck - \mtcPackageWarning[<W0008>]{minitoc}% + \mtcPackageWarning[W0008]{minitoc}% {No file #1. \MessageBreak MINILOFS NOT PREPARED}% \expandafter\MLF@lof \else - \mtcPackageInfo[<I0034>]{minitoc}% + \mtcPackageInfo[I0034]{minitoc}% {PREPARING MINILOFS FROM #1}% \expandafter\MLF@read\fi} \def\MLF@read{% @@ -1167,11 +1210,11 @@ \expandafter\ifx\csname #1\endcsname\xchapter \stepcounter{mtc}% \if@longextensions@% - \mtcPackageInfo[<I0033>]{minitoc}% + \mtcPackageInfo[I0033]{minitoc}% {Writing\space\jobname.mlt\themtc\@gobble}% \def\mltname{\jobname.mlt\themtc}% \else - \mtcPackageInfo[<I0033>]{minitoc}% + \mtcPackageInfo[I0033]{minitoc}% {Writing\space\jobname.T\themtc\@gobble}% \def\mltname{\jobname.T\themtc}% \fi @@ -1190,13 +1233,13 @@ \def\MLT@explist{\expandafter\MLT@next\MLT@list\\} \def\MLT@loop#1{\openin\@inputcheck#1\relax \ifeof\@inputcheck - \mtcPackageWarning[<W0009>]{minitoc}% + \mtcPackageWarning[W0009]{minitoc}% {No file #1. \MessageBreak MINILOTS NOT PREPARED}% \expandafter\MLT@lot \else - \mtcPackageInfo[<I0037>]{minitoc}% + \mtcPackageInfo[I0037]{minitoc}% {PREPARING MINILOTS FROM #1}% \expandafter\MLT@read\fi} \def\MLT@read{% @@ -1253,14 +1296,14 @@ {\newcounter{partlofdepth}\setcounter{partlofdepth}{2}}% \@ifundefined{c@lotdepth}{}% {\newcounter{partlotdepth}\setcounter{partlotdepth}{2}}% -} +}% \@ifundefined{part}{}% {% \def\xpart{xpart} \def\Thepart{\arabic{ptc}} \def\firstpartis#1% - {\mtcPackageWarning[<W0004>]{minitoc}% - {\string\firstpartis \space is an obsolete + {\mtcPackageWarning[W0004]{minitoc}% + {\string\firstpartis \space is an obsolete (ignored) \MessageBreak command}% \@firstpartis@used@true} @@ -1305,73 +1348,48 @@ \def\ptifont{\LARGE\rmfamily\upshape\bfseries}% titles } \@ifundefined{chapter}{% -\def\c@pti#1{\null\hfill #1\hfill\null} -\def\l@pti#1{\null #1\hfill\null} -\def\r@pti#1{\null\hfill #1\null} -\def\e@pti#1{\vspace{-\baselineskip}} -\def\n@pti#1{\vspace{-\baselineskip}} -}% + \def\c@pti#1{\null\hfill #1\hfill\null} + \def\l@pti#1{\null #1\hfill\null} + \def\r@pti#1{\null\hfill #1\null} + \def\e@pti#1{\vspace{-\baselineskip}} + \def\n@pti#1{\vspace{-\baselineskip}}}% {% -\def\e@pti#1{\vspace{-\baselineskip}} -\def\n@pti#1{\vspace{-\baselineskip}} -\def\l@pti#1{\if@twocolumn - \@topnewpage[\@makephead@l{#1}]% - \else - \@makephead@l{#1}% - \@afterheading - \fi} +\def\e@pti#1{\vspace{-\baselineskip}} \def\n@pti#1{\vspace{-\baselineskip}} +\def\l@pti#1{\if@twocolumn \@topnewpage[\@makephead@l{#1}]% + \else \@makephead@l{#1}\@afterheading \fi} \def\@makephead@l#1{% \vspace*{\mtcgapbeforeheads}% - {\parindent \z@ \raggedright - \ptifont - #1\par - \nobreak + {\parindent \z@ \raggedright \ptifont #1\par \nobreak \vskip \mtcgapafterheads\hbox{} }} -\def\r@pti#1{\if@twocolumn - \@topnewpage[\@makephead@r{#1}]% - \else - \@makephead@r{#1}% - \@afterheading - \fi} +\def\r@pti#1{\if@twocolumn \@topnewpage[\@makephead@r{#1}] + \else \@makephead@r{#1}\@afterheading \fi} \def\@makephead@r#1{% \vspace*{\mtcgapbeforeheads}% - {\parindent \z@ \raggedleft - \ptifont - #1\par - \nobreak + {\parindent \z@ \raggedleft \ptifont #1\par \nobreak \vskip \mtcgapafterheads\hbox{} }} -\def\c@pti#1{\if@twocolumn - \@topnewpage[\@makephead@c{#1}]% - \else - \@makephead@c{#1}% - \@afterheading - \fi} +\def\c@pti#1{\if@twocolumn \@topnewpage[\@makephead@c{#1}]% + \else \@makephead@c{#1}\@afterheading \fi} \def\@makephead@c#1{% \vspace*{\mtcgapbeforeheads}% - {\parindent \z@ \centering - \ptifont - #1\par - \nobreak + {\parindent \z@ \centering \ptifont #1\par \nobreak \vskip \mtcgapafterheads\hbox{} }}% } -\let\do@ptitc\l@pti -\let\df@ptitc\l@pti -\let\do@ptilf\l@pti -\let\df@ptilf\l@pti -\let\do@ptilt\l@pti -\let\df@ptilt\l@pti -\def\ptc@verse{\let\\=\@centercr - \list{}{\itemsep\z@ - \itemindent \z@ - \listparindent \itemindent - \partopsep\z@ - \iftightmtc \parsep\z@ \fi - \ifktightmtc \parskip\z@ \fi - \topsep=1ex - \leftmargin\ptcindent \rightmargin\leftmargin}% +\let\do@ptitc\l@pti \let\df@ptitc\l@pti +\let\do@ptilf\l@pti \let\df@ptilf\l@pti +\let\do@ptilt\l@pti \let\df@ptilt\l@pti +\def\ptc@verse#1{\let\\=\@centercr + \list{}{% + \topsep=1ex \itemsep=\z@ \itemindent=\z@ + \listparindent=\itemindent \partopsep=\z@ + \leftmargin=\ptcindent \rightmargin=\leftmargin + \iftightmtc \parsep=\z@ \fi + \ifktightmtc \parskip=\z@ \fi + \addtolength{\leftmargin}{+#1} + \addtolength{\rightmargin}{-#1} + }% \item[]} \def\endptc@verse{\nopagebreak[4]\endlist} \def\parttoc{\@ifnextchar[{\parttoc@}{\parttoc@[d]}} @@ -1384,17 +1402,15 @@ \fi \mtc@CkFile{\jobname.\@tocfile} \if@mtc@FE - \mtcPackageInfo[<I0006>]{minitoc}% + \mtcPackageInfo[I0006]{minitoc}% {\jobname.\@tocfile\space is empty} \@mtc@empty@parttoc@true \else \beforeparttoc \@ifundefined{chapter}{}{% - \global\let\mtc@markboth\markboth - \global\let\@mkboth\markboth + \global\let\mtc@markboth\markboth \global\let\@mkboth\markboth \thispageparttocstyle - \mtc@markboth{\MakeUppercase{\ptctitle}}{\MakeUppercase{\ptctitle}}% - }% + \mtc@markboth{\MakeUppercase{\ptctitle}}{\MakeUppercase{\ptctitle}}}% \relax\begin{samepage}% \if #1e\let\do@ptitc\e@pti \else\if #1n\let\do@ptitc\n@pti @@ -1404,14 +1420,9 @@ \else\if #1d\let\do@ptitc\df@ptitc \fi\fi\fi\fi\fi\fi \mtc@CkStr{\ptctitle}\if@mtc@FE \let\do@ptitc\e@pti\relax\fi - \raggedright - \parskip=\z@% - \reset@font\ptcfont% - \parindent=\z@% - \nopagebreak[4]% - \kern-0.8\baselineskip\nopagebreak[4]% - \par\noindent - \nopagebreak[4]% + \raggedright \reset@font\ptcfont \parskip=\z@ \parindent=\z@% + \nopagebreak[4]\kern-0.8\baselineskip\nopagebreak[4]% + \par\noindent \nopagebreak[4]% \ifx\ptc@rule\relax \begin{tabular}{@{}p{\columnwidth}@{}} \reset@font\ptifont\do@ptitc{\mtc@v\ptctitle}\\ @@ -1423,9 +1434,8 @@ \fi \nopagebreak[4]\null\leavevmode\mtc@zrule\\*[-\baselineskip]\mtc@BBR \leftmargin\ptcindent \rightmargin\ptcindent - \itemindent=\z@\labelwidth=\z@% - \labelsep=\z@\listparindent=\z@% - \begin{ptc@verse}\c@tocdepth=\c@parttocdepth% + \itemindent=\z@ \labelwidth=\z@ \labelsep=\z@ \listparindent=\z@% + \begin{ptc@verse}{\ptcoffset}\c@tocdepth=\c@parttocdepth% \leavevmode\\\mtc@BBR\vskip -.5\baselineskip \begingroup \makeatletter @@ -1436,7 +1446,9 @@ \def\l@chapter##1##2{\l@chapter@SVPN{##1}{\hbox{}}}}{} \@fileswfalse\mtc@hook@beforeinputfile \ptc@setform - \@input{\jobname.\@tocfile} + \openparttoc + \@input{\jobname.\@tocfile}% + \closeparttoc \vspace{-1ex} \vspace{-1\baselineskip} \leavevmode\mtc@strut \global\@nobreakfalse\endgroup @@ -1456,13 +1468,13 @@ \fi \mtc@CkFile{\jobname.\@tocfile} \if@mtc@FE - \mtcPackageInfo[<I0006>]{minitoc}% + \mtcPackageInfo[I0006]{minitoc}% {\jobname.\@tocfile\space is empty} \@mtc@empty@partlof@true \else \beforepartlof \@ifundefined{chapter}{}% -{\global\let\mtc@markboth\markboth + {\global\let\mtc@markboth\markboth \global\let\@mkboth\markboth \thispagepartlofstyle \mtc@markboth{\MakeUppercase{\plftitle}}{\MakeUppercase{\plftitle}}% @@ -1497,7 +1509,7 @@ \leftmargin\ptcindent \rightmargin\ptcindent \itemindent=\z@\labelwidth=\z@% \labelsep=\z@\listparindent=\z@% - \begin{ptc@verse}% + \begin{ptc@verse}{\plfoffset}% \@ifundefined{c@lofdepth}{}% {\c@lofdepth=\c@partlofdepth \ifnum\c@lofdepth<1\relax\c@lofdepth=1\fi} @@ -1508,7 +1520,9 @@ {\let\@dottedtocline\@undottedtocline}{} \@fileswfalse\mtc@hook@beforeinputfile \plf@setform - \@input{\jobname.\@tocfile} + \openpartlof + \@input{\jobname.\@tocfile}% + \closepartlof \vspace{-1ex} \vspace{-1\baselineskip} \leavevmode\mtc@strut \global\@nobreakfalse\endgroup @@ -1528,7 +1542,7 @@ \fi \mtc@CkFile{\jobname.\@tocfile} \if@mtc@FE - \mtcPackageInfo[<I0006>]{minitoc}% + \mtcPackageInfo[I0006]{minitoc}% {\jobname.\@tocfile\space is empty} \@mtc@empty@partlof@true \else @@ -1569,7 +1583,7 @@ \leftmargin\ptcindent \rightmargin\ptcindent \itemindent=\z@\labelwidth=\z@% \labelsep=\z@\listparindent=\z@% - \begin{ptc@verse}% + \begin{ptc@verse}{\pltoffset}% \@ifundefined{c@lotdepth}{}% {\c@lotdepth=\c@partlotdepth \ifnum\c@lotdepth<1\relax\c@lotdepth=1\fi} @@ -1580,7 +1594,9 @@ {\let\@dottedtocline\@undottedtocline}{} \@fileswfalse\mtc@hook@beforeinputfile \plt@setform - \@input{\jobname.\@tocfile} + \openpartlot + \@input{\jobname.\@tocfile}5 + \closepartlot \vspace{-1ex} \vspace{-1\baselineskip} \leavevmode\mtc@strut \global\@nobreakfalse\endgroup @@ -1626,7 +1642,7 @@ \def\doparttoc@[#1]{% \if@mtc@hints@ \if@doparttoc@used@ - \mtcPackageInfo[<I0045>]{minitoc(hints)}% + \mtcPackageInfo[I0045]{minitoc(hints)}% {The \string\doparttoc \space command \MessageBreak has been invoked more than once @@ -1645,7 +1661,7 @@ \def\dopartlof@[#1]{% \if@mtc@hints@ \if@dopartlof@used@ - \mtcPackageInfo[<I0045>]{minitoc(hints)}% + \mtcPackageInfo[I0045]{minitoc(hints)}% {The \string\dopartlof \space command \MessageBreak has been invoked more than once @@ -1664,7 +1680,7 @@ \def\dopartlot@[#1]{% \if@mtc@hints@ \if@dopartlot@used@ - \mtcPackageInfo[<I0045>]{minitoc(hints)}% + \mtcPackageInfo[I0045]{minitoc(hints)}% {The \string\dopartlot \space command \MessageBreak has been invoked more than once @@ -1692,11 +1708,11 @@ \expandafter\ifx\csname #1\endcsname\part \stepcounter{ptc}% \if@longextensions@% - \mtcPackageInfo[<I0033>]{minitoc}% + \mtcPackageInfo[I0033]{minitoc}% {Writing\space\jobname.ptc\theptc\@gobble}% \def\ptcname{\jobname.ptc\theptc}% \else - \mtcPackageInfo[<I0033>]{minitoc}% + \mtcPackageInfo[I0033]{minitoc}% {Writing\space\jobname.P\theptc\@gobble}% \def\ptcname{\jobname.P\theptc}% \fi @@ -1706,11 +1722,11 @@ \expandafter\ifx\csname #1\endcsname\starpart\relax \stepcounter{ptc}% \if@longextensions@% - \mtcPackageInfo[<I0033>]{minitoc}% + \mtcPackageInfo[I0033]{minitoc}% {Writing\space\jobname.ptc\theptc}% \def\ptcname{\jobname.ptc\theptc}% \else - \mtcPackageInfo[<I0033>]{minitoc}% + \mtcPackageInfo[I0033]{minitoc}% {Writing\space\jobname.P\theptc}% \def\ptcname{\jobname.P\theptc}% \fi @@ -1721,6 +1737,9 @@ \expandafter\ifx\csname #1\endcsname\chapter \MTC@WriteContentsline{#1}{ptcC}{#3}{#4}% \fi + \expandafter\ifx\csname #1\endcsname\appendix + \MTC@WriteContentsline{#1}{ptcC}{#3}{#4}% + \fi \expandafter\ifx\csname #1\endcsname\pchapter \MTC@WriteContentsline{#1}{ptcC}{#3}{#4}% \fi @@ -1764,13 +1783,13 @@ \def\PTC@explist{\expandafter\PTC@next\PTC@list\\} \def\PTC@loop#1{\openin\@inputcheck#1\relax \ifeof\@inputcheck - \mtcPackageWarning[<W0013>]{minitoc}% + \mtcPackageWarning[W0013]{minitoc}% {No file #1 \MessageBreak PARTTOCS NOT PREPARED}% \expandafter\PTC@toc \else - \mtcPackageInfo[<I0025>]{minitoc}% + \mtcPackageInfo[I0025]{minitoc}% {PREPARING PARTTOCS FROM #1}% \expandafter\PTC@read\fi} \def\PTC@read{% @@ -1801,11 +1820,11 @@ \expandafter\ifx\csname #1\endcsname\xpart \stepcounter{ptc}% \if@longextensions@% - \mtcPackageInfo[<I0033>]{minitoc}% + \mtcPackageInfo[I0033]{minitoc}% {Writing\space\jobname.plf\theptc}% \def\plfname{\jobname.plf\theptc}% \else - \mtcPackageInfo[<I0033>]{minitoc}% + \mtcPackageInfo[I0033]{minitoc}% {Writing\space\jobname.G\theptc}% \def\plfname{\jobname.G\theptc}% \fi @@ -1824,13 +1843,13 @@ \def\PLF@explist{\expandafter\PLF@next\PLF@list\\} \def\PLF@loop#1{\openin\@inputcheck#1\relax \ifeof\@inputcheck - \mtcPackageWarning[<W0011>]{minitoc}% + \mtcPackageWarning[W0011]{minitoc}% {No file #1 \MessageBreak PARTLOFS NOT PREPARED}% \expandafter\PLF@lof \else - \mtcPackageInfo[<I0035>]{minitoc}% + \mtcPackageInfo[I0035]{minitoc}% {PREPARING PARTLOFS FROM #1}% \expandafter\PLF@read\fi} \def\PLF@read{% @@ -1861,11 +1880,11 @@ \expandafter\ifx\csname #1\endcsname\xpart \stepcounter{ptc}% \if@longextensions@% - \mtcPackageInfo[<I0033>]{minitoc}% + \mtcPackageInfo[I0033]{minitoc}% {Writing\space\jobname.plt\theptc}% \def\pltname{\jobname.plt\theptc}% \else - \mtcPackageInfo[<I0033>]{minitoc}% + \mtcPackageInfo[I0033]{minitoc}% {Writing\space\jobname.U\theptc}% \def\pltname{\jobname.U\theptc}% \fi @@ -1884,13 +1903,13 @@ \def\PLT@explist{\expandafter\PLT@next\PLT@list\\} \def\PLT@loop#1{\openin\@inputcheck#1\relax \ifeof\@inputcheck - \mtcPackageWarning[<W0012>]{minitoc}% + \mtcPackageWarning[W0012]{minitoc}% {No file #1 \MessageBreak PARTLOTS NOT PREPARED}% \expandafter\PLT@lot \else - \mtcPackageInfo[<I0038>]{minitoc}% + \mtcPackageInfo[I0038]{minitoc}% {PREPARING PARTLOTS FROM #1}% \expandafter\PLT@read\fi} \def\PLT@read{% @@ -1918,12 +1937,10 @@ {\newcounter{sectlofdepth}\setcounter{sectlofdepth}{2}}% \@ifundefined{c@lotdepth}{}% {\newcounter{sectlotdepth}\setcounter{sectlotdepth}{2}}% -} -\if@mtc@chapter@undef@ -\if@mtc@section@def@ -\def\firstsectionis#1% - {\mtcPackageWarning[<W0005>]{minitoc}% - {\string\firstsectionis \space is an obsolete +}% +\if@mtc@chapter@undef@ \if@mtc@section@def@ +\def\firstsectionis#1{\mtcPackageWarning[W0005]{minitoc}% + {\string\firstsectionis \space is an obsolete (ignored) \MessageBreak command}% \@firstsectionis@used@true} @@ -1955,16 +1972,17 @@ \let\df@stilf\l@sti \let\do@stilt\l@sti \let\df@stilt\l@sti -\def\stc@verse{\let\\=\@centercr - \list{}{\itemsep\z@ - \itemindent \z@ - \listparindent \itemindent - \partopsep \z@ - \iftightmtc \parsep \z@ \fi - \ifktightmtc \parskip \z@ \fi - \topsep 1ex %% 20060731 was \z@ - \leftmargin\stcindent \rightmargin\leftmargin}% - \item[]} +\def\stc@verse#1{\let\\=\@centercr + \list{}{% + \itemsep=\z@ \itemindent=\z@ \topsep=1ex + \listparindent=\itemindent \partopsep=\z@ + \iftightmtc \parsep=\z@ \fi + \ifktightmtc \parskip=\z@ \fi + \leftmargin=\stcindent \rightmargin=\leftmargin + \addtolength{\leftmargin}{+#1}% + \addtolength{\rightmargin}{-#1}% + }% + \item[]}% \def\endstc@verse{\nopagebreak[4]\endlist} \def\secttoc{\@ifnextchar[{\secttoc@}{\secttoc@[d]}} \def\secttoc@[#1]{% @@ -1976,7 +1994,7 @@ \fi \mtc@CkFile{\jobname.\@tocfile} \if@mtc@FE - \mtcPackageInfo[<I0006>]{minitoc}% + \mtcPackageInfo[I0006]{minitoc}% {\jobname.\@tocfile\space is empty} \@mtc@empty@secttoc@true \else @@ -2013,7 +2031,7 @@ \leftmargin\stcindent \rightmargin\stcindent \itemindent=\z@\labelwidth=\z@% \labelsep=\z@\listparindent=\z@% - \begin{stc@verse}\c@tocdepth=\c@secttocdepth% + \begin{stc@verse}{\stcoffset}\c@tocdepth=\c@secttocdepth% \leavevmode\\\mtc@BBR\vskip -.5\baselineskip \begingroup \makeatletter @@ -2022,7 +2040,9 @@ {\let\@dottedtocline\@undottedtocline}{} \@fileswfalse\mtc@hook@beforeinputfile \stc@setform% - \@input{\jobname.\@tocfile} + \opensecttoc + \@input{\jobname.\@tocfile}% + \closesecttoc \vspace{-1ex} \vspace{-\baselineskip} \leavevmode\mtc@strut \global\@nobreakfalse\endgroup @@ -2041,7 +2061,7 @@ \fi \mtc@CkFile{\jobname.\@tocfile} \if@mtc@FE - \mtcPackageInfo[<I0006>]{minitoc}% + \mtcPackageInfo[I0006]{minitoc}% {\jobname.\@tocfile\space is empty} \@mtc@empty@sectlof@true \else @@ -2078,7 +2098,7 @@ \leftmargin\stcindent \rightmargin\stcindent \itemindent=\z@\labelwidth=\z@% \labelsep=\z@\listparindent=\z@% - \begin{stc@verse}% + \begin{stc@verse}{\slfoffset}% \@ifundefined{c@lofdepth}{}% {\c@lofdepth=\c@sectlofdepth \ifnum\c@lofdepth<1\relax\c@lofdepth=1\fi} @@ -2089,7 +2109,9 @@ {\let\@dottedtocline\@undottedtocline}{} \@fileswfalse\mtc@hook@beforeinputfile \slf@setform% - \@input{\jobname.\@tocfile} + \opensectlof + \@input{\jobname.\@tocfile}% + \closesectlof \global\@nobreakfalse\endgroup \end{stc@verse}% \kernaftersectlof @@ -2106,7 +2128,7 @@ \fi \mtc@CkFile{\jobname.\@tocfile} \if@mtc@FE - \mtcPackageInfo[<I0006>]{minitoc}% + \mtcPackageInfo[I0006]{minitoc}% {\jobname.\@tocfile\space is empty} \@mtc@empty@sectlot@true \else @@ -2143,7 +2165,7 @@ \leftmargin\stcindent \rightmargin\stcindent \itemindent=\z@\labelwidth=\z@% \labelsep=\z@\listparindent=\z@% - \begin{stc@verse}% + \begin{stc@verse}{\sltoffset}% \@ifundefined{c@lotdepth}{}% {\c@lotdepth=\c@sectlotdepth \ifnum\c@lotdepth<1\relax\c@lotdepth=1\fi} @@ -2155,7 +2177,9 @@ \gdef\thestc{\arabic{stc}} \@fileswfalse\mtc@hook@beforeinputfile \slt@setform% - \@input{\jobname.\@tocfile} + \opensectlot + \@input{\jobname.\@tocfile}% + \closesectlot \global\@nobreakfalse\endgroup \end{stc@verse}% \kernaftersectlof @@ -2165,9 +2189,7 @@ \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} +\def\xsect{xsect} \def\xsection{xsection} \def\schapter{schapter} \let\sv@sect\@sect \gdef\@sect#1#2#3#4#5#6[#7]#8{% \ifnum #2=1\relax @@ -2240,7 +2262,7 @@ \def\dosecttoc@[#1]{% \if@mtc@hints@ \if@dosecttoc@used@ - \mtcPackageInfo[<I0045>]{minitoc(hints)}% + \mtcPackageInfo[I0045]{minitoc(hints)}% {The \string\dosecttoc \space command \MessageBreak has been invoked more than once @@ -2259,7 +2281,7 @@ \def\dosectlof@[#1]{% \if@mtc@hints@ \if@dosectlof@used@ - \mtcPackageInfo[<I0045>]{minitoc(hints)}% + \mtcPackageInfo[I0045]{minitoc(hints)}% {The \string\dosectlof \space command \MessageBreak has been invoked more than once @@ -2278,7 +2300,7 @@ \def\dosectlot@[#1]{% \if@mtc@hints@ \if@dosectlot@used@ - \mtcPackageInfo[<I0045>]{minitoc(hints)}% + \mtcPackageInfo[I0045]{minitoc(hints)}% {The \string\dosectlot \space command \MessageBreak has been invoked more than once @@ -2307,11 +2329,11 @@ \expandafter\ifx\csname #1\endcsname\section \stepcounter{stc}% \if@longextensions@% - \mtcPackageInfo[<I0033>]{minitoc}% + \mtcPackageInfo[I0033]{minitoc}% {Writing\space\jobname.stc\thestc}% \def\stcname{\jobname.stc\thestc}% \else - \mtcPackageInfo[<I0033>]{minitoc}% + \mtcPackageInfo[I0033]{minitoc}% {Writing\space\jobname.S\thestc}% \def\stcname{\jobname.S\thestc}% \fi @@ -2338,11 +2360,11 @@ \stepcounter{stc}% \gdef\thestc{\arabic{stc}} \if@longextensions@% - \mtcPackageInfo[<I0033>]{minitoc}% + \mtcPackageInfo[I0033]{minitoc}% {Writing\space\jobname.stc\thestc}% \def\stcname{\jobname.stc\thestc}% \else - \mtcPackageInfo[<I0033>]{minitoc}% + \mtcPackageInfo[I0033]{minitoc}% {Writing\space\jobname.S\thestc}% \def\stcname{\jobname.S\thestc}% \fi @@ -2365,13 +2387,13 @@ \def\STC@explist{\expandafter\STC@next\STC@list\\} \def\STC@loop#1{\openin\@inputcheck#1\relax \ifeof\@inputcheck - \mtcPackageWarning[<W0016>]{minitoc}% + \mtcPackageWarning[W0016]{minitoc}% {No file #1 \MessageBreak SECTTOCS NOT PREPARED}% \expandafter\STC@toc \else - \mtcPackageInfo[<I0026>]{minitoc}% + \mtcPackageInfo[I0026]{minitoc}% {PREPARING SECTTOCS FROM #1}% \expandafter\STC@read\fi} \def\STC@read{% @@ -2403,11 +2425,11 @@ \expandafter\ifx\csname #1\endcsname\xsect \stepcounter{stc}% \if@longextensions@% - \mtcPackageInfo[<I0033>]{minitoc}% + \mtcPackageInfo[I0033]{minitoc}% {Writing\space\jobname.slf\thestc}% \def\slfname{\jobname.slf\thestc}% \else - \mtcPackageInfo[<I0033>]{minitoc}% + \mtcPackageInfo[I0033]{minitoc}% {Writing\space\jobname.H\thestc}% \def\slfname{\jobname.H\thestc}% \fi @@ -2425,13 +2447,13 @@ \def\SLF@explist{\expandafter\SLF@next\SLF@list\\} \def\SLF@loop#1{\openin\@inputcheck#1\relax \ifeof\@inputcheck - \mtcPackageWarning[<W0014>]{minitoc}% + \mtcPackageWarning[W0014]{minitoc}% {No file #1 \MessageBreak SECTLOFS NOT PREPARED}% \expandafter\SLF@lof \else - \mtcPackageInfo[<I0036>]{minitoc}% + \mtcPackageInfo[I0036]{minitoc}% {PREPARING SECTLOFS FROM #1}% \expandafter\SLF@read\fi} \def\SLF@read{% @@ -2463,11 +2485,11 @@ \expandafter\ifx\csname #1\endcsname\xsect \stepcounter{stc}% \if@longextensions@% - \mtcPackageInfo[<I0033>]{minitoc}% + \mtcPackageInfo[I0033]{minitoc}% {Writing\space\jobname.slt\thestc}% \def\sltname{\jobname.slt\thestc}% \else - \mtcPackageInfo[<I0033>]{minitoc}% + \mtcPackageInfo[I0033]{minitoc}% {Writing\space\jobname.V\thestc}% \def\sltname{\jobname.V\thestc}% \fi @@ -2485,13 +2507,13 @@ \def\SLT@explist{\expandafter\SLT@next\SLT@list\\} \def\SLT@loop#1{\openin\@inputcheck#1\relax \ifeof\@inputcheck - \mtcPackageWarning[<W0015>]{minitoc}% + \mtcPackageWarning[W0015]{minitoc}% {No file #1 \MessageBreak SECTLOTS NOT PREPARED}% \expandafter\SLT@lot \else - \mtcPackageInfo[<I0039>]{minitoc}% + \mtcPackageInfo[I0039]{minitoc}% {PREPARING SECTLOTS FROM #1}% \expandafter\SLT@read\fi} \def\SLT@read{% @@ -2536,7 +2558,7 @@ }% \if@mtc@hints@ \@mtc@hints@given@true - \mtcPackageInfo[<I0048>]{minitoc(hints)}% + \mtcPackageInfo[I0048]{minitoc(hints)}% {Using \string\mtcprepare\space may induce some \MessageBreak hints about the preparation commands, @@ -2656,7 +2678,7 @@ \expandafter\ifx\csname mtc@typetable@#1\endcsname\relax \@mtc@setfont@false \def\mtc@mta@abbrev{X} - \mtcPackageError[<E0013>]{minitoc}% + \mtcPackageError[E0013]{minitoc}% {\string\mtcsetfont \space has a wrong first argument \MessageBreak (#1). @@ -2674,7 +2696,7 @@ \expandafter\ifx\csname mtc@sectlevel@#2\endcsname\relax \@mtc@setfont@false \def\mtc@level@abbrev{X} - \mtcPackageError[<E0014>]{minitoc}% + \mtcPackageError[E0014]{minitoc}% {\string\mtcsetfont \space has a wrong second argument \MessageBreak (#2). @@ -2700,6 +2722,7 @@ \def\sectlot@mtcqk{sectlot@mtcqk} \def\part@mtcqk{part@mtcqk} \def\chapter@mtcqk{chapter@mtcqk} +\def\appendix@mtcqk{appendix@mtcqk} \def\section@mtcqk{section@mtcqk} \def\subsection@mtcqk{subsection@mtcqk} \def\subsubsection@mtcqk{subsubsection@mtcqk} @@ -2727,6 +2750,7 @@ \expandafter\ifx\csname #1@mtcqk\endcsname\minitoc@mtcqk\relax \expandafter\ifx\csname #2@mtcqk\endcsname\part@mtcqk\relax\@mtc@setfont@false\fi \expandafter\ifx\csname #2@mtcqk\endcsname\chapter@mtcqk\relax\@mtc@setfont@false\fi + \expandafter\ifx\csname #2@mtcqk\endcsname\appendix@mtcqk\relax\@mtc@setfont@false\fi \expandafter\ifx\csname #2@mtcqk\endcsname\figure@mtcqk\relax\@mtc@setfont@false\fi \expandafter\ifx\csname #2@mtcqk\endcsname\subfigure@mtcqk\relax\@mtc@setfont@false\fi \expandafter\ifx\csname #2@mtcqk\endcsname\table@mtcqk\relax\@mtc@setfont@false\fi @@ -2735,18 +2759,21 @@ \expandafter\ifx\csname #1@mtcqk\endcsname\minilof@mtcqk\relax \expandafter\ifx\csname #2@mtcqk\endcsname\part@mtcqk\relax\@mtc@setfont@false\fi \expandafter\ifx\csname #2@mtcqk\endcsname\chapter@mtcqk\relax\@mtc@setfont@false\fi + \expandafter\ifx\csname #2@mtcqk\endcsname\appendix@mtcqk\relax\@mtc@setfont@false\fi \expandafter\ifx\csname #2@mtcqk\endcsname\table@mtcqk\relax\@mtc@setfont@false\fi \expandafter\ifx\csname #2@mtcqk\endcsname\subtable@mtcqk\relax\@mtc@setfont@false\fi \fi \expandafter\ifx\csname #1@mtcqk\endcsname\minilot@mtcqk\relax \expandafter\ifx\csname #2@mtcqk\endcsname\part@mtcqk\relax\@mtc@setfont@false\fi \expandafter\ifx\csname #2@mtcqk\endcsname\chapter@mtcqk\relax\@mtc@setfont@false\fi + \expandafter\ifx\csname #2@mtcqk\endcsname\appendix@mtcqk\relax\@mtc@setfont@false\fi \expandafter\ifx\csname #2@mtcqk\endcsname\figure@mtcqk\relax\@mtc@setfont@false\fi \expandafter\ifx\csname #2@mtcqk\endcsname\subfigure@mtcqk\relax\@mtc@setfont@false\fi \fi \expandafter\ifx\csname #1@mtcqk\endcsname\secttoc@mtcqk\relax \expandafter\ifx\csname #2@mtcqk\endcsname\part@mtcqk\relax\@mtc@setfont@false\fi \expandafter\ifx\csname #2@mtcqk\endcsname\chapter@mtcqk\relax\@mtc@setfont@false\fi + \expandafter\ifx\csname #2@mtcqk\endcsname\appendix@mtcqk\relax\@mtc@setfont@false\fi \expandafter\ifx\csname #2@mtcqk\endcsname\section@mtcqk\relax\@mtc@setfont@false\fi \expandafter\ifx\csname #2@mtcqk\endcsname\figure@mtcqk\relax\@mtc@setfont@false\fi \expandafter\ifx\csname #2@mtcqk\endcsname\subfigure@mtcqk\relax\@mtc@setfont@false\fi @@ -2756,6 +2783,7 @@ \expandafter\ifx\csname #1@mtcqk\endcsname\sectlof@mtcqk\relax \expandafter\ifx\csname #2@mtcqk\endcsname\part@mtcqk\relax\@mtc@setfont@false\fi \expandafter\ifx\csname #2@mtcqk\endcsname\chapter@mtcqk\relax\@mtc@setfont@false\fi + \expandafter\ifx\csname #2@mtcqk\endcsname\appendix@mtcqk\relax\@mtc@setfont@false\fi \expandafter\ifx\csname #2@mtcqk\endcsname\section@mtcqk\relax\@mtc@setfont@false\fi \expandafter\ifx\csname #2@mtcqk\endcsname\table@mtcqk\relax\@mtc@setfont@false\fi \expandafter\ifx\csname #2@mtcqk\endcsname\subtable@mtcqk\relax\@mtc@setfont@false\fi @@ -2763,6 +2791,7 @@ \expandafter\ifx\csname #1@mtcqk\endcsname\sectlot@mtcqk\relax \expandafter\ifx\csname #2@mtcqk\endcsname\part@mtcqk\relax\@mtc@setfont@false\fi \expandafter\ifx\csname #2@mtcqk\endcsname\chapter@mtcqk\relax\@mtc@setfont@false\fi + \expandafter\ifx\csname #2@mtcqk\endcsname\appendix@mtcqk\relax\@mtc@setfont@false\fi \expandafter\ifx\csname #2@mtcqk\endcsname\section@mtcqk\relax\@mtc@setfont@false\fi \expandafter\ifx\csname #2@mtcqk\endcsname\figure@mtcqk\relax\@mtc@setfont@false\fi \expandafter\ifx\csname #2@mtcqk\endcsname\subfigure@mtcqk\relax\@mtc@setfont@false\fi @@ -2770,13 +2799,13 @@ \if@mtc@setfont@ \def\mtc@tmp@name{\mtc@mta@abbrev\mtc@level@abbrev font} \mtc@toks{#3} - \mtcPackageInfo[<I0015>]{minitoc}% + \mtcPackageInfo[I0015]{minitoc}% {\string\mtcsetfont\space redefines the macro \MessageBreak - "\mtc@tmp@name" as "\the\mtc@toks"} - \expandafter\def\csname\mtc@tmp@name\endcsname{#3} + "\mtc@tmp@name" as "\the\mtc@toks"}% + \expandafter\edef\csname\mtc@tmp@name\endcsname{\the\mtc@toks}% \else - \mtcPackageError[<E0024>]{minitoc}% + \mtcPackageError[E0024]{minitoc}% {The macro \string\mtcsetfont\space has incompatible \MessageBreak first (#1) and second (#2) arguments}% @@ -2791,7 +2820,7 @@ \expandafter\ifx\csname mtc@typetitle@#1\endcsname\relax \@mtc@settitlefont@false \def\mtc@mtatf@abbrev{X} - \mtcPackageError[<E0022>]{minitoc}% + \mtcPackageError[E0022]{minitoc}% {\string\mtcsettitlefont \space has a wrong first argument \MessageBreak (#1). @@ -2807,16 +2836,16 @@ \fi \if@mtc@settitlefont@ \def\mtc@tmptf@name{\mtc@mtatf@abbrev font} - \mtc@toks{#2} - \mtcPackageInfo[<I0018>]{minitoc}% + \mtc@toks{#2}% + \mtcPackageInfo[I0018]{minitoc}% {\string\mtcsettitlefont\space redefines the macro \MessageBreak "\mtc@tmptf@name" as \MessageBreak - "\the\mtc@toks"} - \expandafter\def\csname\mtc@tmptf@name\endcsname{#2} + "\the\mtc@toks"}% + \expandafter\edef\csname\mtc@tmptf@name\endcsname{\the\mtc@toks}% \else - \mtcPackageError[<E0034>]{minitoc}% + \mtcPackageError[E0034]{minitoc}% {The macro \string\\mtcsettitlefont\space uses \MessageBreak an illegal type of table (#1)}% @@ -2832,7 +2861,7 @@ \expandafter\ifx\csname mtc@typetable@#1\endcsname\relax \@mtc@settitle@false \def\mtc@mtati@abbrev{X} - \mtcPackageError[<E0021>]{minitoc}% + \mtcPackageError[E0021]{minitoc}% {\string\mtcsettitle \space has a wrong first argument \MessageBreak (#1). @@ -2847,17 +2876,17 @@ \edef\mtc@mtati@abbrev{\@nameuse{mtc@typetable@#1}} \fi \if@mtc@settitle@ - \def\mtc@tmpti@name{\mtc@mtati@abbrev title} - \mtc@toks{#2} - \mtcPackageInfo[<I0017>]{minitoc}% + \def\mtc@tmpti@name{\mtc@mtati@abbrev title}% + \mtc@toks{#2}% + \mtcPackageInfo[I0017]{minitoc}% {\string\mtcsettitle\space redefines the macro \MessageBreak "\mtc@tmpti@name" as \MessageBreak - "\the\mtc@toks"} - \expandafter\def\csname\mtc@tmpti@name\endcsname{#2} + "\the\mtc@toks"}% + \expandafter\edef\csname\mtc@tmpti@name\endcsname{\the\mtc@toks}% \else - \mtcPackageError[<E0033>]{minitoc}% + \mtcPackageError[E0033]{minitoc}% {The macro \string\mtcsettitle\space uses \MessageBreak an illegal type of table (#1)}% @@ -2902,7 +2931,7 @@ \@ifundefined{pltdotsep}{\let\pltdotsep\@dotsep}{}% \@ifundefined{mltdotsep}{\let\mltdotsep\@dotsep}{}% \@ifundefined{sltdotsep}{\let\sltdotsep\@dotsep}{}% -} +}% \def\ptc@setform{% \let\@pnumwidth\ptcpnumwidth\relax \let\@tocrmarg\ptctocrmarg\relax @@ -2956,7 +2985,7 @@ \expandafter\ifx\csname mtc@typetable@#1\endcsname\relax \@mtc@setformat@false \def\mtc@mtf@abbrev{X} - \mtcPackageError[<E0015>]{minitoc}% + \mtcPackageError[E0015]{minitoc}% {\string\mtcsetformat \space has a wrong first argument \MessageBreak (#1). @@ -2967,13 +2996,12 @@ {Correct the source code. \MessageBreak Type <return> and rerun LaTeX} -\else - \edef\mtc@mtf@abbrev{\@nameuse{mtc@typetable@#1}} +\else \edef\mtc@mtf@abbrev{\@nameuse{mtc@typetable@#1}} \fi \expandafter\ifx\csname mtc@formatparam@#2\endcsname\relax \@mtc@setformat@false \def\mtc@fparam@abbrev{X} - \mtcPackageError[<E0016>]{minitoc}% + \mtcPackageError[E0016]{minitoc}% {\string\mtcsetformat \space has a wrong second argument \MessageBreak (#2). @@ -2983,25 +3011,26 @@ pagenumwidth, tocrightmargin, dotinterval}% {Correct the source code. \MessageBreak - Type <return> and rerun LaTeX} + Type <return> and rerun LaTeX}% \else - \edef\mtc@fparam@abbrev{\@nameuse{mtc@formatparam@#2}} + \edef\mtc@fparam@abbrev{\@nameuse{mtc@formatparam@#2}}% \fi \if@mtc@setformat@ - \def\mtc@tmpfm@name{\mtc@mtf@abbrev\mtc@fparam@abbrev} - \mtcPackageInfo[<I0016>]{minitoc}% + \mtc@toks{#3}% + \def\mtc@tmpfm@name{\mtc@mtf@abbrev\mtc@fparam@abbrev}% + \mtcPackageInfo[I0016]{minitoc}% {\string\mtcsetformat\space redefines the macro \MessageBreak - "\mtc@tmpfm@name" as "\string#3"} - \expandafter\def\csname\mtc@tmpfm@name\endcsname{#3} + "\mtc@tmpfm@name" as "\the\mtc@toks"} + \expandafter\edef\csname\mtc@tmpfm@name\endcsname{\the\mtc@toks}% \else - \mtcPackageError[<E0025>]{minitoc}% + \mtcPackageError[E0025]{minitoc}% {The macro \string\mtcsetformat\space has incompatible \MessageBreak first (#1) and second (#2) arguments}% {Correct the source code. \MessageBreak - Type <return> and rerun LaTeX} + Type <return> and rerun LaTeX}% \fi } \newif\if@mtc@setpagenumbers@ \@mtc@setpagenumbers@false @@ -3032,7 +3061,7 @@ \@mtc@setpagenumbers@false \def\mtc@pnsw@abbrev{X} \def\mtc@mttpn@abbrev{X} - \mtcPackageError[<E0017>]{minitoc}% + \mtcPackageError[E0017]{minitoc}% {\string\mtcsetpagenumbers \space has a wrong first \MessageBreak argument (#1)}% @@ -3053,7 +3082,7 @@ \def\mtc@mttpn@abbrev{X} \@mtc@setpagenumbers@false \def\mtc@mttpn@abbrev{X} - \mtcPackageError[<E0018>]{minitoc}% + \mtcPackageError[E0018]{minitoc}% {\string\mtcsetpagenumbers \space has a wrong second \MessageBreak argument (#2)}% @@ -3068,12 +3097,12 @@ \def\mtc@noX{mtc@noX} \def\mtc@tmppn@name{\mtc@pnsw@abbrev\mtc@mttpn@abbrev pagenumbers} \expandafter\ifx\csname mtc@\mtc@pnsw@abbrev X\endcsname\mtc@noX - \mtcPackageInfo[<I0022>]{minitoc}% + \mtcPackageInfo[I0022]{minitoc}% {Page numbers are inhibited \MessageBreak for the #1s} \else - \mtcPackageInfo[<I0021>]{minitoc}% + \mtcPackageInfo[I0021]{minitoc}% {Page numbers are activated \MessageBreak for the #1s} \fi @@ -3108,7 +3137,7 @@ \@mtc@setrules@false \def\mtc@rusw@abbrev{X} \def\mtc@mttru@abbrev{X} - \mtcPackageError[<E0019>]{minitoc}% + \mtcPackageError[E0019]{minitoc}% {\string\mtcsetrules \space has a wrong first argument \MessageBreak (#1)}% @@ -3128,7 +3157,7 @@ \def\mtc@rusw@abbrev{X} \def\mtc@mttru@abbrev{X} \@mtc@setrules@false - \mtcPackageError[<E0020>]{minitoc}% + \mtcPackageError[E0020]{minitoc}% {\string\mtcsetrules \space has a wrong second argument \MessageBreak (#2)}% @@ -3143,12 +3172,12 @@ \def\mtc@noX{mtc@noX} \def\mtc@tmppn@name{\mtc@rusw@abbrev\mtc@mttru@abbrev rule} \expandafter\ifx\csname mtc@\mtc@rusw@abbrev X\endcsname\mtc@noX - \mtcPackageInfo[<I0008>]{minitoc}% + \mtcPackageInfo[I0008]{minitoc}% {Horizontal rules are inhibited \MessageBreak for the #1s} \else - \mtcPackageInfo[<I0007>]{minitoc}% + \mtcPackageInfo[I0007]{minitoc}% {Horizontal rules are activated \MessageBreak for the #1s} @@ -3169,10 +3198,16 @@ \def\mtc@featureparam@before{before} \@namedef{mtc@featureparam@after}{after}% \def\mtc@featureparam@after{after} +\@namedef{mtc@featureparam@open}{open}% + \def\mtc@featureparam@open{open} +\@namedef{mtc@featureparam@close}{close}% + \def\mtc@featureparam@close{close} \@namedef{mtc@featureparam@pagestyle}{thispage}% \def\mtc@featureparam@pagestyle{thispage} \@namedef{mtc@ft3@before}{}\expandafter\def\csname mtc@ft3@before\endcsname{} \@namedef{mtc@ft3@after}{}\expandafter\def\csname mtc@ft3@after\endcsname{} +\@namedef{mtc@ft3@open}{}\expandafter\def\csname mtc@ft3@open\endcsname{} +\@namedef{mtc@ft3@close}{}\expandafter\def\csname mtc@ft3@close\endcsname{} \@namedef{mtc@ft3@pagestyle}{style}% \expandafter\def\csname mtc@ft3@pagestyle\endcsname{style} \newif\if@mtc@setfeature@\@mtc@setfeature@true @@ -3183,7 +3218,7 @@ \expandafter\ifx\csname mtc@ltypetable@#1\endcsname\relax \@mtc@setfeature@false \def\mtc@mtfeat@abbrev{X} - \mtcPackageError[<E0011>]{minitoc}% + \mtcPackageError[E0011]{minitoc}% {\string\mtcsetfeature \space has a wrong first argument \MessageBreak (#1). @@ -3201,14 +3236,14 @@ \@mtc@setfeature@false \def\mtc@featparam@abbrev{X} \def\mtc@featparam@third{X} - \mtcPackageError[<E0012>]{minitoc}% + \mtcPackageError[E0012]{minitoc}% {\string\mtcsetfeature \space has a wrong second argument \MessageBreak (#2). \MessageBreak It should be a feature param \MessageBreak - (before, after, pagestyle)}% + (before, after, open, close, pagestyle)}% {Correct the source code. \MessageBreak Type <return> and rerun LaTeX} @@ -3218,16 +3253,17 @@ \fi \if@mtc@setfeature@ \def\mtc@tmpfeat@name% - {\mtc@featparam@abbrev\mtc@mtfeat@abbrev\mtc@featparam@third} - \mtcPackageInfo[<I0014>]{minitoc}% + {\mtc@featparam@abbrev\mtc@mtfeat@abbrev\mtc@featparam@third}% + \mtc@toks{#3}% + \mtcPackageInfo[I0014]{minitoc}% {\string\mtcsetfeature\space redefines the macro \MessageBreak "\csname mtc@tmpfeat@name\endcsname" as \MessageBreak - "\string#3"} - \expandafter\def\csname\mtc@tmpfeat@name\endcsname{#3} + "\the\mtc@toks"}% + \expandafter\edef\csname\mtc@tmpfeat@name\endcsname{\the\mtc@toks}% \else - \mtcPackageError[<E0023>]{minitoc}% + \mtcPackageError[E0023]{minitoc}% {The macro \string\mtcsetfeature\space has incompatible \MessageBreak first (#1) and second (#2) arguments}% @@ -3242,7 +3278,7 @@ \expandafter\ifx\csname mtc@ltypetable@#1\endcsname\relax \@mtc@setdepth@false \def\mtc@mtade@abbrev{X} - \mtcPackageError[<E0009>]{minitoc}% + \mtcPackageError[E0009]{minitoc}% {\string\mtcsetdepth \space has a wrong first argument \MessageBreak (#1). @@ -3259,7 +3295,7 @@ \if@mtc@setdepth@ \def\mtc@tmpde@name{\mtc@mtade@abbrev depth} \expandafter\noexpand\@ifundefined{c@\mtc@mtade@abbrev depth}% - {\mtcPackageError[<E0008>]{minitoc}% + {\mtcPackageError[E0008]{minitoc}% {\string\mtcsetdepth \space attempts to use \MessageBreak an undefined counter (#1depth).}% @@ -3267,29 +3303,73 @@ \MessageBreak Type <return> and rerun LaTeX}}{% \mtc@toks{#2} % trick for explicit message using \the. - \mtcPackageInfo[<I0013>]{minitoc}% + \mtcPackageInfo[I0013]{minitoc}% {\string\mtcsetdepth\space redefines the counter \MessageBreak "\mtc@tmpde@name" as "\the\mtc@toks"}% \expandafter\csname c@\mtc@tmpde@name\endcsname=#2}% \else - \mtcPackageError[<E0010>]{minitoc}% + \mtcPackageError[E0010]{minitoc}% {\string\mtcsetdepth:\space Illegal type of table (#1)}% {Correct the source code. \MessageBreak - Type <return> and rerun LaTeX}{\relax} + Type <return> and rerun LaTeX}{\relax}% \fi}% end of \mtcsetdepth +\newif\if@mtc@setoffset@\@mtc@setoffset@true +\newcommand{\mtcsetoffset}[2]{% +\def\mtc@mtaof@abbrev{X} +\@mtc@setoffset@true +\expandafter\ifx\csname mtc@typetable@#1\endcsname\relax + \@mtc@setoffset@false + \def\mtc@mtaof@abbrev{X} + \mtcPackageError[E0042]{minitoc}% + {\string\mtcsetoffset \space has a wrong first argument + \MessageBreak + (#1). + \MessageBreak + It should be a mini-table type + \MessageBreak + (parttoc...sectlot)}% + {Correct the source code. + \MessageBreak + Type <return> and rerun LaTeX} +\else + \edef\mtc@mtaof@abbrev{\@nameuse{mtc@typetable@#1}} +\fi +\if@mtc@setoffset@ + \def\mtc@tmpof@name{\mtc@mtaof@abbrev offset.} + \expandafter\noexpand\@ifundefined{\mtc@mtaof@abbrev offset}% + {\mtcPackageError[E0041]{minitoc}% + {\string\mtcsetoffset \space attempts to use + \MessageBreak + an undefined offset (\mtc@mtaof@abbrev offset).}% + {Correct the source code. + \MessageBreak + Type <return> and rerun LaTeX}}{% + \mtc@toks{#2} % trick for explicit message using \the. + \mtcPackageInfo[I0052]{minitoc}% + {\string\mtcsetoffset\space redefines + \MessageBreak + "\mtc@mtaof@abbrev offset" as "\the\mtc@toks"}% + \expandafter\def\csname \mtc@mtaof@abbrev offset\endcsname{#2}}% +\else + \mtcPackageError[E0043]{minitoc}% + {\string\mtcsetoffset:\space Illegal type of table (#1)}% + {Correct the source code. + \MessageBreak + Type <return> and rerun LaTeX}{\relax}% +\fi}% end of \mtcsetoffset \newif\if@mtc@Himtoc@ \@mtc@Himtoc@false \newcommand{\mtc@savetocdepth}{\xdef\mtc@sv@tocdepth{\arabic{tocdepth}}}% \newcommand{\mtc@restoretocdepth}{\setcounter{tocdepth}{\mtc@sv@tocdepth}}% \newenvironment{mtchideinmaintoc}[1][-1]% -{\if@mtc@Himtoc@\mtcPackageError[<E0005>]{minitoc}% +{\if@mtc@Himtoc@\mtcPackageError[E0005]{minitoc}% {Imbrication of mtchideinmaintoc environments}% {The hiding in main ToC could be incorrect}\fi \global\@mtc@Himtoc@true \addtocontents{toc}{\protect\mtc@savetocdepth}% \addtocontents{toc}{\protect\setcounter{tocdepth}{#1}}}% -{\if@mtc@Himtoc@\else\mtcPackageError[<E0031>]{minitoc}% +{\if@mtc@Himtoc@\else\mtcPackageError[E0031]{minitoc}% {Unbalanced mtchideinmaintoc environment}% {The hiding in main ToC could be incorrect}\fi \global\@mtc@Himtoc@false @@ -3298,7 +3378,7 @@ \AtBeginDocument{% \@ifundefined{c@lofdepth}{% \newenvironment{mtchideinmainlof}[1][-1]% - {\if@mtc@Himlof@\mtcPackageError[<E0003>]{minitoc}% + {\if@mtc@Himlof@\mtcPackageError[E0003]{minitoc}% {Imbrication of mtchideinmainlof environments}% {The hiding in main LoF could be incorrect}\fi \global\@mtc@Himlof@true @@ -3306,7 +3386,7 @@ \def\mtc@sv@lofdepth{\arabic{tocdepth}}% \addtocontents{lof}{\protect\mtc@savetocdepth}% \addtocontents{lof}{\protect\setcounter{tocdepth}{#1}}}% - {\if@mtc@Himlof@\else\mtcPackageError[<E0029>]{minitoc}% + {\if@mtc@Himlof@\else\mtcPackageError[E0029]{minitoc}% {Unbalanced mtchideinmainlof environment}% {The hiding in main LoF could be incorrect}\fi \global\@mtc@Himtoc@false @@ -3316,13 +3396,13 @@ \newcommand{\mtc@savelofdepth}{\xdef{\mtc@sv@lofdepth{\arabic{lofdepth}}}}% \newcommand{\mtc@restorelofdepth}{\setcounter{lofdepth}{\mtc@sv@lofdepth}}% \newenvironment{mtchideinmainlof}[1][-1]% - {\if@mtc@Himlof@\mtcPackageError[<E0003>]{minitoc}% + {\if@mtc@Himlof@\mtcPackageError[E0003]{minitoc}% {Imbrication of mtchideinmainlof environments}% {The hiding in main LoF could be incorrect}\fi \global\@mtc@Himlof@true \addtocontents{lof}{\protect\mtc@savelofdepth}% \addtocontents{lof}{\protect\setcounter{tocdepth}{#1}}}% - {\if@mtc@Himlof@\else\mtcPackageError[<E0029>]{minitoc}% + {\if@mtc@Himlof@\else\mtcPackageError[E0029]{minitoc}% {Unbalanced mtchideinmainlof environment}% {The hiding in main LoF could be incorrect}\fi \global\@mtc@Himlof@false @@ -3331,7 +3411,7 @@ \AtBeginDocument{% \@ifundefined{c@lotdepth}{% \newenvironment{mtchideinmainlot}[1][-1]% - {\if@mtc@Himlot@\mtcPackageError[<E0004>]{minitoc}% + {\if@mtc@Himlot@\mtcPackageError[E0004]{minitoc}% {Imbrication of mtchideinmainlot environments}% {The hiding in main LoT could be incorrect}\fi \global\@mtc@Himlot@true @@ -3339,7 +3419,7 @@ \def\mtc@sv@lotdepth{\arabic{tocdepth}}% \addtocontents{lot}{\protect\mtc@savetocdepth}% \addtocontents{lot}{\protect\setcounter{tocdepth}{#1}}}% - {\if@mtc@Himlot@\else\mtcPackageError[<E0030>]{minitoc}% + {\if@mtc@Himlot@\else\mtcPackageError[E0030]{minitoc}% {Unbalanced mtchideinmainlot environment}% {The hiding in main LoT could be incorrect}\fi \global\@mtc@Himlot@false @@ -3349,30 +3429,30 @@ \newcommand{\mtc@savelotdepth}{\xdef{\mtc@sv@lotdepth{\arabic{lotdepth}}}}% \newcommand{\mtc@restorelotdepth}{\setcounter{lotdepth}{\mtc@sv@lotdepth}}% \newenvironment{mtchideinmainlot}[1][-1]% - {\if@mtc@Himlot@\mtcPackageError[<E0004>]{minitoc}% + {\if@mtc@Himlot@\mtcPackageError[E0004]{minitoc}% {Imbrication of mtchideinmainlot environments}% {The hiding in main LoT could be incorrect}\fi \global\@mtc@Himlot@true \addtocontents{lot}{\protect\mtc@savelotdepth}% \addtocontents{lot}{\protect\setcounter{lotdepth}{#1}}}% - {\if@mtc@Himlot@\else\mtcPackageError[<E0030>]{minitoc}% + {\if@mtc@Himlot@\else\mtcPackageError[E0030]{minitoc}% {Unbalanced mtchideinmainlot environment}% {The hiding in main LoT could be incorrect}\fi \global\@mtc@Himlot@false \addtocontents{lot}{\protect\mtc@restorelotdepth}}}} \@ifundefined{chapter}{% \@ifundefined{section}% - {\mtcPackageWarningNoLine[<W0001>]{minitoc}% + {\mtcPackageWarningNoLine[W0001]{minitoc}% {\string\chapter\space and \string\section\space are undefined.% \MessageBreak Cannot use \string\mtcfixglossary \space without \MessageBreak optional argument [part]}% \@ifundefined{part}% - {\mtcPackageError[<E0001>]{minitoc}% + {\mtcPackageError[E0001]{minitoc}% {But \string\part\space is undefined}% {\string\mtcfixglossary\space not usable}}% - {\mtcPackageWarningNoLine[<W0006>]{minitoc}% + {\mtcPackageWarningNoLine[W0006]{minitoc}% {\string\mtcfixglossary\space can only be used \MessageBreak with the [part] optional argument, @@ -3396,7 +3476,7 @@ \addcontentsline{lot}{x\mtc@glofix@level}{}% \csname mtcadd\mtc@glofix@level\endcsname\relax \else - \mtcPackageError[<E0026>]{minitoc}% + \mtcPackageError[E0026]{minitoc}% {The optional argument of \string\mtcfixglossary \MessageBreak is wrong}% @@ -3405,17 +3485,17 @@ }% \@ifundefined{chapter}{% \@ifundefined{section}% - {\mtcPackageWarningNoLine[<W0002>]{minitoc}% + {\mtcPackageWarningNoLine[W0002]{minitoc}% {\string\chapter\space and \string\section\space are undefined.% \MessageBreak Cannot use \string\mtcfixindex \space without \MessageBreak optional argument [part]}% \@ifundefined{part}% - {\mtcPackageError[<E0002>]{minitoc}% + {\mtcPackageError[E0002]{minitoc}% {But \string\part\space is undefined}% {\string\mtcfixindex\space not usable}}% - {\mtcPackageWarningNoLine[<W0007>]{minitoc}% + {\mtcPackageWarningNoLine[W0007]{minitoc}% {\string\mtcfixindex\space can only be used with \MessageBreak the [part] optional argument, @@ -3439,21 +3519,64 @@ \addcontentsline{lot}{x\mtc@ixfix@level}{}% \csname mtcadd\mtc@ixfix@level\endcsname\relax \else - \mtcPackageError[<E0027>]{minitoc}% + \mtcPackageError[E0027]{minitoc}% {The optional argument of \string\mtcfixindex \MessageBreak is wrong}% {It must be omitted (\mtc@ixfix@level), or be part, chapter or section}% \fi }% +\@ifundefined{chapter}{% + \@ifundefined{section}% + {\mtcPackageWarningNoLine[W0095]{minitoc}% + {\string\chapter\space and \string\section\space are undefined.% + \MessageBreak + Cannot use \string\mtcfixnomenclature \space without + \MessageBreak + optional argument [part]}% + \@ifundefined{part}% + {\mtcPackageError[E0039]{minitoc}% + {But \string\part\space is undefined}% + {\string\mtcfixnomclature\space not usable}}% + {\mtcPackageWarningNoLine[W0096]{minitoc}% + {\string\mtcfixnomenclature\space can only be used with + \MessageBreak + the [part] optional argument, + \MessageBreak + which becomes the default}% + \def\mtc@nomenclfix@level{part}% + }}% + {\def\mtc@nomenclfix@level{section}}}% +{\def\mtc@nomenclfix@level{chapter}} +\newif\if@mtcfixnomenclature@ \@mtcfixnomenclature@false +\newcommand{\mtcfixnomenclature}[1][\mtc@nomenclfix@level]{% + \@mtcfixnomenclature@false + \expandafter% + \ifx\csname #1\endcsname\part\relax\@mtcfixnomenclature@true\fi + \expandafter% + \ifx\csname #1\endcsname\chapter\relax\@mtcfixnomenclature@true\fi + \expandafter% + \ifx\csname #1\endcsname\section\relax\@mtcfixnomenclature@true\fi + \if@mtcfixnomenclature@ + \addcontentsline{lof}{x\mtc@nomenclfix@level}{}% + \addcontentsline{lot}{x\mtc@nomenclfix@level}{}% + \csname mtcadd\mtc@nomenclfix@level\endcsname\relax + \else + \mtcPackageError[E0040]{minitoc}% + {The optional argument of \string\mtcfixnomenclature + \MessageBreak + is wrong}% + {It must be omitted (\mtc@nomenclfix@level), or be part, chapter or section}% + \fi +}% \newif\if@mtc@insellang@ \@mtc@insellang@false \def\mtcselectlanguage#1{% \@mtc@insellang@true \InputIfFileExists{#1.mld}% - {\mtcPackageInfo[<I0010>]{minitoc}{The #1 language is selected.% + {\mtcPackageInfo[I0010]{minitoc}{The #1 language is selected.% \MessageBreak }}% - {\mtcPackageError[<E0006>]{minitoc}% + {\mtcPackageError[E0006]{minitoc}% {#1 is not a known language, \MessageBreak #1.mld not found. @@ -3469,10 +3592,10 @@ \def\mtcloadmlo#1{% \if@mtc@insellang@ \InputIfFileExists{#1.mlo}% - {\mtcPackageInfo[<I0011>]{minitoc}% + {\mtcPackageInfo[I0011]{minitoc}% {#1 minitoc language object selected. \MessageBreak}}% - {\mtcPackageError[<E0007>]{minitoc}% + {\mtcPackageError[E0007]{minitoc}% {#1 is not a known minitoc \MessageBreak language object file (.mlo), @@ -3486,7 +3609,7 @@ \MessageBreak Press RETURN}}% \else - \mtcPackageError[<E0032>]{minitoc}% + \mtcPackageError[E0032]{minitoc}% {You are using the \string\mtcloadmlo\space command \MessageBreak outside of a .mld file}% @@ -3512,12 +3635,12 @@ \DeclareOption{notoccite}{\@mtc@notoccite@true} \DeclareOption{shortext}{% \@longextensions@false - \mtcPackageWarningNoLine[<W0020>]{minitoc}% + \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}{% - \mtcPackageError[<E0035>]{minitoc}% + \mtcPackageError[E0035]{minitoc}% {You have used the `insection' option in \MessageBreak a document where chapters are defined. @@ -3546,7 +3669,7 @@ {\DeclareOption{#1}{\mtcselectlanguage{#1}}}% {\@mtc@misslangtrue \mtc@addmisslanguage{#1.mld} - \mtcPackageInfo[<I0050>]{minitoc}% + \mtcPackageInfo[I0050]{minitoc}% {The required "#1.mld" file is missing. \MessageBreak The "#1" language option @@ -3562,7 +3685,7 @@ {\mtc@setlangopt{#1}}% {\@mtc@misslangtrue \mtc@addmisslanguage{#1.mlo} - \mtcPackageInfo[<I0051>]{minitoc}% + \mtcPackageInfo[I0051]{minitoc}% {The required "#1.mlo" file is missing. \MessageBreak The "#1" language option @@ -3575,7 +3698,7 @@ \IfFileExists{#1.mld}{}% {\@mtc@misslangtrue \mtc@addmisslanguage{#1.mld} - \mtcPackageInfo[<I0050>]{minitoc}% + \mtcPackageInfo[I0050]{minitoc}% {The required "#1.mld" file is missing. \MessageBreak The "#1" language option will not be available. @@ -3591,7 +3714,7 @@ {\DeclareOption{#1}{\mtcselectlanguage{#1}}}% {\@mtc@misslangtrue \mtc@addmisslanguage{#1.mld} - \mtcPackageError[<E0038>]{minitoc}% + \mtcPackageError[E0038]{minitoc}% {Your minitoc installation is incomplete. \MessageBreak A mandatory minitoc language object file, @@ -3618,7 +3741,7 @@ }}% \AtEndDocument{% \if@mtc@misslang - \mtcPackageWarningNoLine[<W0093>]{minitoc}% + \mtcPackageWarningNoLine[W0093]{minitoc}% {Some "*.mld" or "*.mlo" files are missing \MessageBreak in your installation. @@ -3632,7 +3755,7 @@ a recent distribution \MessageBreak or from the CTAN archives}% - \mtcPackageWarningNoLine[<W0094>]{minitoc}% + \mtcPackageWarningNoLine[W0094]{minitoc}% {Missing minitoc language file(s)\string: \MessageBreak \mtc@listmisslanguages\@gobblethree}% @@ -3673,14 +3796,14 @@ \mtc@setlangopt{castillan}% \mtc@setlangopt{castillian}% \mtc@setlangopt{catalan}% -\mtc@setlangopto{chinese1}% % .mlo -\mtc@setlangopto{chinese2}% % .mlo +\mtc@setlangopto{chinese1}% +\mtc@setlangopto{chinese2}% \mtc@setlangopt{croatian}% \mtc@setlangopt{czech}% \mtc@setlangopt{danish}% \mtc@setlangopt{devanagari}% \mtc@setlangopt{dutch}% -\mtc@setlangoptm{english}% % mandatory +\mtc@setlangoptm{english}% \mtc@setlangopt{english1}% \mtc@setlangopt{english2}% \mtc@setlangopt{esperant}% @@ -3689,8 +3812,8 @@ \mtc@setlangopt{ethiopia}% \mtc@setlangopt{ethiopian}% \mtc@setlangopt{ethiopian2}% -\mtc@setlangopto{farsi1}% % .mlo -\mtc@setlangopto{farsi2}% % .mlo +\mtc@setlangopto{farsi1}% +\mtc@setlangopto{farsi2}% \mtc@setlangopt{farsi3}% \mtc@setlangopt{finnish}% \mtc@setlangopt{finnish2}% @@ -3710,14 +3833,14 @@ \mtc@setlangopt{greek-polydemo}% \mtc@setlangopt{greek-polykatha}% \mtc@setlangopt{guarani}% -\mtc@setlangopto{hangul1}% % .mlo -\mtc@setlangopto{hangul2}% % .mlo -\mtc@setlangopto{hangul3}% % .mlo -\mtc@setlangopto{hangul4}% % .mlo -\mtc@setlangopto{hangul-u8}% % .mlo -\mtc@setlangopto{hanja1}% % .mlo -\mtc@setlangopto{hanja2}% % .mlo -\mtc@setlangopto{hanja-u8}% % .mlo +\mtc@setlangopto{hangul1}% +\mtc@setlangopto{hangul2}% +\mtc@setlangopto{hangul3}% +\mtc@setlangopto{hangul4}% +\mtc@setlangopto{hangul-u8}% +\mtc@setlangopto{hanja1}% +\mtc@setlangopto{hanja2}% +\mtc@setlangopto{hanja-u8}% \mtc@setlangopt{hebrew}% \mtc@setlangopt{hebrew2}% \mtc@setlangopt{hindi}% @@ -3730,19 +3853,24 @@ \mtc@setlangopt{irish}% \mtc@setlangopt{italian}% \mtc@setlangopt{italian2}% -\mtc@setlangopto{japanese}% % .mlo -\mtc@setlangopto{japanese2}% % .mlo -\mtc@setlangopto{japanese3}% % .mlo -\mtc@setlangopto{japanese4}% % .mlo -\mtc@setlangopto{japanese5}% % .mlo -\mtc@setlangopto{japanese6}% % .mlo +\mtc@setlangopto{japanese}% +\mtc@setlangopto{japanese2}% +\mtc@setlangopto{japanese3}% +\mtc@setlangopto{japanese4}% +\mtc@setlangopto{japanese5}% +\mtc@setlangopto{japanese6}% \mtc@setlangopt{kannada}% \mtc@setlangopt{khalkha}% \mtc@setlangopt{latin}% \mtc@setlangopt{latin2}% +\mtc@setlangopt{latinc}% +\mtc@setlangopt{latinc2}% \mtc@setlangopt{latvian}% +\mtc@setlangopt{latvian2}% \mtc@setlangopt{letton}% +\mtc@setlangopt{letton2}% \mtc@setlangopt{lithuanian}% +\mtc@setlangopt{lithuanian2}% \mtc@setlangopt{lowersorbian}% \mtc@setlangopt{lsorbian}% \mtc@setlangopt{magyar}% @@ -3750,7 +3878,7 @@ \mtc@setlangopt{magyar3}% \mtc@setlangopt{malay}% \mtc@setlangopt{malayalam-keli}% -\mtc@setlangopto{malayalam-omega}% % .mlo +\mtc@setlangopto{malayalam-omega}% \mtc@setlangopt{malayalam-rachana}% \mtc@setlangopt{malayalam-rachana2}% \mtc@setlangopt{manju}% @@ -3780,12 +3908,12 @@ \mtc@setlangopt{russianc}% \mtc@setlangopt{russian2m}% \mtc@setlangopt{russian2o}% -\mtc@setlangopto{russian-cca}% % .mlo -\mtc@setlangopto{russian-cca1}% % .mlo -\mtc@setlangopto{russian-lh}% % .mlo -\mtc@setlangopto{russian-lhcyralt}% % .mlo -\mtc@setlangopto{russian-lhcyrkoi}% % .mlo -\mtc@setlangopto{russian-lhcyrwin}% % .mlo +\mtc@setlangopto{russian-cca}% +\mtc@setlangopto{russian-cca1}% +\mtc@setlangopto{russian-lh}% +\mtc@setlangopto{russian-lhcyralt}% +\mtc@setlangopto{russian-lhcyrkoi}% +\mtc@setlangopto{russian-lhcyrwin}% \mtc@setlangopt{samin}% \mtc@setlangopt{scottish}% \mtc@setlangopt{serbian}% @@ -3798,7 +3926,7 @@ \mtc@setlangopt{spanish4}% \mtc@setlangopt{swedish}% \mtc@setlangopt{swedish2}% -\mtc@setlangopto{thai}% % .mlo +\mtc@setlangopto{thai}% \mtc@setlangopt{turkish}% \mtc@setlangopt{uighur}% \mtc@setlangopt{uighur2}% @@ -3822,13 +3950,13 @@ \newif\if@mtc@lof@used@ \global\@mtc@lof@used@false \newif\if@mtc@lot@used@ \global\@mtc@lot@used@false \def\mtc@hints@begindoc{% -\mtcPackageInfo[<I0049>]{minitoc(hints)}% +\mtcPackageInfo[I0049]{minitoc(hints)}% {==> You requested the hints option \MessageBreak Some hints are eventually given below\@gobble}% \@ifpackageloaded{alphanum}% {\@mtc@hints@given@true - \mtcPackageWarningNoLine[<W0025>]{minitoc(hints)}% + \mtcPackageWarningNoLine[W0025]{minitoc(hints)}% {--- The alphanum package is loaded. \MessageBreak It is incompatible @@ -3836,7 +3964,7 @@ with the minitoc package}}{}% \@ifpackageloaded{appendix}{% \@mtc@hints@given@true -\mtcPackageInfo[<I0042>]{minitoc(hints)}% +\mtcPackageInfo[I0042]{minitoc(hints)}% {--- The appendix package is loaded. \MessageBreak See the minitoc package documentation @@ -3844,7 +3972,7 @@ for specific precautions\@gobble}}{}% \@ifpackageloaded{tocbibind}% {\@mtc@hints@given@true - \mtcPackageInfo[<I0046>]{minitoc(hints)}% + \mtcPackageInfo[I0046]{minitoc(hints)}% {--- The tocbibind package is loaded. \MessageBreak See the minitoc package documentation @@ -3852,7 +3980,7 @@ for specific precautions\@gobble}}{}% \@ifclassloaded{scrbook}% {\@mtc@hints@given@true - \mtcPackageInfo[<I0043>]{minitoc(hints)}% + \mtcPackageInfo[I0043]{minitoc(hints)}% {--- The KOMAScript scrbook class is loaded. \MessageBreak See the minitoc package documentation @@ -3860,7 +3988,7 @@ for specific precautions\@gobble}}{}% \@ifclassloaded{scrreprt}% {\@mtc@hints@given@true - \mtcPackageInfo[<I0043>]{minitoc(hints)}% + \mtcPackageInfo[I0043]{minitoc(hints)}% {--- The KOMAScript scrreprt class is loaded. \MessageBreak See the minitoc package documentation @@ -3868,7 +3996,7 @@ for specific precautions\@gobble}}{}% \@ifclassloaded{scrartcl}% {\@mtc@hints@given@true - \mtcPackageInfo[<I0043>]{minitoc(hints)}% + \mtcPackageInfo[I0043]{minitoc(hints)}% {--- The KOMAScript scrartcl class is loaded. \MessageBreak See the minitoc package documentation @@ -3876,7 +4004,7 @@ for specific precautions\@gobble}}{}% \@ifpackageloaded{tocloft}% {\@mtc@hints@given@true - \mtcPackageInfo[<I0047>]{minitoc(hints)}% + \mtcPackageInfo[I0047]{minitoc(hints)}% {--- The tocloft package is loaded. \MessageBreak See the minitoc package documentation @@ -3884,7 +4012,7 @@ for specific precautions\@gobble}}{}% \@ifpackageloaded{titletoc}% {\@mtc@hints@given@true - \mtcPackageWarningNoLine[<W0040>]{minitoc(hints)}% + \mtcPackageWarningNoLine[W0040]{minitoc(hints)}% {--- The titletoc package is loaded. \MessageBreak It is incompatible @@ -3894,7 +4022,7 @@ {\if@mtc@ss@insection@ \@ifpackagewith{placeins}{section}{}% {\@mtc@hints@given@true - \mtcPackageWarningNoLine[<W0031>]{minitoc(hints)}% + \mtcPackageWarningNoLine[W0031]{minitoc(hints)}% {--- The placeins package is loaded \MessageBreak without the section option, @@ -3911,7 +4039,7 @@ }% \@ifpackagewith{placeins}{above}% {\@mtc@hints@given@true - \mtcPackageWarningNoLine[<W0084>]{minitoc(hints)}% + \mtcPackageWarningNoLine[W0084]{minitoc(hints)}% {--- The placeins package is loaded \MessageBreak with the above option, @@ -3926,7 +4054,7 @@ }{}% \@ifpackagewith{placeins}{below}% {\@mtc@hints@given@true - \mtcPackageWarningNoLine[<W0085>]{minitoc(hints)}% + \mtcPackageWarningNoLine[W0085]{minitoc(hints)}% {--- The placeins package is loaded \MessageBreak with the below option, @@ -3942,7 +4070,7 @@ \fi \@ifpackagelater{placeins}{2005/04/18}{}{% \@mtc@hints@given@true - \mtcPackageWarningNoLine[<W0032>]{minitoc(hints)}% + \mtcPackageWarningNoLine[W0032]{minitoc(hints)}% {--- The placeins package loaded is \MessageBreak too old. You should use a version @@ -3952,7 +4080,7 @@ }{}% \@ifclassloaded{memoir}% {\@mtc@hints@given@true - \mtcPackageInfo[<I0044>]{minitoc(hints)}% + \mtcPackageInfo[I0044]{minitoc(hints)}% {--- The memoir class is loaded. \MessageBreak See the minitoc package documentation @@ -3961,7 +4089,7 @@ }{}% \@ifclassloaded{amsart}% {\@mtc@hints@given@true - \mtcPackageWarningNoLine[<W0026>]{minitoc(hints)}% + \mtcPackageWarningNoLine[W0026]{minitoc(hints)}% {--- The amsart class is loaded. \MessageBreak It is incompatible @@ -3969,14 +4097,14 @@ with the minitoc package}}{}% \@ifclassloaded{amsproc}% {\@mtc@hints@given@true - \mtcPackageWarningNoLine[<W0027>]{minitoc(hints)}% + \mtcPackageWarningNoLine[W0027]{minitoc(hints)}% {--- The amsproc class is loaded. \MessageBreak It is incompatible \MessageBreak with the minitoc package}}{}% \@ifclassloaded{amsbook}% {\@mtc@hints@given@true - \mtcPackageInfo[<I0041>]{minitoc(hints)}% + \mtcPackageInfo[I0041]{minitoc(hints)}% {--- The amsbook class is loaded. \MessageBreak See the minitoc package documentation @@ -3987,7 +4115,7 @@ {\@mtc@abstract@loaded@true% \@ifpackagewith{abstract}{addtotoc}% {\@mtc@hints@given@true - \mtcPackageInfo[<I0040>]{minitoc(hints)}% + \mtcPackageInfo[I0040]{minitoc(hints)}% {The ``abstract'' package has been \MessageBreak loaded with the ``addtotoc'' option. @@ -3999,11 +4127,19 @@ }}{} \@ifclassloaded{jura}% {\@mtc@hints@given@true - \mtcPackageWarningNoLine[<W0029>]{minitoc(hints)}% + \mtcPackageWarningNoLine[W0029]{minitoc(hints)}% {--- The jura class is loaded. \MessageBreak It is incompatible \MessageBreak with the minitoc package}}{}% +\@ifpackageloaded{flowfram}% + {\@mtc@hints@given@true + \mtcPackageWarningNoLine[W0097]{minitoc(hints)}% + {--- The flowfram package is loaded. + \MessageBreak + It is incompatible + \MessageBreak + with the minitoc package}}{}% \@mtc@hints@w@false \@ifundefined{part}{}{\ifx\part\mtc@hints@part\relax \else\@mtc@hints@w@true\fi} @@ -4012,12 +4148,12 @@ \@ifundefined{part}{}{\ifx\@spart\mtc@hints@@spart\relax \else\@mtc@hints@w@true\fi} \if@mtc@hints@w@\@mtc@hints@given@true% - \mtcPackageWarningNoLine[<W0030>]{minitoc(hints)}% + \mtcPackageWarningNoLine[W0030]{minitoc(hints)}% {--- The \string\part\space command is altered \MessageBreak after minitoc} \if@mtc@hyper@used@ - \mtcPackageWarningNoLine[<W0023>]{minitoc(hints)}% + \mtcPackageWarningNoLine[W0023]{minitoc(hints)}% {--- It may be the consequence \MessageBreak of loading the ``hyperref'' package} @@ -4031,12 +4167,12 @@ \@ifundefined{chapter}{}{\ifx\@schapter\mtc@hints@@schapter\relax \else\@mtc@hints@w@true\fi}% \if@mtc@hints@w@\@mtc@hints@given@true% - \mtcPackageWarningNoLine[<W0028>]{minitoc(hints)}% + \mtcPackageWarningNoLine[W0028]{minitoc(hints)}% {--- The \string\chapter\space command is altered \MessageBreak after minitoc} \if@mtc@hyper@used@ - \mtcPackageWarningNoLine[<W0023>]{minitoc(hints)}% + \mtcPackageWarningNoLine[W0023]{minitoc(hints)}% {--- It may be the consequence \MessageBreak of loading the ``hyperref'' package} @@ -4051,12 +4187,12 @@ \@ifundefined{section}{}{\ifx\@ssect\mtc@hints@@ssect\relax\else \@mtc@hints@w@true\fi} \if@mtc@hints@w@\@mtc@hints@given@true% - \mtcPackageWarningNoLine[<W0039>]{minitoc(hints)}% + \mtcPackageWarningNoLine[W0039]{minitoc(hints)}% {--- The \string\section\space command is altered \MessageBreak after minitoc} \if@mtc@hyper@used@ - \mtcPackageWarningNoLine[<W0023>]{minitoc(hints)}% + \mtcPackageWarningNoLine[W0023]{minitoc(hints)}% {--- It may be the consequence \MessageBreak of loading the ``hyperref'' package} @@ -4094,7 +4230,7 @@ \if@mtc@section@def@ \if@mtc@placeinsLoaded@ \else \if@mtc@sect@floats@% - \mtcPackageWarningNoLine[<W0056>]{minitoc(hints)}% + \mtcPackageWarningNoLine[W0056]{minitoc(hints)}% {You are using \string\dosectlof\space and/or \MessageBreak \string\dosectlot, \string\sectlof\space and/or \string\sectlot, @@ -4108,7 +4244,7 @@ \if@mtc@part@def@ \if@parttoc@used@ \if@doparttoc@used@\else - \mtcPackageWarningNoLine[<W0062>]{minitoc(hints)}% + \mtcPackageWarningNoLine[W0062]{minitoc(hints)}% {You have used \string\parttoc, \MessageBreak but not \string\doparttoc} @@ -4117,7 +4253,7 @@ \fi \if@partlof@used@ \if@dopartlof@used@\else - \mtcPackageWarningNoLine[<W0060>]{minitoc(hints)}% + \mtcPackageWarningNoLine[W0060]{minitoc(hints)}% {You have used \string\partlof, \MessageBreak but not \string\dopartlof} @@ -4126,7 +4262,7 @@ \fi \if@partlot@used@ \if@dopartlot@used@\else - \mtcPackageWarningNoLine[<W0061>]{minitoc(hints)}% + \mtcPackageWarningNoLine[W0061]{minitoc(hints)}% {You have used \string\partlot, \MessageBreak but not \string\dopartlot} @@ -4137,7 +4273,7 @@ \if@mtc@chapter@def@ \if@minitoc@used@ \if@dominitoc@used@\else - \mtcPackageWarningNoLine[<W0059>]{minitoc(hints)}% + \mtcPackageWarningNoLine[W0059]{minitoc(hints)}% {You have used \string\minitoc, \MessageBreak but not \string\dominitoc} @@ -4146,7 +4282,7 @@ \fi \if@minilof@used@ \if@dominilof@used@\else - \mtcPackageWarningNoLine[<W0057>]{minitoc(hints)}% + \mtcPackageWarningNoLine[W0057]{minitoc(hints)}% {You have used \string\minilof, \MessageBreak but not \string\dominilof} @@ -4155,7 +4291,7 @@ \fi \if@minilot@used@ \if@dominilot@used@\else - \mtcPackageWarningNoLine[<W0058>]{minitoc(hints)}% + \mtcPackageWarningNoLine[W0058]{minitoc(hints)}% {You have used \string\minilot, \MessageBreak but not \string\dominilot} @@ -4166,7 +4302,7 @@ \if@mtc@section@def@ \if@secttoc@used@ \if@dosecttoc@used@\else - \mtcPackageWarningNoLine[<W0065>]{minitoc(hints)}% + \mtcPackageWarningNoLine[W0065]{minitoc(hints)}% {You have used \string\secttoc, \MessageBreak but not \string\dosecttoc} @@ -4175,7 +4311,7 @@ \fi \if@sectlof@used@ \if@dosectlof@used@\else - \mtcPackageWarningNoLine[<W0063>]{minitoc(hints)}% + \mtcPackageWarningNoLine[W0063]{minitoc(hints)}% {You have used \string\sectlof, \MessageBreak but not \string\dosectlof} @@ -4184,7 +4320,7 @@ \fi \if@sectlot@used@ \if@dosectlot@used@\else - \mtcPackageWarningNoLine[<W0064>]{minitoc(hints)}% + \mtcPackageWarningNoLine[W0064]{minitoc(hints)}% {You have used \string\sectlot, \MessageBreak but not \string\dosectlot} @@ -4194,7 +4330,7 @@ \if@mtc@part@def@ \if@doparttoc@used@ \if@parttoc@used@\else - \mtcPackageWarningNoLine[<W0075>]{minitoc(hints)}% + \mtcPackageWarningNoLine[W0075]{minitoc(hints)}% {You have used \string\doparttoc, \MessageBreak but not \string\parttoc} @@ -4203,7 +4339,7 @@ \fi \if@dopartlof@used@ \if@partlof@used@\else - \mtcPackageWarningNoLine[<W0076>]{minitoc(hints)}% + \mtcPackageWarningNoLine[W0076]{minitoc(hints)}% {You have used \string\dopartlof, \MessageBreak but not \string\partlof} @@ -4212,7 +4348,7 @@ \fi \if@dopartlot@used@ \if@partlot@used@\else - \mtcPackageWarningNoLine[<W0077>]{minitoc(hints)}% + \mtcPackageWarningNoLine[W0077]{minitoc(hints)}% {You have used \string\dopartlot, \MessageBreak but not \string\partlot} @@ -4223,7 +4359,7 @@ \if@mtc@chapter@def@ \if@dominitoc@used@ \if@minitoc@used@\else - \mtcPackageWarningNoLine[<W0078>]{minitoc(hints)}% + \mtcPackageWarningNoLine[W0078]{minitoc(hints)}% {You have used \string\dominitoc, \MessageBreak but not \string\minitoc} @@ -4232,7 +4368,7 @@ \fi \if@dominilof@used@ \if@minilof@used@\else - \mtcPackageWarningNoLine[<W0079>]{minitoc(hints)}% + \mtcPackageWarningNoLine[W0079]{minitoc(hints)}% {You have used \string\dominilof, \MessageBreak but not \string\minilof} @@ -4241,7 +4377,7 @@ \fi \if@dominilot@used@ \if@minilot@used@\else - \mtcPackageWarningNoLine[<W0080>]{minitoc(hints)}% + \mtcPackageWarningNoLine[W0080]{minitoc(hints)}% {You have used \string\dominilot, \MessageBreak but not \string\minilot} @@ -4252,7 +4388,7 @@ \if@mtc@section@def@ \if@dosecttoc@used@ \if@secttoc@used@\else - \mtcPackageWarningNoLine[<W0081>]{minitoc(hints)}% + \mtcPackageWarningNoLine[W0081]{minitoc(hints)}% {You have used \string\dosecttoc, \MessageBreak but not \string\secttoc} @@ -4261,7 +4397,7 @@ \fi \if@dosectlof@used@ \if@sectlof@used@\else - \mtcPackageWarningNoLine[<W0082>]{minitoc(hints)}% + \mtcPackageWarningNoLine[W0082]{minitoc(hints)}% {You have used \string\dosectlof, \MessageBreak but not \string\sectlof} @@ -4270,7 +4406,7 @@ \fi \if@dosectlot@used@ \if@sectlot@used@\else - \mtcPackageWarningNoLine[<W0083>]{minitoc(hints)}% + \mtcPackageWarningNoLine[W0083]{minitoc(hints)}% {You have used \string\dosectlot, \MessageBreak but not \string\sectlot} @@ -4281,7 +4417,7 @@ \if@mtc@part@def@ \if@parttoc@used@ \if@mtc@toc@used@\else - \mtcPackageWarningNoLine[<W0071>]{minitoc(hints)}% + \mtcPackageWarningNoLine[W0071]{minitoc(hints)}% {You have used \string\parttoc\space but not \MessageBreak \string\tableofcontents @@ -4292,7 +4428,7 @@ \fi \if@partlof@used@ \if@mtc@lof@used@\else - \mtcPackageWarningNoLine[<W0069>]{minitoc(hints)}% + \mtcPackageWarningNoLine[W0069]{minitoc(hints)}% {You have used \string\partlof\space but not \MessageBreak \string\listoffigures @@ -4303,7 +4439,7 @@ \fi \if@partlot@used@ \if@mtc@lot@used@\else - \mtcPackageWarningNoLine[<W0070>]{minitoc(hints)}% + \mtcPackageWarningNoLine[W0070]{minitoc(hints)}% {You have used \string\partlot\space but not \MessageBreak \string\listoftables @@ -4316,7 +4452,7 @@ \if@mtc@chapter@def@ \if@minitoc@used@ \if@mtc@toc@used@\else - \mtcPackageWarningNoLine[<W0068>]{minitoc(hints)}% + \mtcPackageWarningNoLine[W0068]{minitoc(hints)}% {You have used \string\minitoc\space but not \MessageBreak \string\tableofcontents @@ -4327,7 +4463,7 @@ \fi \if@minilof@used@ \if@mtc@lof@used@\else - \mtcPackageWarningNoLine[<W0066>]{minitoc(hints)}% + \mtcPackageWarningNoLine[W0066]{minitoc(hints)}% {You have used \string\minilof\space but not \MessageBreak \string\listoffigures @@ -4338,7 +4474,7 @@ \fi \if@minilot@used@ \if@mtc@lot@used@\else - \mtcPackageWarningNoLine[<W0067>]{minitoc(hints)}% + \mtcPackageWarningNoLine[W0067]{minitoc(hints)}% {You have used \string\minilot\space but not \MessageBreak \string\listoftables @@ -4351,7 +4487,7 @@ \if@mtc@section@def@ \if@secttoc@used@ \if@mtc@toc@used@\else - \mtcPackageWarningNoLine[<W0074>]{minitoc(hints)}% + \mtcPackageWarningNoLine[W0074]{minitoc(hints)}% {You have used \string\secttoc\space but not \MessageBreak \string\tableofcontents @@ -4362,7 +4498,7 @@ \fi \if@sectlof@used@ \if@mtc@lof@used@\else - \mtcPackageWarningNoLine[<W0072>]{minitoc(hints)}% + \mtcPackageWarningNoLine[W0072]{minitoc(hints)}% {You have used \string\sectlof\space but not \MessageBreak \string\listoffigures @@ -4373,7 +4509,7 @@ \fi \if@sectlot@used@ \if@mtc@lot@used@\else - \mtcPackageWarningNoLine[<W0073>]{minitoc(hints)}% + \mtcPackageWarningNoLine[W0073]{minitoc(hints)}% {You have used \string\sectlot\space but not \MessageBreak \string\listoftables @@ -4387,27 +4523,24 @@ \if@longextensions@ \else \if@mtc@part@def@ - \ifnum 99 < \value{ptc}\relax - \@mtc@hints@given@true - \mtcPackageWarningNoLine[<W0054>]{minitoc(hints)}% + \ifnum 99 < \value{ptc}\relax \@mtc@hints@given@true + \mtcPackageWarningNoLine[W0054]{minitoc(hints)}% {You have used short extensions \MessageBreak and more than 99 parts (\arabic{ptc})} \fi \fi \if@mtc@chapter@def@ - \ifnum 99 < \value{mtc}\relax - \@mtc@hints@given@true - \mtcPackageWarningNoLine[<W0053>]{minitoc(hints)}% + \ifnum 99 < \value{mtc}\relax \@mtc@hints@given@true + \mtcPackageWarningNoLine[W0053]{minitoc(hints)}% {You have used short extensions \MessageBreak and more than 99 chapters (\arabic{mtc})} \fi \else \if@mtc@section@def@ - \ifnum 99 < \value{stc}\relax - \@mtc@hints@given@true - \mtcPackageWarningNoLine[<W0055>]{minitoc(hints)}% + \ifnum 99 < \value{stc}\relax \@mtc@hints@given@true + \mtcPackageWarningNoLine[W0055]{minitoc(hints)}% {You have used short extensions \MessageBreak and more than 99 sections (\arabic{stc})} @@ -4418,7 +4551,7 @@ \mtc@hints@checklongext \if@mtc@sectstyLoaded@\else \if@mtc@sectstyLoaded@a@ - \mtcPackageWarningNoLine[<W0037>]{minitoc(hints)}% + \mtcPackageWarningNoLine[W0037]{minitoc(hints)}% {The sectsty package should be \MessageBreak loaded BEFORE the minitoc package} @@ -4427,7 +4560,7 @@ \fi \if@mtc@varsectsLoaded@\else \if@mtc@varsectsLoaded@a@ - \mtcPackageWarningNoLine[<W0038>]{minitoc(hints)}% + \mtcPackageWarningNoLine[W0038]{minitoc(hints)}% {The varsects package should be \MessageBreak loaded BEFORE the minitoc package} @@ -4436,7 +4569,7 @@ \fi \if@mtc@fncychapLoaded@\else \if@mtc@fncychapLoaded@a@ - \mtcPackageWarningNoLine[<W0086>]{minitoc(hints)}% + \mtcPackageWarningNoLine[W0086]{minitoc(hints)}% {The fncychap package should be \MessageBreak loaded BEFORE the minitoc package} @@ -4445,7 +4578,7 @@ \fi \if@mtc@HgcLoaded@\else \if@mtc@HgcLoaded@a@ - \mtcPackageWarningNoLine[<W0092>]{minitoc(hints)}% + \mtcPackageWarningNoLine[W0092]{minitoc(hints)}% {The hangcaption package should be \MessageBreak loaded BEFORE the minitoc package} @@ -4454,7 +4587,7 @@ \fi \if@mtc@quotchapLoaded@\else \if@mtc@quotchapLoaded@a@ - \mtcPackageWarningNoLine[<W0087>]{minitoc(hints)}% + \mtcPackageWarningNoLine[W0087]{minitoc(hints)}% {The quotchap package should be \MessageBreak loaded BEFORE the minitoc package} @@ -4463,7 +4596,7 @@ \fi \if@mtc@romannumLoaded@\else \if@mtc@romannumLoaded@a@ - \mtcPackageWarningNoLine[<W0088>]{minitoc(hints)}% + \mtcPackageWarningNoLine[W0088]{minitoc(hints)}% {The romannum package should be \MessageBreak loaded BEFORE the minitoc package} @@ -4472,7 +4605,7 @@ \fi \if@mtc@sfheadersLoaded@\else \if@mtc@sfheadersLoaded@a@ - \mtcPackageWarningNoLine[<W0089>]{minitoc(hints)}% + \mtcPackageWarningNoLine[W0089]{minitoc(hints)}% {The sfheaders package should be \MessageBreak loaded BEFORE the minitoc package} @@ -4481,7 +4614,7 @@ \fi \if@mtc@alnumsecLoaded@\else \if@mtc@alnumsecLoaded@a@ - \mtcPackageWarningNoLine[<W0090>]{minitoc(hints)}% + \mtcPackageWarningNoLine[W0090]{minitoc(hints)}% {The alnumsec package should be \MessageBreak loaded BEFORE the minitoc package} @@ -4490,7 +4623,7 @@ \fi \if@mtc@captcontLoaded@\else \if@mtc@captcontLoaded@a@ - \mtcPackageWarningNoLine[<W0091>]{minitoc(hints)}% + \mtcPackageWarningNoLine[W0091]{minitoc(hints)}% {The captcont package should be \MessageBreak loaded BEFORE the minitoc package} @@ -4499,7 +4632,7 @@ \fi \if@mtc@captionLoaded@\else \if@mtc@captionLoaded@a@ - \mtcPackageWarningNoLine[<W0033>]{minitoc(hints)}% + \mtcPackageWarningNoLine[W0033]{minitoc(hints)}% {The caption package should be \MessageBreak loaded BEFORE the minitoc package} @@ -4508,7 +4641,7 @@ \fi \if@mtc@captionIILoaded@\else \if@mtc@captionIILoaded@a@ - \mtcPackageWarningNoLine[<W0034>]{minitoc(hints)}% + \mtcPackageWarningNoLine[W0034]{minitoc(hints)}% {The caption2 package should be \MessageBreak loaded BEFORE the minitoc package} @@ -4517,7 +4650,7 @@ \fi \if@mtc@ccaptionLoaded@\else \if@mtc@ccaptionLoaded@a@ - \mtcPackageWarningNoLine[<W0035>]{minitoc(hints)}% + \mtcPackageWarningNoLine[W0035]{minitoc(hints)}% {The ccaption package should be \MessageBreak loaded BEFORE the minitoc package} @@ -4526,104 +4659,148 @@ \fi \if@mtc@mcaptionLoaded@\else \if@mtc@mcaptionLoaded@a@ - \mtcPackageWarningNoLine[<W0036>]{minitoc(hints)}% + \mtcPackageWarningNoLine[W0036]{minitoc(hints)}% {The mcaption package should be \MessageBreak loaded BEFORE the minitoc package} \@mtc@hints@given@true \fi \fi +\if@mtc@floatLoaded@\ + \mtcPackageInfo[I0053]{minitoc(hints)}% + {You have loaded the float package; + \MessageBreak + please be aware that the minitoc package + \MessageBreak + facilities can not be used for new types + \MessageBreak + of floats defined by the float package\@gobble} + \@mtc@hints@given@true +\fi +\if@mtc@floatrowLoaded@\ + \mtcPackageInfo[I0053]{minitoc(hints)}% + {You have loaded the floatrow package; + \MessageBreak + please be aware that the minitoc package + \MessageBreak + facilities can not be used for new types + \MessageBreak + of floats defined by the floatrow package\@gobble} + \@mtc@hints@given@true +\fi +\if@mtc@trivfloatLoaded@\ + \mtcPackageInfo[I0053]{minitoc(hints)}% + {You have loaded the trivfloat package; + \MessageBreak + please be aware that the minitoc package + \MessageBreak + facilities can not be used for new types + \MessageBreak + of floats defined by the trivfloat package\@gobble} + \@mtc@hints@given@true +\fi +\if@mtc@rotfloatLoaded@\ + \mtcPackageInfo[I0053]{minitoc(hints)}% + {You have loaded the rotfloat package; + \MessageBreak + please be aware that the minitoc package + \MessageBreak + facilities can not be used for new types + \MessageBreak + of floats defined by the rotfloat package\@gobble} + \@mtc@hints@given@true +\fi \if@mtc@empty@parttoc@ - \mtcPackageWarningNoLine[<W0046>]{minitoc(hints)}% + \mtcPackageWarningNoLine[W0046]{minitoc(hints)}% {You have attempted to insert \MessageBreak empty parttocs} \@mtc@hints@given@true \fi \if@mtc@empty@partlof@ - \mtcPackageWarningNoLine[<W0044>]{minitoc(hints)}% + \mtcPackageWarningNoLine[W0044]{minitoc(hints)}% {You have attempted to insert \MessageBreak empty partlofs} \@mtc@hints@given@true \fi \if@mtc@empty@partlot@ - \mtcPackageWarningNoLine[<W0045>]{minitoc(hints)}% + \mtcPackageWarningNoLine[W0045]{minitoc(hints)}% {You have attempted to insert \MessageBreak empty partlots} \@mtc@hints@given@true \fi \if@mtc@empty@minitoc@ - \mtcPackageWarningNoLine[<W0043>]{minitoc(hints)}% + \mtcPackageWarningNoLine[W0043]{minitoc(hints)}% {You have attempted to insert \MessageBreak empty minitocs} \@mtc@hints@given@true \fi \if@mtc@empty@minilof@ - \mtcPackageWarningNoLine[<W0041>]{minitoc(hints)}% + \mtcPackageWarningNoLine[W0041]{minitoc(hints)}% {You have attempted to insert \MessageBreak empty minilofs} \@mtc@hints@given@true \fi \if@mtc@empty@minilot@ - \mtcPackageWarningNoLine[<W0042>]{minitoc(hints)}% + \mtcPackageWarningNoLine[W0042]{minitoc(hints)}% {You have attempted to insert \MessageBreak empty minilots} \@mtc@hints@given@true \fi \if@mtc@empty@secttoc@ - \mtcPackageWarningNoLine[<W0049>]{minitoc(hints)}% + \mtcPackageWarningNoLine[W0049]{minitoc(hints)}% {You have attempted to insert \MessageBreak empty secttocs} \@mtc@hints@given@true \fi \if@mtc@empty@sectlof@ - \mtcPackageWarningNoLine[<W0047>]{minitoc(hints)}% + \mtcPackageWarningNoLine[W0047]{minitoc(hints)}% {You have attempted to insert \MessageBreak empty sectlofs} \@mtc@hints@given@true \fi \if@mtc@empty@sectlot@ - \mtcPackageWarningNoLine[<W0042>]{minitoc(hints)}% + \mtcPackageWarningNoLine[W0048]{minitoc(hints)}% {You have attempted to insert \MessageBreak empty sectlots} \@mtc@hints@given@true \fi \if@firstpartis@used@ - \mtcPackageWarningNoLine[<W0051>]{minitoc(hints)}% - {You have invoked an obsolete + \mtcPackageWarningNoLine[W0051]{minitoc(hints)}% + {You have invoked an obsolete (ignored) \MessageBreak command: \string\firstpartis} \@mtc@hints@given@true \fi \if@firstchapteris@used@ - \mtcPackageWarningNoLine[<W0050>]{minitoc(hints)}% - {You have invoked an obsolete + \mtcPackageWarningNoLine[W0050]{minitoc(hints)}% + {You have invoked an obsolete (ignored) \MessageBreak command: \string\firstchapteris} \@mtc@hints@given@true \fi \if@firstsectionis@used@ - \mtcPackageWarningNoLine[<W0052>]{minitoc(hints)}% - {You have invoked an obsolete + \mtcPackageWarningNoLine[W0052]{minitoc(hints)}% + {You have invoked an obsolete (ignored) \MessageBreak command: \string\firstsectionis} \@mtc@hints@given@true \fi \if@mtc@hints@given@ - \mtcPackageWarningNoLine[<W0024>]{minitoc(hints)}% + \mtcPackageWarningNoLine[W0024]{minitoc(hints)}% {Some hints have been written \MessageBreak in the \jobname.log file} \else - \mtcPackageInfo[<I0019>]{minitoc(hints)}% + \mtcPackageInfo[I0019]{minitoc(hints)}% {No hints have been written \MessageBreak in the \jobname.log file.\@gobble} @@ -4631,7 +4808,7 @@ } \InputIfFileExists{english.mld}% {\ExecuteOptions{english}}% - {\mtcPackageError[<E0036>]{minitoc}% + {\mtcPackageError[E0036]{minitoc}% {Your minitoc installation is incomplete. \MessageBreak The minitoc language object file (.mld), @@ -4665,7 +4842,7 @@ \RequirePackage{notoccite}% \fi \def\mtc@maf{% - \mtcPackageInfo[<I0009>]{minitoc}% + \mtcPackageInfo[I0009]{minitoc}% {Listing minitoc auxiliary files. \MessageBreak Creating the \jobname.maf file\@gobble} @@ -4725,14 +4902,14 @@ \let\mtc@hints@@sect\@sect \let\mtc@hints@@ssect\@ssect} \def\mtc@classck#1{% - \mtcPackageError[<E0037>]{minitoc}% + \mtcPackageError[E0037]{minitoc}% {The \csname #1\endcsname\space command is incompatible \MessageBreak with the document class}% {Correct the source code. \MessageBreak Type <return> and rerun LaTeX}% -} +}% \AtBeginDocument{% \providecommand{\doparttoc}[1][l]{\mtc@classck{doparttoc}}% \providecommand{\dopartlof}[1][l]{\mtc@classck{dopartlof}}% |