diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/minitoc/mtcoff.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/minitoc/mtcoff.sty | 181 |
1 files changed, 134 insertions, 47 deletions
diff --git a/Master/texmf-dist/tex/latex/minitoc/mtcoff.sty b/Master/texmf-dist/tex/latex/minitoc/mtcoff.sty index 9268c48f7bb..e0bce416570 100644 --- a/Master/texmf-dist/tex/latex/minitoc/mtcoff.sty +++ b/Master/texmf-dist/tex/latex/minitoc/mtcoff.sty @@ -25,11 +25,12 @@ %% 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}% -\ProvidesPackage{mtcoff}[2006/06/27 v30 The mtcoff package] +\ProvidesPackage{mtcoff}[2007/06/29 v55 The mtcoff package] \RequirePackage{mtcmess}[2006/03/14] \let\c@minitocdepth\count@ \let\mtcindent\dimen@ @@ -38,15 +39,12 @@ \let\ptcindent\dimen@ \let\c@secttocdepth\count@ \let\stcindent\dimen@ -\let\c@mtc\count@ -\let\c@ptc\count@ -\let\c@stc\count@ -\def\mtcgapbeforeheads{50\p@} -\def\mtcgapafterheads{40\p@} +\let\c@mtc\count@ \let\c@ptc\count@ \let\c@stc\count@ +\def\mtcgapbeforeheads{50\p@} \def\mtcgapafterheads{40\p@} \@ifundefined{part}{}{% \def\kernafterparttoc{% \mtcoffwarn@true - \mtcPackageWarning[<F0008>]{mtcoff}% + \mtcPackageWarning[F0008]{mtcoff}% {The macro \string\kernafterparttoc \MessageBreak should not be used out of context @@ -54,7 +52,7 @@ \kern-1.\baselineskip\kern.5ex}% \def\kernafterpartlof{% \mtcoffwarn@true - \mtcPackageWarning[<F0008>]{mtcoff}% + \mtcPackageWarning[F0008]{mtcoff}% {The macro \string\kernafterpartlof \MessageBreak should not be used out of context @@ -62,7 +60,7 @@ \kern-1.\baselineskip\kern.5ex}% \def\kernafterpartlot{% \mtcoffwarn@true - \mtcPackageWarning[<F0008>]{mtcoff}% + \mtcPackageWarning[F0008]{mtcoff}% {The macro \string\kernafterpartlot \MessageBreak should not be used out of context @@ -74,7 +72,7 @@ {% \def\kernaftersecttoc{% \mtcoffwarn@true - \mtcPackageWarning[<F0008>]{mtcoff}% + \mtcPackageWarning[F0008]{mtcoff}% {The macro \string\kernaftersecttoc \MessageBreak should not be used out of context @@ -82,7 +80,7 @@ \kern-1.\baselineskip\kern.5ex}% \def\kernaftersectlof{% \mtcoffwarn@true - \mtcPackageWarning[<F0008>]{mtcoff}% + \mtcPackageWarning[F0008]{mtcoff}% {The macro \string\kernaftersectlof \MessageBreak should not be used out of context @@ -90,7 +88,7 @@ \kern-1.\baselineskip\kern.5ex}% \def\kernaftersectlot{% \mtcoffwarn@true - \mtcPackageWarning[<F0008>]{mtcoff}% + \mtcPackageWarning[F0008]{mtcoff}% {The macro \string\kernaftersectlot \MessageBreak should not be used out of context @@ -101,7 +99,7 @@ {% \def\kernafterminitoc{% \mtcoffwarn@true - \mtcPackageWarning[<F0008>]{mtcoff}% + \mtcPackageWarning[F0008]{mtcoff}% {The macro \string\kernafterminitoc \MessageBreak should not be used out of context @@ -109,7 +107,7 @@ \kern-.5\baselineskip\kern.5ex}% \def\kernafterminilof{% \mtcoffwarn@true - \mtcPackageWarning[<F0008>]{mtcoff}% + \mtcPackageWarning[F0008]{mtcoff}% {The macro \string\kernafterminilof \MessageBreak should not be used out of context @@ -117,32 +115,107 @@ \kern-1.\baselineskip\kern.0ex}% \def\kernafterminilot{% \mtcoffwarn@true - \mtcPackageWarning[<F0008>]{mtcoff}% + \mtcPackageWarning[F0008]{mtcoff}% {The macro \string\kernafterminilot \MessageBreak should not be used out of context \MessageBreak}% \kern-1.\baselineskip\kern.0ex}% }% -\let\mtcskip\relax + \@ifundefined{part}{}{% + \def\ptcoffset{% + \mtcoffwarn@true + \mtcPackageWarning[F0009]{mtcoff}% + {The macro \string\ptcoffset + \MessageBreak + should not be used out of context + \MessageBreak}% + 0pt}% + \def\plfoffset{% + \mtcoffwarn@true + \mtcPackageWarning[F0009]{mtcoff}% + {The macro \string\plfoffset + \MessageBreak + should not be used out of context + \MessageBreak}% + 0pt}% + \def\pltoffset{% + \mtcoffwarn@true + \mtcPackageWarning[F0009]{mtcoff}% + {The macro \string\pltoffset + \MessageBreak + should not be used out of context + \MessageBreak}% + 0pt}% + }% + \@ifundefined{chapter}{% + \@ifundefined{section}{}% + {% + \def\stcoffset{% + \mtcoffwarn@true + \mtcPackageWarning[F0009]{mtcoff}% + {The macro \string\stcoffset + \MessageBreak + should not be used out of context + \MessageBreak}% + 0pt}% + \def\slfoffset{% + \mtcoffwarn@true + \mtcPackageWarning[F0009]{mtcoff}% + {The macro \string\slfoffset + \MessageBreak + should not be used out of context + \MessageBreak}% + 0pt}% + \def\sltoffset{% + \mtcoffwarn@true + \mtcPackageWarning[F0009]{mtcoff}% + {The macro \string\sltoffset + \MessageBreak + should not be used out of context + \MessageBreak}% + 0pt}% + }% + }% + {% + \def\mtcoffset{% + \mtcoffwarn@true + \mtcPackageWarning[F0009]{mtcoff}% + {The macro \string\mtcoffset + \MessageBreak + should not be used out of context + \MessageBreak}% + 0pt}% + \def\slfoffset{% + \mtcoffwarn@true + \mtcPackageWarning[F0009]{mtcoff}% + {The macro \string\slfoffset + \MessageBreak + should not be used out of context + \MessageBreak}% + 0pt}% + \def\mltoffset{% + \mtcoffwarn@true + \mtcPackageWarning[F0009]{mtcoff}% + {The macro \string\mltoffset + \MessageBreak + should not be used out of context + \MessageBreak}% + 0pt}% + }% \let\faketableofcontents\relax \let\fakelistoffigures\relax \let\fakelistoftables\relax +\let\mtcskip\relax \newcommand{\adjustptc}[1][1]{\relax} \newcommand{\adjustmtc}[1][1]{\relax} \newcommand{\adjuststc}[1][1]{\relax} -\let\decrementptc\relax -\let\decrementmtc\relax -\let\decrementstc\relax -\let\incrementptc\relax -\let\incrementmtc\relax -\let\incrementstc\relax -\let\partend\relax -\let\partbegin\relax -\let\chapterend\relax -\let\chapterbegin\relax -\let\sectend\relax -\let\sectbegin\relax +\let\decrementptc\relax \let\incrementptc\relax +\let\decrementmtc\relax \let\incrementmtc\relax +\let\decrementstc\relax \let\incrementstc\relax +\let\partend\relax \let\partbegin\relax +\let\chapterend\relax \let\chapterbegin\relax +\let\sectend\relax \let\sectbegin\relax \def\gobbleopt@[#1]{\relax} \def\doparttoc{\@ifnextchar[{\gobbleopt@}{\gobbleopt@[l]}} \def\dopartlof{\@ifnextchar[{\gobbleopt@}{\gobbleopt@[l]}} @@ -209,6 +282,7 @@ \let\stifont\empty \let\coffeefont\empty \let\mtcsetdepth\@gobbletwo +\let\mtcsetoffset\@gobbletwo \def\mtcsetfont#1#2#3{\empty} \let\mtcsettitlefont\@gobbletwo \let\mtcsettitle\@gobbletwo @@ -223,11 +297,8 @@ \@ifundefined{subsubsection}{}{\let\l@starsubsubsection\l@subsubsection} \@ifundefined{paragraph}{}{\let\l@starparagraph\l@paragraph} \@ifundefined{subparagraph}{}{\let\l@starsubparagraph\l@subparagraph} -\let\firstpartis\@gobble -\let\firstchapteris\@gobble -\let\firstsectionis\@gobble -\let\mtcselectlanguage\@gobble -\let\mtcloadmlo\@gobble +\let\firstpartis\@gobble \let\firstchapteris\@gobble \let\firstsectionis\@gobble +\let\mtcselectlanguage\@gobble \let\mtcloadmlo\@gobble \let\ptcrule\relax \let\noptcrule\relax \let\mtcrule\relax @@ -270,6 +341,12 @@ \let\afterparttoc\empty \let\afterpartlof\empty \let\afterpartlot\empty +\let\openparttoc\empty +\let\openpartlof\empty +\let\openpartlot\empty +\let\closeparttoc\empty +\let\closepartlof\empty +\let\closepartlot\empty \let\thispageparttocstyle\empty \let\thispagepartlofstyle\empty \let\thispagepartlotstyle\empty @@ -279,6 +356,12 @@ \let\afterminitoc\empty \let\afterminilof\empty \let\afterminilot\empty +\let\openminitoc\empty +\let\openminilof\empty +\let\openminilot\empty +\let\closeminitoc\empty +\let\closeminilof\empty +\let\closeminilot\empty \let\thispageminitocstyle\empty \let\thispageminilofstyle\empty \let\thispageminilotstyle\empty @@ -288,6 +371,12 @@ \let\aftersecttoc\empty \let\aftersectlof\empty \let\aftersectlot\empty +\let\opensecttoc\empty +\let\opensectlof\empty +\let\opensectlot\empty +\let\closesecttoc\empty +\let\closesectlof\empty +\let\closesectlot\empty \let\thispagesecttocstyle\empty \let\thispagesectlofstyle\empty \let\thispagesectlotstyle\empty @@ -299,7 +388,7 @@ \let\l@listof\chapter \newif\ifmtcoffwarn@ \mtcoffwarn@false \AtEndDocument{\ifmtcoffwarn@ - \mtcPackageWarningNoLine[<F0007>]{mtcoff}% + \mtcPackageWarningNoLine[F0007]{mtcoff}% {You should scan (backwards) your .log \MessageBreak file to find some commands needing @@ -315,7 +404,7 @@ and to comment out only one of them} \fi} \newcommand{\mtcaddchapter}[1][]{\mtcoffwarn@true - \mtcPackageWarning[<F0004>]{mtcoff}% + \mtcPackageWarning[F0004]{mtcoff}% {\protect\mtcaddchapter{...} should be replaced \MessageBreak by \protect\addcontentsline{toc}{chapter}{...} @@ -326,7 +415,7 @@ \addcontentsline{toc}{chapter}{#1}% \fi} \newcommand{\mtcaddsection}[1][]{\mtcoffwarn@true - \mtcPackageWarning[<F0006>]{mtcoff}% + \mtcPackageWarning[F0006]{mtcoff}% {\protect\mtcaddsection{...} should be replaced \MessageBreak by \protect\addcontentsline{toc}{section}{...} @@ -337,7 +426,7 @@ \addcontentsline{toc}{part}{#1}% \fi} \newcommand{\mtcaddpart}[1][]{\mtcoffwarn@true - \mtcPackageWarning[<F0005>]{mtcoff}% + \mtcPackageWarning[F0005]{mtcoff}% {\protect\mtcaddpart{...} should be replaced \MessageBreak by \protect\addcontentsline{toc}{part}{...} @@ -352,12 +441,9 @@ \let\l@coffee\relax \def\@Undottedtocline#1#2#3#4#5{\relax} \def\@Undottedtoclinep#1#2#3#4#5{\relax} -\newenvironment{mtchideinmaintoc}[1][-1]% - {\empty}{\empty} -\newenvironment{mtchideinmainlof}[1][-1]% - {\empty}{\empty} -\newenvironment{mtchideinmainlot}[1][-1]% - {\empty}{\empty} +\newenvironment{mtchideinmaintoc}[1][-1]{\empty}{\empty} +\newenvironment{mtchideinmainlof}[1][-1]{\empty}{\empty} +\newenvironment{mtchideinmainlot}[1][-1]{\empty}{\empty} \let\mtc@savetocdepth\empty \let\mtc@savelofdepth\empty \let\mtc@savelotdepth\empty @@ -366,22 +452,23 @@ \let\mtc@restorelotdepth\empty \newcommand{\mtcfixglossary}[1][]{\relax} \newcommand{\mtcfixindex}[1][]{\relax} +\newcommand{\mtcfixnomenclature}[1][]{\relax} \def\addstarredpart#1{\mtcoffwarn@true - \mtcPackageWarning[<F0002>]{mtcoff}% + \mtcPackageWarning[F0002]{mtcoff}% {\protect\addstarredpart{...} should be replaced by \MessageBreak \protect\addcontentsline{toc}{part}{...} \MessageBreak} \addcontentsline{toc}{part}{#1}} \def\addstarredchapter#1{\mtcoffwarn@true - \mtcPackageWarning[<F0001>]{mtcoff}% + \mtcPackageWarning[F0001]{mtcoff}% {\protect\addstarredchapter{...} should be replaced by \MessageBreak \protect\addcontentsline{toc}{chapter}{...} \MessageBreak} \addcontentsline{toc}{chapter}{#1}} \def\addstarredsection#1{\mtcoffwarn@true - \mtcPackageWarning[<F0003>]{mtcoff}% + \mtcPackageWarning[F0003]{mtcoff}% {\protect\addstarredsection{...} should be replaced by \MessageBreak \protect\addcontentsline{toc}{section}{...} |