diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/chemnum/chemnum-codehelper.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/chemnum/chemnum-codehelper.tex | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/Master/texmf-dist/doc/latex/chemnum/chemnum-codehelper.tex b/Master/texmf-dist/doc/latex/chemnum/chemnum-codehelper.tex index 0a1908dc3cc..9d0e3bd4490 100644 --- a/Master/texmf-dist/doc/latex/chemnum/chemnum-codehelper.tex +++ b/Master/texmf-dist/doc/latex/chemnum/chemnum-codehelper.tex @@ -3,7 +3,7 @@ % - a comprehensive approach for the numbering of chemical compounds - % % ------------------------------------------------------------------------------------- % % - Clemens NIEDERBERGER - % -% - 2011/12/08 - % +% - 2012/02/22 - % % ------------------------------------------------------------------------------------- % % - http://www.mychemistry.eu/ - % % - contact@mychemistry.eu - % @@ -11,7 +11,7 @@ % - If you have any ideas, questions, suggestions or bugs to report, please feel free - % % - to contact me. - % % ------------------------------------------------------------------------------------- % -% - Copyright 2011 Clemens Niederberger - % +% - Copyright 2011-2012 Clemens Niederberger - % % - - % % - This work may be distributed and/or modified under the - % % - conditions of the LaTeX Project Public License, either version 1.3 - % @@ -88,6 +88,7 @@ @m, arrow, bf, + ch, chemfig, chemname, cmpd, @@ -204,6 +205,7 @@ moretexcs=[30] { @m, + ch, cmpd, cmpdinit, cmpdref, @@ -271,21 +273,24 @@ \NewDocumentCommand \key { mg } { - \textcolor{key}{ \texttt { #1 } } + \textcolor { key } { \texttt { #1 } } \IfNoValueF { #2 } { \texttt { ~=~#2 } } - \index { #1 @ \textcolor{key}{ \texttt { #1 } } } + \index { #1 @ \textcolor { key } { \texttt { #1 } } } } -\NewDocumentCommand \cmd { omoog } +\NewDocumentCommand \cmd { somoog } { - \textcolor{code} { \texttt { \textbackslash #2 } } - \IfNoValueF { #3 } { \texttt { [ #3 ] } } + \textcolor { code } { \texttt { \textbackslash #3 } } \IfNoValueF { #4 } { \texttt { [ #4 ] } } - \IfNoValueF { #5 } { \texttt { \{ #5 \} } } - \index + \IfNoValueF { #5 } { \texttt { [ #5 ] } } + \IfNoValueF { #6 } { \texttt { \{ #6 \} } } + \IfBooleanF { #1 } { - \IfNoValueTF { #1 } { #2 } { #1 } - @ \textcolor { code } { \texttt { \textbackslash #2 } } + \index + { + \IfNoValueTF { #2 } { #3 } { #2 } + @ \textcolor { code } { \texttt { \textbackslash #3 } } + } } } |