| 1 |
%% |
| 2 |
%% This is file `mtc-add.tex', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% minitoc.dtx (with options: `mtc-add') |
| 8 |
%% This is a generated file. |
| 9 |
%% |
| 10 |
%% |
| 11 |
%% This file may be distributed and/or modified under the conditions of |
| 12 |
%% the LaTeX Project Public License, either version 1.3 of this license |
| 13 |
%% or (at your option) any later version. The latest version of this |
| 14 |
%% license is in: |
| 15 |
%% |
| 16 |
%% http://www.latex-project.org/lppl.txt |
| 17 |
%% |
| 18 |
%% and version 1.3 or later is part of all distributions of LaTeX version |
| 19 |
%% 2003/12/01 or later. |
| 20 |
%% |
| 21 |
%% This work has the LPPL maintenance status "maintained". |
| 22 |
%% |
| 23 |
%% The Current Maintainer of this work is GitHub minitoc organisation. |
| 24 |
%% |
| 25 |
%% This work consists of all the files listed in the file `minitoc.l' |
| 26 |
%% distributed with it. |
| 27 |
%% Copyright 1993 1994 1995 1996 1997 1998 1999 2000 |
| 28 |
%% 2001 2002 2003 2004 2005 2006 2007 2008 |
| 29 |
%% Jean-Pierre F. Drucbert |
| 30 |
%% Copyright 2018 GitHub minitoc organisation (David Carlisle) |
| 31 |
\documentclass[12pt,a4paper]{report} |
| 32 |
%% \documentclass[12pt,a4paper]{book} |
| 33 |
\ProvidesFile{mtc-add.tex}% |
| 34 |
[2007/01/04] |
| 35 |
\usepackage{url} |
| 36 |
\usepackage{tocbibind} |
| 37 |
\usepackage{makeidx} |
| 38 |
\makeatletter |
| 39 |
\newif\ifscan@allowed |
| 40 |
\scan@allowedtrue |
| 41 |
\makeatother |
| 42 |
\def\dotfil{\leaders\hbox to.6em{\hss .\hss}\hfil}% |
| 43 |
\def\pfill{\unskip~\dotfill\penalty500\strut\nobreak |
| 44 |
\dotfil~\ignorespaces}% |
| 45 |
\usepackage[tight,hints,listfiles]{minitoc} |
| 46 |
%% \usepackage{mtcoff} |
| 47 |
\makeindex |
| 48 |
\begin{document} |
| 49 |
\dominitoc \dominilof \dominilot |
| 50 |
\tableofcontents \mtcaddchapter |
| 51 |
\listoffigures \mtcaddchapter |
| 52 |
\listoftables \mtcaddchapter |
| 53 |
\chapter{First chapter}\index{chapter!normal} |
| 54 |
\minitoc \mtcskip |
| 55 |
\minilof \mtcskip |
| 56 |
\minilot |
| 57 |
\section{First section} |
| 58 |
|
| 59 |
\begin{figure}[tp] \caption{First figure} \end{figure} |
| 60 |
\begin{table}[tp] \caption{First table} \end{table} |
| 61 |
|
| 62 |
\section{Second section} |
| 63 |
A small nice citation from~\cite{dark}:\\ |
| 64 |
\index{small}\index{citation}\index{nice}\index{A}\index{a}% |
| 65 |
\index{and}\index{bird}\index{But}\index{cannot}% |
| 66 |
\index{claim}\index{great}\index{he}\index{I}% |
| 67 |
\index{imagine}\index{it}\index{know}\index{land}% |
| 68 |
\index{on}\index{once}\index{that}\index{to}\index{tree}% |
| 69 |
\index{would}\index{yes}% |
| 70 |
\textsf{A bird cannot land once on a great tree and claim to know it. |
| 71 |
But I imagine that he would, yes.}\\ |
| 72 |
\hbox{}\hfill |
| 73 |
Iain~M.~\textsc{Banks}~(1993),~\textsl{Against~a~dark~background.}% |
| 74 |
\index{Iain}\index{Banks}\index{Against}\index{dark}\index{background} |
| 75 |
|
| 76 |
\begin{figure}[tp] \caption{Second figure} \end{figure} |
| 77 |
\begin{table} \caption{Second table} \end{table} |
| 78 |
\chapter*{Second chapter, starred} |
| 79 |
\index{chapter!starred} |
| 80 |
%% UNCOMMENT ONE AND ONLY ONE OF THE 3 FOLLOWING LINES |
| 81 |
\mtcaddchapter[Second chapter, starred] % OK |
| 82 |
%% \mtcaddchapter[~] % produces a (strange) correct result. OK |
| 83 |
%% \addcontentsline{toc}{xchapter}{} |
| 84 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 85 |
%% \mtcaddchapter[] % BAD SOLUTION |
| 86 |
%% \mtcaddchapter % BAD SOLUTION |
| 87 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 88 |
\index{tests} |
| 89 |
|
| 90 |
This is a starred chapter; you can test here variations on |
| 91 |
the \verb|\mtcaddchapter| command. Just uncomment one (and |
| 92 |
only one) of the \verb|\mtcaddchapter| commands after |
| 93 |
\verb|\chapter*| in the source code of \texttt{mtc-add.tex}. |
| 94 |
For each case, look at the \index{Table of Contents}Table of Contents |
| 95 |
and at this chapter. |
| 96 |
\index{a}\index{added}\index{after}\index{also}\index{and}% |
| 97 |
\index{at}\index{can}\index{case}\index{chapter}\index{code}% |
| 98 |
\index{command}\index{commands}\index{Contents}\index{each}% |
| 99 |
\index{entries}\index{For}\index{here}\index{I}\index{in}% |
| 100 |
\index{index}\index{is}\index{Just}\index{just}\index{look}% |
| 101 |
\index{lot}\index{of}\index{on}\index{one}\index{only}% |
| 102 |
\index{source}\index{starred}\index{Table}\index{test}% |
| 103 |
\index{the}\index{This}\index{this}\index{to}\index{uncomment}% |
| 104 |
\index{variations}\index{you}% |
| 105 |
I also added a lot of index entries, just to test. |
| 106 |
|
| 107 |
\chapter{Third chapter} |
| 108 |
\index{chapter!normal} |
| 109 |
\minitoc \mtcskip |
| 110 |
\minilof \mtcskip |
| 111 |
\minilot |
| 112 |
\section{Third section} |
| 113 |
|
| 114 |
\begin{figure} \caption{Third figure} \end{figure} |
| 115 |
\begin{table} \caption{Third table} \end{table} |
| 116 |
|
| 117 |
\section{Fourth section} |
| 118 |
|
| 119 |
\begin{figure} \caption{Fourth figure} \end{figure} |
| 120 |
\begin{table} \caption{Fourth table} \end{table} |
| 121 |
\nocite* |
| 122 |
\def\noopsort#1{\relax} |
| 123 |
\bibliographystyle{plain} |
| 124 |
\bibliography{mtc-add} |
| 125 |
\adjustmtc |
| 126 |
\printindex |
| 127 |
\mtcfixindex % use this OR the 3 following lines |
| 128 |
%% \addcontentsline{lof}{xchapter}{} |
| 129 |
%% \addcontentsline{lot}{xchapter}{} |
| 130 |
%% \mtcaddchapter |
| 131 |
%% |
| 132 |
|
| 133 |
\appendix |
| 134 |
\chapter{App.~1} |
| 135 |
\index{chapter!appendix} |
| 136 |
\minitoc \mtcskip |
| 137 |
\minilof \mtcskip |
| 138 |
\minilot |
| 139 |
\section{Fifth section} |
| 140 |
|
| 141 |
\begin{figure} \caption{Fifth figure} \end{figure} |
| 142 |
\begin{table} \caption{Fifth table} \end{table} |
| 143 |
|
| 144 |
\section{Sixth section} |
| 145 |
|
| 146 |
\begin{figure} \caption{Sixth figure} \end{figure} |
| 147 |
\begin{table} \caption{Sixth table} \end{table} |
| 148 |
\chapter{App.~2} |
| 149 |
\index{chapter!appendix} |
| 150 |
%% contains no tables but asks for a minilot! No minilot printed. |
| 151 |
\minitoc \mtcskip |
| 152 |
\minilof \mtcskip |
| 153 |
\minilot |
| 154 |
\section{Seventh section} |
| 155 |
\begin{figure} \caption{Seventh figure} \end{figure} |
| 156 |
\begin{figure} \caption{Eighth figure} \end{figure} |
| 157 |
|
| 158 |
\section{Eighth section} |
| 159 |
|
| 160 |
\begin{figure} \caption{Ninth figure} \end{figure} |
| 161 |
\begin{figure} \caption{Eleventh figure} \end{figure} |
| 162 |
|
| 163 |
\end{document} |
| 164 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 165 |
|
| 166 |
|
| 167 |
|
| 168 |
|
| 169 |
|
| 170 |
|
| 171 |
|
| 172 |
|
| 173 |
|
| 174 |
|
| 175 |
|
| 176 |
|
| 177 |
|
| 178 |
|
| 179 |
|
| 180 |
|
| 181 |
|
| 182 |
|
| 183 |
|
| 184 |
|
| 185 |
|
| 186 |
|
| 187 |
|
| 188 |
|
| 189 |
|
| 190 |
|
| 191 |
|
| 192 |
|
| 193 |
|
| 194 |
|
| 195 |
|
| 196 |
|
| 197 |
|
| 198 |
|
| 199 |
|
| 200 |
|
| 201 |
|
| 202 |
|
| 203 |
|
| 204 |
|
| 205 |
|
| 206 |
|
| 207 |
|
| 208 |
|
| 209 |
|
| 210 |
|
| 211 |
|
| 212 |
|
| 213 |
|
| 214 |
|
| 215 |
|
| 216 |
|
| 217 |
|
| 218 |
|
| 219 |
|
| 220 |
|
| 221 |
|
| 222 |
|
| 223 |
|
| 224 |
|
| 225 |
|
| 226 |
|
| 227 |
|
| 228 |
|
| 229 |
|
| 230 |
%% |
| 231 |
|
| 232 |
|
| 233 |
|
| 234 |
|
| 235 |
|
| 236 |
|
| 237 |
|
| 238 |
|
| 239 |
|
| 240 |
|
| 241 |
|
| 242 |
|
| 243 |
|
| 244 |
|
| 245 |
|
| 246 |
|
| 247 |
|
| 248 |
|
| 249 |
|
| 250 |
|
| 251 |
|
| 252 |
|
| 253 |
|
| 254 |
|
| 255 |
|
| 256 |
|
| 257 |
|
| 258 |
|
| 259 |
|
| 260 |
|
| 261 |
|
| 262 |
|
| 263 |
|
| 264 |
|
| 265 |
|
| 266 |
|
| 267 |
|
| 268 |
|
| 269 |
|
| 270 |
\endinput |
| 271 |
%% |
| 272 |
%% End of file `mtc-add.tex'. |