summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/tocvsec2/tocvsec2.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/tocvsec2/tocvsec2.dtx')
-rw-r--r--Master/texmf-dist/source/latex/tocvsec2/tocvsec2.dtx77
1 files changed, 44 insertions, 33 deletions
diff --git a/Master/texmf-dist/source/latex/tocvsec2/tocvsec2.dtx b/Master/texmf-dist/source/latex/tocvsec2/tocvsec2.dtx
index cae5db10a1d..660083ed3b7 100644
--- a/Master/texmf-dist/source/latex/tocvsec2/tocvsec2.dtx
+++ b/Master/texmf-dist/source/latex/tocvsec2/tocvsec2.dtx
@@ -1,13 +1,23 @@
% \iffalse meta-comment
%
% tocvsec2.dtx
-% Copyright 1999 Peter R. Wilson
+% Author: Peter Wilson (CUA) now at peter.r.wilson@boeing.com until June 2004
+% (or at: pandgwilson at earthlink dot net)
+% Copyright 1999 --- 2004 Peter R. Wilson
%
-% This program is provided under the terms of the
-% LaTeX Project Public License distributed from CTAN
-% archives in directory macros/latex/base/lppl.txt.
+% This work 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 the 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/06/01 or later.
+%
+% This work has the LPPL maintenance status "author-maintained".
+%
+% This work consists of the files listed in the README file.
%
-% Author: Peter Wilson (CUA and NIST) (now at: peter.r.wilson@boeing.com)
%
%
%<*driver>
@@ -22,7 +32,7 @@
%
% \fi
%
-% \CheckSum{147}
+% \CheckSum{142}
%
% \DoNotIndex{\',\.,\@M,\@@input,\@addtoreset,\@arabic,\@badmath}
% \DoNotIndex{\@centercr,\@cite}
@@ -68,9 +78,16 @@
% \changes{v1.0}{1999/01/17}{First public release}
% \changes{v1.1}{1999/01/24}{Added none and all `sections'}
% \changes{v1.1}{1999/01/24}{Added maxsecnumdepth command}
+% \changes{v1.1a}{2004/05/10}{Changed license from LPPL v1.0 to v1.3}
+% \changes{v1.2}{2004/05/24}{Eliminated requirement for stdclsdv package}
%
+% \def\dtxfile{tocvsec2.dtx}
% \def\fileversion{v1.1}
% \def\filedate{1999/01/24}
+% \def\fileversion{v1.1a}
+% \def\filedate{2004/05/10}
+% \def\fileversion{v1.2}
+% \def\filedate{2004/05/24}
% \newcommand*{\Lpack}[1]{\textsf {#1}} ^^A typeset a package
% \newcommand*{\Lopt}[1]{\textsf {#1}} ^^A typeset an option
% \newcommand*{\file}[1]{\texttt {#1}} ^^A typeset a file
@@ -79,15 +96,13 @@
% \newcommand*{\Lenv}[1]{\texttt {#1}} ^^A typeset an environment
%
% \title{The \Lpack{tocvsec2} package\thanks{This
-% file has version number \fileversion, last revised
+% file (\texttt{\dtxfile}) has version number \fileversion, last revised
% \filedate.}}
%
% \author{%
-% Peter Wilson\\
-% Catholic University of America\thanks{This work was originally
-% performed as
-% a Guest Researcher at the National Institute of Standards and Technology.} \\
-% Now at {\tt peter.r.wilson@boeing.com}
+% Peter Wilson\thanks{After May 2004 at: \texttt{pandgwilson at earthlink dot net}}\\
+% Catholic University of America \\
+% Now at \texttt{peter.r.wilson@boeing.com}
% }
% \date{\filedate}
% \maketitle
@@ -97,12 +112,11 @@
% in the Table of Contents on a section by section basis.
% It is a replacement for the \Lpack{tocvsec} package, which should
% not be used.
-% Use of the
-% package requires the \Lpack{stdclsdv} and \Lpack{ifthen} packages to be available.
+% Use of the package requires the \Lpack{ifthen} package to be available.
% \end{abstract}
% \tableofcontents
%
-% \StopEventually{}
+% ^^A \StopEventually{}
%
%
%
@@ -115,16 +129,17 @@
% provides for control over the entries into the ToC on a section by section
% basis. It also provides a means of locally controlling sectional numbering
% without having to resort to the starred version of the sectional commands.
-% The package requires the \Lpack{stdclsdv} and \Lpack{ifthen} packages
+% The package requires the \Lpack{ifthen} package
% to be available.
%
-%
% Portions of the package were developed as part of a class
% and package bundle for typesetting ISO standards~\cite{PRW96i}.
% This manual is typeset according to the conventions of the
% \LaTeX{} \textsc{docstrip} utility which enables the automatic
% extraction of the \LaTeX{} macro source files~\cite{GOOSSENS94}.
%
+% \clearpage
+%
% Section~\ref{sec:usc} describes the usage of the package.
% Commented source code for the package is in Section~\ref{sec:code}.
%
@@ -310,27 +325,23 @@
% \begin{macrocode}
%<*usc>
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{tocvsec2}[1999/01/24 v1.1 variable ToC section entries]
-\RequirePackage{stdclsdv}
+\ProvidesPackage{tocvsec2}[2004/05/24 v1.2 variable ToC section entries]
\RequirePackage{ifthen}
% \end{macrocode}
%
% In order to try and avoid name clashes with other packages, each internal
% name will include the character string \texttt{t@c}.
%
-% Issue warning(s) if there are no recognized sectional divisions. Skip
-% the rest of the code if necessary.
+% Issue warning if there are no recognized sectional divisions.
% \begin{macrocode}
-\ifSCDknownclass
- \ifSCDnodivs
- \PackageWarning{tocvsec2}{There are no sectional divisions in this class}
- \renewcommand{\SCDquit}{\endinput}
- \fi
-\else
- \PackageWarning{tocvsec2}%
- {I don't recognize the class but I'll do my best}
-\fi
-\SCDquit
+\newif\ift@cchapter
+ \t@cchapterfalse
+\@ifundefined{chapter}{%
+ \@ifundefined{section}{%
+ \PackageWarning{tocvsec2}{%
+ I don't recognize any divisions but I'll do my best}}{}}%
+ {\t@cchaptertrue}
+
% \end{macrocode}
%
% \begin{macro}{\if@knownsect@c}
@@ -344,7 +355,7 @@
\@knownsect@cfalse
\ifthenelse{\equal{#1}{none}}{\setcounter{#2}{-10}
\@knownsect@ctrue}{}
- \ifthenelse{\equal{#1}{part}}{\ifSCDchapter
+ \ifthenelse{\equal{#1}{part}}{\ift@cchapter
\setcounter{#2}{-1}
\else
\setcounter{#2}{0}
@@ -388,7 +399,7 @@
\addtocontents{toc}{\protect\setcounter{tocdepth}{-10}}
\@knownsect@ctrue}{}
\ifthenelse{\equal{#1}{part}}{%
- \ifSCDchapter
+ \ift@cchapter
\addtocontents{toc}{\protect\setcounter{tocdepth}{-1}}
\else
\addtocontents{toc}{\protect\setcounter{tocdepth}{0}}