From 21b74c37c7412dcdd996efaa9ae58dd4bba578b6 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 1 Mar 2010 19:13:33 +0000 Subject: tocvsec2 update (28feb10) git-svn-id: svn://tug.org/texlive/trunk@17266 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/tocvsec2/README | 12 ++++++++-- Master/texmf-dist/doc/latex/tocvsec2/tocvsec2.pdf | Bin 154316 -> 287553 bytes .../texmf-dist/source/latex/tocvsec2/tocvsec2.dtx | 26 ++++++++++----------- .../texmf-dist/source/latex/tocvsec2/tocvsec2.ins | 2 ++ Master/texmf-dist/tex/latex/tocvsec2/tocvsec2.sty | 7 +++--- 5 files changed, 28 insertions(+), 19 deletions(-) (limited to 'Master') diff --git a/Master/texmf-dist/doc/latex/tocvsec2/README b/Master/texmf-dist/doc/latex/tocvsec2/README index 51b275b797d..cf07be57538 100644 --- a/Master/texmf-dist/doc/latex/tocvsec2/README +++ b/Master/texmf-dist/doc/latex/tocvsec2/README @@ -5,10 +5,18 @@ The TOCVSEC2 package entries in the Table of Contents on a section by section basis. NB. The package also requires the ifthen package. -Changes in version 1.2a (2009/09/04) +______________ +Change history + +version 1.2b (2010/02/27) +- Bug fix for extraneous vertical space before sections + (This may change the typesetting of documents that use + this package. The price of a bug fix, unfortunately.) + +version 1.2a (2009/09/04) - New maintainer (Will Robertson) -Changes in version 1.2 (2004/05/24) +version 1.2 (2004/05/24) - The stdclsdv package is no longer required ----------------------------------------------------------------- diff --git a/Master/texmf-dist/doc/latex/tocvsec2/tocvsec2.pdf b/Master/texmf-dist/doc/latex/tocvsec2/tocvsec2.pdf index 1a70ada8c77..a9dd02c3c32 100644 Binary files a/Master/texmf-dist/doc/latex/tocvsec2/tocvsec2.pdf and b/Master/texmf-dist/doc/latex/tocvsec2/tocvsec2.pdf differ diff --git a/Master/texmf-dist/source/latex/tocvsec2/tocvsec2.dtx b/Master/texmf-dist/source/latex/tocvsec2/tocvsec2.dtx index 6dca1d6551a..244ad2750ef 100644 --- a/Master/texmf-dist/source/latex/tocvsec2/tocvsec2.dtx +++ b/Master/texmf-dist/source/latex/tocvsec2/tocvsec2.dtx @@ -4,6 +4,7 @@ % Author: Peter Wilson, Herries Press % Maintainer: Will Robertson (will dot robertson at latex-project dot org) % Copyright 1999--2004 Peter R. Wilson +% Copyright 2010 Will Robertson % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either @@ -15,7 +16,14 @@ % % This work consists of the files listed in the README file. % -% +% +%<*driver> +\ProvidesFile{tocvsec2.dtx} +% +%\ProvidesPackage{tocvsec2} +%<*usc> + [2010/02/27 v1.2b variable ToC section entries] +% % %<*driver> \documentclass{ltxdoc} @@ -80,14 +88,7 @@ % \changes{v1.2a}{2009/09/04}{New maintainer (Will Robertson)} % % \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} -% \def\fileversion{v1.2a} -% \def\filedate{2009/09/04} +% \GetFileInfo{\dtxfile} % \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 @@ -320,12 +321,8 @@ % % \section{The package code} \label{sec:code} % -% Announce the name and version of the package, which requires -% \LaTeXe{} and the \Lpack{stdclsdv} and \Lpack{ifthen} packages. % \begin{macrocode} %<*usc> -\NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{tocvsec2}[2009/09/04 v1.2a variable ToC section entries] \RequirePackage{ifthen} % \end{macrocode} % @@ -445,10 +442,11 @@ % \end{macro} % % \begin{macro}{\setsecnumdepth} +% \changes{v1.2b}{2010/02/27}{Remove occasional extraneous vertical space} % |\setsecnumdepth{|\meta{sec}|}| is the user command for setting % \Lcount{secnumdepth} to the value corresponding to \meta{sec}. % \begin{macrocode} -\newcommand{\setsecnumdepth}[1]{\leavevmode% +\newcommand{\setsecnumdepth}[1]{% \@setseccntt@c{#1}{secnumdepth}} % \end{macrocode} % \end{macro} diff --git a/Master/texmf-dist/source/latex/tocvsec2/tocvsec2.ins b/Master/texmf-dist/source/latex/tocvsec2/tocvsec2.ins index 53e295ec98e..2b93abe5f89 100644 --- a/Master/texmf-dist/source/latex/tocvsec2/tocvsec2.ins +++ b/Master/texmf-dist/source/latex/tocvsec2/tocvsec2.ins @@ -2,6 +2,7 @@ %% Author: Peter Wilson, Herries Press %% Maintainer: Will Robertson (will dot robertson at latex-project dot org) %% Copyright 1998 -- 2004 Peter R. Wilson +%% Copyright 2010 Will Robertson %% %% This work may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either @@ -29,6 +30,7 @@ Author: Peter Wilson, Herries Press Maintainer: Will Robertson (will dot robertson at latex-project dot org) Copyright 1998 -- 2004 Peter R. Wilson + Copyright 2010 Will Robertson This work may be distributed and/or modified under the conditions of the LaTeX Project Public License, either diff --git a/Master/texmf-dist/tex/latex/tocvsec2/tocvsec2.sty b/Master/texmf-dist/tex/latex/tocvsec2/tocvsec2.sty index aca4ff7dbfc..be19c89994d 100644 --- a/Master/texmf-dist/tex/latex/tocvsec2/tocvsec2.sty +++ b/Master/texmf-dist/tex/latex/tocvsec2/tocvsec2.sty @@ -10,6 +10,7 @@ %% Author: Peter Wilson, Herries Press %% Maintainer: Will Robertson (will dot robertson at latex-project dot org) %% Copyright 1998 -- 2004 Peter R. Wilson +%% Copyright 2010 Will Robertson %% %% This work may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either @@ -21,8 +22,8 @@ %% %% This work consists of the files listed in the README file. %% ----------------------------------------------------------------- -\NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{tocvsec2}[2009/09/04 v1.2a variable ToC section entries] +\ProvidesPackage{tocvsec2} + [2010/02/27 v1.2b variable ToC section entries] \RequirePackage{ifthen} \newif\ift@cchapter \t@cchapterfalse @@ -106,7 +107,7 @@ } \newcommand{\maxtocdepth}[1]{ \@setseccntt@c{#1}{tocdepth}} -\newcommand{\setsecnumdepth}[1]{\leavevmode% +\newcommand{\setsecnumdepth}[1]{% \@setseccntt@c{#1}{secnumdepth}} \newcommand{\maxsecnumdepth}[1]{% \@setseccntt@c{#1}{secnumdepth}} -- cgit v1.2.3