summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2012-08-15 23:10:12 +0000
committerKarl Berry <karl@freefriends.org>2012-08-15 23:10:12 +0000
commit4b94812ec8dc518960017e3e9cd77ab3774fc0f1 (patch)
tree484fc53501c3eaa453b654f3875c09967ac732a9 /Master
parent6178ad2d8048a86e7c74cf363f2358bad53f4099 (diff)
chemnum (15aug12)
git-svn-id: svn://tug.org/texlive/trunk@27415 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r--Master/texmf-dist/doc/latex/chemnum/README4
-rw-r--r--Master/texmf-dist/doc/latex/chemnum/chemnum_de.pdfbin944070 -> 944066 bytes
-rw-r--r--Master/texmf-dist/doc/latex/chemnum/chemnum_en.pdfbin934681 -> 934683 bytes
-rw-r--r--Master/texmf-dist/tex/latex/chemnum/chemnum.sty24
4 files changed, 20 insertions, 8 deletions
diff --git a/Master/texmf-dist/doc/latex/chemnum/README b/Master/texmf-dist/doc/latex/chemnum/README
index 37da01c4b15..455aec52ce8 100644
--- a/Master/texmf-dist/doc/latex/chemnum/README
+++ b/Master/texmf-dist/doc/latex/chemnum/README
@@ -1,4 +1,4 @@
-chemnum v0.5c
+chemnum v0.5d
a comprehensive approach for the numbering of chemical compounds
Basically one main command is provided, \cmpd{<label name>}. With
@@ -12,7 +12,7 @@ chemnum also needs the packages etoolbox, psfrag and textgreek or bm
to be fully functioning.
Clemens NIEDERBERGER
-2012/07/24
+2012/08/15
http://www.mychemistry.eu/
contact@mychemistry.eu
diff --git a/Master/texmf-dist/doc/latex/chemnum/chemnum_de.pdf b/Master/texmf-dist/doc/latex/chemnum/chemnum_de.pdf
index 8042540ea2c..b5534b65456 100644
--- a/Master/texmf-dist/doc/latex/chemnum/chemnum_de.pdf
+++ b/Master/texmf-dist/doc/latex/chemnum/chemnum_de.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/chemnum/chemnum_en.pdf b/Master/texmf-dist/doc/latex/chemnum/chemnum_en.pdf
index be5e71667ce..b179779c904 100644
--- a/Master/texmf-dist/doc/latex/chemnum/chemnum_en.pdf
+++ b/Master/texmf-dist/doc/latex/chemnum/chemnum_en.pdf
Binary files differ
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