diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/minitoc/examples/mtc-vti.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/minitoc/examples/mtc-vti.tex | 180 |
1 files changed, 180 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/minitoc/examples/mtc-vti.tex b/Master/texmf-dist/doc/latex/minitoc/examples/mtc-vti.tex new file mode 100644 index 00000000000..fafe518248d --- /dev/null +++ b/Master/texmf-dist/doc/latex/minitoc/examples/mtc-vti.tex @@ -0,0 +1,180 @@ +%% +%% This is file `mtc-vti.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% minitoc.dtx (with options: `mtc-vti') +%% This is a generated file. +%% +%% +%% This file may be distributed and/or modified under the conditions of +%% the LaTeX Project Public License, either version 1.3 of this license +%% or (at your option) any later version. The latest version of this +%% license is in: +%% +%% http://www.latex-project.org/lppl.txt +%% +%% and version 1.3 or later is part of all distributions of LaTeX version +%% 2003/12/01 or later. +%% +%% This work has the LPPL maintenance status "unmaintained". +%% +%% The Current Maintainer of this work is <none>. +%% +%% This work consists of all the files listed in the file `minitoc.l' +%% distributed with it. +%% Copyright 1993 1994 1995 1996 1997 1998 1999 2000 +%% 2001 2002 2003 2004 2005 2006 2007 2008 +%% Jean-Pierre F. Drucbert +\documentclass[10pt,a4paper,oneside]{book} +\ProvidesFile{mtc-vti.tex}[2008/06/26]% +\usepackage{lipsum} +\usepackage{txfonts} +\usepackage[tight]{minitoc} +\begin{document} +\dominitoc +\doparttoc +\newcommand\alfati{\ifinparttoc Alfa in parttoc + \else\ifinminitoc Alfa in minitoc + \else Alfa out subtoc + \fi + \fi} +\DeclareRobustCommand{\varsecti}[3]% + {\ifinparttoc{#1}\relax + \else\ifinminitoc{#2}\relax + \else{#3}\relax + \fi + \fi} +\tableofcontents +\part{Part~A} +\parttoc + +\chapter{One} +\minitoc +\section[\protect\alfati]{Alfa the first section} +\lipsum[1] +\section[\varsecti{Bravo in parttoc}% + {Bravo in minitoc}% + {Bravo out of subtoc}]% % in maintoc and headers + {Bravo the second section} % local title +\lipsum[2] +\chapter{Two} +\minitoc +\section[\mtcpolymtoc% + {Charlie in parttoc}% + {Charlie in minitoc}% + {Charlie in secttoc}% % <- see/voir note + {Charlie out subtoc}]% + {Charlie} +\lipsum[3] +\end{document} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +%% + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +\endinput +%% +%% End of file `mtc-vti.tex'. |