summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/minitoc/add.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/minitoc/add.tex')
-rw-r--r--Master/texmf-dist/doc/latex/minitoc/add.tex227
1 files changed, 227 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/minitoc/add.tex b/Master/texmf-dist/doc/latex/minitoc/add.tex
new file mode 100644
index 00000000000..8e027139b58
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/minitoc/add.tex
@@ -0,0 +1,227 @@
+\documentclass[12pt,a4paper]{report}
+%\documentclass[12pt,a4paper]{book}
+\usepackage{url,tocbibind,makeidx}
+\usepackage[tight,hints]{minitoc}
+%\usepackage{mtcoff}
+\providecommand{\pfill}{\dotfill}
+\renewcommand{\pfill}{\hfill}
+\providecommand{\efill}{\hfill\nopagebreak}
+\makeatletter
+\newif\ifscan@allowed \scan@allowedfalse
+\makeatother
+\makeindex
+\begin{document}
+\dominitoc
+\dominilof
+\dominilot
+\tableofcontents
+\mtcaddchapter
+\listoffigures
+\mtcaddchapter
+\listoftables
+\mtcaddchapter
+
+\chapter{First chapter}
+\index{chapter!normal}
+\minitoc
+\bigskip
+\minilof
+\bigskip
+\minilot
+\section{C1-S1}
+
+\begin{figure}[tp]
+\caption{C1-S1-F1}
+\end{figure}
+\begin{table}[tp]
+\caption{C1-S1-T1}
+\end{table}
+
+\section{C1-S2}
+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}%
+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}
+
+\begin{figure}[tp]
+\caption{C1-S2-F2}
+\end{figure}
+\begin{table}
+\caption{C1-S2-T2}
+\end{table}
+
+\chapter*{Second chapter, starred}
+\index{chapter!starred}
+%% UNCOMMENT ONE AND ONLY ONE OF THE 4 FOLLOWING LINES
+\mtcaddchapter[Second chapter, starred] % OK
+%\mtcaddchapter[] % OK
+%\mtcaddchapter[~] % produce a (strange) correct result.
+%\mtcaddchapter % OK
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\index{tests}
+
+This is a starred chapter; you can test here variations on
+the \verb|\mtcaddchapter| command. Just uncomment one (and
+only one) of the \verb|\mtcaddchapter| commands after
+\verb|\chapter*| in the source code of \texttt{add.tex}.
+For each case, look at the \index{Table of Contents}Table of Contents
+and at this chapter. \index{a}%
+\index{added}%
+\index{after}%
+\index{also}%
+\index{and}%
+\index{at}%
+\index{can}%
+\index{case}%
+\index{chapter}%
+\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.
+
+\chapter{Third chapter}
+\index{chapter!normal}
+\minitoc
+\bigskip
+\minilof
+\bigskip
+\minilot
+\section{C3-S1}
+
+\begin{figure}
+\caption{C3-S1-F1}
+\end{figure}
+\begin{table}
+\caption{C3-S1-T1}
+\end{table}
+
+\section{C3-S2}
+
+\begin{figure}
+\caption{C3-S2-F2}
+\end{figure}
+\begin{table}
+\caption{C3-S2-T2}
+\end{table}
+
+\nocite*
+\def\noopsort#1{\relax}
+\bibliographystyle{plain}
+\bibliography{add}
+\adjustmtc
+
+\printindex
+\addcontentsline{lof}{xchapter}{}
+\addcontentsline{lot}{xchapter}{}
+\mtcaddchapter
+
+\appendix
+\chapter{App.~1}
+\index{chapter!appendix}
+\minitoc
+\bigskip
+\minilof
+\bigskip
+\minilot
+\section{A1-S1}
+
+\begin{figure}
+\caption{A1-S1-F1}
+\end{figure}
+\begin{table}
+\caption{A1-S1-T1}
+\end{table}
+
+\section{A1-S2}
+
+\begin{figure}
+\caption{A1-S2-F1}
+\end{figure}
+\begin{table}
+\caption{A1-S2-T1}
+\end{table}
+
+\chapter{App.~2}
+\index{chapter!appendix}
+% contains no tables but asks for a minilot! No minilot printed.
+\minitoc
+\bigskip
+\minilof
+\bigskip
+\minilot
+\section{A2-S1}
+
+\begin{figure}
+\caption{A2-S1-F1}
+\end{figure}
+\begin{figure}
+\caption{A2-S1-F2}
+\end{figure}
+
+\section{A2-S2}
+
+\begin{figure}
+\caption{A2-S2-F1}
+\end{figure}
+\begin{figure}
+\caption{A2-S2-F2}
+\end{figure}
+
+\end{document}