diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/minitoc/minitoc.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/minitoc/minitoc.sty | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/minitoc/minitoc.sty b/Master/texmf-dist/tex/latex/minitoc/minitoc.sty index f1ea0bda940..ad7da2e1bde 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/10/10 v49 Package minitoc (JPFD)] + [2006/11/29 v50 Package minitoc (JPFD)] \RequirePackage{mtcmess}[2006/03/14] \mtcPackageInfo[<I0001>]{minitoc}% - {*** minitoc package, version 49 ***\@gobble} + {*** minitoc package, version 50 ***\@gobble} \newwrite\tf@mtc \newlength\mtcindent \newskip\mtcskipamount @@ -229,7 +229,7 @@ \if@mtcpatchmemoir@ \IfFileExists{mtcpatchmem.sty}{% \@ifclasslater{memoir}{2005/09/25}{}{\RequirePackage{mtcpatchmem}}}{% - \mtcPackage[<E0028>]{Error}{minitoc} + \mtcPackageError[<E0028>]{minitoc}% {Unable to patch the memoir class}% {So it remains incompatible. Sorry.}} \fi @@ -3565,11 +3565,17 @@ \newif\if@mtc@listfiles@ \@mtc@listfiles@true \DeclareOption{listfiles}{\@mtc@listfiles@true} \DeclareOption{nolistfiles}{\@mtc@listfiles@false} +\def\@gobblethree#1#2#3{\empty} +\def\mtc@listmisslanguages{} +\def\mtc@addmisslanguage#1{% + \let\mtc@LML\mtc@listmisslanguages + \edef\mtc@listmisslanguages{\mtc@LML \MessageBreak #1}} \newif\if@mtc@misslang\@mtc@misslangfalse \newcommand{\mtc@setlangopt}[1]{% \IfFileExists{#1.mld}% {\DeclareOption{#1}{\mtcselectlanguage{#1}}}% {\@mtc@misslangtrue + \mtc@addmisslanguage{#1.mld} \mtcPackageInfo[<I0050>]{minitoc}% {The required "#1.mld" file is missing. \MessageBreak @@ -3583,6 +3589,7 @@ \IfFileExists{#1.mlo}% {\mtc@setlangopt{#1}}% {\@mtc@misslangtrue + \mtc@addmisslanguage{#1.mlo} \mtcPackageInfo[<I0051>]{minitoc}% {The required "#1.mlo" file is missing. \MessageBreak @@ -3593,6 +3600,7 @@ or from the CTAN archives\@gobble}% \IfFileExists{#1.mld}{}% {\@mtc@misslangtrue + \mtc@addmisslanguage{#1.mld} \mtcPackageInfo[<I0050>]{minitoc}% {The required "#1.mld" file is missing. \MessageBreak @@ -3608,6 +3616,7 @@ \IfFileExists{#1.mld}% {\DeclareOption{#1}{\mtcselectlanguage{#1}}}% {\@mtc@misslangtrue + \mtc@addmisslanguage{#1.mld} \mtcPackageError[<E0038>]{minitoc}% {Your minitoc installation is incomplete. \MessageBreak @@ -3640,7 +3649,7 @@ \MessageBreak in your installation. \MessageBreak - Search the I0050 and I0051 info messages + Search for the I0050 and I0051 info messages \MessageBreak in the .log file. \MessageBreak @@ -3649,6 +3658,10 @@ a recent distribution \MessageBreak or from the CTAN archives}% + \mtcPackageWarningNoLine[<W0094>]{minitoc}% + {Missing minitoc language file(s)\string: + \MessageBreak + \mtc@listmisslanguages\@gobblethree}% \fi }% \mtc@setlangopt{acadian}% @@ -4677,7 +4690,7 @@ \fi \def\mtc@maf{% \mtcPackageInfo[<I0009>]{minitoc}% - {Listing minitoc auxiliary files + {Listing minitoc auxiliary files. \MessageBreak Creating the \jobname.maf file\@gobble} \immediate\closeout\tf@mtc |