diff options
author | Context Git Mirror Bot <phg42.2a@gmail.com> | 2016-02-22 20:15:08 +0100 |
---|---|---|
committer | Context Git Mirror Bot <phg42.2a@gmail.com> | 2016-02-22 20:15:08 +0100 |
commit | 95bf6b95a9d47a16219a26e19004d22c52180587 (patch) | |
tree | 6ebaa61735c34a613528ff2c53916f374babe5b0 /tex/context/base/mkiv/chem-str.lua | |
parent | 93dce457ab8769ef45a56b2e0f7ad447d7a47a83 (diff) | |
download | context-95bf6b95a9d47a16219a26e19004d22c52180587.tar.gz |
2016-02-22 19:57:00
Diffstat (limited to 'tex/context/base/mkiv/chem-str.lua')
-rw-r--r-- | tex/context/base/mkiv/chem-str.lua | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/tex/context/base/mkiv/chem-str.lua b/tex/context/base/mkiv/chem-str.lua index d724394bb..e90464ad2 100644 --- a/tex/context/base/mkiv/chem-str.lua +++ b/tex/context/base/mkiv/chem-str.lua @@ -234,6 +234,7 @@ local syntax = { space = { direct = 'chem_symbol("\\chemicalsymbol[space]");' }, plus = { direct = 'chem_symbol("\\chemicalsymbol[plus]");' }, minus = { direct = 'chem_symbol("\\chemicalsymbol[minus]");' }, + equals = { direct = 'chem_symbol("\\chemicalsymbol[equals]");' }, gives = { direct = formatters['chem_symbol("\\chemicalsymbol[gives]{%s}{%s}");'], arguments = 2 }, equilibrium = { direct = formatters['chem_symbol("\\chemicalsymbol[equilibrium]{%s}{%s}");'], arguments = 2 }, mesomeric = { direct = formatters['chem_symbol("\\chemicalsymbol[mesomeric]{%s}{%s}");'], arguments = 2 }, @@ -846,17 +847,22 @@ implement { } -- todo: top / bottom --- maybe add "=" for double and "≡" for triple? +-- note that "<->" here differs from ppchtex local inline = { - ["single"] = "\\chemicalsinglebond", ["-"] = "\\chemicalsinglebond", - ["double"] = "\\chemicaldoublebond", ["--"] = "\\chemicaldoublebond", - ["triple"] = "\\chemicaltriplebond", ["---"] = "\\chemicaltriplebond", - ["gives"] = "\\chemicalgives", ["->"] = "\\chemicalgives", - ["equilibrium"] = "\\chemicalequilibrium", ["<->"] = "\\chemicalequilibrium", - ["mesomeric"] = "\\chemicalmesomeric", ["<>"] = "\\chemicalmesomeric", - ["plus"] = "\\chemicalplus", ["+"] = "\\chemicalplus", + ["single"] = "\\chemicalsinglebond", ["-"] = "\\chemicalsinglebond", + ["double"] = "\\chemicaldoublebond", ["--"] = "\\chemicaldoublebond", + ["="] = "\\chemicaldoublebond", + ["triple"] = "\\chemicaltriplebond", ["---"] = "\\chemicaltriplebond", + ["≡"] = "\\chemicaltriplebond", + ["gives"] = "\\chemicalgives", ["->"] = "\\chemicalgives", + ["equilibrium"] = "\\chemicalequilibrium", ["<-->"] = "\\chemicalequilibrium", + ["<=>"] = "\\chemicalequilibrium", + ["mesomeric"] = "\\chemicalmesomeric", ["<>"] = "\\chemicalmesomeric", + ["<->"] = "\\chemicalmesomeric", + ["plus"] = "\\chemicalplus", ["+"] = "\\chemicalplus", ["minus"] = "\\chemicalminus", + ["equals"] = "\\chemicalequals", ["space"] = "\\chemicalspace", } |