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.tex78
1 files changed, 39 insertions, 39 deletions
diff --git a/Master/texmf-dist/doc/latex/minitoc/add.tex b/Master/texmf-dist/doc/latex/minitoc/add.tex
index 8e027139b58..b0fd3d825bd 100644
--- a/Master/texmf-dist/doc/latex/minitoc/add.tex
+++ b/Master/texmf-dist/doc/latex/minitoc/add.tex
@@ -1,14 +1,10 @@
\documentclass[12pt,a4paper]{report}
%\documentclass[12pt,a4paper]{book}
-\usepackage{url,tocbibind,makeidx}
+\usepackage{url}
+\usepackage{tocbibind}
+\usepackage{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
@@ -28,16 +24,16 @@
\minilof
\bigskip
\minilot
-\section{C1-S1}
+\section{First section}
\begin{figure}[tp]
-\caption{C1-S1-F1}
+\caption{First figure}
\end{figure}
\begin{table}[tp]
-\caption{C1-S1-T1}
+\caption{First table}
\end{table}
-\section{C1-S2}
+\section{Second section}
A small nice citation:\\
\index{small}%
\index{citation}%
@@ -63,9 +59,9 @@ A small nice citation:\\
\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.}%
+\textsf{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.~\textsc{Banks}~(1993),~\textsl{Against~a~dark~background.}%
\index{Iain}%
\index{Banks}%
\index{Against}%
@@ -73,19 +69,21 @@ But I imagine that he would, yes.\\
\index{background}
\begin{figure}[tp]
-\caption{C1-S2-F2}
+\caption{Second figure}
\end{figure}
\begin{table}
-\caption{C1-S2-T2}
+\caption{Second table}
\end{table}
\chapter*{Second chapter, starred}
\index{chapter!starred}
-%% UNCOMMENT ONE AND ONLY ONE OF THE 4 FOLLOWING LINES
+%% UNCOMMENT ONE AND ONLY ONE OF THE 3 FOLLOWING LINES
\mtcaddchapter[Second chapter, starred] % OK
-%\mtcaddchapter[] % OK
-%\mtcaddchapter[~] % produce a (strange) correct result.
-%\mtcaddchapter % OK
+%\mtcaddchapter[~] % produce a (strange) correct result. OK
+%\addcontentsline{toc}{xchapter}{}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%\mtcaddchapter[] % BAD SOLUTION
+%\mtcaddchapter % BAD SOLUTION
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\index{tests}
@@ -143,22 +141,22 @@ I also added a lot of index entries, just to test.
\minilof
\bigskip
\minilot
-\section{C3-S1}
+\section{Third section}
\begin{figure}
-\caption{C3-S1-F1}
+\caption{Third figure}
\end{figure}
\begin{table}
-\caption{C3-S1-T1}
+\caption{Third table}
\end{table}
-\section{C3-S2}
+\section{Fourth section}
\begin{figure}
-\caption{C3-S2-F2}
+\caption{Fourth figure}
\end{figure}
\begin{table}
-\caption{C3-S2-T2}
+\caption{Fourth table}
\end{table}
\nocite*
@@ -167,7 +165,10 @@ I also added a lot of index entries, just to test.
\bibliography{add}
\adjustmtc
+%\end{document}
+
\printindex
+%\mtcfixindex % use this OR the 3 following lines
\addcontentsline{lof}{xchapter}{}
\addcontentsline{lot}{xchapter}{}
\mtcaddchapter
@@ -180,22 +181,22 @@ I also added a lot of index entries, just to test.
\minilof
\bigskip
\minilot
-\section{A1-S1}
+\section{Fifth section}
\begin{figure}
-\caption{A1-S1-F1}
+\caption{Fifth figure}
\end{figure}
\begin{table}
-\caption{A1-S1-T1}
+\caption{Fifth table}
\end{table}
-\section{A1-S2}
+\section{Sixth section}
\begin{figure}
-\caption{A1-S2-F1}
+\caption{Sixth figure}
\end{figure}
\begin{table}
-\caption{A1-S2-T1}
+\caption{Sixth table}
\end{table}
\chapter{App.~2}
@@ -206,22 +207,21 @@ I also added a lot of index entries, just to test.
\minilof
\bigskip
\minilot
-\section{A2-S1}
-
+\section{Seventh section}
\begin{figure}
-\caption{A2-S1-F1}
+\caption{Seventh figure}
\end{figure}
\begin{figure}
-\caption{A2-S1-F2}
+\caption{Eighth figure}
\end{figure}
-\section{A2-S2}
+\section{Eighth section}
\begin{figure}
-\caption{A2-S2-F1}
+\caption{Ninth figure}
\end{figure}
\begin{figure}
-\caption{A2-S2-F2}
+\caption{Eleventh figure}
\end{figure}
\end{document}