diff options
author | Karl Berry <karl@freefriends.org> | 2011-08-07 22:51:21 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2011-08-07 22:51:21 +0000 |
commit | b9796f07afb63ea44bdf7109294476668d4d1c5f (patch) | |
tree | e5f4683338fd567cc11ef84f67dbf2fa587a5537 /Master/texmf-dist/doc/latex/tocvsec2/tocvsec2-example.tex | |
parent | bcdd4b5d66feaf11bd0ef448645957cb6f14f372 (diff) |
tocvsec2 1.3 (7aug11)
git-svn-id: svn://tug.org/texlive/trunk@23444 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/tocvsec2/tocvsec2-example.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/tocvsec2/tocvsec2-example.tex | 56 |
1 files changed, 56 insertions, 0 deletions
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} |