From 44c60ee6cc9f0b9950bcab1c52db87bb86cc0860 Mon Sep 17 00:00:00 2001 From: Reinhard Kotucha Date: Sat, 25 Nov 2006 04:43:15 +0000 Subject: update minitoc. git-svn-id: svn://tug.org/texlive/trunk@2524 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/minitoc/minitoc.sty | 1264 +++++++++++++++-------- 1 file changed, 822 insertions(+), 442 deletions(-) (limited to 'Master/texmf-dist/tex/latex/minitoc/minitoc.sty') diff --git a/Master/texmf-dist/tex/latex/minitoc/minitoc.sty b/Master/texmf-dist/tex/latex/minitoc/minitoc.sty index 14f166dac02..f1ea0bda940 100644 --- a/Master/texmf-dist/tex/latex/minitoc/minitoc.sty +++ b/Master/texmf-dist/tex/latex/minitoc/minitoc.sty @@ -29,10 +29,10 @@ %% distributed with it. \NeedsTeXFormat{LaTeX2e}[1996/06/02]% \ProvidesPackage{minitoc}% - [2006/09/13 v48 Package minitoc (JPFD)] + [2006/10/10 v49 Package minitoc (JPFD)] \RequirePackage{mtcmess}[2006/03/14] \mtcPackageInfo[]{minitoc}% - {*** minitoc package, version 48 ***\@gobble} + {*** minitoc package, version 49 ***\@gobble} \newwrite\tf@mtc \newlength\mtcindent \newskip\mtcskipamount @@ -79,6 +79,8 @@ \newif\if@mtc@varsectsLoaded@a@ \@mtc@varsectsLoaded@a@false \newif\if@mtc@fncychapLoaded@ \@mtc@fncychapLoaded@false \newif\if@mtc@fncychapLoaded@a@ \@mtc@fncychapLoaded@a@false +\newif\if@mtc@hangcaptionLoaded@ \@mtc@hangcaptionLoaded@false +\newif\if@mtc@hangcaptionLoaded@a@ \@mtc@hangcaptionLoaded@a@false \newif\if@mtc@quotchapLoaded@ \@mtc@quotchapLoaded@false \newif\if@mtc@quotchapLoaded@a@ \@mtc@quotchapLoaded@a@false \newif\if@mtc@romannumLoaded@ \@mtc@romannumLoaded@false @@ -181,6 +183,8 @@ \AtBeginDocument{\@ifpackageloaded{varsects}{\@mtc@varsectsLoaded@a@true}{}} \@ifpackageloaded{fncychap}{\@mtc@fncychapLoaded@true}{} \AtBeginDocument{\@ifpackageloaded{fncychap}{\@mtc@fncychapLoaded@a@true}{}} + \@ifpackageloaded{hangcaption}{\@mtc@hangcaptionLoaded@true}{} + \AtBeginDocument{\@ifpackageloaded{hangcaption}{\@mtc@hangcaptionLoaded@a@true}{}} \@ifpackageloaded{quotchap}{\@mtc@quotchapLoaded@true}{} \AtBeginDocument{\@ifpackageloaded{quotchap}{\@mtc@quotchapLoaded@a@true}{}} \@ifpackageloaded{romannum}{\@mtc@romannumLoaded@true}{} @@ -202,7 +206,8 @@ \newif\if@mtcpatchmemoir@ \@mtcpatchmemoir@false \@ifclassloaded{memoir}{\@mtc@memoirLoaded@true\relax% \mtcPackageInfo[]{minitoc}% - {the memoir class is loaded:\MessageBreak + {the memoir class is loaded: + \MessageBreak compatibility attempted\@gobble}}% {\@mtc@memoirLoaded@false} \if@mtc@memoirLoaded@ @@ -212,9 +217,12 @@ {\@mtc@memoirnew@true\mtcPackageInfo[]{minitoc}% {recent version of the memoir class\@gobble} \mtcPackageInfo[]{minitoc}% - {This version of the memoir class uses \MessageBreak - a version of \string\chapter\space which is \MessageBreak - incompatible with the minitoc package. \MessageBreak + {This version of the memoir class uses + \MessageBreak + a version of \string\chapter\space which is + \MessageBreak + incompatible with the minitoc package. + \MessageBreak We try to patch\@gobble}% \@mtcpatchmemoir@true} \fi @@ -369,13 +377,16 @@ \mtcPackageInfo[]{minitoc}% {Long extensions (Unix-like) will be used\@gobble} \mtcPackageInfo[]{minitoc}% - {==> this version is configured for UNIX-like \MessageBreak - \space\space\space\space(long extensions) file names\@gobble}% + {==> this version is configured for UNIX-like + \MessageBreak + \space\space\space\space(long extensions) file names\@gobble}% \else \mtcPackageWarningNoLine[]{minitoc}% - {Short extensions (MSDOS-like) will be used\MessageBreak - ==> this version is configured for MSDOS-like \MessageBreak - \space\space\space\space(8+3) file names} + {Short extensions (MSDOS-like) will be used + \MessageBreak + ==> this version is configured for MSDOS-like + \MessageBreak + \space\space\space\space(8+3) file names} \fi \immediate\openout\tf@mtc \jobname.mtc \immediate\closeout\tf@mtc @@ -383,12 +394,14 @@ \immediate\closeout\tf@mtc \@ifundefined{@inputcheck}% {\mtcPackageWarningNoLine[]{minitoc}% - {Your version of latex.tex is obsolete.\MessageBreak - Trying to continue..}\newread\@inputcheck\relax}{} + {Your version of latex.tex is obsolete. + \MessageBreak + Trying to continue..}\newread\@inputcheck\relax}{} \@ifundefined{reset@font}% {\mtcPackageWarningNoLine[]{minitoc}% - {Your version of latex.tex is very obsolete.\MessageBreak - Trying to continue... crossing fingers}% + {Your version of latex.tex is very obsolete. + \MessageBreak + Trying to continue... crossing fingers}% \let\reset@font\relax}{} \newif\ifundottedmtc\undottedmtcfalse \def\@undottedtocline#1#2#3#4#5{% @@ -568,7 +581,9 @@ \def\The@mtc{\arabic{mtc}} \def\firstchapteris#1% {\mtcPackageWarning[]{minitoc}% - {\string\firstchapteris \space is an obsolete\MessageBreak command}% + {\string\firstchapteris \space is an obsolete + \MessageBreak + command}% \@firstchapteris@used@true} \newcounter{mtc} \setcounter{mtc}{0} @@ -922,8 +937,10 @@ \if@mtc@hints@ \if@dominitoc@used@ \mtcPackageInfo[]{minitoc(hints)}% - {The \string\dominitoc \space command\MessageBreak - has been invoked more than once\MessageBreak} + {The \string\dominitoc \space command + \MessageBreak + has been invoked more than once + \MessageBreak} \global\@mtc@hints@given@true \fi \fi @@ -939,8 +956,10 @@ \if@mtc@hints@ \if@dominilof@used@ \mtcPackageInfo[]{minitoc(hints)}% - {The \string\dominilof \space command\MessageBreak - has been invoked more than once\MessageBreak} + {The \string\dominilof \space command + \MessageBreak + has been invoked more than once + \MessageBreak} \global\@mtc@hints@given@true \fi \fi @@ -956,8 +975,10 @@ \if@mtc@hints@ \if@dominilot@used@ \mtcPackageInfo[]{minitoc(hints)}% - {The \string\dominilot \space command\MessageBreak - has been invoked more than once\MessageBreak} + {The \string\dominilot \space command + \MessageBreak + has been invoked more than once + \MessageBreak} \global\@mtc@hints@given@true \fi \fi @@ -1048,7 +1069,9 @@ \def\MTC@loop#1{\openin\@inputcheck#1\relax \ifeof\@inputcheck \mtcPackageWarning[]{minitoc}% - {No file #1.\MessageBreak MINITOCS NOT PREPARED}% + {No file #1. + \MessageBreak + MINITOCS NOT PREPARED}% \expandafter\MTC@toc \else \mtcPackageInfo[]{minitoc}{PREPARING MINITOCS FROM #1}% @@ -1115,7 +1138,9 @@ \def\MLF@loop#1{\openin\@inputcheck#1\relax \ifeof\@inputcheck \mtcPackageWarning[]{minitoc}% - {No file #1.\MessageBreak MINILOFS NOT PREPARED}% + {No file #1. + \MessageBreak + MINILOFS NOT PREPARED}% \expandafter\MLF@lof \else \mtcPackageInfo[]{minitoc}% @@ -1174,7 +1199,9 @@ \def\MLT@loop#1{\openin\@inputcheck#1\relax \ifeof\@inputcheck \mtcPackageWarning[]{minitoc}% - {No file #1.\MessageBreak MINILOTS NOT PREPARED}% + {No file #1. + \MessageBreak + MINILOTS NOT PREPARED}% \expandafter\MLT@lot \else \mtcPackageInfo[]{minitoc}% @@ -1241,7 +1268,9 @@ \def\Thepart{\arabic{ptc}} \def\firstpartis#1% {\mtcPackageWarning[]{minitoc}% - {\string\firstpartis \space is an obsolete\MessageBreak command}% + {\string\firstpartis \space is an obsolete + \MessageBreak + command}% \@firstpartis@used@true} \newcounter{ptc} \setcounter{ptc}{0} @@ -1611,8 +1640,10 @@ \if@mtc@hints@ \if@doparttoc@used@ \mtcPackageInfo[]{minitoc(hints)}% - {The \string\doparttoc \space command\MessageBreak - has been invoked more than once\MessageBreak} + {The \string\doparttoc \space command + \MessageBreak + has been invoked more than once + \MessageBreak} \global\@mtc@hints@given@true \fi \fi @@ -1628,8 +1659,10 @@ \if@mtc@hints@ \if@dopartlof@used@ \mtcPackageInfo[]{minitoc(hints)}% - {The \string\dopartlof \space command\MessageBreak - has been invoked more than once\MessageBreak} + {The \string\dopartlof \space command + \MessageBreak + has been invoked more than once + \MessageBreak} \global\@mtc@hints@given@true \fi \fi @@ -1645,8 +1678,10 @@ \if@mtc@hints@ \if@dopartlot@used@ \mtcPackageInfo[]{minitoc(hints)}% - {The \string\dopartlot \space command\MessageBreak - has been invoked more than once\MessageBreak} + {The \string\dopartlot \space command + \MessageBreak + has been invoked more than once + \MessageBreak} \global\@mtc@hints@given@true \fi \fi @@ -1744,7 +1779,9 @@ \def\PTC@loop#1{\openin\@inputcheck#1\relax \ifeof\@inputcheck \mtcPackageWarning[]{minitoc}% - {No file #1\MessageBreak PARTTOCS NOT PREPARED}% + {No file #1 + \MessageBreak + PARTTOCS NOT PREPARED}% \expandafter\PTC@toc \else \mtcPackageInfo[]{minitoc}% @@ -1805,7 +1842,9 @@ \def\PLF@loop#1{\openin\@inputcheck#1\relax \ifeof\@inputcheck \mtcPackageWarning[]{minitoc}% - {No file #1\MessageBreak PARTLOFS NOT PREPARED}% + {No file #1 + \MessageBreak + PARTLOFS NOT PREPARED}% \expandafter\PLF@lof \else \mtcPackageInfo[]{minitoc}% @@ -1865,7 +1904,9 @@ \def\PLT@loop#1{\openin\@inputcheck#1\relax \ifeof\@inputcheck \mtcPackageWarning[]{minitoc}% - {No file #1\MessageBreak PARTLOTS NOT PREPARED}% + {No file #1 + \MessageBreak + PARTLOTS NOT PREPARED}% \expandafter\PLT@lot \else \mtcPackageInfo[]{minitoc}% @@ -1903,7 +1944,9 @@ \if@mtc@section@def@ \def\firstsectionis#1% {\mtcPackageWarning[]{minitoc}% - {\string\firstsectionis \space is an obsolete\MessageBreak command}% + {\string\firstsectionis \space is an obsolete + \MessageBreak + command}% \@firstsectionis@used@true} \newcounter{stc}\setcounter{stc}{0}% \newcommand{\adjuststc}[1][1]{\addtocounter{stc}{#1}}% @@ -2224,8 +2267,10 @@ \if@mtc@hints@ \if@dosecttoc@used@ \mtcPackageInfo[]{minitoc(hints)}% - {The \string\dosecttoc \space command\MessageBreak - has been invoked more than once\MessageBreak} + {The \string\dosecttoc \space command + \MessageBreak + has been invoked more than once + \MessageBreak} \global\@mtc@hints@given@true \fi \fi @@ -2241,8 +2286,10 @@ \if@mtc@hints@ \if@dosectlof@used@ \mtcPackageInfo[]{minitoc(hints)}% - {The \string\dosectlof \space command\MessageBreak - has been invoked more than once\MessageBreak} + {The \string\dosectlof \space command + \MessageBreak + has been invoked more than once + \MessageBreak} \global\@mtc@hints@given@true \fi \fi @@ -2258,8 +2305,10 @@ \if@mtc@hints@ \if@dosectlot@used@ \mtcPackageInfo[]{minitoc(hints)}% - {The \string\dosectlot \space command\MessageBreak - has been invoked more than once\MessageBreak} + {The \string\dosectlot \space command + \MessageBreak + has been invoked more than once + \MessageBreak} \global\@mtc@hints@given@true \fi \fi @@ -2344,7 +2393,9 @@ \def\STC@loop#1{\openin\@inputcheck#1\relax \ifeof\@inputcheck \mtcPackageWarning[]{minitoc}% - {No file #1\MessageBreak SECTTOCS NOT PREPARED}% + {No file #1 + \MessageBreak + SECTTOCS NOT PREPARED}% \expandafter\STC@toc \else \mtcPackageInfo[]{minitoc}% @@ -2403,7 +2454,9 @@ \def\SLF@loop#1{\openin\@inputcheck#1\relax \ifeof\@inputcheck \mtcPackageWarning[]{minitoc}% - {No file #1\MessageBreak SECTLOFS NOT PREPARED}% + {No file #1 + \MessageBreak + SECTLOFS NOT PREPARED}% \expandafter\SLF@lof \else \mtcPackageInfo[]{minitoc}% @@ -2462,7 +2515,9 @@ \def\SLT@loop#1{\openin\@inputcheck#1\relax \ifeof\@inputcheck \mtcPackageWarning[]{minitoc}% - {No file #1\MessageBreak SECTLOTS NOT PREPARED}% + {No file #1 + \MessageBreak + SECTLOTS NOT PREPARED}% \expandafter\SLT@lot \else \mtcPackageInfo[]{minitoc}% @@ -2511,11 +2566,15 @@ \if@mtc@hints@ \@mtc@hints@given@true \mtcPackageInfo[]{minitoc(hints)}% - {Using \string\mtcprepare\space may induce some\MessageBreak - hints about the preparation commands,\MessageBreak - because it invokes ALL the preparation\MessageBreak - commands allowed by the document class,\MessageBreak - without any previous check\@gobble}% + {Using \string\mtcprepare\space may induce some + \MessageBreak + hints about the preparation commands, + \MessageBreak + because it invokes ALL the preparation + \MessageBreak + commands allowed by the document class, + \MessageBreak + without any previous check\@gobble}% \fi } \@ifundefined{section}{}{\let\l@listof\l@section} @@ -2587,6 +2646,7 @@ \@namedef{mtc@YN@NON}{no}\def\mtc@YN@NON{no} \@namedef{mtc@YN@non}{no}\def\mtc@YN@non{no} \@namedef{mtc@YN@0}{no}\expandafter\def\csname mtc@YN@0\endcsname{no} +\@namedef{mtc@YN@-}{no}\expandafter\def\csname mtc@YN@-\endcsname{no} \@namedef{mtc@YN@on}{}\def\mtc@YN@on{} \@namedef{mtc@YN@ON}{}\def\mtc@YN@ON{} \@namedef{mtc@YN@yes}{}\def\mtc@YN@yes{} @@ -2606,6 +2666,7 @@ \@namedef{mtc@YN@O}{}\def\mtc@YN@O{} \@namedef{mtc@YN@o}{}\def\mtc@YN@o{} \@namedef{mtc@YN@1}{}\expandafter\def\csname mtc@YN@1\endcsname{} +\@namedef{mtc@YN@+}{}\expandafter\def\csname mtc@YN@+\endcsname{} \@namedef{mtc@sectlevel@chapter}{C}\def\mtc@sectlevel@chapter{C} \@namedef{mtc@sectlevel@section}{S}\def\mtc@sectlevel@section{S} \@namedef{mtc@sectlevel@subsection}{SS}\def\mtc@sectlevel@subsection{SS} @@ -2632,7 +2693,8 @@ It should be a mini-table type \MessageBreak (parttoc...sectlot)}% - {Correct the source code.\MessageBreak + {Correct the source code. + \MessageBreak Type and rerun LaTeX} \else \edef\mtc@mta@abbrev{\@nameuse{mtc@typetable@#1}} @@ -2649,7 +2711,8 @@ It should be a sectionning level \MessageBreak (part...subparagraph) or * }% - {Correct the source code.\MessageBreak + {Correct the source code. + \MessageBreak Type and rerun LaTeX} \else \edef\mtc@level@abbrev{\@nameuse{mtc@sectlevel@#2}} @@ -2737,14 +2800,17 @@ \def\mtc@tmp@name{\mtc@mta@abbrev\mtc@level@abbrev font} \mtc@toks{#3} \mtcPackageInfo[]{minitoc}% - {\string\mtcsetfont\space redefines the macro\MessageBreak - "\mtc@tmp@name" as "\the\mtc@toks"} + {\string\mtcsetfont\space redefines the macro + \MessageBreak + "\mtc@tmp@name" as "\the\mtc@toks"} \expandafter\def\csname\mtc@tmp@name\endcsname{#3} \else \mtcPackageError[]{minitoc}% - {The macro \string\mtcsetfont\space has incompatible\MessageBreak + {The macro \string\mtcsetfont\space has incompatible + \MessageBreak first (#1) and second (#2) arguments}% - {Correct the source code.\MessageBreak + {Correct the source code. + \MessageBreak Type and rerun LaTeX} \fi } @@ -2763,7 +2829,8 @@ It should be a mini-table type \MessageBreak (parttoc...sectlot)}% - {Correct the source code.\MessageBreak + {Correct the source code. + \MessageBreak Type and rerun LaTeX} \else \edef\mtc@mtatf@abbrev{\@nameuse{mtc@typetitle@#1}} @@ -2773,14 +2840,18 @@ \mtc@toks{#2} \mtcPackageInfo[]{minitoc}% {\string\mtcsettitlefont\space redefines the macro - \MessageBreak "\mtc@tmptf@name" as - \MessageBreak "\the\mtc@toks"} + \MessageBreak + "\mtc@tmptf@name" as + \MessageBreak + "\the\mtc@toks"} \expandafter\def\csname\mtc@tmptf@name\endcsname{#2} \else \mtcPackageError[]{minitoc}% - {The macre \string\\mtcsettitlefont\space uses\MessageBreak + {The macro \string\\mtcsettitlefont\space uses + \MessageBreak an illegal type of table (#1)}% - {Correct the source code.\MessageBreak + {Correct the source code. + \MessageBreak Type and rerun LaTeX}{\relax} \fi } @@ -2799,7 +2870,8 @@ It should be a mini-table type \MessageBreak (parttoc...sectlot)}% - {Correct the source code.\MessageBreak + {Correct the source code. + \MessageBreak Type and rerun LaTeX} \else \edef\mtc@mtati@abbrev{\@nameuse{mtc@typetable@#1}} @@ -2808,15 +2880,19 @@ \def\mtc@tmpti@name{\mtc@mtati@abbrev title} \mtc@toks{#2} \mtcPackageInfo[]{minitoc}% - {\string\mtcsettitle\space redefines the macro\MessageBreak + {\string\mtcsettitle\space redefines the macro + \MessageBreak "\mtc@tmpti@name" as - \MessageBreak "\the\mtc@toks"} + \MessageBreak + "\the\mtc@toks"} \expandafter\def\csname\mtc@tmpti@name\endcsname{#2} \else \mtcPackageError[]{minitoc}% - {The macro \string\mtcsettitle\space uses\MessageBreak + {The macro \string\mtcsettitle\space uses + \MessageBreak an illegal type of table (#1)}% - {Correct the source code.\MessageBreak + {Correct the source code. + \MessageBreak Type and rerun LaTeX}{\relax} \fi } @@ -2912,13 +2988,14 @@ \def\mtc@mtf@abbrev{X} \mtcPackageError[]{minitoc}% {\string\mtcsetformat \space has a wrong first argument - \MessageBreak - (#1). - \MessageBreak - It should be a mini-table type - \MessageBreak - (parttoc...sectlot)}% - {Correct the source code.\MessageBreak + \MessageBreak + (#1). + \MessageBreak + It should be a mini-table type + \MessageBreak + (parttoc...sectlot)}% + {Correct the source code. + \MessageBreak Type and rerun LaTeX} \else \edef\mtc@mtf@abbrev{\@nameuse{mtc@typetable@#1}} @@ -2931,9 +3008,11 @@ \MessageBreak (#2). \MessageBreak - It should be a formatting param choosen from:\MessageBreak + It should be a formatting param choosen from: + \MessageBreak pagenumwidth, tocrightmargin, dotinterval}% - {Correct the source code.\MessageBreak + {Correct the source code. + \MessageBreak Type and rerun LaTeX} \else \edef\mtc@fparam@abbrev{\@nameuse{mtc@formatparam@#2}} @@ -2941,15 +3020,18 @@ \if@mtc@setformat@ \def\mtc@tmpfm@name{\mtc@mtf@abbrev\mtc@fparam@abbrev} \mtcPackageInfo[]{minitoc}% - {\string\mtcsetformat\space redefines the macro\MessageBreak - "\mtc@tmpfm@name" as "\string#3"} + {\string\mtcsetformat\space redefines the macro + \MessageBreak + "\mtc@tmpfm@name" as "\string#3"} \expandafter\def\csname\mtc@tmpfm@name\endcsname{#3} \else \mtcPackageError[]{minitoc}% - {The macro \string\mtcsetformat\space has incompatible\MessageBreak + {The macro \string\mtcsetformat\space has incompatible + \MessageBreak first (#1) and second (#2) arguments}% - {Correct the source code.\MessageBreak - Type and rerun LaTeX} + {Correct the source code. + \MessageBreak + Type and rerun LaTeX} \fi } \newif\if@mtc@setpagenumbers@ \@mtc@setpagenumbers@false @@ -2986,8 +3068,10 @@ argument (#1)}% {It should be a mini-table type \MessageBreak - (parttoc...sectlot)\MessageBreak - Correct the source code.\MessageBreak + (parttoc...sectlot) + \MessageBreak + Correct the source code. + \MessageBreak Type and rerun LaTeX} \else \edef\mtc@mttpn@abbrev{\@nameuse{mtc@typetable@#1}} @@ -3003,8 +3087,10 @@ {\string\mtcsetpagenumbers \space has a wrong second \MessageBreak argument (#2)}% - {It should be a boolean value (0/1, yes/no, on/off)\MessageBreak - Correct the source code.\MessageBreak + {It should be a boolean value (0/1, yes/no, on/off, ...) + \MessageBreak + Correct the source code. + \MessageBreak Type and rerun LaTeX} \else \edef\mtc@pnsw@abbrev{\@nameuse{mtc@YN@#2}} @@ -3013,10 +3099,13 @@ \def\mtc@tmppn@name{\mtc@pnsw@abbrev\mtc@mttpn@abbrev pagenumbers} \expandafter\ifx\csname mtc@\mtc@pnsw@abbrev X\endcsname\mtc@noX \mtcPackageInfo[]{minitoc}% - {Page numbers are inhibited\MessageBreak for the #1s} + {Page numbers are inhibited + \MessageBreak + for the #1s} \else \mtcPackageInfo[]{minitoc}% - {Page numbers are activated\MessageBreak for the #1s} + {Page numbers are activated + \MessageBreak for the #1s} \fi \csname\mtc@tmppn@name\endcsname{} \fi @@ -3057,7 +3146,8 @@ \MessageBreak (parttoc...sectlot) \MessageBreak - Correct the source code.\MessageBreak + Correct the source code. + \MessageBreak Type and rerun LaTeX} \else \edef\mtc@mttru@abbrev{\@nameuse{mtc@typetable@#1}} @@ -3072,9 +3162,10 @@ {\string\mtcsetrules \space has a wrong second argument \MessageBreak (#2)}% - {It should be a boolean value (0/1, yes/no, on/off) + {It should be a boolean value (0/1, yes/no, on/off, ...) + \MessageBreak + Correct the source code. \MessageBreak - Correct the source code.\MessageBreak Type and rerun LaTeX} \else \edef\mtc@rusw@abbrev{\@nameuse{mtc@YN@#2}} @@ -3083,10 +3174,14 @@ \def\mtc@tmppn@name{\mtc@rusw@abbrev\mtc@mttru@abbrev rule} \expandafter\ifx\csname mtc@\mtc@rusw@abbrev X\endcsname\mtc@noX \mtcPackageInfo[]{minitoc}% - {Horizontal rules are inhibited\MessageBreak for the #1s} + {Horizontal rules are inhibited + \MessageBreak + for the #1s} \else \mtcPackageInfo[]{minitoc}% - {Horizontal rules are activated\MessageBreak for the #1s} + {Horizontal rules are activated + \MessageBreak + for the #1s} \fi \csname\mtc@tmppn@name\endcsname{} \fi @@ -3126,7 +3221,8 @@ It should be a mini-table type \MessageBreak (parttoc...sectlot)}% - {Correct the source code.\MessageBreak + {Correct the source code. + \MessageBreak Type and rerun LaTeX} \else \edef\mtc@mtfeat@abbrev{\@nameuse{mtc@ltypetable@#1}} @@ -3143,7 +3239,8 @@ It should be a feature param \MessageBreak (before, after, pagestyle)}% - {Correct the source code.\MessageBreak + {Correct the source code. + \MessageBreak Type and rerun LaTeX} \else \edef\mtc@featparam@abbrev{\@nameuse{mtc@featureparam@#2}} @@ -3153,14 +3250,19 @@ \def\mtc@tmpfeat@name% {\mtc@featparam@abbrev\mtc@mtfeat@abbrev\mtc@featparam@third} \mtcPackageInfo[]{minitoc}% - {\string\mtcsetfeature\space redefines the macro\MessageBreak - "\csname mtc@tmpfeat@name\endcsname" as\MessageBreak "\string#3"} + {\string\mtcsetfeature\space redefines the macro + \MessageBreak + "\csname mtc@tmpfeat@name\endcsname" as + \MessageBreak + "\string#3"} \expandafter\def\csname\mtc@tmpfeat@name\endcsname{#3} \else \mtcPackageError[]{minitoc}% - {The macro \string\mtcsetfeature\space has incompatible\MessageBreak + {The macro \string\mtcsetfeature\space has incompatible + \MessageBreak first (#1) and second (#2) arguments}% - {Correct the source code.\MessageBreak + {Correct the source code. + \MessageBreak Type and rerun LaTeX} \fi} \newif\if@mtc@setdepth@\@mtc@setdepth@true @@ -3172,12 +3274,14 @@ \def\mtc@mtade@abbrev{X} \mtcPackageError[]{minitoc}% {\string\mtcsetdepth \space has a wrong first argument - \MessageBreak (#1). + \MessageBreak + (#1). \MessageBreak It should be a mini-table type \MessageBreak (parttoc...sectlot)}% - {Correct the source code.\MessageBreak + {Correct the source code. + \MessageBreak Type and rerun LaTeX} \else \edef\mtc@mtade@abbrev{\@nameuse{mtc@ltypetable@#1}} @@ -3186,19 +3290,23 @@ \def\mtc@tmpde@name{\mtc@mtade@abbrev depth} \expandafter\noexpand\@ifundefined{c@\mtc@mtade@abbrev depth}% {\mtcPackageError[]{minitoc}% - {\string\mtcsetdepth \space attempts to use\MessageBreak + {\string\mtcsetdepth \space attempts to use + \MessageBreak an undefined counter (#1depth).}% - {Correct the source code.\MessageBreak + {Correct the source code. + \MessageBreak Type and rerun LaTeX}}{% \mtc@toks{#2} % trick for explicit message using \the. \mtcPackageInfo[]{minitoc}% - {\string\mtcsetdepth\space redefines the counter\MessageBreak + {\string\mtcsetdepth\space redefines the counter + \MessageBreak "\mtc@tmpde@name" as "\the\mtc@toks"}% \expandafter\csname c@\mtc@tmpde@name\endcsname=#2}% \else \mtcPackageError[]{minitoc}% {\string\mtcsetdepth:\space Illegal type of table (#1)}% - {Correct the source code.\MessageBreak + {Correct the source code. + \MessageBreak Type and rerun LaTeX}{\relax} \fi}% end of \mtcsetdepth \newif\if@mtc@Himtoc@ \@mtc@Himtoc@false @@ -3286,15 +3394,19 @@ \@ifundefined{section}% {\mtcPackageWarningNoLine[]{minitoc}% {\string\chapter\space and \string\section\space are undefined.% - \MessageBreak Cannot use \string\mtcfixglossary \space - without\MessageBreak optional argument [part]}% + \MessageBreak + Cannot use \string\mtcfixglossary \space without + \MessageBreak + optional argument [part]}% \@ifundefined{part}% {\mtcPackageError[]{minitoc}% {But \string\part\space is undefined}% {\string\mtcfixglossary\space not usable}}% {\mtcPackageWarningNoLine[]{minitoc}% - {\string\mtcfixglossary\space can only be used\MessageBreak - with the [part] optional argument,\MessageBreak + {\string\mtcfixglossary\space can only be used + \MessageBreak + with the [part] optional argument, + \MessageBreak which becomes the default}% \def\mtc@glofix@level{part}% }}% @@ -3326,15 +3438,19 @@ \@ifundefined{section}% {\mtcPackageWarningNoLine[]{minitoc}% {\string\chapter\space and \string\section\space are undefined.% - \MessageBreak Cannot use \string\mtcfixindex \space - without\MessageBreak optional argument [part]}% + \MessageBreak + Cannot use \string\mtcfixindex \space without + \MessageBreak + optional argument [part]}% \@ifundefined{part}% {\mtcPackageError[]{minitoc}% {But \string\part\space is undefined}% {\string\mtcfixindex\space not usable}}% {\mtcPackageWarningNoLine[]{minitoc}% - {\string\mtcfixindex\space can only be used with\MessageBreak - the [part] optional argument,\MessageBreak + {\string\mtcfixindex\space can only be used with + \MessageBreak + the [part] optional argument, + \MessageBreak which becomes the default}% \def\mtc@ixfix@level{part}% }}% @@ -3366,31 +3482,43 @@ \def\mtcselectlanguage#1{% \InputIfFileExists{#1.mld}% {\mtcPackageInfo[]{minitoc}{The #1 language is selected.% - \MessageBreak}}% + \MessageBreak + }}% {\mtcPackageError[]{minitoc}% - {#1 is not a known language, \MessageBreak - #1.mld not found. \MessageBreak + {#1 is not a known language, + \MessageBreak + #1.mld not found. + \MessageBreak Command ignored}% - {See the minitoc documentation. \MessageBreak - Correct the source using a valid language name. \MessageBreak + {See the minitoc documentation. + \MessageBreak + Correct the source using a valid language name. + \MessageBreak Press RETURN}}% } \def\mtcloadmlo#1{% \if@mtc@insellang@ \InputIfFileExists{#1.mlo}% {\mtcPackageInfo[]{minitoc}% - {#1 minitoc language object selected.\MessageBreak}}% + {#1 minitoc language object selected. + \MessageBreak}}% {\mtcPackageError[]{minitoc}% - {#1 is not a known minitoc\MessageBreak - language object file (.mlo), \MessageBreak - #1.mlo not found. \MessageBreak + {#1 is not a known minitoc + \MessageBreak + language object file (.mlo), + \MessageBreak + #1.mlo not found. + \MessageBreak Command ignored}% - {See the minitoc documentation. \MessageBreak - Correct the source using a valid language name. \MessageBreak + {See the minitoc documentation. + \MessageBreak + Correct the source using a valid language name. + \MessageBreak Press RETURN}}% \else \mtcPackageError[]{minitoc}% - {You are using the \string\mtcloadmlo\space command\MessageBreak + {You are using the \string\mtcloadmlo\space command + \MessageBreak outside of a .mld file}% {It will be ignored} \@mtc@insellang@false @@ -3425,7 +3553,8 @@ a document where chapters are defined. \MessageBreak This is not compatible: option ignored.}% - {Remove this option.\MessageBreak + {Remove this option. + \MessageBreak Type and rerun LaTeX} }}% {% @@ -3436,179 +3565,267 @@ \newif\if@mtc@listfiles@ \@mtc@listfiles@true \DeclareOption{listfiles}{\@mtc@listfiles@true} \DeclareOption{nolistfiles}{\@mtc@listfiles@false} -\DeclareOption{acadian}{\mtcselectlanguage{acadian}}% -\DeclareOption{acadien}{\mtcselectlanguage{acadien}}% -\DeclareOption{afrikaan}{\mtcselectlanguage{afrikaan}}% -\DeclareOption{afrikaans}{\mtcselectlanguage{afrikaans}}% -\DeclareOption{albanian}{\mtcselectlanguage{albanian}}% -\DeclareOption{american}{\mtcselectlanguage{american}}% -\DeclareOption{arab}{\mtcselectlanguage{arab}}% -\DeclareOption{arab2}{\mtcselectlanguage{arab2}}% -\DeclareOption{arabi}{\mtcselectlanguage{arabi}}% -\DeclareOption{arabic}{\mtcselectlanguage{arabic}}% -\DeclareOption{armenian}{\mtcselectlanguage{armenian}}% -\DeclareOption{australian}{\mtcselectlanguage{australian}}% -\DeclareOption{austrian}{\mtcselectlanguage{austrian}}% -\DeclareOption{bahasa}{\mtcselectlanguage{bahasa}}% -\DeclareOption{bahasai}{\mtcselectlanguage{bahasai}}% -\DeclareOption{bahasam}{\mtcselectlanguage{bahasam}}% -\DeclareOption{bangla}{\mtcselectlanguage{bangla}}% -\DeclareOption{basque}{\mtcselectlanguage{basque}}% -\DeclareOption{bicig}{\mtcselectlanguage{bicig}}% -\DeclareOption{bicig2}{\mtcselectlanguage{bicig2}}% -\DeclareOption{bicig3}{\mtcselectlanguage{bicig3}}% -\DeclareOption{bithe}{\mtcselectlanguage{bithe}}% -\DeclareOption{brazil}{\mtcselectlanguage{brazil}}% -\DeclareOption{brazilian}{\mtcselectlanguage{brazilian}}% -\DeclareOption{breton}{\mtcselectlanguage{breton}}% -\DeclareOption{british}{\mtcselectlanguage{british}}% -\DeclareOption{bulgarian}{\mtcselectlanguage{bulgarian}}% -\DeclareOption{bulgarianb}{\mtcselectlanguage{bulgarianb}}% -\DeclareOption{buryat}{\mtcselectlanguage{buryat}}% -\DeclareOption{buryat2}{\mtcselectlanguage{buryat2}}% -\DeclareOption{canadian}{\mtcselectlanguage{canadian}}% -\DeclareOption{canadien}{\mtcselectlanguage{canadien}}% -\DeclareOption{castillan}{\mtcselectlanguage{castillan}}% -\DeclareOption{castillian}{\mtcselectlanguage{castillian}}% -\DeclareOption{catalan}{\mtcselectlanguage{catalan}}% -\DeclareOption{chinese1}{\mtcselectlanguage{chinese1}}% -\DeclareOption{chinese2}{\mtcselectlanguage{chinese2}}% -\DeclareOption{croatian}{\mtcselectlanguage{croatian}}% -\DeclareOption{czech}{\mtcselectlanguage{czech}}% -\DeclareOption{danish}{\mtcselectlanguage{danish}}% -\DeclareOption{devanagari}{\mtcselectlanguage{devanagari}}% -\DeclareOption{dutch}{\mtcselectlanguage{dutch}}% -\DeclareOption{english}{\mtcselectlanguage{english}}% -\DeclareOption{english1}{\mtcselectlanguage{english1}}% -\DeclareOption{english2}{\mtcselectlanguage{english2}}% -\DeclareOption{esperant}{\mtcselectlanguage{esperant}}% -\DeclareOption{esperanto}{\mtcselectlanguage{esperanto}}% -\DeclareOption{estonian}{\mtcselectlanguage{estonian}}% -\DeclareOption{ethiopia}{\mtcselectlanguage{ethiopia}}% -\DeclareOption{ethiopian}{\mtcselectlanguage{ethiopian}}% -\DeclareOption{ethiopian2}{\mtcselectlanguage{ethiopian2}}% -\DeclareOption{farsi1}{\mtcselectlanguage{farsi1}}% -\DeclareOption{farsi2}{\mtcselectlanguage{farsi2}}% -\DeclareOption{farsi3}{\mtcselectlanguage{farsi3}}% -\DeclareOption{finnish}{\mtcselectlanguage{finnish}}% -\DeclareOption{finnish2}{\mtcselectlanguage{finnish2}}% -\DeclareOption{francais}{\mtcselectlanguage{francais}}% -\DeclareOption{french}{\mtcselectlanguage{french}}% -\DeclareOption{french1}{\mtcselectlanguage{french1}}% -\DeclareOption{french2}{\mtcselectlanguage{french2}}% -\DeclareOption{frenchb}{\mtcselectlanguage{frenchb}}% -\DeclareOption{frenchle}{\mtcselectlanguage{frenchle}}% -\DeclareOption{frenchpro}{\mtcselectlanguage{frenchpro}}% -\DeclareOption{galician}{\mtcselectlanguage{galician}}% -\DeclareOption{german}{\mtcselectlanguage{german}}% -\DeclareOption{germanb}{\mtcselectlanguage{germanb}}% -\DeclareOption{germanb2}{\mtcselectlanguage{germanb2}}% -\DeclareOption{greek}{\mtcselectlanguage{greek}}% -\DeclareOption{greek-mono}{\mtcselectlanguage{greek-mono}}% -\DeclareOption{greek-polydemo}{\mtcselectlanguage{greek-polydemo}}% -\DeclareOption{greek-polykatha}{\mtcselectlanguage{greek-polykatha}}% -\DeclareOption{guarani}{\mtcselectlanguage{guarani}}% -\DeclareOption{hangul1}{\mtcselectlanguage{hangul1}}% -\DeclareOption{hangul2}{\mtcselectlanguage{hangul2}}% -\DeclareOption{hangul3}{\mtcselectlanguage{hangul3}}% -\DeclareOption{hangul4}{\mtcselectlanguage{hangul4}}% -\DeclareOption{hangul-u8}{\mtcselectlanguage{hangul-u8}}% -\DeclareOption{hanja1}{\mtcselectlanguage{hanja1}}% -\DeclareOption{hanja2}{\mtcselectlanguage{hanja2}}% -\DeclareOption{hanja-u8}{\mtcselectlanguage{hanja-u8}}% -\DeclareOption{hebrew}{\mtcselectlanguage{hebrew}}% -\DeclareOption{hebrew2}{\mtcselectlanguage{hebrew2}}% -\DeclareOption{hindi}{\mtcselectlanguage{hindi}}% -\DeclareOption{hindi-modern}{\mtcselectlanguage{hindi-modern}}% -\DeclareOption{hungarian}{\mtcselectlanguage{hungarian}}% -\DeclareOption{icelandic}{\mtcselectlanguage{icelandic}}% -\DeclareOption{indon}{\mtcselectlanguage{indon}}% -\DeclareOption{indonesian}{\mtcselectlanguage{indonesian}}% -\DeclareOption{interlingua}{\mtcselectlanguage{interlingua}}% -\DeclareOption{irish}{\mtcselectlanguage{irish}}% -\DeclareOption{italian}{\mtcselectlanguage{italian}}% -\DeclareOption{italian2}{\mtcselectlanguage{italian2}}% -\DeclareOption{japanese}{\mtcselectlanguage{japanese}}% -\DeclareOption{japanese2}{\mtcselectlanguage{japanese2}}% -\DeclareOption{japanese3}{\mtcselectlanguage{japanese3}}% -\DeclareOption{japanese4}{\mtcselectlanguage{japanese4}}% -\DeclareOption{japanese5}{\mtcselectlanguage{japanese5}}% -\DeclareOption{kannada}{\mtcselectlanguage{kannada}}% -\DeclareOption{khalkha}{\mtcselectlanguage{khalkha}}% -\DeclareOption{latin}{\mtcselectlanguage{latin}}% -\DeclareOption{latin2}{\mtcselectlanguage{latin2}}% -\DeclareOption{latvian}{\mtcselectlanguage{latvian}}% -\DeclareOption{letton}{\mtcselectlanguage{letton}}% -\DeclareOption{lithuanian}{\mtcselectlanguage{lithuanian}}% -\DeclareOption{lowersorbian}{\mtcselectlanguage{lowersorbian}}% -\DeclareOption{lsorbian}{\mtcselectlanguage{lsorbian}}% -\DeclareOption{magyar}{\mtcselectlanguage{magyar}}% -\DeclareOption{magyar2}{\mtcselectlanguage{magyar2}}% -\DeclareOption{magyar3}{\mtcselectlanguage{magyar3}}% -\DeclareOption{malay}{\mtcselectlanguage{malay}}% -\DeclareOption{malayalam-keli}{\mtcselectlanguage{malayalam-keli}}% -\DeclareOption{malayalam-omega}{\mtcselectlanguage{malayalam-omega}}% -\DeclareOption{malayalam-rachana}{\mtcselectlanguage{malayalam-rachana}}% -\DeclareOption{malayalam-rachana2}{\mtcselectlanguage{malayalam-rachana2}}% -\DeclareOption{manju}{\mtcselectlanguage{manju}}% -\DeclareOption{meyalu}{\mtcselectlanguage{meyalu}}% -\DeclareOption{mongol}{\mtcselectlanguage{mongol}}% -\DeclareOption{naustrian}{\mtcselectlanguage{naustrian}}% -\DeclareOption{newzealand}{\mtcselectlanguage{newzealand}}% -\DeclareOption{ngerman}{\mtcselectlanguage{ngerman}}% -\DeclareOption{ngermanb}{\mtcselectlanguage{ngermanb}}% -\DeclareOption{ngermanb2}{\mtcselectlanguage{ngermanb2}}% -\DeclareOption{norsk}{\mtcselectlanguage{norsk}}% -\DeclareOption{norsk2}{\mtcselectlanguage{norsk2}}% -\DeclareOption{nynorsk2}{\mtcselectlanguage{nynorsk2}}% -\DeclareOption{polish}{\mtcselectlanguage{polish}}% -\DeclareOption{polish2}{\mtcselectlanguage{polish2}}% -\DeclareOption{polski}{\mtcselectlanguage{polski}}% -\DeclareOption{portuges}{\mtcselectlanguage{portuges}}% -\DeclareOption{portuguese}{\mtcselectlanguage{portuguese}}% -\DeclareOption{romanian}{\mtcselectlanguage{romanian}}% -\DeclareOption{romanian2}{\mtcselectlanguage{romanian2}}% -\DeclareOption{romanian3}{\mtcselectlanguage{romanian3}}% -\DeclareOption{russian}{\mtcselectlanguage{russian}}% -\DeclareOption{russianb}{\mtcselectlanguage{russianb}}% -\DeclareOption{russianc}{\mtcselectlanguage{russianc}}% -\DeclareOption{russian2m}{\mtcselectlanguage{russian2m}}% -\DeclareOption{russian2o}{\mtcselectlanguage{russian2o}}% -\DeclareOption{russian-cca}{\mtcselectlanguage{russian-cca}}% -\DeclareOption{russian-cca1}{\mtcselectlanguage{russian-cca1}}% -\DeclareOption{russian-lh}{\mtcselectlanguage{russian-lh}}% -\DeclareOption{russian-lhcyralt}{\mtcselectlanguage{russian-lhcyralt}}% -\DeclareOption{russian-lhcyrkoi}{\mtcselectlanguage{russian-lhcyrkoi}}% -\DeclareOption{russian-lhcyrwin}{\mtcselectlanguage{russian-lhcyrwin}}% -\DeclareOption{samin}{\mtcselectlanguage{samin}}% -\DeclareOption{scottish}{\mtcselectlanguage{scottish}}% -\DeclareOption{serbian}{\mtcselectlanguage{serbian}}% -\DeclareOption{serbianc}{\mtcselectlanguage{serbianc}}% -\DeclareOption{slovak}{\mtcselectlanguage{slovak}}% -\DeclareOption{slovene}{\mtcselectlanguage{slovene}}% -\DeclareOption{spanish}{\mtcselectlanguage{spanish}}% -\DeclareOption{spanish2}{\mtcselectlanguage{spanish2}}% -\DeclareOption{spanish3}{\mtcselectlanguage{spanish3}}% -\DeclareOption{spanish4}{\mtcselectlanguage{spanish4}}% -\DeclareOption{swedish}{\mtcselectlanguage{swedish}}% -\DeclareOption{swedish2}{\mtcselectlanguage{swedish2}}% -\DeclareOption{thai}{\mtcselectlanguage{thai}}% -\DeclareOption{turkish}{\mtcselectlanguage{turkish}}% -\DeclareOption{uighur}{\mtcselectlanguage{uighur}}% -\DeclareOption{uighur2}{\mtcselectlanguage{uighur2}}% -\DeclareOption{uighur3}{\mtcselectlanguage{uighur3}}% -\DeclareOption{UKenglish}{\mtcselectlanguage{UKenglish}}% -\DeclareOption{ukraineb}{\mtcselectlanguage{ukraineb}}% -\DeclareOption{ukrainian}{\mtcselectlanguage{ukrainian}}% -\DeclareOption{uppersorbian}{\mtcselectlanguage{uppersorbian}}% -\DeclareOption{USenglish}{\mtcselectlanguage{USenglish}}% -\DeclareOption{usorbian}{\mtcselectlanguage{usorbian}}% -\DeclareOption{vietnam}{\mtcselectlanguage{vietnam}}% -\DeclareOption{vietnamese}{\mtcselectlanguage{vietnamese}}% -\DeclareOption{welsh}{\mtcselectlanguage{welsh}}% -\DeclareOption{xalx}{\mtcselectlanguage{xalx}}% -\DeclareOption{xalx2}{\mtcselectlanguage{xalx2}}% -\DeclareOption{xalx3}{\mtcselectlanguage{xalx3}}% +\newif\if@mtc@misslang\@mtc@misslangfalse +\newcommand{\mtc@setlangopt}[1]{% + \IfFileExists{#1.mld}% + {\DeclareOption{#1}{\mtcselectlanguage{#1}}}% + {\@mtc@misslangtrue + \mtcPackageInfo[]{minitoc}% + {The required "#1.mld" file is missing. + \MessageBreak + The "#1" language option will not be available. + \MessageBreak + Please install it from a recent distribution + \MessageBreak + or from the CTAN archives\@gobble}}% +}% +\newcommand{\mtc@setlangopto}[1]{% + \IfFileExists{#1.mlo}% + {\mtc@setlangopt{#1}}% + {\@mtc@misslangtrue + \mtcPackageInfo[]{minitoc}% + {The required "#1.mlo" file is missing. + \MessageBreak + The "#1" language option will not be available. + \MessageBreak + Please install it from a recent distribution + \MessageBreak + or from the CTAN archives\@gobble}% + \IfFileExists{#1.mld}{}% + {\@mtc@misslangtrue + \mtcPackageInfo[]{minitoc}% + {The required "#1.mld" file is missing. + \MessageBreak + The "#1" language option will not be available. + \MessageBreak + Please install it from a recent distribution + \MessageBreak + or from the CTAN archives\@gobble}% + }% + }% +}% +\newcommand{\mtc@setlangoptm}[1]{% + \IfFileExists{#1.mld}% + {\DeclareOption{#1}{\mtcselectlanguage{#1}}}% + {\@mtc@misslangtrue + \mtcPackageError[]{minitoc}% + {Your minitoc installation is incomplete. + \MessageBreak + A mandatory minitoc language object file, + \MessageBreak + #1.mld, is not found. + \MessageBreak + We will try to continue with + \MessageBreak + current/default values}% + {See the minitoc documentation. + \MessageBreak + Please fix your minitoc installation. + \MessageBreak + Press to continue}% + \providecommand{\ptctitle}{Table of Contents}% + \providecommand{\plftitle}{List of Figures}% + \providecommand{\plttitle}{List of Tables}% + \providecommand{\mtctitle}{Contents}% + \providecommand{\mlftitle}{Figures}% + \providecommand{\mlttitle}{Tables}% + \providecommand{\stctitle}{Contents}% + \providecommand{\slftitle}{Figures}% + \providecommand{\slttitle}{Tables}% +}}% +\AtEndDocument{% + \if@mtc@misslang + \mtcPackageWarningNoLine[]{minitoc}% + {Some "*.mld" or "*mlo" files are missing + \MessageBreak + in your installation. + \MessageBreak + Search the I0050 and I0051 info messages + \MessageBreak + in the .log file. + \MessageBreak + Please install the missing files from + \MessageBreak + a recent distribution + \MessageBreak + or from the CTAN archives}% + \fi +}% +\mtc@setlangopt{acadian}% +\mtc@setlangopt{acadien}% +\mtc@setlangopt{afrikaan}% +\mtc@setlangopt{afrikaans}% +\mtc@setlangopt{albanian}% +\mtc@setlangopt{american}% +\mtc@setlangopt{arab}% +\mtc@setlangopt{arab2}% +\mtc@setlangopt{arabi}% +\mtc@setlangopt{arabic}% +\mtc@setlangopt{armenian}% +\mtc@setlangopt{australian}% +\mtc@setlangopt{austrian}% +\mtc@setlangopt{bahasa}% +\mtc@setlangopt{bahasai}% +\mtc@setlangopt{bahasam}% +\mtc@setlangopt{bangla}% +\mtc@setlangopt{basque}% +\mtc@setlangopt{bicig}% +\mtc@setlangopt{bicig2}% +\mtc@setlangopt{bicig3}% +\mtc@setlangopt{bithe}% +\mtc@setlangopt{brazil}% +\mtc@setlangopt{brazilian}% +\mtc@setlangopt{breton}% +\mtc@setlangopt{british}% +\mtc@setlangopt{bulgarian}% +\mtc@setlangopt{bulgarianb}% +\mtc@setlangopt{buryat}% +\mtc@setlangopt{buryat2}% +\mtc@setlangopt{canadian}% +\mtc@setlangopt{canadien}% +\mtc@setlangopt{castillan}% +\mtc@setlangopt{castillian}% +\mtc@setlangopt{catalan}% +\mtc@setlangopto{chinese1}% % .mlo +\mtc@setlangopto{chinese2}% % .mlo +\mtc@setlangopt{croatian}% +\mtc@setlangopt{czech}% +\mtc@setlangopt{danish}% +\mtc@setlangopt{devanagari}% +\mtc@setlangopt{dutch}% +\mtc@setlangoptm{english}% % mandatory +\mtc@setlangopt{english1}% +\mtc@setlangopt{english2}% +\mtc@setlangopt{esperant}% +\mtc@setlangopt{esperanto}% +\mtc@setlangopt{estonian}% +\mtc@setlangopt{ethiopia}% +\mtc@setlangopt{ethiopian}% +\mtc@setlangopt{ethiopian2}% +\mtc@setlangopto{farsi1}% % .mlo +\mtc@setlangopto{farsi2}% % .mlo +\mtc@setlangopt{farsi3}% +\mtc@setlangopt{finnish}% +\mtc@setlangopt{finnish2}% +\mtc@setlangopt{francais}% +\mtc@setlangopt{french}% +\mtc@setlangopt{french1}% +\mtc@setlangopt{french2}% +\mtc@setlangopt{frenchb}% +\mtc@setlangopt{frenchle}% +\mtc@setlangopt{frenchpro}% +\mtc@setlangopt{galician}% +\mtc@setlangopt{german}% +\mtc@setlangopt{germanb}% +\mtc@setlangopt{germanb2}% +\mtc@setlangopt{greek}% +\mtc@setlangopt{greek-mono}% +\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@setlangopt{hebrew}% +\mtc@setlangopt{hebrew2}% +\mtc@setlangopt{hindi}% +\mtc@setlangopt{hindi-modern}% +\mtc@setlangopt{hungarian}% +\mtc@setlangopt{icelandic}% +\mtc@setlangopt{indon}% +\mtc@setlangopt{indonesian}% +\mtc@setlangopt{interlingua}% +\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@setlangopt{kannada}% +\mtc@setlangopt{khalkha}% +\mtc@setlangopt{latin}% +\mtc@setlangopt{latin2}% +\mtc@setlangopt{latvian}% +\mtc@setlangopt{letton}% +\mtc@setlangopt{lithuanian}% +\mtc@setlangopt{lowersorbian}% +\mtc@setlangopt{lsorbian}% +\mtc@setlangopt{magyar}% +\mtc@setlangopt{magyar2}% +\mtc@setlangopt{magyar3}% +\mtc@setlangopt{malay}% +\mtc@setlangopt{malayalam-keli}% +\mtc@setlangopto{malayalam-omega}% % .mlo +\mtc@setlangopt{malayalam-rachana}% +\mtc@setlangopt{malayalam-rachana2}% +\mtc@setlangopt{manju}% +\mtc@setlangopt{meyalu}% +\mtc@setlangopt{mongol}% +\mtc@setlangopt{naustrian}% +\mtc@setlangopt{ngerman}% +\mtc@setlangopt{newzealand}% +\mtc@setlangopt{ngermanb}% +\mtc@setlangopt{ngermanb2}% +\mtc@setlangopt{norsk}% +\mtc@setlangopt{norsk2}% +\mtc@setlangopt{nynorsk}% +\mtc@setlangopt{nynorsk2}% +\mtc@setlangopt{polish}% +\mtc@setlangopt{polish2}% +\mtc@setlangopt{polski}% +\mtc@setlangopt{portuges}% +\mtc@setlangopt{portuguese}% +\mtc@setlangopt{romanian}% +\mtc@setlangopt{romanian2}% +\mtc@setlangopt{romanian3}% +\mtc@setlangopt{russian}% +\mtc@setlangopt{russianb}% +\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@setlangopt{samin}% +\mtc@setlangopt{scottish}% +\mtc@setlangopt{serbian}% +\mtc@setlangopt{serbianc}% +\mtc@setlangopt{slovak}% +\mtc@setlangopt{slovene}% +\mtc@setlangopt{spanish}% +\mtc@setlangopt{spanish2}% +\mtc@setlangopt{spanish3}% +\mtc@setlangopt{spanish4}% +\mtc@setlangopt{swedish}% +\mtc@setlangopt{swedish2}% +\mtc@setlangopto{thai}% % .mlo +\mtc@setlangopt{turkish}% +\mtc@setlangopt{uighur}% +\mtc@setlangopt{uighur2}% +\mtc@setlangopt{uighur3}% +\mtc@setlangopt{UKenglish}% +\mtc@setlangopt{ukraineb}% +\mtc@setlangopt{ukrainian}% +\mtc@setlangopt{uppersorbian}% +\mtc@setlangopt{USenglish}% +\mtc@setlangopt{usorbian}% +\mtc@setlangopt{vietnam}% +\mtc@setlangopt{vietnamese}% +\mtc@setlangopt{welsh}% +\mtc@setlangopt{xalx}% +\mtc@setlangopt{xalx2}% +\mtc@setlangopt{xalx3}% \DeclareOption{hints}{\@mtc@hints@true} \DeclareOption{nohints}{\@mtc@hints@false} \newif\if@mtc@abstract@loaded@ \@mtc@abstract@loaded@false @@ -3617,54 +3834,73 @@ \newif\if@mtc@lot@used@ \global\@mtc@lot@used@false \def\mtc@hints@begindoc{% \mtcPackageInfo[]{minitoc(hints)}% - {==> You requested the hints option\MessageBreak + {==> You requested the hints option + \MessageBreak Some hints are eventually given below\@gobble}% \@ifpackageloaded{alphanum}% {\@mtc@hints@given@true \mtcPackageWarningNoLine[]{minitoc(hints)}% - {--- The alphanum package is loaded. \MessageBreak - It is incompatible\MessageBreak with the minitoc package}}{}% + {--- The alphanum package is loaded. + \MessageBreak + It is incompatible + \MessageBreak + with the minitoc package}}{}% \@ifpackageloaded{appendix}{% \@mtc@hints@given@true \mtcPackageInfo[]{minitoc(hints)}% - {--- The appendix package is loaded. \MessageBreak - See the minitoc package documentation\MessageBreak + {--- The appendix package is loaded. + \MessageBreak + See the minitoc package documentation + \MessageBreak for specific precautions\@gobble}}{}% \@ifpackageloaded{tocbibind}% {\@mtc@hints@given@true \mtcPackageInfo[]{minitoc(hints)}% - {--- The tocbibind package is loaded. \MessageBreak - See the minitoc package documentation\MessageBreak + {--- The tocbibind package is loaded. + \MessageBreak + See the minitoc package documentation + \MessageBreak for specific precautions\@gobble}}{}% \@ifclassloaded{scrbook}% {\@mtc@hints@given@true \mtcPackageInfo[]{minitoc(hints)}% - {--- The KOMAScript scrbook class is loaded. \MessageBreak - See the minitoc package documentation\MessageBreak + {--- The KOMAScript scrbook class is loaded. + \MessageBreak + See the minitoc package documentation + \MessageBreak for specific precautions\@gobble}}{}% \@ifclassloaded{scrreprt}% {\@mtc@hints@given@true \mtcPackageInfo[]{minitoc(hints)}% - {--- The KOMAScript scrreprt class is loaded. \MessageBreak - See the minitoc package documentation\MessageBreak + {--- The KOMAScript scrreprt class is loaded. + \MessageBreak + See the minitoc package documentation + \MessageBreak for specific precautions\@gobble}}{}% \@ifclassloaded{scrartcl}% {\@mtc@hints@given@true \mtcPackageInfo[]{minitoc(hints)}% - {--- The KOMAScript scrartcl class is loaded. \MessageBreak - See the minitoc package documentation\MessageBreak + {--- The KOMAScript scrartcl class is loaded. + \MessageBreak + See the minitoc package documentation + \MessageBreak for specific precautions\@gobble}}{}% \@ifpackageloaded{tocloft}% {\@mtc@hints@given@true \mtcPackageInfo[]{minitoc(hints)}% - {--- The tocloft package is loaded. \MessageBreak - See the minitoc package documentation\MessageBreak + {--- The tocloft package is loaded. + \MessageBreak + See the minitoc package documentation + \MessageBreak for specific precautions\@gobble}}{}% \@ifpackageloaded{titletoc}% {\@mtc@hints@given@true \mtcPackageWarningNoLine[]{minitoc(hints)}% - {--- The titletoc package is loaded. \MessageBreak - It is incompatible\MessageBreak with the minitoc package}}{}% + {--- The titletoc package is loaded. + \MessageBreak + It is incompatible + \MessageBreak + with the minitoc package}}{}% \@ifpackageloaded{placeins}% {\if@mtc@ss@insection@ \@ifpackagewith{placeins}{section}{}% @@ -3678,9 +3914,10 @@ \MessageBreak which implies it. Try to inverse the \MessageBreak - loading order and use coherent options. + loading order and use consistent options. + \MessageBreak + You may have got a message \MessageBreak - You may have got a message\MessageBreak ! LaTeX Error: Option clash for package placeins}% }% \@ifpackagewith{placeins}{above}% @@ -3696,7 +3933,7 @@ \MessageBreak Try to remove the above option \MessageBreak - and use coherent options}% + and use consistent options}% }{}% \@ifpackagewith{placeins}{below}% {\@mtc@hints@given@true @@ -3711,7 +3948,7 @@ \MessageBreak Try to remove the below option \MessageBreak - and use coherent options}% + and use consistent options}% }{}% \fi \@ifpackagelater{placeins}{2005/04/18}{}{% @@ -3727,25 +3964,34 @@ \@ifclassloaded{memoir}% {\@mtc@hints@given@true \mtcPackageInfo[]{minitoc(hints)}% - {--- The memoir class is loaded. \MessageBreak - See the minitoc package documentation\MessageBreak + {--- The memoir class is loaded. + \MessageBreak + See the minitoc package documentation + \MessageBreak for specific precautions\@gobble}{}% }{}% \@ifclassloaded{amsart}% {\@mtc@hints@given@true \mtcPackageWarningNoLine[]{minitoc(hints)}% - {--- The amsart class is loaded. \MessageBreak - It is incompatible\MessageBreak with the minitoc package}}{}% + {--- The amsart class is loaded. + \MessageBreak + It is incompatible + \MessageBreak + with the minitoc package}}{}% \@ifclassloaded{amsproc}% {\@mtc@hints@given@true \mtcPackageWarningNoLine[]{minitoc(hints)}% - {--- The amsproc class is loaded. \MessageBreak - It is incompatible\MessageBreak with the minitoc package}}{}% + {--- The amsproc class is loaded. + \MessageBreak + It is incompatible + \MessageBreak with the minitoc package}}{}% \@ifclassloaded{amsbook}% {\@mtc@hints@given@true \mtcPackageInfo[]{minitoc(hints)}% - {--- The amsbook class is loaded. \MessageBreak - See the minitoc package documentation\MessageBreak + {--- The amsbook class is loaded. + \MessageBreak + See the minitoc package documentation + \MessageBreak for specific precautions\@gobble}{}% }{}% \@ifpackageloaded{abstract}% @@ -3753,17 +3999,22 @@ \@ifpackagewith{abstract}{addtotoc}% {\@mtc@hints@given@true \mtcPackageInfo[]{minitoc(hints)}% - {The ``abstract'' package has been\MessageBreak - loaded with the ``addtotoc'' option.\MessageBreak - You need to look at the\MessageBreak + {The ``abstract'' package has been + \MessageBreak + loaded with the ``addtotoc'' option. + \MessageBreak + You need to look at the + \MessageBreak documentation to adjust. \MessageBreak} }}{} \@ifclassloaded{jura}% {\@mtc@hints@given@true \mtcPackageWarningNoLine[]{minitoc(hints)}% - {--- The jura class is loaded. \MessageBreak - It is incompatible\MessageBreak with the minitoc package}}{}% + {--- The jura class 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} @@ -3773,11 +4024,13 @@ \else\@mtc@hints@w@true\fi} \if@mtc@hints@w@\@mtc@hints@given@true% \mtcPackageWarningNoLine[]{minitoc(hints)}% - {--- The \string\part\space command is altered\MessageBreak + {--- The \string\part\space command is altered + \MessageBreak after minitoc} \if@mtc@hyper@used@ \mtcPackageWarningNoLine[]{minitoc(hints)}% - {--- It may be the consequence\MessageBreak + {--- It may be the consequence + \MessageBreak of loading the ``hyperref'' package} \fi \fi @@ -3790,11 +4043,13 @@ \else\@mtc@hints@w@true\fi}% \if@mtc@hints@w@\@mtc@hints@given@true% \mtcPackageWarningNoLine[]{minitoc(hints)}% - {--- The \string\chapter\space command is altered\MessageBreak + {--- The \string\chapter\space command is altered + \MessageBreak after minitoc} \if@mtc@hyper@used@ \mtcPackageWarningNoLine[]{minitoc(hints)}% - {--- It may be the consequence\MessageBreak + {--- It may be the consequence + \MessageBreak of loading the ``hyperref'' package} \fi \fi @@ -3808,11 +4063,13 @@ \@mtc@hints@w@true\fi} \if@mtc@hints@w@\@mtc@hints@given@true% \mtcPackageWarningNoLine[]{minitoc(hints)}% - {--- The \string\section\space command is altered\MessageBreak + {--- The \string\section\space command is altered + \MessageBreak after minitoc} \if@mtc@hyper@used@ \mtcPackageWarningNoLine[]{minitoc(hints)}% - {--- It may be the consequence\MessageBreak + {--- It may be the consequence + \MessageBreak of loading the ``hyperref'' package} \fi \relax\else\fi}{}% @@ -3849,10 +4106,12 @@ \if@mtc@placeinsLoaded@ \else \if@mtc@sect@floats@% \mtcPackageWarningNoLine[]{minitoc(hints)}% - {You are using \string\dosectlof\space and/or \MessageBreak + {You are using \string\dosectlof\space and/or + \MessageBreak \string\dosectlot, \string\sectlof\space and/or \string\sectlot, \MessageBreak - hence the ``insection'' package\MessageBreak + hence the ``insection'' package + \MessageBreak option is recommended}% \@mtc@hints@w@true \@mtc@hints@given@true \fi @@ -3861,7 +4120,8 @@ \if@parttoc@used@ \if@doparttoc@used@\else \mtcPackageWarningNoLine[]{minitoc(hints)}% - {You have used \string\parttoc,\MessageBreak + {You have used \string\parttoc, + \MessageBreak but not \string\doparttoc} \@mtc@hints@given@true \fi @@ -3869,7 +4129,8 @@ \if@partlof@used@ \if@dopartlof@used@\else \mtcPackageWarningNoLine[]{minitoc(hints)}% - {You have used \string\partlof,\MessageBreak + {You have used \string\partlof, + \MessageBreak but not \string\dopartlof} \@mtc@hints@given@true \fi @@ -3877,7 +4138,8 @@ \if@partlot@used@ \if@dopartlot@used@\else \mtcPackageWarningNoLine[]{minitoc(hints)}% - {You have used \string\partlot,\MessageBreak + {You have used \string\partlot, + \MessageBreak but not \string\dopartlot} \@mtc@hints@given@true \fi @@ -3887,7 +4149,8 @@ \if@minitoc@used@ \if@dominitoc@used@\else \mtcPackageWarningNoLine[]{minitoc(hints)}% - {You have used \string\minitoc,\MessageBreak + {You have used \string\minitoc, + \MessageBreak but not \string\dominitoc} \@mtc@hints@given@true \fi @@ -3895,7 +4158,8 @@ \if@minilof@used@ \if@dominilof@used@\else \mtcPackageWarningNoLine[]{minitoc(hints)}% - {You have used \string\minilof,\MessageBreak + {You have used \string\minilof, + \MessageBreak but not \string\dominilof} \@mtc@hints@given@true \fi @@ -3903,7 +4167,8 @@ \if@minilot@used@ \if@dominilot@used@\else \mtcPackageWarningNoLine[]{minitoc(hints)}% - {You have used \string\minilot,\MessageBreak + {You have used \string\minilot, + \MessageBreak but not \string\dominilot} \@mtc@hints@given@true \fi @@ -3913,7 +4178,8 @@ \if@secttoc@used@ \if@dosecttoc@used@\else \mtcPackageWarningNoLine[]{minitoc(hints)}% - {You have used \string\secttoc,\MessageBreak + {You have used \string\secttoc, + \MessageBreak but not \string\dosecttoc} \@mtc@hints@given@true \fi @@ -3921,7 +4187,8 @@ \if@sectlof@used@ \if@dosectlof@used@\else \mtcPackageWarningNoLine[]{minitoc(hints)}% - {You have used \string\sectlof,\MessageBreak + {You have used \string\sectlof, + \MessageBreak but not \string\dosectlof} \@mtc@hints@given@true \fi @@ -3929,7 +4196,8 @@ \if@sectlot@used@ \if@dosectlot@used@\else \mtcPackageWarningNoLine[]{minitoc(hints)}% - {You have used \string\sectlot,\MessageBreak + {You have used \string\sectlot, + \MessageBreak but not \string\dosectlot} \fi \fi @@ -3938,7 +4206,8 @@ \if@doparttoc@used@ \if@parttoc@used@\else \mtcPackageWarningNoLine[]{minitoc(hints)}% - {You have used \string\doparttoc,\MessageBreak + {You have used \string\doparttoc, + \MessageBreak but not \string\parttoc} \@mtc@hints@given@true \fi @@ -3946,7 +4215,8 @@ \if@dopartlof@used@ \if@partlof@used@\else \mtcPackageWarningNoLine[]{minitoc(hints)}% - {You have used \string\dopartlof,\MessageBreak + {You have used \string\dopartlof, + \MessageBreak but not \string\partlof} \@mtc@hints@given@true \fi @@ -3954,7 +4224,8 @@ \if@dopartlot@used@ \if@partlot@used@\else \mtcPackageWarningNoLine[]{minitoc(hints)}% - {You have used \string\dopartlot,\MessageBreak + {You have used \string\dopartlot, + \MessageBreak but not \string\partlot} \@mtc@hints@given@true \fi @@ -3964,7 +4235,8 @@ \if@dominitoc@used@ \if@minitoc@used@\else \mtcPackageWarningNoLine[]{minitoc(hints)}% - {You have used \string\dominitoc,\MessageBreak + {You have used \string\dominitoc, + \MessageBreak but not \string\minitoc} \@mtc@hints@given@true \fi @@ -3972,7 +4244,8 @@ \if@dominilof@used@ \if@minilof@used@\else \mtcPackageWarningNoLine[]{minitoc(hints)}% - {You have used \string\dominilof,\MessageBreak + {You have used \string\dominilof, + \MessageBreak but not \string\minilof} \@mtc@hints@given@true \fi @@ -3980,7 +4253,8 @@ \if@dominilot@used@ \if@minilot@used@\else \mtcPackageWarningNoLine[]{minitoc(hints)}% - {You have used \string\dominilot,\MessageBreak + {You have used \string\dominilot, + \MessageBreak but not \string\minilot} \@mtc@hints@given@true \fi @@ -3990,7 +4264,8 @@ \if@dosecttoc@used@ \if@secttoc@used@\else \mtcPackageWarningNoLine[]{minitoc(hints)}% - {You have used \string\dosecttoc,\MessageBreak + {You have used \string\dosecttoc, + \MessageBreak but not \string\secttoc} \@mtc@hints@given@true \fi @@ -3998,7 +4273,8 @@ \if@dosectlof@used@ \if@sectlof@used@\else \mtcPackageWarningNoLine[]{minitoc(hints)}% - {You have used \string\dosectlof,\MessageBreak + {You have used \string\dosectlof, + \MessageBreak but not \string\sectlof} \@mtc@hints@given@true \fi @@ -4006,7 +4282,8 @@ \if@dosectlot@used@ \if@sectlot@used@\else \mtcPackageWarningNoLine[]{minitoc(hints)}% - {You have used \string\dosectlot,\MessageBreak + {You have used \string\dosectlot, + \MessageBreak but not \string\sectlot} \fi \fi @@ -4016,27 +4293,33 @@ \if@parttoc@used@ \if@mtc@toc@used@\else \mtcPackageWarningNoLine[]{minitoc(hints)}% - {You have used \string\parttoc\space but not\MessageBreak - \string\tableofcontents\MessageBreak nor - \string\faketableofcontents} + {You have used \string\parttoc\space but not + \MessageBreak + \string\tableofcontents + \MessageBreak + nor \string\faketableofcontents} \@mtc@hints@given@true \fi \fi \if@partlof@used@ \if@mtc@lof@used@\else \mtcPackageWarningNoLine[]{minitoc(hints)}% - {You have used \string\partlof\space but not\MessageBreak - \string\listoffigures\MessageBreak nor - \string\fakelistoffigures} + {You have used \string\partlof\space but not + \MessageBreak + \string\listoffigures + \MessageBreak + nor \string\fakelistoffigures} \@mtc@hints@given@true \fi \fi \if@partlot@used@ \if@mtc@lot@used@\else \mtcPackageWarningNoLine[]{minitoc(hints)}% - {You have used \string\partlot\space but not\MessageBreak - \string\listoftables\MessageBreak nor - \string\fakelistoftables} + {You have used \string\partlot\space but not + \MessageBreak + \string\listoftables + \MessageBreak + nor \string\fakelistoftables} \@mtc@hints@given@true \fi \fi @@ -4045,27 +4328,33 @@ \if@minitoc@used@ \if@mtc@toc@used@\else \mtcPackageWarningNoLine[]{minitoc(hints)}% - {You have used \string\minitoc\space but not\MessageBreak - \string\tableofcontents\MessageBreak nor - \string\faketableofcontents} + {You have used \string\minitoc\space but not + \MessageBreak + \string\tableofcontents + \MessageBreak + nor \string\faketableofcontents} \@mtc@hints@given@true \fi \fi \if@minilof@used@ \if@mtc@lof@used@\else \mtcPackageWarningNoLine[]{minitoc(hints)}% - {You have used \string\minilof\space but not\MessageBreak - \string\listoffigures\MessageBreak nor - \string\fakelistoffigures} + {You have used \string\minilof\space but not + \MessageBreak + \string\listoffigures + \MessageBreak + nor \string\fakelistoffigures} \@mtc@hints@given@true \fi \fi \if@minilot@used@ \if@mtc@lot@used@\else \mtcPackageWarningNoLine[]{minitoc(hints)}% - {You have used \string\minilot\space but not\MessageBreak - \string\listoftables\MessageBreak nor - \string\fakelistoftables} + {You have used \string\minilot\space but not + \MessageBreak + \string\listoftables + \MessageBreak + nor \string\fakelistoftables} \@mtc@hints@given@true \fi \fi @@ -4074,27 +4363,33 @@ \if@secttoc@used@ \if@mtc@toc@used@\else \mtcPackageWarningNoLine[]{minitoc(hints)}% - {You have used \string\secttoc\space but not\MessageBreak - \string\tableofcontents\MessageBreak nor - \string\faketableofcontents} + {You have used \string\secttoc\space but not + \MessageBreak + \string\tableofcontents + \MessageBreak + nor \string\faketableofcontents} \@mtc@hints@given@true \fi \fi \if@sectlof@used@ \if@mtc@lof@used@\else \mtcPackageWarningNoLine[]{minitoc(hints)}% - {You have used \string\sectlof\space but not\MessageBreak - \string\listoffigures\MessageBreak nor - \string\fakelistoffigures} + {You have used \string\sectlof\space but not + \MessageBreak + \string\listoffigures + \MessageBreak + nor \string\fakelistoffigures} \@mtc@hints@given@true \fi \fi \if@sectlot@used@ \if@mtc@lot@used@\else \mtcPackageWarningNoLine[]{minitoc(hints)}% - {You have used \string\sectlot\space but not\MessageBreak - \string\listoftables\MessageBreak nor - \string\fakelistoftables} + {You have used \string\sectlot\space but not + \MessageBreak + \string\listoftables + \MessageBreak + nor \string\fakelistoftables} \@mtc@hints@given@true \fi \fi @@ -4106,7 +4401,8 @@ \ifnum 99 < \value{ptc}\relax \@mtc@hints@given@true \mtcPackageWarningNoLine[]{minitoc(hints)}% - {You have used short extensions\MessageBreak + {You have used short extensions + \MessageBreak and more than 99 parts (\arabic{ptc})} \fi \fi @@ -4114,7 +4410,8 @@ \ifnum 99 < \value{mtc}\relax \@mtc@hints@given@true \mtcPackageWarningNoLine[]{minitoc(hints)}% - {You have used short extensions\MessageBreak + {You have used short extensions + \MessageBreak and more than 99 chapters (\arabic{mtc})} \fi \else @@ -4122,7 +4419,8 @@ \ifnum 99 < \value{stc}\relax \@mtc@hints@given@true \mtcPackageWarningNoLine[]{minitoc(hints)}% - {You have used short extensions\MessageBreak + {You have used short extensions + \MessageBreak and more than 99 sections (\arabic{stc})} \fi \fi @@ -4132,189 +4430,241 @@ \if@mtc@sectstyLoaded@\else \if@mtc@sectstyLoaded@a@ \mtcPackageWarningNoLine[]{minitoc(hints)}% - {The sectsty package should be\MessageBreak - loaded BEFORE the minitoc package} + {The sectsty package should be + \MessageBreak + loaded BEFORE the minitoc package} \@mtc@hints@given@true \fi \fi \if@mtc@varsectsLoaded@\else \if@mtc@varsectsLoaded@a@ \mtcPackageWarningNoLine[]{minitoc(hints)}% - {The varsects package should be\MessageBreak - loaded BEFORE the minitoc package} + {The varsects package should be + \MessageBreak + loaded BEFORE the minitoc package} \@mtc@hints@given@true \fi \fi \if@mtc@fncychapLoaded@\else \if@mtc@fncychapLoaded@a@ \mtcPackageWarningNoLine[]{minitoc(hints)}% - {The fncychap package should be\MessageBreak - loaded BEFORE the minitoc package} + {The fncychap package should be + \MessageBreak + loaded BEFORE the minitoc package} + \@mtc@hints@given@true + \fi +\fi +\if@mtc@hangcaptionLoaded@\else + \if@mtc@hangcaptionLoaded@a@ + \mtcPackageWarningNoLine[]{minitoc(hints)}% + {The hangcaption package should be + \MessageBreak + loaded BEFORE the minitoc package} \@mtc@hints@given@true \fi \fi \if@mtc@quotchapLoaded@\else \if@mtc@quotchapLoaded@a@ \mtcPackageWarningNoLine[]{minitoc(hints)}% - {The quotchap package should be\MessageBreak - loaded BEFORE the minitoc package} + {The quotchap package should be + \MessageBreak + loaded BEFORE the minitoc package} \@mtc@hints@given@true \fi \fi \if@mtc@romannumLoaded@\else \if@mtc@romannumLoaded@a@ \mtcPackageWarningNoLine[]{minitoc(hints)}% - {The romannum package should be\MessageBreak - loaded BEFORE the minitoc package} + {The romannum package should be + \MessageBreak + loaded BEFORE the minitoc package} \@mtc@hints@given@true \fi \fi \if@mtc@sfheadersLoaded@\else \if@mtc@sfheadersLoaded@a@ \mtcPackageWarningNoLine[]{minitoc(hints)}% - {The sfheaders package should be\MessageBreak - loaded BEFORE the minitoc package} + {The sfheaders package should be + \MessageBreak + loaded BEFORE the minitoc package} \@mtc@hints@given@true \fi \fi \if@mtc@alnumsecLoaded@\else \if@mtc@alnumsecLoaded@a@ \mtcPackageWarningNoLine[]{minitoc(hints)}% - {The alnumsec package should be\MessageBreak - loaded BEFORE the minitoc package} + {The alnumsec package should be + \MessageBreak + loaded BEFORE the minitoc package} \@mtc@hints@given@true \fi \fi \if@mtc@captcontLoaded@\else \if@mtc@captcontLoaded@a@ \mtcPackageWarningNoLine[]{minitoc(hints)}% - {The captcont package should be\MessageBreak - loaded BEFORE the minitoc package} + {The captcont package should be + \MessageBreak + loaded BEFORE the minitoc package} \@mtc@hints@given@true \fi \fi \if@mtc@captionLoaded@\else \if@mtc@captionLoaded@a@ \mtcPackageWarningNoLine[]{minitoc(hints)}% - {The caption package should be\MessageBreak - loaded BEFORE the minitoc package} + {The caption package should be + \MessageBreak + loaded BEFORE the minitoc package} \@mtc@hints@given@true \fi \fi \if@mtc@captionIILoaded@\else \if@mtc@captionIILoaded@a@ \mtcPackageWarningNoLine[]{minitoc(hints)}% - {The caption2 package should be\MessageBreak - loaded BEFORE the minitoc package} + {The caption2 package should be + \MessageBreak + loaded BEFORE the minitoc package} \@mtc@hints@given@true \fi \fi \if@mtc@ccaptionLoaded@\else \if@mtc@ccaptionLoaded@a@ \mtcPackageWarningNoLine[]{minitoc(hints)}% - {The ccaption package should be\MessageBreak - loaded BEFORE the minitoc package} + {The ccaption package should be + \MessageBreak + loaded BEFORE the minitoc package} \@mtc@hints@given@true \fi \fi \if@mtc@mcaptionLoaded@\else \if@mtc@mcaptionLoaded@a@ \mtcPackageWarningNoLine[]{minitoc(hints)}% - {The mcaption package should be\MessageBreak - loaded BEFORE the minitoc package} + {The mcaption package should be + \MessageBreak + loaded BEFORE the minitoc package} \@mtc@hints@given@true \fi \fi \if@mtc@empty@parttoc@ \mtcPackageWarningNoLine[]{minitoc(hints)}% - {You have attempted to insert\MessageBreak empty parttocs} + {You have attempted to insert + \MessageBreak + empty parttocs} \@mtc@hints@given@true \fi \if@mtc@empty@partlof@ \mtcPackageWarningNoLine[]{minitoc(hints)}% - {You have attempted to insert\MessageBreak empty partlofs} + {You have attempted to insert + \MessageBreak + empty partlofs} \@mtc@hints@given@true \fi \if@mtc@empty@partlot@ \mtcPackageWarningNoLine[]{minitoc(hints)}% - {You have attempted to insert\MessageBreak empty partlots} + {You have attempted to insert + \MessageBreak + empty partlots} \@mtc@hints@given@true \fi \if@mtc@empty@minitoc@ \mtcPackageWarningNoLine[]{minitoc(hints)}% - {You have attempted to insert\MessageBreak empty minitocs} + {You have attempted to insert + \MessageBreak + empty minitocs} \@mtc@hints@given@true \fi \if@mtc@empty@minilof@ \mtcPackageWarningNoLine[]{minitoc(hints)}% - {You have attempted to insert\MessageBreak empty minilofs} + {You have attempted to insert + \MessageBreak + empty minilofs} \@mtc@hints@given@true \fi \if@mtc@empty@minilot@ \mtcPackageWarningNoLine[]{minitoc(hints)}% - {You have attempted to insert\MessageBreak empty minilots} + {You have attempted to insert + \MessageBreak + empty minilots} \@mtc@hints@given@true \fi \if@mtc@empty@secttoc@ \mtcPackageWarningNoLine[]{minitoc(hints)}% - {You have attempted to insert\MessageBreak empty secttocs} + {You have attempted to insert + \MessageBreak + empty secttocs} \@mtc@hints@given@true \fi \if@mtc@empty@sectlof@ \mtcPackageWarningNoLine[]{minitoc(hints)}% - {You have attempted to insert\MessageBreak empty sectlofs} + {You have attempted to insert + \MessageBreak + empty sectlofs} \@mtc@hints@given@true \fi \if@mtc@empty@sectlot@ \mtcPackageWarningNoLine[]{minitoc(hints)}% - {You have attempted to insert\MessageBreak empty sectlots} + {You have attempted to insert + \MessageBreak + empty sectlots} \@mtc@hints@given@true \fi \if@firstpartis@used@ \mtcPackageWarningNoLine[]{minitoc(hints)}% - {You have invoked an obsolete\MessageBreak command: \string\firstpartis} + {You have invoked an obsolete + \MessageBreak + command: \string\firstpartis} \@mtc@hints@given@true \fi \if@firstchapteris@used@ \mtcPackageWarningNoLine[]{minitoc(hints)}% - {You have invoked an obsolete\MessageBreak command: \string\firstchapteris} + {You have invoked an obsolete + \MessageBreak + command: \string\firstchapteris} \@mtc@hints@given@true \fi \if@firstsectionis@used@ \mtcPackageWarningNoLine[]{minitoc(hints)}% - {You have invoked an obsolete\MessageBreak command: \string\firstsectionis} + {You have invoked an obsolete + \MessageBreak + command: \string\firstsectionis} \@mtc@hints@given@true \fi \if@mtc@hints@given@ \mtcPackageWarningNoLine[]{minitoc(hints)}% - {Some hints have been written\MessageBreak + {Some hints have been written + \MessageBreak in the \jobname.log file} \else \mtcPackageInfo[]{minitoc(hints)}% - {No hints have been written\MessageBreak + {No hints have been written + \MessageBreak in the \jobname.log file.\@gobble} \fi } \InputIfFileExists{english.mld}% {\ExecuteOptions{english}}% {\mtcPackageError[]{minitoc}% - {Your minitoc installation is incomplete.\MessageBreak - The minitoc language object file (.mld), \MessageBreak - english.mld is not found. \MessageBreak + {Your minitoc installation is incomplete. + \MessageBreak + The minitoc language object file (.mld), + \MessageBreak + english.mld is not found. + \MessageBreak We will try to continue with default values}% - {See the minitoc documentation. \MessageBreak - Please fix your minitoc installation. \MessageBreak + {See the minitoc documentation. + \MessageBreak + Please fix your minitoc installation. + \MessageBreak Press to continue}% - \providecommand{\ptctitle}{Table of Contents}% - \providecommand{\plftitle}{List of Figures}% - \providecommand{\plttitle}{List of Tables}% - \providecommand{\mtctitle}{Contents}% - \providecommand{\mlftitle}{Figures}% - \providecommand{\mlttitle}{Tables}% - \providecommand{\stctitle}{Contents}% - \providecommand{\slftitle}{Figures}% - \providecommand{\slttitle}{Tables}% - }% + \providecommand{\ptctitle}{Table of Contents}% + \providecommand{\plftitle}{List of Figures}% + \providecommand{\plttitle}{List of Tables}% + \providecommand{\mtctitle}{Contents}% + \providecommand{\mlftitle}{Figures}% + \providecommand{\mlttitle}{Tables}% + \providecommand{\stctitle}{Contents}% + \providecommand{\slftitle}{Figures}% + \providecommand{\slttitle}{Tables}% + }% \ProcessOptions* \if@mtc@ss@insection@ \RequirePackage{flafter}[2000/07/23]% @@ -4327,8 +4677,9 @@ \fi \def\mtc@maf{% \mtcPackageInfo[]{minitoc}% - {Listing minitoc auxiliary files\MessageBreak - Creating the \jobname.maf file\@gobble} + {Listing minitoc auxiliary files + \MessageBreak + Creating the \jobname.maf file\@gobble} \immediate\closeout\tf@mtc \immediate\openout\tf@mtc \jobname.maf \if@longextensions@\mtc@maf@long\else\mtc@maf@short\fi @@ -4384,6 +4735,35 @@ \@ifundefined{section}{}{\let\mtc@hints@section\section \let\mtc@hints@@sect\@sect \let\mtc@hints@@ssect\@ssect} +\def\mtc@classck#1{% + \mtcPackageError[]{minitoc}% + {The \csname #1\endcsname\space command is incompatible + \MessageBreak + with the document class}% + {Correct the source code. + \MessageBreak + Type and rerun LaTeX}% +} +\AtBeginDocument{% + \providecommand{\doparttoc}[1][l]{\mtc@classck{doparttoc}}% + \providecommand{\dopartlof}[1][l]{\mtc@classck{dopartlof}}% + \providecommand{\dopartlot}[1][l]{\mtc@classck{dopartlot}}% + \providecommand{\dominitoc}[1][l]{\mtc@classck{dominitoc}}% + \providecommand{\dominilof}[1][l]{\mtc@classck{dominilof}}% + \providecommand{\dominilot}[1][l]{\mtc@classck{dominilot}}% + \providecommand{\dosecttoc}[1][l]{\mtc@classck{dosecttoc}}% + \providecommand{\dosectlof}[1][l]{\mtc@classck{dosectlof}}% + \providecommand{\dosectlot}[1][l]{\mtc@classck{dosectlot}}% + \providecommand{\parttoc}[1][l]{\mtc@classck{parttoc}}% + \providecommand{\partlof}[1][l]{\mtc@classck{partlof}}% + \providecommand{\partlot}[1][l]{\mtc@classck{partlot}}% + \providecommand{\minitoc}[1][l]{\mtc@classck{minitoc}}% + \providecommand{\minilof}[1][l]{\mtc@classck{minilof}}% + \providecommand{\minilot}[1][l]{\mtc@classck{minilot}}% + \providecommand{\secttoc}[1][l]{\mtc@classck{secttoc}}% + \providecommand{\sectlof}[1][l]{\mtc@classck{sectlof}}% + \providecommand{\sectlot}[1][l]{\mtc@classck{sectlot}}% +} \endinput %% %% End of file `minitoc.sty'. -- cgit v1.2.3