diff options
author | Karl Berry <karl@freefriends.org> | 2012-08-15 23:10:12 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2012-08-15 23:10:12 +0000 |
commit | 4b94812ec8dc518960017e3e9cd77ab3774fc0f1 (patch) | |
tree | 484fc53501c3eaa453b654f3875c09967ac732a9 /Master/texmf-dist/tex/latex/chemnum | |
parent | 6178ad2d8048a86e7c74cf363f2358bad53f4099 (diff) |
chemnum (15aug12)
git-svn-id: svn://tug.org/texlive/trunk@27415 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/chemnum')
-rw-r--r-- | Master/texmf-dist/tex/latex/chemnum/chemnum.sty | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/chemnum/chemnum.sty b/Master/texmf-dist/tex/latex/chemnum/chemnum.sty index de0c482a20d..6e10487e00c 100644 --- a/Master/texmf-dist/tex/latex/chemnum/chemnum.sty +++ b/Master/texmf-dist/tex/latex/chemnum/chemnum.sty @@ -3,7 +3,7 @@ % - a comprehensive approach for the numbering of chemical compounds % ----------------------------------------------------------------------------- % - Clemens NIEDERBERGER -% - 2012/05/17 +% - 2012/08/15 % - contact@mychemistry.eu % ----------------------------------------------------------------------------- % - If you have any ideas, questions, suggestions or bugs to report, please @@ -31,8 +31,8 @@ \ProvidesExplPackage {chemnum} - {2012/07/24} - {0.5c} + {2012/08/15} + {0.5d} {An approach for the numbering of chemical compounds} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -57,14 +57,14 @@ } \tex_endinput:D } -\@ifpackagelater { expl3 } { 2011/09/17 } +\@ifpackagelater { expl3 } { 2011/12/27 } { } { \msg_error:nnx { chemnum } { support-outdated } { expl3 } \tex_endinput:D } -\@ifpackagelater { xparse } { 2011/09/17 } +\@ifpackagelater { xparse } { 2011/12/27 } { } { \msg_error:nnx { chemnum } { support-outdated } { xparse } @@ -1476,7 +1476,18 @@ \int_use:N \l_chemnum_cmpdref_int } } - { \tl_set:Nn \l_chemnum_cmpdref_tl { #2 } } + { + \tl_if_blank:nTF { #2 } + { + \int_incr:N \l_chemnum_cmpdref_int + \tl_set:No \l_chemnum_cmpdref_tl + { + \tl_use:N \l_chemnum_cmpdref_marker_tl + \int_use:N \l_chemnum_cmpdref_int + } + } + { \tl_set:Nn \l_chemnum_cmpdref_tl { #2 } } + } \IfNoValueTF { #3 } { % need to call it once invisible in case it's the first time the label @@ -1666,6 +1677,7 @@ HISTORY: https://groups.google.com/d/topic/de.comp.text.tex/LF0knPIuqrM/discussio for possible reasons why 2012/07/24 version 0.5c - adapted to changes in l3kernel + 2012/08/15 version 0.5d - fixed bug in \cmpdref %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % TODO: - add a possibility to \ref{} the compounds |