diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/minitoc/addsec.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/minitoc/addsec.tex | 261 |
1 files changed, 96 insertions, 165 deletions
diff --git a/Master/texmf-dist/doc/latex/minitoc/addsec.tex b/Master/texmf-dist/doc/latex/minitoc/addsec.tex index 209ac41f47b..170cbc66f53 100644 --- a/Master/texmf-dist/doc/latex/minitoc/addsec.tex +++ b/Master/texmf-dist/doc/latex/minitoc/addsec.tex @@ -1,13 +1,45 @@ -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -% addsec.tex -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% +%% This is file `addsec.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% minitoc.dtx (with options: `addsec') +%% +%% This is a generated file. +%% +%% Copyright (C) 2005, 2006 by: +%% Jean-Pierre F. Drucbert (JPFD) +%% <jean-pierre.drucbert@onera.fr> +%% +%% This file may be distributed and/or modified under the conditions of +%% the LaTeX Project Public License, either version 1.3 of this license +%% or (at your option) any later version. The latest version of this +%% license is in: +%% +%% http://www.latex-project.org/lppl.txt +%% +%% and version 1.3 or later is part of all distributions of LaTeX version +%% 2003/12/01 or later. +%% +%% This work has the LPPL maintenance status "author-maintained". +%% +%% This Current Maintainer of this work is Jean-Pierre F. Drucbert (JPFD). +%% +%% This work consists of all the files listed in the file `minitoc.l' +%% distributed with it. +%% \documentclass[12pt,a4paper]{article} \usepackage{url,tocbibind,makeidx} -\usepackage[tight,hints,insection]{minitoc} -%\usepackage{mtcoff} - +\makeatletter +\newif\ifscan@allowed +\scan@allowedtrue +\makeatother +\def\dotfil{\leaders\hbox to.6em{\hss .\hss}\hfil}% +\def\pfill{\unskip~\dotfill\penalty500\strut\nobreak + \dotfil~\ignorespaces}% +\usepackage[tight,hints,insection,listfiles]{minitoc} +%%\usepackage{mtcoff} \makeindex \begin{document} \doparttoc \dopartlof \dopartlot @@ -18,8 +50,6 @@ \mtcaddsection \listoftables \mtcaddsection - - \part{Part~1} \parttoc \mtcskip \partlof \mtcskip \partlot @@ -37,53 +67,31 @@ \subsection{Second subsection} A small nice citation:\\ -\index{small}% -\index{citation}% -\index{nice}% -\index{A}% -\index{a}% -\index{and}% -\index{bird}% -\index{But}% -\index{cannot}% -\index{claim}% -\index{great}% -\index{he}% -\index{I}% -\index{imagine}% -\index{it}% -\index{know}% -\index{land}% -\index{on}% -\index{once}% -\index{that}% -\index{to}% -\index{tree}% -\index{would}% -\index{yes}% +\index{small}\index{citation}\index{nice}\index{A}% +\index{a}\index{and}\index{bird}\index{But}% +\index{cannot}\index{claim}\index{great}\index{he}% +\index{I}\index{imagine}\index{it}\index{know}% +\index{land}\index{on}\index{once}\index{that}% +\index{to}\index{tree}\index{would}\index{yes}% A bird cannot land once on a great tree and claim to know it. But I imagine that he would, yes.\\ -\hbox{}\hfill Iain M. Banks (1993), \textsl{Against a dark background.}% -\index{Iain}% -\index{Banks}% -\index{Against}% -\index{dark}% +\hbox{}\hfill +Iain M. Banks (1993), \textsl{Against a dark background.}% +\index{Iain}\index{Banks}\index{Against}\index{dark}% \index{background} - \begin{figure}[tp] \caption{Second figure} \end{figure} \begin{table} \caption{Second table} \end{table} - \section*{Second section, starred} \index{section!starred} %% UNCOMMENT ONE AND ONLY ONE OF THE 4 FOLLOWING LINES \mtcaddsection[Second section, starred] % OK -%\mtcaddsection[] % BAD -%\mtcaddsection[~] % produce a (strange) correct result. -%\mtcaddsection % BAD +%%\mtcaddsection[] % BAD +%%\mtcaddsection[~] % produce a (strange) correct result. +%%\mtcaddsection % BAD %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \index{tests} @@ -92,46 +100,17 @@ the \verb|\mtcaddsection| command. Just uncomment one (and only one) of the \verb|\mtcaddsection| commands after \verb|\section*| in the source code of \texttt{add.tex}. For each case, look at the \index{Table of Contents}Table of Contents -and at this section. \index{a}% -\index{added}% -\index{after}% -\index{also}% -\index{and}% -\index{at}% -\index{can}% -\index{case}% -\index{section}% -\index{code}% -\index{command}% -\index{commands}% -\index{Contents}% -\index{each}% -\index{entries}% -\index{For}% -\index{here}% -\index{I}% -\index{in}% -\index{index}% -\index{is}% -\index{Just}% -\index{just}% -\index{look}% -\index{lot}% -\index{of}% -\index{on}% -\index{one}% -\index{only}% -\index{source}% -\index{starred}% -\index{Table}% -\index{test}% -\index{the}% -\index{This}% -\index{this}% -\index{to}% -\index{uncomment}% -\index{variations}% -\index{you}% +and at this section. +\index{a}\index{added}\index{after}\index{also}\index{and}% +\index{at}\index{can}\index{case}\index{section}% +\index{code}\index{command}\index{commands}% +\index{Contents}\index{each}\index{entries}\index{For}% +\index{here}\index{I}\index{in}\index{index}\index{is}% +\index{Just}\index{just}\index{look}\index{lot}% +\index{of}\index{on}\index{one}\index{only}\index{source}% +\index{starred}\index{Table}\index{test}\index{the}% +\index{This}\index{this}\index{to}\index{uncomment}% +\index{variations}\index{you}% I also added a lot of index entries, just to test. \section{Third section} @@ -172,38 +151,18 @@ I also added a lot of index entries, just to test. \subsection{Sixth subsection} A small nice citation:\\ -\index{small}% -\index{citation}% -\index{nice}% -\index{A}% -\index{a}% -\index{and}% -\index{bird}% -\index{But}% -\index{cannot}% -\index{claim}% -\index{great}% -\index{he}% -\index{I}% -\index{imagine}% -\index{it}% -\index{know}% -\index{land}% -\index{on}% -\index{once}% -\index{that}% -\index{to}% -\index{tree}% -\index{would}% -\index{yes}% +\index{small}\index{citation}\index{nice}\index{A}% +\index{a}\index{and}\index{bird}\index{But}% +\index{cannot}\index{claim}\index{great}\index{he}% +\index{I}\index{imagine}\index{it}\index{know}% +\index{land}\index{on}\index{once}\index{that}% +\index{to}\index{tree}\index{would}\index{yes}% A bird cannot land once on a great tree and claim to know it. But I imagine that he would, yes.\\ -\hbox{}\hfill Iain M. Banks (1993), \textsl{Against a dark background.}% -\index{Iain}% -\index{Banks}% -\index{Against}% -\index{dark}% -\index{background} +\hbox{}\hfill +Iain M. Banks (1993), \textsl{Against a dark background.}% +\index{Iain}\index{Banks}\index{Against}% +\index{dark}\index{background} \begin{figure}[tp] \caption{Sixth figure} @@ -216,9 +175,9 @@ But I imagine that he would, yes.\\ \index{section!starred} %% UNCOMMENT ONE AND ONLY ONE OF THE 4 FOLLOWING LINES \mtcaddsection[Fifth section, starred] % OK -%\mtcaddsection[] % OK -%\mtcaddsection[~] % produce a (strange) correct result. -%\mtcaddsection % OK +%%\mtcaddsection[] % OK +%%\mtcaddsection[~] % produce a (strange) correct result. +%%\mtcaddsection % OK %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \index{tests} @@ -227,46 +186,17 @@ the \verb|\mtcaddsection| command. Just uncomment one (and only one) of the \verb|\mtcaddsection| commands after \verb|\section*| in the source code of \texttt{add.tex}. For each case, look at the \index{Table of Contents}Table of Contents -and at this section. \index{a}% -\index{added}% -\index{after}% -\index{also}% -\index{and}% -\index{at}% -\index{can}% -\index{case}% -\index{section}% -\index{code}% -\index{command}% -\index{commands}% -\index{Contents}% -\index{each}% -\index{entries}% -\index{For}% -\index{here}% -\index{I}% -\index{in}% -\index{index}% -\index{is}% -\index{Just}% -\index{just}% -\index{look}% -\index{lot}% -\index{of}% -\index{on}% -\index{one}% -\index{only}% -\index{source}% -\index{starred}% -\index{Table}% -\index{test}% -\index{the}% -\index{This}% -\index{this}% -\index{to}% -\index{uncomment}% -\index{variations}% -\index{you}% +and at this section.\index{a}% +\index{added}\index{after}\index{also}\index{and}% +\index{at}\index{can}\index{case}\index{section}% +\index{code}\index{command}\index{commands}\index{Contents}% +\index{each}\index{entries}\index{For}\index{here}% +\index{I}\index{in}\index{index}\index{is}% +\index{Just}\index{just}\index{look}\index{lot}% +\index{of}\index{on}\index{one}\index{only}% +\index{source}\index{starred}\index{Table}\index{test}% +\index{the}\index{This}\index{this}\index{to}% +\index{uncomment}\index{variations}\index{you}% I also added a lot of index entries, just to test. \section{Sixth section} @@ -289,19 +219,16 @@ I also added a lot of index entries, just to test. \begin{table} \caption{Eighth table} \end{table} - \nocite* \def\noopsort#1{\relax} \bibliographystyle{plain} \bibliography{add} -%\adjustmtc \adjuststc - \printindex \mtcfixindex % use this OR the 2 following lines -%\addcontentsline{lof}{xsect}{} -%\addcontentsline{lot}{xsect}{} -%\mtcaddsection +%%\addcontentsline{lof}{xsect}{} +%%\addcontentsline{lot}{xsect}{} +%%\mtcaddsection \appendix \section{App.~1} @@ -327,7 +254,7 @@ I also added a lot of index entries, just to test. \section{App.~2} \index{section!appendix} -% contains no tables but asks for a sectlot! No sectlot printed. +%% contains no tables but asks for a sectlot! No sectlot printed. \secttoc \mtcskip \sectlof \mtcskip \sectlot \subsection{Eleventh subsection} @@ -347,5 +274,9 @@ I also added a lot of index entries, just to test. \caption{Fourteenth figure} \end{figure} - \end{document} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\endinput +%% +%% End of file `addsec.tex'. |