diff options
author | Karl Berry <karl@freefriends.org> | 2007-04-24 23:58:20 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2007-04-24 23:58:20 +0000 |
commit | 372e8497bf41d3fe0563c5c44fac9957c553a376 (patch) | |
tree | ff72cd23185aebdbf816380f6f3fbb404c00b1dd /Master/texmf-dist/tex/latex/xnewcommand | |
parent | 6d57ece139d5b666d50415ba2465a992b805b3f4 (diff) |
new latex package xnewcommand (23apr07)
git-svn-id: svn://tug.org/texlive/trunk@4185 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/xnewcommand')
-rw-r--r-- | Master/texmf-dist/tex/latex/xnewcommand/xnewcommand.sty | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/xnewcommand/xnewcommand.sty b/Master/texmf-dist/tex/latex/xnewcommand/xnewcommand.sty new file mode 100644 index 00000000000..69c70e12aa5 --- /dev/null +++ b/Master/texmf-dist/tex/latex/xnewcommand/xnewcommand.sty @@ -0,0 +1,16 @@ +% $Date: 2007-04-23 17:32:09 +0200 (Mon, 23 Apr 2007) $ +% $Revision: 42 $ +\def \filedate {2007/04/21} +\def \fileversion {v1.2} +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{xnewcommand}% + [\filedate \space \fileversion \space Improved newcommand (JN)] + +\def \@star@or@long #1{% + \@ifstar {\let \l@ngrel@x = \relax #1}% + {\@testopt {\@@star@or@long {#1}}{\long}}% +} +\@ifdefinable \@@star@or@long + {\def \@@star@or@long #1[#2]{\def \l@ngrel@x {#2}#1}} + +\endinput |