From 9f28862d6cb8fd41c321dae74aba8d5603b2ccc2 Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Wed, 13 May 2015 21:33:09 +0000
Subject: chemnum (13may15)

git-svn-id: svn://tug.org/texlive/trunk@37382 c570f23f-e606-0410-a88d-b1316a301751
---
 Master/texmf-dist/tex/latex/chemnum/chemnum.sty | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

(limited to 'Master/texmf-dist/tex/latex/chemnum/chemnum.sty')

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
 
-- 
cgit v1.2.3

