diff options
author | Karl Berry <karl@freefriends.org> | 2013-01-02 22:57:13 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2013-01-02 22:57:13 +0000 |
commit | 38aff79d1a1f807457e1e2e152f55f8c41189a76 (patch) | |
tree | cc68f7adfe05f95e4bbe62940276446f159a3124 /Master/texmf-dist/tex/latex/chemnum | |
parent | b2390c774eb9b53cc026f523356011179f316e4c (diff) |
chemnum (2jan13)
git-svn-id: svn://tug.org/texlive/trunk@28701 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 | 66 |
1 files changed, 21 insertions, 45 deletions
diff --git a/Master/texmf-dist/tex/latex/chemnum/chemnum.sty b/Master/texmf-dist/tex/latex/chemnum/chemnum.sty index f531564d0f6..5d3525cddd2 100644 --- a/Master/texmf-dist/tex/latex/chemnum/chemnum.sty +++ b/Master/texmf-dist/tex/latex/chemnum/chemnum.sty @@ -22,17 +22,19 @@ % - % - 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 +% - This work consists of the files +% - chemnum.sty, chemnum_de.tex, chemnum_en.tex, chemnum_it.tex +% - scheme-tmp.ps, scheme-bla.ps, +% - README +% - chemnum_de.pdf, chemnum_en.pdf, chemnum_it.pdf %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \RequirePackage { expl3 , xparse , l3keys2e , etoolbox , psfrag } \ProvidesExplPackage {chemnum} - {2012/09/17} - {0.5e} - {An approach for the numbering of chemical compounds} + {2012/12/29} + {0.5f} + {a comprehensive approach for the numbering of chemical compounds} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % CHECK FOR SUPPORT @@ -1443,12 +1445,12 @@ { \psfrag { #1 } [ #2 ] [ #3 ] { #4 } } \cs_generate_variant:Nn \chemnum_psfrag:nnnn { VVVn } -\cs_new:Npn \chemnum_set_psfrag_pos_local:w #1 ref-pos = #2#3 , #4 \q_stop +\cs_new:Npn \chemnum_set_psfrag_pos_local:w #1 ref-pos #2 = #3#4 , #5 \q_stop { \tl_set_eq:NN \l_chemnum_psfrag_texpos_current_tl \l_chemnum_psfrag_texpos_tl \tl_set_eq:NN \l_chemnum_psfrag_pspos_current_tl \l_chemnum_psfrag_pspos_tl - \tl_set:Nn \l_chemnum_psfrag_texpos_tl { #2 } - \tl_set:Nn \l_chemnum_psfrag_pspos_tl { #3 } + \tl_set:Nn \l_chemnum_psfrag_texpos_tl { #3 } + \tl_set:Nn \l_chemnum_psfrag_pspos_tl { #4 } } \keys_define:nn { chemnum } @@ -1541,39 +1543,16 @@ % --------------------------------------------------------------------------- % % language support: -\file_if_exist:nT { translator.sty } - { - \RequirePackage { translator } - \usedictionary { translator-basic-dictionary } - % german - \languagealias { ngerman } { German } - \languagealias { german } { German} - \languagealias { austrian } { German } - \languagealias { naustrian } { German } - % french - \languagealias { french } { French } - \languagealias { canadien } { French } - % italian - \languagealias { italian } { Italian } - % spanish - \languagealias { spanish } { Spanish } - \providetranslation [ to = English ] - { and~(list~seperator) } { and } - \providetranslation [ to = BritishEnglish ] - { and~(list~seperator) } { and } - \providetranslation [ to = AmericanEnglish ] - { and~(list~seperator) } { and } - \providetranslation [ to = French ] - { and~(list~seperator) } { et } - \providetranslation [ to = German ] - { and~(list~seperator) } { und } - \providetranslation [ to = Italian ] - { and~(list~seperator) } { e } - \providetranslation [ to = Spanish ] - { and~(list~seperator) } { y } - \tl_set:Nn \l_chemnum_list_last_separator_lang_tl - { \translate { and~(list~seperator) } } - } + +\RequirePackage { translations } +\DeclareTranslationFallback { and~(list~seperator) } { and } +\DeclareTranslation { English } { and~(list~seperator) } { and } +\DeclareTranslation { French } { and~(list~seperator) } { et } +\DeclareTranslation { German } { and~(list~seperator) } { und } +\DeclareTranslation { Italian } { and~(list~seperator) } { e } +\DeclareTranslation { Spanish } { and~(list~seperator) } { y } +\tl_set:Nn \l_chemnum_list_last_separator_lang_tl + { \GetTranslation { and~(list~seperator) } } \AtBeginDocument { @@ -1681,8 +1660,5 @@ HISTORY: % 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 - auf Makro; Test entfernen? - provide expandable makro which gives the label and/or sublabel without any formatting
\ No newline at end of file |