diff options
author | Marius <mariausol@gmail.com> | 2011-12-31 14:40:26 +0200 |
---|---|---|
committer | Marius <mariausol@gmail.com> | 2011-12-31 14:40:26 +0200 |
commit | 11dde3f4c6c0584ff20070edc1b1aad0b9013d30 (patch) | |
tree | aa8df33f2319e97b9d1634f042504433110941fb /tex/context/base/chem-str.mkiv | |
parent | 90cec652f5ae1daee6d4c252c5caa6a39ad719fc (diff) | |
download | context-11dde3f4c6c0584ff20070edc1b1aad0b9013d30.tar.gz |
beta 2011.12.31 13:16
Diffstat (limited to 'tex/context/base/chem-str.mkiv')
-rw-r--r-- | tex/context/base/chem-str.mkiv | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/tex/context/base/chem-str.mkiv b/tex/context/base/chem-str.mkiv index 998ff942a..40e631c87 100644 --- a/tex/context/base/chem-str.mkiv +++ b/tex/context/base/chem-str.mkiv @@ -49,6 +49,8 @@ \unprotect +\installcorenamespace{chemicalsymbol} + \unexpanded\def\setupchemical {\dosingleempty\dosetupchemical} @@ -80,16 +82,16 @@ {\dodoubleempty\dodefinechemicalsymbol} \def\dodefinechemicalsymbol[#1][#2]% - {\setvalue{\??cm::#1}{#2}} + {\setvalue{\??chemicalsymbol#1}{#2}} \unexpanded\def\chemicalsymbol[#1]% - {\getvalue{\??cm::#1}} + {\getvalue{\??chemicalsymbol#1}} % size (small medium big) \unexpanded\def\dosetchemicaltext - {\dousestyleparameter\@cmstyle - \dousecolorparameter\@cmcolor} + {\dousestyleparameter\@@cmstyle + \dousecolorparameter\@@cmcolor} \edef\chemicaltoplocation{t} \edef\chemicalbotlocation{b} @@ -505,17 +507,17 @@ % \formulachemicalmid\expandafter{\the\formulachemicalmid\dodochemicalformulamid{#1}&}} % % \def\dodochemicalformulamid#1% -% {\ifcsname\??cm::\detokenize{#1}\endcsname -% \csname\??cm::\detokenize{#1}\expandafter\endcsname{}{}% +% {\ifcsname\??chemicalsymbol\detokenize{#1}\endcsname +% \csname\??chemicalsymbol\detokenize{#1}\expandafter\endcsname{}{}% % \else % \molecule{#1}{}{}% % \fi} \def\domidformulachemical#1% - {\csname\??cm::\detokenize{#1}\endcsname} + {\csname\??chemicalsymbol\detokenize{#1}\endcsname} \def\doformulachemical#1#2#3% we could do hboxes and measure - {\ifcsname\??cm::\detokenize{#1}\endcsname + {\ifcsname\??chemicalsymbol\detokenize{#1}\endcsname \formulachemicalmid\expandafter{\the\formulachemicalmid\domidformulachemical{#1}{#2}{#3}}% \else \ifthirdargument |