Menu
CTAN
Comprehensive TeX Archive Network
Cover Upload Browse

Direc­tory tex-archive/macros/latex/contrib/cmdstring

For programmers, it is quite common to use the name of a macro (for
instance `foo' for the macro \foo, in other words, the letters f, o,
and o).  For this purpose, it is customary to call \string which does
this sort of things...  except that it prepends the escape character,
controlled by the counter \escapechar, in front of the name.  The
traditional way of getting rid of it, is to set \escapechar to -1
(without forgetting to restore the proper value at the end of the
process) or to make use of \@gobble.  The former has the drawback not
to be expandible while the second isn't completely reliable.  Here we
extend the expandible methods to make it reliable.

This material is subject to the LaTeX Project Public License.
See http://www.ctan.org/tex-archive/help/Catalogue/licenses.lppl.html
for the details of that license.    

Files

Name Size Date Notes
README 836 2007-04-23 08:18
cmdstring.pdf 357871 2007-04-23 08:24
cmdstring.sty 943 2007-04-23 08:24
cmdstring.tex 3392 2007-04-23 08:24

Down­load the con­tents of this pack­age in one zip archive (339.1k).

cmd­string – Get com­mand name re­li­ably

Ex­tracts the let­ters of a com­mand’s name (e.g., foo for com­mand \foo), in a re­li­able way.

Pack­age De­tailscmd­string
Ver­sion1.1
Li­censeThe LaTeX Project Public Li­cense
Main­tainerJos­selin Noirel
Con­tained inTeXlive as cmd­string
MikTeX as cmd­string
Topics sup­port for de­vel­op­ment of (La)TeX macros
Guest Book Sitemap Contact