CTAN masthead graphic CTAN lion sketch

Directory: CTAN home / tex-archive/ support/ newcommand

You can get this entire directory bundled as newcommand.zip.

Packages located here

Package Caption
newcommand Generate new LaTeX command definitions.

Subdirectories of this one

There are no subdirectories here.

Files in this directory

NameDateSize Description
README 2008-01-13 1 Kbyte download Shown below
newcommand.pdf 2008-01-13 141 Kbyte download
newcommand.py 2008-01-13 16 Kbyte download
newcommand.tex 2008-01-13 16 Kbyte download
spark.py 2003-09-26 13 Kbyte download

Contents of the README file

		+------------------------------------+
                |           NEWCOMMAND.PY	     |
		|				     |
                | More flexible argument processing  |
                | than what \newcommand provides     |
		|				     |
                | By Scott Pakin, scott+nc@pakin.org |
		+------------------------------------+


Description
-----------

LaTeX's \newcommand is fairly limited in the way it processes optional
arguments, but the TeX alternative, a batch of \defs and \futurelets,
can be overwhelming to the casual LaTeX user.  newcommand.py is a
Python program that automatically generates LaTeX macro definitions
for macros that require more powerful argument processing than
\newcommand can handle.  newcommand.py is intended for LaTeX advanced
beginners (i.e., those who know how to use \newcommand but not
internal LaTeX2e commands such as \@ifnextchar) and for more advanced
users who want to save some typing when defining complex macros.


Installation
------------

You'll need a Python interpreter (http://www.python.org/).  Besides
that, just make sure that newcommand.py is placed somewhere in your
path and that spark.py is somewhere that newcommand.py can find it.


Copyright and license
---------------------

Copyright (C) 2008 Scott Pakin, scott+nc@pakin.org

This package may be distributed and/or modified under the conditions
of the LaTeX Project Public License, either version 1.3c 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.3c or later is part of all distributions of LaTeX version
2006/05/20 or later.

Small print: This listing is regenerated periodically so there is a small chance that the directory has changed from what is shown here; to be sure, check the FTP listing.