summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/minitoc/minitoc.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2007-01-10 14:24:50 +0000
committerKarl Berry <karl@freefriends.org>2007-01-10 14:24:50 +0000
commita2863a993b2b4b05d5cf1f921aff4e6703f72fd5 (patch)
tree03b285d25490c3745f727e90d33a783ea1028317 /Master/texmf-dist/tex/latex/minitoc/minitoc.sty
parentb9fd29406413c01cc709fb8b05db351a186b59e1 (diff)
minitoc 51 (9jan07)
git-svn-id: svn://tug.org/texlive/trunk@3291 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/minitoc/minitoc.sty')
-rw-r--r--Master/texmf-dist/tex/latex/minitoc/minitoc.sty80
1 files changed, 42 insertions, 38 deletions
diff --git a/Master/texmf-dist/tex/latex/minitoc/minitoc.sty b/Master/texmf-dist/tex/latex/minitoc/minitoc.sty
index ad7da2e1bde..aeb78380375 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/11/29 v50 Package minitoc (JPFD)]
+ [2007/01/09 v51 Package minitoc (JPFD)]
\RequirePackage{mtcmess}[2006/03/14]
\mtcPackageInfo[<I0001>]{minitoc}%
- {*** minitoc package, version 50 ***\@gobble}
+ {*** minitoc package, version 51 ***\@gobble}
\newwrite\tf@mtc
\newlength\mtcindent
\newskip\mtcskipamount
@@ -79,8 +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@HgcLoaded@ \@mtc@HgcLoaded@false
+\newif\if@mtc@HgcLoaded@a@ \@mtc@HgcLoaded@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
@@ -183,8 +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{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}{}
@@ -654,11 +654,11 @@
\beforeminitoc
\relax\begin{samepage}%
\if #1e\let\do@mtitc\e@mti
- \else\if #1n\let\do@mtitc\n@mti
- \else\if #1c\let\do@mtitc\c@mti
- \else\if #1l\let\do@mtitc\l@mti
- \else\if #1r\let\do@mtitc\r@mti
- \else\if #1d\let\do@mtitc\df@mtitc
+ \else\if #1n\let\do@mtitc\n@mti
+ \else\if #1c\let\do@mtitc\c@mti
+ \else\if #1l\let\do@mtitc\l@mti
+ \else\if #1r\let\do@mtitc\r@mti
+ \else\if #1d\let\do@mtitc\df@mtitc
\fi\fi\fi\fi\fi\fi
\mtc@CkStr{\mtctitle}\if@mtc@FE \let\do@mtitc\e@mti\relax\fi
\raggedright
@@ -669,14 +669,14 @@
\kern-0.8\baselineskip\nopagebreak[4]%
\par\noindent %%
\ifx\mtc@rule\relax
- \begin{tabular}{@{}p{\columnwidth}@{}}
- \reset@font\mtifont\do@mtitc{\mtc@v\mtctitle}\\
- \end{tabular}%
- \else
- \begin{tabular}{@{}p{\columnwidth}@{}}
- \reset@font\mtifont\do@mtitc{\mtc@v\mtctitle}\\\hline
- \end{tabular}%
- \fi
+ \begin{tabular}{@{}p{\columnwidth}@{}}
+ \reset@font\mtifont\do@mtitc{\mtc@v\mtctitle}\\
+ \end{tabular}%
+ \else
+ \begin{tabular}{@{}p{\columnwidth}@{}}
+ \reset@font\mtifont\do@mtitc{\mtc@v\mtctitle}\\\hline
+ \end{tabular}%
+ \fi
\nopagebreak[4]\null\leavevmode\mtc@zrule\\\mtc@BBR
\leftmargin\mtcindent
\rightmargin\mtcindent
@@ -2660,7 +2660,7 @@
\@namedef{mtc@YN@vrai}{}\def\mtc@YN@vrai{}
\@namedef{mtc@YN@VRAI}{}\def\mtc@YN@VRAI{}
\@namedef{mtc@YN@v}{}\def\mtc@YN@v{}
-\@namedef{mtc@YN@V}{}\def\mtc@YN@TRUEV
+\@namedef{mtc@YN@V}{}\def\mtc@YN@V{}
\@namedef{mtc@YN@OUI}{}\def\mtc@YN@OUI{}
\@namedef{mtc@YN@oui}{}\def\mtc@YN@oui{}
\@namedef{mtc@YN@O}{}\def\mtc@YN@O{}
@@ -3430,8 +3430,7 @@
{The optional argument of \string\mtcfixglossary
\MessageBreak
is wrong}%
- {It must be omitted (\mtc@glofix@level),
- or be part, chapter or section}%
+ {It must be omitted (\mtc@glofix@level), or be part, chapter or section}%
\fi
}%
\@ifundefined{chapter}{%
@@ -3474,12 +3473,12 @@
{The optional argument of \string\mtcfixindex
\MessageBreak
is wrong}%
- {It must be omitted (\mtc@ixfix@level),
- or be part, chapter or section}%
+ {It must be omitted (\mtc@ixfix@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.%
\MessageBreak
@@ -3495,6 +3494,7 @@
Correct the source using a valid language name.
\MessageBreak
Press RETURN}}%
+ \@mtc@insellang@false
}
\def\mtcloadmlo#1{%
\if@mtc@insellang@
@@ -3579,7 +3579,9 @@
\mtcPackageInfo[<I0050>]{minitoc}%
{The required "#1.mld" file is missing.
\MessageBreak
- The "#1" language option will not be available.
+ The "#1" language option
+ \MessageBreak
+ will not be available.
\MessageBreak
Please install it from a recent distribution
\MessageBreak
@@ -3593,7 +3595,9 @@
\mtcPackageInfo[<I0051>]{minitoc}%
{The required "#1.mlo" file is missing.
\MessageBreak
- The "#1" language option will not be available.
+ The "#1" language option
+ \MessageBreak
+ will not be available.
\MessageBreak
Please install it from a recent distribution
\MessageBreak
@@ -3645,13 +3649,13 @@
\AtEndDocument{%
\if@mtc@misslang
\mtcPackageWarningNoLine[<W0093>]{minitoc}%
- {Some "*.mld" or "*mlo" files are missing
+ {Some "*.mld" or "*.mlo" files are missing
\MessageBreak
in your installation.
\MessageBreak
Search for the I0050 and I0051 info messages
\MessageBreak
- in the .log file.
+ in the \string\jobname.log file.
\MessageBreak
Please install the missing files from
\MessageBreak
@@ -3969,9 +3973,9 @@
\mtcPackageWarningNoLine[<W0032>]{minitoc(hints)}%
{--- The placeins package loaded is
\MessageBreak
- too old. It should have a version
+ too old. You should use a version
\MessageBreak
- date of 2005/04/18 at least}%
+ dated of 2005/04/18 at least}%
}%
}{}%
\@ifclassloaded{memoir}%
@@ -4099,15 +4103,15 @@
\let\mtc@sv@listoftables\listoftables
\def\listoftables%
{\global\@mtc@lot@used@true\mtc@sv@listoftables}
-\let\mtc@sv@faketableofcontents\faketableofcontents
+\let\mtc@sv@fktableofcontents\faketableofcontents
\def\faketableofcontents%
- {\global\@mtc@toc@used@true\mtc@sv@faketableofcontents}
-\let\mtc@sv@fakelistoffigures\fakelistoffigures
+ {\global\@mtc@toc@used@true\mtc@sv@fktableofcontents}
+\let\mtc@sv@fklistoffigures\fakelistoffigures
\def\fakelistoffigures%
- {\global\@mtc@lof@used@true\mtc@sv@fakelistoffigures}
-\let\mtc@sv@fakelistoftables\fakelistoftables
+ {\global\@mtc@lof@used@true\mtc@sv@fklistoffigures}
+\let\mtc@sv@fklistoftables\fakelistoftables
\def\fakelistoftables%
- {\global\@mtc@lot@used@true\mtc@sv@fakelistoftables}
+ {\global\@mtc@lot@used@true\mtc@sv@fklistoftables}
\fi
}
\def\mtc@hints@enddoc{%
@@ -4467,8 +4471,8 @@
\@mtc@hints@given@true
\fi
\fi
-\if@mtc@hangcaptionLoaded@\else
- \if@mtc@hangcaptionLoaded@a@
+\if@mtc@HgcLoaded@\else
+ \if@mtc@HgcLoaded@a@
\mtcPackageWarningNoLine[<W0092>]{minitoc(hints)}%
{The hangcaption package should be
\MessageBreak