From d072b95f32ddf71529db9b4df5bafdf3f5695366 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 26 Jul 2012 22:42:32 +0000 Subject: chemnum (25jul12) git-svn-id: svn://tug.org/texlive/trunk@27177 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/chemnum/chemnum.sty | 322 +++++++++++++----------- 1 file changed, 170 insertions(+), 152 deletions(-) (limited to 'Master/texmf-dist/tex') diff --git a/Master/texmf-dist/tex/latex/chemnum/chemnum.sty b/Master/texmf-dist/tex/latex/chemnum/chemnum.sty index fe79cd4d7a5..de0c482a20d 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/03 +% - 2012/05/17 % - contact@mychemistry.eu % ----------------------------------------------------------------------------- % - If you have any ideas, questions, suggestions or bugs to report, please @@ -31,8 +31,8 @@ \ProvidesExplPackage {chemnum} - {2012/05/03} - {0.5a} + {2012/07/24} + {0.5c} {An approach for the numbering of chemical compounds} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -131,54 +131,54 @@ \AtBeginDocument{ \bool_if:NTF \l_chemnum_textgreek_bool { - \cs_new_eq:NN \chemnum_alpha \textalpha - \cs_new_eq:NN \chemnum_beta \textbeta - \cs_new_eq:NN \chemnum_gamma \textgamma - \cs_new_eq:NN \chemnum_delta \textdelta - \cs_new_eq:NN \chemnum_epsilon \textepsilon - \cs_new_eq:NN \chemnum_zeta \textzeta - \cs_new_eq:NN \chemnum_eta \texteta - \cs_new_eq:NN \chemnum_theta \texttheta - \cs_new_eq:NN \chemnum_iota \textiota - \cs_new_eq:NN \chemnum_kappa \textkappa - \cs_new_eq:NN \chemnum_lambda \textlambda - \cs_new_eq:NN \chemnum_mu \textmugreek - \cs_new_eq:NN \chemnum_nu \textnu - \cs_new_eq:NN \chemnum_xi \textxi - \cs_new_eq:NN \chemnum_omikron \textomikron - \cs_new_eq:NN \chemnum_pi \textpi - \cs_new_eq:NN \chemnum_rho \textrho - \cs_new_eq:NN \chemnum_sigma \textsigma - \cs_new_eq:NN \chemnum_tau \texttau - \cs_new_eq:NN \chemnum_upsilon \textupsilon - \cs_new_eq:NN \chemnum_phi \textphi - \cs_new_eq:NN \chemnum_chi \textchi - \cs_new_eq:NN \chemnum_psi \textpsi - \cs_new_eq:NN \chemnum_omega \textomega - \cs_new_eq:NN \chemnum_Alpha \textAlpha - \cs_new_eq:NN \chemnum_Beta \textBeta - \cs_new_eq:NN \chemnum_Gamma \textGamma - \cs_new_eq:NN \chemnum_Delta \textDelta - \cs_new_eq:NN \chemnum_Epsilon \textEpsilon - \cs_new_eq:NN \chemnum_Zeta \textZeta - \cs_new_eq:NN \chemnum_Eta \textEta - \cs_new_eq:NN \chemnum_Theta \textTheta - \cs_new_eq:NN \chemnum_Iota \textIota - \cs_new_eq:NN \chemnum_Kappa \textKappa - \cs_new_eq:NN \chemnum_Lambda \textLambda - \cs_new_eq:NN \chemnum_Mu \textMugreek - \cs_new_eq:NN \chemnum_Nu \textNu - \cs_new_eq:NN \chemnum_Xi \textXi - \cs_new_eq:NN \chemnum_Omikron \textOmikron - \cs_new_eq:NN \chemnum_Pi \textPi - \cs_new_eq:NN \chemnum_Rho \textRho - \cs_new_eq:NN \chemnum_Sigma \textSigma - \cs_new_eq:NN \chemnum_Tau \textTau - \cs_new_eq:NN \chemnum_Upsilon \textUpsilon - \cs_new_eq:NN \chemnum_Phi \textPhi - \cs_new_eq:NN \chemnum_Chi \textChi - \cs_new_eq:NN \chemnum_Psi \textPsi - \cs_new_eq:NN \chemnum_Omega \textOmega + \cs_new_eq:NN \chemnum_alpha: \textalpha + \cs_new_eq:NN \chemnum_beta: \textbeta + \cs_new_eq:NN \chemnum_gamma: \textgamma + \cs_new_eq:NN \chemnum_delta: \textdelta + \cs_new_eq:NN \chemnum_epsilon: \textepsilon + \cs_new_eq:NN \chemnum_zeta: \textzeta + \cs_new_eq:NN \chemnum_eta: \texteta + \cs_new_eq:NN \chemnum_theta: \texttheta + \cs_new_eq:NN \chemnum_iota: \textiota + \cs_new_eq:NN \chemnum_kappa: \textkappa + \cs_new_eq:NN \chemnum_lambda: \textlambda + \cs_new_eq:NN \chemnum_mu: \textmugreek + \cs_new_eq:NN \chemnum_nu: \textnu + \cs_new_eq:NN \chemnum_xi: \textxi + \cs_new_eq:NN \chemnum_omikron: \textomikron + \cs_new_eq:NN \chemnum_pi: \textpi + \cs_new_eq:NN \chemnum_rho: \textrho + \cs_new_eq:NN \chemnum_sigma: \textsigma + \cs_new_eq:NN \chemnum_tau: \texttau + \cs_new_eq:NN \chemnum_upsilon: \textupsilon + \cs_new_eq:NN \chemnum_phi: \textphi + \cs_new_eq:NN \chemnum_chi: \textchi + \cs_new_eq:NN \chemnum_psi: \textpsi + \cs_new_eq:NN \chemnum_omega: \textomega + \cs_new_eq:NN \chemnum_Alpha: \textAlpha + \cs_new_eq:NN \chemnum_Beta: \textBeta + \cs_new_eq:NN \chemnum_Gamma: \textGamma + \cs_new_eq:NN \chemnum_Delta: \textDelta + \cs_new_eq:NN \chemnum_Epsilon: \textEpsilon + \cs_new_eq:NN \chemnum_Zeta: \textZeta + \cs_new_eq:NN \chemnum_Eta: \textEta + \cs_new_eq:NN \chemnum_Theta: \textTheta + \cs_new_eq:NN \chemnum_Iota: \textIota + \cs_new_eq:NN \chemnum_Kappa: \textKappa + \cs_new_eq:NN \chemnum_Lambda: \textLambda + \cs_new_eq:NN \chemnum_Mu: \textMugreek + \cs_new_eq:NN \chemnum_Nu: \textNu + \cs_new_eq:NN \chemnum_Xi: \textXi + \cs_new_eq:NN \chemnum_Omikron: \textOmikron + \cs_new_eq:NN \chemnum_Pi: \textPi + \cs_new_eq:NN \chemnum_Rho: \textRho + \cs_new_eq:NN \chemnum_Sigma: \textSigma + \cs_new_eq:NN \chemnum_Tau: \textTau + \cs_new_eq:NN \chemnum_Upsilon: \textUpsilon + \cs_new_eq:NN \chemnum_Phi: \textPhi + \cs_new_eq:NN \chemnum_Chi: \textChi + \cs_new_eq:NN \chemnum_Psi: \textPsi + \cs_new_eq:NN \chemnum_Omega: \textOmega } { \RequirePackage { bm }% abhängig machen von textoption bold @@ -188,54 +188,54 @@ { \bm { #1 } } { #1 } } - \cs_new_nopar:Npn \chemnum_alpha { \ensuremath { \chemnum_bm:n { \mathrm { \alpha } } } } - \cs_new_nopar:Npn \chemnum_beta { \ensuremath { \chemnum_bm:n { \mathrm { \beta } } } } - \cs_new_nopar:Npn \chemnum_gamma { \ensuremath { \chemnum_bm:n { \mathrm { \gamma } } } } - \cs_new_nopar:Npn \chemnum_delta { \ensuremath { \chemnum_bm:n { \mathrm { \delta } } } } - \cs_new_nopar:Npn \chemnum_epsilon { \ensuremath { \chemnum_bm:n { \mathrm { \varepsilon } } } } - \cs_new_nopar:Npn \chemnum_zeta { \ensuremath { \chemnum_bm:n { \mathrm { \zeta } } } } - \cs_new_nopar:Npn \chemnum_eta { \ensuremath { \chemnum_bm:n { \mathrm { \eta } } } } - \cs_new_nopar:Npn \chemnum_theta { \ensuremath { \chemnum_bm:n { \mathrm { \theta } } } } - \cs_new_nopar:Npn \chemnum_iota { \ensuremath { \chemnum_bm:n { \mathrm { \iota } } } } - \cs_new_nopar:Npn \chemnum_kappa { \ensuremath { \chemnum_bm:n { \mathrm { \kappa } } } } - \cs_new_nopar:Npn \chemnum_lambda { \ensuremath { \chemnum_bm:n { \mathrm { \lampda } } } } - \cs_new_nopar:Npn \chemnum_mu { \ensuremath { \chemnum_bm:n { \mathrm { \mu } } } } - \cs_new_nopar:Npn \chemnum_nu { \ensuremath { \chemnum_bm:n { \mathrm { \nu } } } } - \cs_new_nopar:Npn \chemnum_xi { \ensuremath { \chemnum_bm:n { \mathrm { \xi } } } } - \cs_new_nopar:Npn \chemnum_omikron { \ensuremath { \chemnum_bm:n { \mathrm { o } } } } - \cs_new_nopar:Npn \chemnum_pi { \ensuremath { \chemnum_bm:n { \mathrm { \pi } } } } - \cs_new_nopar:Npn \chemnum_rho { \ensuremath { \chemnum_bm:n { \mathrm { \rho } } } } - \cs_new_nopar:Npn \chemnum_sigma { \ensuremath { \chemnum_bm:n { \mathrm { \sigma } } } } - \cs_new_nopar:Npn \chemnum_tau { \ensuremath { \chemnum_bm:n { \mathrm { \tau } } } } - \cs_new_nopar:Npn \chemnum_upsilon { \ensuremath { \chemnum_bm:n { \mathrm { \upsilon } } } } - \cs_new_nopar:Npn \chemnum_phi { \ensuremath { \chemnum_bm:n { \mathrm { \varphi } } } } - \cs_new_nopar:Npn \chemnum_chi { \ensuremath { \chemnum_bm:n { \mathrm { \chi } } } } - \cs_new_nopar:Npn \chemnum_psi { \ensuremath { \chemnum_bm:n { \mathrm { \psi } } } } - \cs_new_nopar:Npn \chemnum_omega { \ensuremath { \chemnum_bm:n { \mathrm { \omega } } } } - \cs_new_nopar:Npn \chemnum_Alpha { \ensuremath { \chemnum_bm:n { \mathrm { A } } } } - \cs_new_nopar:Npn \chemnum_Beta { \ensuremath { \chemnum_bm:n { \mathrm { B } } } } - \cs_new_nopar:Npn \chemnum_Gamma { \ensuremath { \chemnum_bm:n { \mathrm { \Gamma } } } } - \cs_new_nopar:Npn \chemnum_Delta { \ensuremath { \chemnum_bm:n { \mathrm { \Delta } } } } - \cs_new_nopar:Npn \chemnum_Epsilon { \ensuremath { \chemnum_bm:n { \mathrm { E } } } } - \cs_new_nopar:Npn \chemnum_Zeta { \ensuremath { \chemnum_bm:n { \mathrm { Z } } } } - \cs_new_nopar:Npn \chemnum_Eta { \ensuremath { \chemnum_bm:n { \mathrm { H } } } } - \cs_new_nopar:Npn \chemnum_Theta { \ensuremath { \chemnum_bm:n { \mathrm { \Theta } } } } - \cs_new_nopar:Npn \chemnum_Iota { \ensuremath { \chemnum_bm:n { \mathrm { I } } } } - \cs_new_nopar:Npn \chemnum_Kappa { \ensuremath { \chemnum_bm:n { \mathrm { K } } } } - \cs_new_nopar:Npn \chemnum_Lambda { \ensuremath { \chemnum_bm:n { \mathrm { \Lambda } } } } - \cs_new_nopar:Npn \chemnum_Mu { \ensuremath { \chemnum_bm:n { \mathrm { M } } } } - \cs_new_nopar:Npn \chemnum_Nu { \ensuremath { \chemnum_bm:n { \mathrm { N } } } } - \cs_new_nopar:Npn \chemnum_Xi { \ensuremath { \chemnum_bm:n { \mathrm { \Xi } } } } - \cs_new_nopar:Npn \chemnum_Omikron { \ensuremath { \chemnum_bm:n { \mathrm { O } } } } - \cs_new_nopar:Npn \chemnum_Pi { \ensuremath { \chemnum_bm:n { \mathrm { \Pi } } } } - \cs_new_nopar:Npn \chemnum_Rho { \ensuremath { \chemnum_bm:n { \mathrm { P } } } } - \cs_new_nopar:Npn \chemnum_Sigma { \ensuremath { \chemnum_bm:n { \mathrm { \Sigma } } } } - \cs_new_nopar:Npn \chemnum_Tau { \ensuremath { \chemnum_bm:n { \mathrm { T } } } } - \cs_new_nopar:Npn \chemnum_Upsilon { \ensuremath { \chemnum_bm:n { \mathrm { \Upsilon } } } } - \cs_new_nopar:Npn \chemnum_Phi { \ensuremath { \chemnum_bm:n { \mathrm { \Phi } } } } - \cs_new_nopar:Npn \chemnum_Chi { \ensuremath { \chemnum_bm:n { \mathrm { X } } } } - \cs_new_nopar:Npn \chemnum_Psi { \ensuremath { \chemnum_bm:n { \mathrm { \Psi } } } } - \cs_new_nopar:Npn \chemnum_Omega { \ensuremath { \chemnum_bm:n { \mathrm { \Omega } } } } + \cs_new_nopar:Npn \chemnum_alpha: { \ensuremath { \chemnum_bm:n { \mathrm { \alpha } } } } + \cs_new_nopar:Npn \chemnum_beta: { \ensuremath { \chemnum_bm:n { \mathrm { \beta } } } } + \cs_new_nopar:Npn \chemnum_gamma: { \ensuremath { \chemnum_bm:n { \mathrm { \gamma } } } } + \cs_new_nopar:Npn \chemnum_delta: { \ensuremath { \chemnum_bm:n { \mathrm { \delta } } } } + \cs_new_nopar:Npn \chemnum_epsilon: { \ensuremath { \chemnum_bm:n { \mathrm { \varepsilon } } } } + \cs_new_nopar:Npn \chemnum_zeta: { \ensuremath { \chemnum_bm:n { \mathrm { \zeta } } } } + \cs_new_nopar:Npn \chemnum_eta: { \ensuremath { \chemnum_bm:n { \mathrm { \eta } } } } + \cs_new_nopar:Npn \chemnum_theta: { \ensuremath { \chemnum_bm:n { \mathrm { \theta } } } } + \cs_new_nopar:Npn \chemnum_iota: { \ensuremath { \chemnum_bm:n { \mathrm { \iota } } } } + \cs_new_nopar:Npn \chemnum_kappa: { \ensuremath { \chemnum_bm:n { \mathrm { \kappa } } } } + \cs_new_nopar:Npn \chemnum_lambda: { \ensuremath { \chemnum_bm:n { \mathrm { \lampda } } } } + \cs_new_nopar:Npn \chemnum_mu: { \ensuremath { \chemnum_bm:n { \mathrm { \mu } } } } + \cs_new_nopar:Npn \chemnum_nu: { \ensuremath { \chemnum_bm:n { \mathrm { \nu } } } } + \cs_new_nopar:Npn \chemnum_xi: { \ensuremath { \chemnum_bm:n { \mathrm { \xi } } } } + \cs_new_nopar:Npn \chemnum_omikron: { \ensuremath { \chemnum_bm:n { \mathrm { o } } } } + \cs_new_nopar:Npn \chemnum_pi: { \ensuremath { \chemnum_bm:n { \mathrm { \pi } } } } + \cs_new_nopar:Npn \chemnum_rho: { \ensuremath { \chemnum_bm:n { \mathrm { \rho } } } } + \cs_new_nopar:Npn \chemnum_sigma: { \ensuremath { \chemnum_bm:n { \mathrm { \sigma } } } } + \cs_new_nopar:Npn \chemnum_tau: { \ensuremath { \chemnum_bm:n { \mathrm { \tau } } } } + \cs_new_nopar:Npn \chemnum_upsilon: { \ensuremath { \chemnum_bm:n { \mathrm { \upsilon } } } } + \cs_new_nopar:Npn \chemnum_phi: { \ensuremath { \chemnum_bm:n { \mathrm { \varphi } } } } + \cs_new_nopar:Npn \chemnum_chi: { \ensuremath { \chemnum_bm:n { \mathrm { \chi } } } } + \cs_new_nopar:Npn \chemnum_psi: { \ensuremath { \chemnum_bm:n { \mathrm { \psi } } } } + \cs_new_nopar:Npn \chemnum_omega: { \ensuremath { \chemnum_bm:n { \mathrm { \omega } } } } + \cs_new_nopar:Npn \chemnum_Alpha: { \ensuremath { \chemnum_bm:n { \mathrm { A } } } } + \cs_new_nopar:Npn \chemnum_Beta: { \ensuremath { \chemnum_bm:n { \mathrm { B } } } } + \cs_new_nopar:Npn \chemnum_Gamma: { \ensuremath { \chemnum_bm:n { \mathrm { \Gamma } } } } + \cs_new_nopar:Npn \chemnum_Delta: { \ensuremath { \chemnum_bm:n { \mathrm { \Delta } } } } + \cs_new_nopar:Npn \chemnum_Epsilon: { \ensuremath { \chemnum_bm:n { \mathrm { E } } } } + \cs_new_nopar:Npn \chemnum_Zeta: { \ensuremath { \chemnum_bm:n { \mathrm { Z } } } } + \cs_new_nopar:Npn \chemnum_Eta: { \ensuremath { \chemnum_bm:n { \mathrm { H } } } } + \cs_new_nopar:Npn \chemnum_Theta: { \ensuremath { \chemnum_bm:n { \mathrm { \Theta } } } } + \cs_new_nopar:Npn \chemnum_Iota: { \ensuremath { \chemnum_bm:n { \mathrm { I } } } } + \cs_new_nopar:Npn \chemnum_Kappa: { \ensuremath { \chemnum_bm:n { \mathrm { K } } } } + \cs_new_nopar:Npn \chemnum_Lambda: { \ensuremath { \chemnum_bm:n { \mathrm { \Lambda } } } } + \cs_new_nopar:Npn \chemnum_Mu: { \ensuremath { \chemnum_bm:n { \mathrm { M } } } } + \cs_new_nopar:Npn \chemnum_Nu: { \ensuremath { \chemnum_bm:n { \mathrm { N } } } } + \cs_new_nopar:Npn \chemnum_Xi: { \ensuremath { \chemnum_bm:n { \mathrm { \Xi } } } } + \cs_new_nopar:Npn \chemnum_Omikron: { \ensuremath { \chemnum_bm:n { \mathrm { O } } } } + \cs_new_nopar:Npn \chemnum_Pi: { \ensuremath { \chemnum_bm:n { \mathrm { \Pi } } } } + \cs_new_nopar:Npn \chemnum_Rho: { \ensuremath { \chemnum_bm:n { \mathrm { P } } } } + \cs_new_nopar:Npn \chemnum_Sigma: { \ensuremath { \chemnum_bm:n { \mathrm { \Sigma } } } } + \cs_new_nopar:Npn \chemnum_Tau: { \ensuremath { \chemnum_bm:n { \mathrm { T } } } } + \cs_new_nopar:Npn \chemnum_Upsilon: { \ensuremath { \chemnum_bm:n { \mathrm { \Upsilon } } } } + \cs_new_nopar:Npn \chemnum_Phi: { \ensuremath { \chemnum_bm:n { \mathrm { \Phi } } } } + \cs_new_nopar:Npn \chemnum_Chi: { \ensuremath { \chemnum_bm:n { \mathrm { X } } } } + \cs_new_nopar:Npn \chemnum_Psi: { \ensuremath { \chemnum_bm:n { \mathrm { \Psi } } } } + \cs_new_nopar:Npn \chemnum_Omega: { \ensuremath { \chemnum_bm:n { \mathrm { \Omega } } } } } } @@ -268,17 +268,18 @@ % available at the next run \AtEndDocument { - \iow_open:Nn \chemnum_aux_file { ./ \c_job_name_tl . cmpd } + \iow_new:N \chemnum_aux_file: + \iow_open:Nn \chemnum_aux_file: { ./ \c_job_name_tl . cmpd } \clist_map_inline:Nn \g_chemnum_cmpd_save_clist { - \iow_now:Nx \chemnum_aux_file + \iow_now:Nx \chemnum_aux_file: { \use:c { cs_new_nopar:cpn } { chemnum_cmpd_ #1 _ref: } { \exp_not:f { \use:c { chemnum_cmpd_ #1 : } } } } \cs_if_exist:cT { chemnum_cmpd_ #1 _min: } { - \iow_now:Nx \chemnum_aux_file + \iow_now:Nx \chemnum_aux_file: { \use:c { cs_new_nopar:cpn } { chemnum_cmpd_ #1 _min_ref: } { \exp_not:f { \use:c { chemnum_cmpd_ #1 _min: } } } @@ -286,14 +287,14 @@ } \cs_if_exist:cT { chemnum_cmpd_ #1 _max: } { - \iow_now:Nx \chemnum_aux_file + \iow_now:Nx \chemnum_aux_file: { \use:c { cs_new_nopar:cpn } { chemnum_cmpd_ #1 _max_ref: } { \exp_not:f { \use:c { chemnum_cmpd_ #1 _max: } } } } } } - \iow_close:N \chemnum_aux_file + \iow_close:N \chemnum_aux_file: } %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -405,30 +406,30 @@ { \int_to_symbols:nnn {#1} { 24 } { - { 1 } { \exp_not:o \chemnum_alpha } - { 2 } { \exp_not:o \chemnum_beta } - { 3 } { \exp_not:o \chemnum_gamma } - { 4 } { \exp_not:o \chemnum_delta } - { 5 } { \exp_not:o \chemnum_epsilon } - { 6 } { \exp_not:o \chemnum_zeta } - { 7 } { \exp_not:o \chemnum_eta } - { 8 } { \exp_not:o \chemnum_theta } - { 9 } { \exp_not:o \chemnum_iota } - { 10 } { \exp_not:o \chemnum_kappa } - { 11 } { \exp_not:o \chemnum_lambda } - { 12 } { \exp_not:o \chemnum_mu } - { 13 } { \exp_not:o \chemnum_nu } - { 14 } { \exp_not:o \chemnum_xi } - { 15 } { \exp_not:o \chemnum_omikron } - { 16 } { \exp_not:o \chemnum_pi } - { 17 } { \exp_not:o \chemnum_rho } - { 18 } { \exp_not:o \chemnum_sigma } - { 19 } { \exp_not:o \chemnum_tau } - { 20 } { \exp_not:o \chemnum_upsilon } - { 21 } { \exp_not:o \chemnum_phi } - { 22 } { \exp_not:o \chemnum_chi } - { 23 } { \exp_not:o \chemnum_psi } - { 24 } { \exp_not:o \chemnum_omega } + { 1 } { \exp_not:o \chemnum_alpha: } + { 2 } { \exp_not:o \chemnum_beta: } + { 3 } { \exp_not:o \chemnum_gamma: } + { 4 } { \exp_not:o \chemnum_delta: } + { 5 } { \exp_not:o \chemnum_epsilon: } + { 6 } { \exp_not:o \chemnum_zeta: } + { 7 } { \exp_not:o \chemnum_eta: } + { 8 } { \exp_not:o \chemnum_theta: } + { 9 } { \exp_not:o \chemnum_iota: } + { 10 } { \exp_not:o \chemnum_kappa: } + { 11 } { \exp_not:o \chemnum_lambda: } + { 12 } { \exp_not:o \chemnum_mu: } + { 13 } { \exp_not:o \chemnum_nu: } + { 14 } { \exp_not:o \chemnum_xi: } + { 15 } { \exp_not:o \chemnum_omikron: } + { 16 } { \exp_not:o \chemnum_pi: } + { 17 } { \exp_not:o \chemnum_rho: } + { 18 } { \exp_not:o \chemnum_sigma: } + { 19 } { \exp_not:o \chemnum_tau: } + { 20 } { \exp_not:o \chemnum_upsilon: } + { 21 } { \exp_not:o \chemnum_phi: } + { 22 } { \exp_not:o \chemnum_chi: } + { 23 } { \exp_not:o \chemnum_psi: } + { 24 } { \exp_not:o \chemnum_omega: } } } % } @@ -444,30 +445,30 @@ { \int_to_symbols:nnn { #1 } { 24 } { - { 1 } { \exp_not:o \chemnum_Alpha } - { 2 } { \exp_not:o \chemnum_Beta } - { 3 } { \exp_not:o \chemnum_Gamma } - { 4 } { \exp_not:o \chemnum_Delta } - { 5 } { \exp_not:o \chemnum_Epsilon } - { 6 } { \exp_not:o \chemnum_Zeta } - { 7 } { \exp_not:o \chemnum_Eta } - { 8 } { \exp_not:o \chemnum_Theta } - { 9 } { \exp_not:o \chemnum_Iota } - { 10 } { \exp_not:o \chemnum_Kappa } - { 11 } { \exp_not:o \chemnum_Lambda } - { 12 } { \exp_not:o \chemnum_Mu } - { 13 } { \exp_not:o \chemnum_Nu } - { 14 } { \exp_not:o \chemnum_Xi } - { 15 } { \exp_not:o \chemnum_Omikron } - { 16 } { \exp_not:o \chemnum_Pi } - { 17 } { \exp_not:o \chemnum_Rho } - { 18 } { \exp_not:o \chemnum_Sigma } - { 19 } { \exp_not:o \chemnum_Tau } - { 20 } { \exp_not:o \chemnum_Upsilon } - { 21 } { \exp_not:o \chemnum_Phi } - { 22 } { \exp_not:o \chemnum_Chi } - { 23 } { \exp_not:o \chemnum_Psi } - { 24 } { \exp_not:o \chemnum_Omega } + { 1 } { \exp_not:o \chemnum_Alpha: } + { 2 } { \exp_not:o \chemnum_Beta: } + { 3 } { \exp_not:o \chemnum_Gamma: } + { 4 } { \exp_not:o \chemnum_Delta: } + { 5 } { \exp_not:o \chemnum_Epsilon: } + { 6 } { \exp_not:o \chemnum_Zeta: } + { 7 } { \exp_not:o \chemnum_Eta: } + { 8 } { \exp_not:o \chemnum_Theta: } + { 9 } { \exp_not:o \chemnum_Iota: } + { 10 } { \exp_not:o \chemnum_Kappa: } + { 11 } { \exp_not:o \chemnum_Lambda: } + { 12 } { \exp_not:o \chemnum_Mu: } + { 13 } { \exp_not:o \chemnum_Nu: } + { 14 } { \exp_not:o \chemnum_Xi: } + { 15 } { \exp_not:o \chemnum_Omikron: } + { 16 } { \exp_not:o \chemnum_Pi: } + { 17 } { \exp_not:o \chemnum_Rho: } + { 18 } { \exp_not:o \chemnum_Sigma: } + { 19 } { \exp_not:o \chemnum_Tau: } + { 20 } { \exp_not:o \chemnum_Upsilon: } + { 21 } { \exp_not:o \chemnum_Phi: } + { 22 } { \exp_not:o \chemnum_Chi: } + { 23 } { \exp_not:o \chemnum_Psi: } + { 24 } { \exp_not:o \chemnum_Omega: } } } } @@ -1495,6 +1496,7 @@ } { % TODO: set psfrag positions before \chemnum_psfrag is called + % ?? hat sich erledigt, oder? \cmpd_main_command:w * [ #3 ] { #4 } \tl_if_in:nnT { #3 } { ref-pos } { \chemnum_set_psfrag_pos_local:w #3 , \q_stop } @@ -1519,6 +1521,17 @@ } } +% --------------------------------------------------------------------------- % +% one for the hackers: get the label numbers in an expandable way: +\cs_new:Npn \cmpd@main #1 { \use:c { chemnum_cmpd_#1: } } +\cs_new:Npn \cmpd@sub #1#2 { \use:c { chemnum_cmpd_#1_#2: } } + +% usage - main label of \cmpd{