From ee5fc07f2f888967948c2f70ea5f37eda3aeea4c Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Wed, 13 Oct 2010 23:36:15 +0000 Subject: secdot own pkg (13oct10) git-svn-id: svn://tug.org/texlive/trunk@20086 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/ltxmisc/secdot.sty | 69 -------------------------- Master/texmf-dist/tex/latex/secdot/secdot.sty | 69 ++++++++++++++++++++++++++ 2 files changed, 69 insertions(+), 69 deletions(-) delete mode 100644 Master/texmf-dist/tex/latex/ltxmisc/secdot.sty create mode 100644 Master/texmf-dist/tex/latex/secdot/secdot.sty (limited to 'Master/texmf-dist/tex/latex') diff --git a/Master/texmf-dist/tex/latex/ltxmisc/secdot.sty b/Master/texmf-dist/tex/latex/ltxmisc/secdot.sty deleted file mode 100644 index a24ad83dcc0..00000000000 --- a/Master/texmf-dist/tex/latex/ltxmisc/secdot.sty +++ /dev/null @@ -1,69 +0,0 @@ -% Define section numbers with dots -% -% Author: Robin Fairbairns (rf10@cl.cam.ac.uk) -% first version, June 2000 -% -% version 2, July 2000, with a contribution from -% Steve Grathwohl of Duke University -% -% This program may be distributed and/or modified under the -% conditions of the LaTeX Project Public License, either version 1.1 -% 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.1 or later is part of all distributions of LaTeX -% version 1999/06/01 or later. -% -% This program consists of the file secdot.sty -% documentation (such as it is) may be found after \endinput herein - -\NeedsTeXFormat{LaTeX2e}% Seems to work with any version -\ProvidesPackage{secdot}[2000/06/20 v1.0 section numbers with dots] - -% command to declare a particular section level to have a dot after -% its number -\newcommand\sectiondot[1]{% - \expandafter\def\csname @seccntfmt@#1\endcsname##1{% - \csname the##1\endcsname.\quad - } -} - -% do this by default for \section numbering -\sectiondot{section} - -% generalised version: define that #2 comes after section level #1 -\newcommand\sectionpunct[2]{% - \expandafter\def\csname @seccntfmt@#1\endcsname##1{% - \csname the##1\endcsname#2% - }% -} - -% the guts of the package: insert the dots where needed ... -\renewcommand\@seccntformat[1]{\@ifundefined{@seccntfmt@#1}% - {\csname the#1\endcsname\quad}% original default style - {\csname @seccntfmt@#1\endcsname{#1}}% -} -\endinput - -secdot.sty: section numbers with dots -===================================== - -the package as loaded causes section numbers to be output with a dot -after them. - -the command \sectiondot{} will make `level' sections also be -output with a dot after them -- an example of use would be: - \sectiondot{subsection} - -the command \sectionpunct{}{} gives finer -control. examples of use would be - \sectionpunct{section}{. } % \sectiondot places a \quad after the - % dot, which may look excessive - \sectionpunct{section}{\quad} % restores default latex behaviour - -other eccentricities of numbering could be coded by those with -stronger stomachs, by defining the appropriate - - \csname @seccntfmt@\endcsname - -which macro will take one argument, when invoked: the `level' name diff --git a/Master/texmf-dist/tex/latex/secdot/secdot.sty b/Master/texmf-dist/tex/latex/secdot/secdot.sty new file mode 100644 index 00000000000..a24ad83dcc0 --- /dev/null +++ b/Master/texmf-dist/tex/latex/secdot/secdot.sty @@ -0,0 +1,69 @@ +% Define section numbers with dots +% +% Author: Robin Fairbairns (rf10@cl.cam.ac.uk) +% first version, June 2000 +% +% version 2, July 2000, with a contribution from +% Steve Grathwohl of Duke University +% +% This program may be distributed and/or modified under the +% conditions of the LaTeX Project Public License, either version 1.1 +% 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.1 or later is part of all distributions of LaTeX +% version 1999/06/01 or later. +% +% This program consists of the file secdot.sty +% documentation (such as it is) may be found after \endinput herein + +\NeedsTeXFormat{LaTeX2e}% Seems to work with any version +\ProvidesPackage{secdot}[2000/06/20 v1.0 section numbers with dots] + +% command to declare a particular section level to have a dot after +% its number +\newcommand\sectiondot[1]{% + \expandafter\def\csname @seccntfmt@#1\endcsname##1{% + \csname the##1\endcsname.\quad + } +} + +% do this by default for \section numbering +\sectiondot{section} + +% generalised version: define that #2 comes after section level #1 +\newcommand\sectionpunct[2]{% + \expandafter\def\csname @seccntfmt@#1\endcsname##1{% + \csname the##1\endcsname#2% + }% +} + +% the guts of the package: insert the dots where needed ... +\renewcommand\@seccntformat[1]{\@ifundefined{@seccntfmt@#1}% + {\csname the#1\endcsname\quad}% original default style + {\csname @seccntfmt@#1\endcsname{#1}}% +} +\endinput + +secdot.sty: section numbers with dots +===================================== + +the package as loaded causes section numbers to be output with a dot +after them. + +the command \sectiondot{} will make `level' sections also be +output with a dot after them -- an example of use would be: + \sectiondot{subsection} + +the command \sectionpunct{}{} gives finer +control. examples of use would be + \sectionpunct{section}{. } % \sectiondot places a \quad after the + % dot, which may look excessive + \sectionpunct{section}{\quad} % restores default latex behaviour + +other eccentricities of numbering could be coded by those with +stronger stomachs, by defining the appropriate + + \csname @seccntfmt@\endcsname + +which macro will take one argument, when invoked: the `level' name -- cgit v1.2.3