summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/chemnum/chemnum.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2015-05-13 21:33:09 +0000
committerKarl Berry <karl@freefriends.org>2015-05-13 21:33:09 +0000
commit9f28862d6cb8fd41c321dae74aba8d5603b2ccc2 (patch)
treea30604012721987ca7f3e3419a891d77e81e8780 /Master/texmf-dist/tex/latex/chemnum/chemnum.sty
parent6641fe138eb9447f836879198d36b0c25b2579da (diff)
chemnum (13may15)
git-svn-id: svn://tug.org/texlive/trunk@37382 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/chemnum/chemnum.sty')
-rw-r--r--Master/texmf-dist/tex/latex/chemnum/chemnum.sty15
1 files changed, 9 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/chemnum/chemnum.sty b/Master/texmf-dist/tex/latex/chemnum/chemnum.sty
index a6cb73cb3f7..4e8beed3d3e 100644
--- a/Master/texmf-dist/tex/latex/chemnum/chemnum.sty
+++ b/Master/texmf-dist/tex/latex/chemnum/chemnum.sty
@@ -12,7 +12,7 @@
% If you have any ideas, questions, suggestions or bugs to report, please
% feel free to contact me.
% --------------------------------------------------------------------------
-% Copyright 2011-2014 Clemens Niederberger
+% Copyright 2011-2015 Clemens Niederberger
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
@@ -26,8 +26,8 @@
%
% The Current Maintainer of this work is Clemens Niederberger.
% --------------------------------------------------------------------------
-\def\chemnumdate{2014/08/08}
-\def\chemnumversion{1.1}
+\def\chemnumdate{2015/05/13}
+\def\chemnumversion{1.1a}
\def\chemnuminfo{a comprehensive approach for the numbering of chemical compounds}
\RequirePackage{expl3}[2013/07/14]
@@ -1742,7 +1742,9 @@
{
% place the label
% just in case it hasn't been declared:
- \labelcmpd[{#2}]{#3}
+ \bool_if:nF {#1} {
+ \chemnum_cmpd:nnnn { \c_true_bool } { \c_false_bool } {#2} {#3}
+ }
% set specific replacement options
\keys_set_groups:nnn {chemnum} {replace} { replace=false, #2 }
\bool_if:nTF
@@ -1775,7 +1777,7 @@
\group_begin:
\exp_not:V \l__chemnum_compound_replace_local_format_tl
\exp_not:n
- { \chemnum_cmpd:nnnn { \c_false_bool } { #1 } { #2 } { #3 } }
+ { \chemnum_cmpd:nnnn { \c_false_bool } {#1} {#2} {#3} }
\group_end:
}
}
@@ -1788,7 +1790,7 @@
\group_begin:
\exp_not:V \l__chemnum_compound_replace_format_tl
\exp_not:n
- { \chemnum_cmpd:nnnn { \c_false_bool } { #1 } { #2 } { #3 } }
+ { \chemnum_cmpd:nnnn { \c_false_bool } {#1} {#2} {#3} }
\group_end:
}
}
@@ -1939,4 +1941,5 @@ HISTORY:
2014/06/02 v1.0b - bug fix: list of sublabels can now correctly be sorted and
compressed if referenced before they're defined
2014/08/08 v1.1 - new option `replace-tag-nr'
+2015/05/13 v1.1a - fix bug in \replacecmpd