diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/xnewcommand/xnewcommand.sty |
Initial commit
Diffstat (limited to 'macros/latex/contrib/xnewcommand/xnewcommand.sty')
-rw-r--r-- | macros/latex/contrib/xnewcommand/xnewcommand.sty | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/macros/latex/contrib/xnewcommand/xnewcommand.sty b/macros/latex/contrib/xnewcommand/xnewcommand.sty new file mode 100644 index 0000000000..69c70e12aa --- /dev/null +++ b/macros/latex/contrib/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 |