| 1 |
%% |
| 2 |
%% This is file `tableoftest.tex', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% tableof.dtx (with options: `test') |
| 8 |
%% |
| 9 |
%% IMPORTANT NOTICE: |
| 10 |
%% |
| 11 |
%% For the copyright see the source file. |
| 12 |
%% |
| 13 |
%% Any modified versions of this file must be renamed |
| 14 |
%% with new filenames distinct from tableoftest.tex. |
| 15 |
%% |
| 16 |
%% For distribution of the original source see the terms |
| 17 |
%% for copying and modification in the file tableof.dtx. |
| 18 |
%% |
| 19 |
%% This generated file may be distributed as long as the |
| 20 |
%% original source files, as listed above, are part of the |
| 21 |
%% same distribution. (The sources need not necessarily be |
| 22 |
%% in the same archive or directory.) |
| 23 |
%% |
| 24 |
%% Package: tableof |
| 25 |
%% Version: 1.4d (2024/09/17) |
| 26 |
%% License: LPPL 1.3c |
| 27 |
%% Copyright (C) 2012, 2013, 2015, 2018, 2021, 2024 Jean-Francois Burnol <jfbu at free dot fr> |
| 28 |
%% |
| 29 |
%% This file `tableoftest.tex' serves to demontrate the use of the |
| 30 |
%% commands from the package `tableof'. |
| 31 |
%% |
| 32 |
%% (run on it `latex' or `pdflatex' twice.) |
| 33 |
%% |
| 34 |
\documentclass{article} |
| 35 |
\usepackage[T1]{fontenc} |
| 36 |
\usepackage[colorlinks,linkcolor=blue]{hyperref} |
| 37 |
\usepackage{tableof} |
| 38 |
%%\usepackage{etoc} % for testing |
| 39 |
\DeclareRobustCommand\lowast{\raisebox{-.25\height}{*}} |
| 40 |
\begin{document} |
| 41 |
%% \etoctoclines % (if using package etoc) |
| 42 |
%% |
| 43 |
%% we don't need here \tofOpenTocFileForWrite |
| 44 |
%% as the document has \tableofcontents a few lines down. |
| 45 |
%% |
| 46 |
\section*{\string\tableof\{\}} |
| 47 |
\tableof{} |
| 48 |
\section*{\string\tableof\lowast\{A,B,C,D,E,F\}} |
| 49 |
\tableof*{ A, B,C , D , E, F } |
| 50 |
\section*{\string\tableof\{A\}} |
| 51 |
\tableof{A} |
| 52 |
\section*{\string\tableof\lowast\{A\}} |
| 53 |
\tableof*{A} |
| 54 |
\section*{\string\tableof\{A,C\}} |
| 55 |
\tableof{ A ,C } |
| 56 |
\section*{\string\tableof\lowast\{A,C\}} |
| 57 |
\tableof*{A, C } |
| 58 |
\section*{\string\tableoftaggedcontents\lowast\{A,D\}\{B,F\}} |
| 59 |
\tableoftaggedcontents*{ A,D}{B, F} |
| 60 |
\renewcommand\contentsname{\string\nexttocwithtags\lowast\{A,D\}\lowast\{B,F\}\string\tableofcontents} |
| 61 |
\nexttocwithtags*{ A , D}*{B ,F} |
| 62 |
\tableofcontents |
| 63 |
%% requires package etoc |
| 64 |
%% \etoctocstyle{1}{with A and D and without B and without F} |
| 65 |
%% \nexttocwithtags{A,D}{B,F}\tableofcontents |
| 66 |
%% \etoctocstyle{1}{with (A or D) and without B and without F} |
| 67 |
%% \nexttocwithtags*{A,D}{B,F}\tableofcontents |
| 68 |
%% \etoctocstyle{1}{with A and D and (without B or without F)} |
| 69 |
%% \nexttocwithtags{A,D}*{B,F}\tableofcontents |
| 70 |
\section*{with B or with C (using \string\tableoftaggedcontents)} |
| 71 |
\tableoftaggedcontents*{B, C}{} |
| 72 |
\section*{with B or with C (using \string\tableof\lowast)} |
| 73 |
\tableof*{B, C} |
| 74 |
\section*{with A and with B and with C} |
| 75 |
\tableof{A, B, C} |
| 76 |
\section*{with A or with B or with C} |
| 77 |
\tableof*{ A,B ,C } |
| 78 |
\section*{without B (and) (using \string\tableoftaggedcontents)} |
| 79 |
\tableoftaggedcontents{}{B} |
| 80 |
\section*{without A and without B (using \string\tableoftaggedcontents)} |
| 81 |
\tableoftaggedcontents{}{A , B} |
| 82 |
\section*{without A or without C} |
| 83 |
\tablenotof*{ A, C} |
| 84 |
\section*{without A and without B and without C} |
| 85 |
\tablenotof{ A , B , C} |
| 86 |
\section*{without A or without B or without C} |
| 87 |
\tablenotof*{A, B,C } |
| 88 |
\section*{with D and with E} |
| 89 |
\tableof{D,E} |
| 90 |
\section*{with E} |
| 91 |
\tableof{E} |
| 92 |
\section*{without D} |
| 93 |
\tablenotof{D} |
| 94 |
\section*{ecology and rabbits} |
| 95 |
\tableof{ ecology , rabbits } |
| 96 |
\section*{rabbits and not ecology} |
| 97 |
\tableoftaggedcontents{ rabbits }{ ecology } |
| 98 |
\section*{kitchenware and not rabbits} |
| 99 |
\tableoftaggedcontents{ kitchenware }{ rabbits} |
| 100 |
\clearpage |
| 101 |
\section{no tag} |
| 102 |
nothing |
| 103 |
\begin{verbatim} |
| 104 |
\toftagstart{D,E,F} |
| 105 |
\toftagthis{A} |
| 106 |
\end{verbatim} |
| 107 |
\toftagstart{ D, E, F } |
| 108 |
\toftagthis{A} |
| 109 |
\section{A,D,E,F} |
| 110 |
A,D,E,F |
| 111 |
\begin{verbatim} |
| 112 |
\toftagthis{B} |
| 113 |
\end{verbatim} |
| 114 |
\toftagthis{B} |
| 115 |
\section{B,D,E,F} |
| 116 |
B,D,E,F |
| 117 |
\begin{verbatim} |
| 118 |
\toftagthis{C} |
| 119 |
\end{verbatim} |
| 120 |
\toftagthis{ C } |
| 121 |
\section{C,D,E,F} |
| 122 |
C,D,E,F |
| 123 |
\begin{verbatim} |
| 124 |
\toftagstop{F} |
| 125 |
\toftagthis{A,B} |
| 126 |
\end{verbatim} |
| 127 |
\toftagstop{F} |
| 128 |
\toftagthis{ A,B} |
| 129 |
\section{A,B,D,E} |
| 130 |
A,B,D,E |
| 131 |
\begin{verbatim} |
| 132 |
\toftagthis{B,C} |
| 133 |
\end{verbatim} |
| 134 |
\toftagthis{B, C} |
| 135 |
\section{B,C,D,E} |
| 136 |
B,C,D |
| 137 |
\begin{verbatim} |
| 138 |
\toftagthis{A,C} |
| 139 |
\toftagstop{E} |
| 140 |
\end{verbatim} |
| 141 |
\toftagthis{ A, C} |
| 142 |
\toftagstop{ E} |
| 143 |
\section{A,C,D} |
| 144 |
A,C,D |
| 145 |
\begin{verbatim} |
| 146 |
\toftagstop{D} |
| 147 |
\toftagthis{A,B,C} |
| 148 |
\end{verbatim} |
| 149 |
\toftagstop{D } |
| 150 |
\toftagthis{A,B,C } |
| 151 |
\section{A,B,C} |
| 152 |
A,B,C |
| 153 |
\begin{verbatim} |
| 154 |
\toftagstop{A,B,C,D,E,F} |
| 155 |
\toftagstart{kitchenware,rabbits} |
| 156 |
\end{verbatim} |
| 157 |
\toftagstop{A,B, C,D,E,F} |
| 158 |
\toftagstart{ kitchenware,rabbits} |
| 159 |
\section{Knives and rabbits} |
| 160 |
\begin{verbatim} |
| 161 |
\tofuntagthis{kitchenware} |
| 162 |
\end{verbatim} |
| 163 |
\tofuntagthis{kitchenware} |
| 164 |
\subsection{Hunting rabbits} |
| 165 |
\begin{verbatim} |
| 166 |
\tofuntagthis{rabbits} |
| 167 |
\end{verbatim} |
| 168 |
\tofuntagthis{rabbits} |
| 169 |
\subsection{Best knives for cooking} |
| 170 |
\subsection{Eating rabbits} |
| 171 |
\begin{verbatim} |
| 172 |
\toftagstart{ecology}\tofuntagthis{rabbits} |
| 173 |
\end{verbatim} |
| 174 |
\toftagstart{ecology}\tofuntagthis{ rabbits} |
| 175 |
\section{Knives and global climate} |
| 176 |
\begin{verbatim} |
| 177 |
\toftagstop{kitchenware} |
| 178 |
\end{verbatim} |
| 179 |
\toftagstop{kitchenware } |
| 180 |
\section{The rabbit in the wild} |
| 181 |
\subsection{Impact of the rabbit on global climate} |
| 182 |
\begin{verbatim} |
| 183 |
\toftagstop{rabbits} |
| 184 |
\end{verbatim} |
| 185 |
\toftagstop{ rabbits} |
| 186 |
\section{Other species of interest for cooking} |
| 187 |
\end{document}\endinput |
| 188 |
\endinput |
| 189 |
%% |
| 190 |
%% End of file `tableoftest.tex'. |