Attachment 'makecmds.sty'

Download

%%
%% This is file `makecmds.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% makecmds.dtx  (with options: `usc')
%% 
%%  Copyright 2000 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.
%% 
%% Author: Peter Wilson (CUA)
%%         now at: [email protected]
%% 
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{makecmds}[2000/05/27 v1.0 extra command making commands]

\newif\[email protected]
  \[email protected]
\DeclareOption{warn}{\[email protected]}
\ProcessOptions\relax

\def\makecommand{\@[email protected]@long\[email protected]@command}
\def\[email protected]@command#1{%
  \ifx #1\undefined\else
    \[email protected]
      \PackageWarning{makecmds}{Redefining command `\protect#1'}
    \fi
  \fi
  \let\@ifdefinable\@[email protected]
  \[email protected]#1}

\def\provideenvironment{%
  \@[email protected]@long\[email protected]@environment}
\def\[email protected]@environment#1{%
  \@ifundefined{#1}{%
    \expandafter\let\csname#1\endcsname\relax
    \expandafter\let\csname end#1\endcsname\relax
    \[email protected]{#1}}{\[email protected]{#1}}
}
\def\[email protected]#1{%
  \@testopt{\[email protected]#1}0}
\def\[email protected]#1[#2]{%
  \@ifnextchar [{\[email protected]#1[#2]}{\[email protected]{#1}{[#2]}}}
\def\[email protected]#1[#2][#3]{\[email protected]{#1}{[#2][#3]}}
\def\[email protected]#1#2#3#4{}

\def\makeenvironment{\@[email protected]@long\[email protected]@environment}
\def\[email protected]@environment#1{%
  \@ifundefined{#1}{\[email protected]{#1}}{%
    \[email protected]
      \PackageWarning{makecmds}{Redefining environment `#1'}
    \fi
    \[email protected]{#1}}
}

\def\providelength#1{%
  \ifx #1\undefined
    \newlength{#1}
  \fi
}
\def\makelength#1{%
  \ifx #1\undefined
    \newlength{#1}
  \else
    \[email protected]
      \PackageWarning{makecmds}{Redefining length `\protect#1'}
    \fi
    \newskip#1
  \fi
}

\def\providecounter#1{%
  \@ifundefined{[email protected]#1}{\newcounter{#1}}{%
    \@ifnextchar[{\[email protected]@gobbleendoptarg}{}}%
}
\def\makecounter#1{%
  \expandafter\ifx \csname [email protected]#1\endcsname \undefined
  \else
    \[email protected]
      \PackageWarning{makecmds}{Redefining counter `#1'}
    \fi
  \fi
  \@definecounter{#1}%
  \@ifnextchar[{\@newctr{#1}}{}
}

\def\[email protected]@gobbleendoptarg[#1]{}

\endinput
%%
%% End of file `makecmds.sty'.

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.

You are not allowed to attach a file to this page.