diff options
author | Norbert Preining <preining@logic.at> | 2006-11-03 06:16:00 +0000 |
---|---|---|
committer | Norbert Preining <preining@logic.at> | 2006-11-03 06:16:00 +0000 |
commit | a6d4e22f961008636a3bfc36f89570e6fa0c85f6 (patch) | |
tree | 9d13f81b2a37ab6bdf3336066017d4cb5e701011 /Master/texmf-dist/tex/latex/tocvsec2 | |
parent | e9b9a3f32d1a5b371fa2256f098ee4b158f6df1d (diff) |
several updates (sorry Karl, it was a long train ride):
updates of packages: screenplay, bussproofs computational-complexity
dvdcoll gnuplottex mathmode movie15 pgf pstricks-add pst-labo
trfsigns (dvi->pdf move, COPYING file to doc) toptesi tocvsec2 thumb
textfit (doc move)
added to tpm-ctan-check: typogrid trsym trfsigns tracking toptesi toolbox
todo tocvsec2 tocloft tocbibind titling titlefoot thumb textopo textfit
teubner tensor
git-svn-id: svn://tug.org/texlive/trunk@2382 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/tocvsec2')
-rw-r--r-- | Master/texmf-dist/tex/latex/tocvsec2/tocvsec2.sty | 46 |
1 files changed, 26 insertions, 20 deletions
diff --git a/Master/texmf-dist/tex/latex/tocvsec2/tocvsec2.sty b/Master/texmf-dist/tex/latex/tocvsec2/tocvsec2.sty index 884a15514a3..6ea2c35498a 100644 --- a/Master/texmf-dist/tex/latex/tocvsec2/tocvsec2.sty +++ b/Master/texmf-dist/tex/latex/tocvsec2/tocvsec2.sty @@ -6,35 +6,41 @@ %% %% tocvsec2.dtx (with options: `usc') %% -%% Copyright 1998 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 1998 -- 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. %% -%% Author: Peter Wilson (CUA and NIST) -%% now at: peter.r.wilson@boeing.com +%% This work has the LPPL maintenance status "author-maintained". %% +%% This work consists of the files listed in the README file. +%% ----------------------------------------------------------------- \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} -\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} + \newif\if@knownsect@c \newcommand{\@setseccntt@c}[2]{ \@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} @@ -68,7 +74,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}} |