diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/tocvsec2')
-rw-r--r-- | Master/texmf-dist/doc/latex/tocvsec2/README | 20 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/tocvsec2/tocvsec2-example.tex | 56 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/tocvsec2/tocvsec2.pdf | bin | 287553 -> 301276 bytes |
3 files changed, 72 insertions, 4 deletions
diff --git a/Master/texmf-dist/doc/latex/tocvsec2/README b/Master/texmf-dist/doc/latex/tocvsec2/README index cf07be57538..a3e5ad6338f 100644 --- a/Master/texmf-dist/doc/latex/tocvsec2/README +++ b/Master/texmf-dist/doc/latex/tocvsec2/README @@ -8,6 +8,18 @@ NB. The package also requires the ifthen package. ______________ Change history +version 1.3 (2011/08/07) +- New commands \resettocdepth and \resetsecnumdepth + used for resetting to previous values of the tocdepth + and secnumdepth counters (using a stack-based approach). + With optional star argument can reset to the original + `max' values. + +- Bug fix that resets "tocdepth" to its original value after + the \tableofcontents -- els it will adversely affect + subsequent List of Figures/Tables (or cause no harm, + either way). + version 1.2b (2010/02/27) - Bug fix for extraneous vertical space before sections (This may change the typesetting of documents that use @@ -22,7 +34,8 @@ version 1.2 (2004/05/24) ----------------------------------------------------------------- Author: Peter Wilson, Herries Press Maintainer: Will Robertson (will dot robertson at latex-project dot org) - Copyright 1999 -- 2004 Peter R. Wilson + Copyright 1999-2004 Peter R. Wilson + Copyright 2010-2011 Will Robertson This work may be distributed and/or modified under the conditions of the LaTeX Project Public License, either @@ -55,7 +68,6 @@ tocvsec2.pdf (user manual) http://www.tug.ac.uk/faq for more information on this. To regenerate the user manual: -- run: latex tocvsec2.dtx +- run: pdflatex tocvsec2.dtx - run: makeindex -s gind.ist tocvsec2 -- run: latex tocvsec2.dtx -- Print tocvsec2.dvi for a hardcopy of the package manual +- run: pdflatex tocvsec2.dtx diff --git a/Master/texmf-dist/doc/latex/tocvsec2/tocvsec2-example.tex b/Master/texmf-dist/doc/latex/tocvsec2/tocvsec2-example.tex new file mode 100644 index 00000000000..0dea71304b8 --- /dev/null +++ b/Master/texmf-dist/doc/latex/tocvsec2/tocvsec2-example.tex @@ -0,0 +1,56 @@ + +\documentclass{article} + +\usepackage{tocvsec2} +\maxtocdepth{subsubsection} +\maxsecnumdepth{subsubsection} + +\def\x{% + \subsection{sone} xyz + \subsubsection{ssone} abc + \subsubsection{sstwo} def + \subsection{stwo} 123 + \paragraph{foo} here +} + +\begin{document} +\makeatletter + +\tableofcontents +\section{Normal section} +\x + +\setsecnumdepth{subsection} +\settocdepth{subsection} +\section{Reduce numbering} +\x + +\setsecnumdepth{section} +\settocdepth{section} +\section{Reduce numbering again} +\x + +\resetsecnumdepth +\resettocdepth +\section{Reset numbering once} +\x + +\setsecnumdepth{section} +\settocdepth{section} +\section{Reduce numbering again} +\x + +\resetsecnumdepth* +\resettocdepth* +\section{Another normal section after resetting completely} +\x + +\appendix + +\settocdepth{all} +\setsecnumdepth{all} +\section{Appendix with all numbering} +\x + + +\end{document} diff --git a/Master/texmf-dist/doc/latex/tocvsec2/tocvsec2.pdf b/Master/texmf-dist/doc/latex/tocvsec2/tocvsec2.pdf Binary files differindex a9dd02c3c32..7977c890f8d 100644 --- a/Master/texmf-dist/doc/latex/tocvsec2/tocvsec2.pdf +++ b/Master/texmf-dist/doc/latex/tocvsec2/tocvsec2.pdf |