summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/chemnum/chemnum.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/chemnum/chemnum.sty')
-rw-r--r--Master/texmf-dist/tex/latex/chemnum/chemnum.sty69
1 files changed, 36 insertions, 33 deletions
diff --git a/Master/texmf-dist/tex/latex/chemnum/chemnum.sty b/Master/texmf-dist/tex/latex/chemnum/chemnum.sty
index a8dd423aaae..ce0a076fea1 100644
--- a/Master/texmf-dist/tex/latex/chemnum/chemnum.sty
+++ b/Master/texmf-dist/tex/latex/chemnum/chemnum.sty
@@ -1,41 +1,38 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-% - chemnum - chemnum.sty - %
-% - a comprehensive approach for the numbering of chemical compounds - %
-% --------------------------------------------------------------------------- %
-% - Clemens NIEDERBERGER - %
-% - 2012/02/26 - %
-% --------------------------------------------------------------------------- %
-% - http://www.mychemistry.eu/ - %
-% - contact@mychemistry.eu - %
-% --------------------------------------------------------------------------- %
-% - If you have any ideas, questions, suggestions or bugs to report, please - %
-% - feel free to contact me. - %
-% --------------------------------------------------------------------------- %
-% - 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 - %
-% - of this license or (at your option) any later version. - %
-% - The latest version of this license is in - %
-% - http://www.latex-project.org/lppl.txt - %
-% - and version 1.3 or later is part of all distributions of LaTeX - %
-% - version 2005/12/01 or later. - %
-% - - %
-% - This work has the LPPL maintenance status `maintained'. - %
-% - - %
-% - The Current Maintainer of this work is Clemens Niederberger. - %
-% - - %
-% - This work consists of the files chemnum.sty, chemnum_doc_de.tex, - %
-% - chemnum_doc_en.tex, chemnum-codehelper.tex, scheme-tmp.eps, - %
-% - scheme-bla.eps, README and the derived files chemnum_doc_de.pdf and - %
-% - chemnum_doc_en.pdf - %
+% - chemnum - chemnum.sty
+% - a comprehensive approach for the numbering of chemical compounds
+% -----------------------------------------------------------------------------
+% - Clemens NIEDERBERGER
+% - 2012/04/15
+% - contact@mychemistry.eu
+% -----------------------------------------------------------------------------
+% - If you have any ideas, questions, suggestions or bugs to report, please
+% - feel free to contact me.
+% -----------------------------------------------------------------------------
+% - 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
+% - of this license or (at your option) any later version.
+% - The latest version of this license is in
+% - http://www.latex-project.org/lppl.txt
+% - and version 1.3 or later is part of all distributions of LaTeX
+% - version 2005/12/01 or later.
+% -
+% - This work has the LPPL maintenance status `maintained'.
+% -
+% - The Current Maintainer of this work is Clemens Niederberger.
+% -
+% - This work consists of the files chemnum.sty, chemnum_de.tex, chemnum_en.tex,
+% - chemnum-codehelper.tex, scheme-tmp.eps, scheme-bla.eps, README and the
+% - derived files chemnum_de.pdf and chemnum_en.pdf
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\RequirePackage { expl3 , xparse , l3keys2e , etoolbox , psfrag }
\ProvidesExplPackage
{chemnum}
- {2012/02/26}
- {0.4a}
+ {2012/04/15}
+ {0.4b}
{An approach for the numbering of chemical compounds}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -1457,8 +1454,11 @@
{
\tl_set:Nn \l_chemnum_cmpdref_tl { #3 }
}
- \IfNoValueTF { #2 }
+ \IfNoValueTF { #2 }
{
+ % need to call it once invisible in case it's the first time the label
+ % is called. Somehow it otherwise “vanishes” inside \psfrag
+ \cmpd_main_command:w * { #4 }
\psfrag { \l_chemnum_cmpdref_tl } [ b ] [ b ]
{
\group_begin:
@@ -1469,6 +1469,7 @@
}
}
{
+ \cmpd_main_command:w * [ #2 ] { #4 }
\psfrag { \l_chemnum_cmpdref_tl } [ b ] [ b ]
{
\group_begin:
@@ -1605,8 +1606,10 @@ HISTORY:
- new key: "ref-style"
- documentation got an index
2012/02/22 version 0.4a - corrected outdated expl3 function
+ 2012/04/15 version 0.4b - bugfix in \cmpdref
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% TODO:
+ - add a possibility to \ref{} the compounds
- (rudimentäre) Unterstützung für hyperref und pdfstrings
- polyglossia: localization of us-variant of english
- Bug: Key "cmpd-style" wenn zB \color{<farbe>} eingegeben: Fehler beim Test