diff options
Diffstat (limited to 'support/TeX4ht/source/tex4ht-4ht.tex')
-rw-r--r-- | support/TeX4ht/source/tex4ht-4ht.tex | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/support/TeX4ht/source/tex4ht-4ht.tex b/support/TeX4ht/source/tex4ht-4ht.tex index 14ee0a16e9..d18a1123c8 100644 --- a/support/TeX4ht/source/tex4ht-4ht.tex +++ b/support/TeX4ht/source/tex4ht-4ht.tex @@ -1,4 +1,4 @@ -% $Id: tex4ht-4ht.tex 1458 2024-02-06 16:07:33Z michal_h21 $ +% $Id: tex4ht-4ht.tex 1459 2024-02-07 13:33:10Z michal_h21 $ % tex tex4ht-4ht or ht tex tex4ht-4ht % % Copyright 2009-2024 TeX Users Group @@ -30914,29 +30914,30 @@ it come out as a complete mess. \NewConfigure{mhchemoperator}{2} -% ideally, the following commands should be redefined using \HLet, to support picture math. -% the current definition should work in MathML, I am not sure about normall HTML, as +% ideally, the following commands should be redefined using \HLet, to support picture math. +% the current definition should work in MathML, I am not sure about normall HTML, as \cs_set_protected:Npn \__mhchem_output_skipAfterAmount: {\HCode { ~ } } % space for copy & paste \cs_set_protected:Npn \__mhchem_output_skipBeforeStateOfAggregation: {} \cs_set_protected:Npn \__mhchem_output_minus: {\HCode{&\#x2212;}} % minus \cs_set_protected:Npn \__mhchem_output_operatorPlus: - { \a:mhchemoperator + \b:mhchemoperator } + { \HCode {\a:mhchemoperator + \b:mhchemoperator }} \cs_set_protected:Npn \__mhchem_output_operatorMinus: - { \a:mhchemoperator\HCode {&\#x2212;} \b:mhchemoperator } % minus + { \HCode {\a:mhchemoperator&\#x2212; \b:mhchemoperator }} % minus \cs_set_protected:Npn \__mhchem_output_operatorEquals: - { \a:mhchemoperator = \b:mhchemoperator } + { \HCode {\a:mhchemoperator = \b:mhchemoperator }} \cs_set_protected:Npn \__mhchem_output_operatorPlusMinus: - {\a:mhchemoperator \HCode {&\#xB1;} \b:mhchemoperator } % plusmn - \cs_set_protected:Npn \__mhchem_output_electronDot: { \HCode {&\#x2022;} } % bull - \cs_set_protected:Npn \__mhchem_output_additionCompound: { \HCode {&\#xB7;} } % middot + {\HCode {\a:mhchemoperator &\#xB1; \b:mhchemoperator }} % plusmn +\cs_set_protected:Npn \__mhchem_output_electronDot: { \HCode {&\#x2022;} } % bull +\cs_set_protected:Npn \__mhchem_output_additionCompound: { \HCode {&\#xB7;} } % middot \cs_set_protected:Npn \__mhchem_output_excited: { \HCode { &\#x2731; } } \cs_set_protected:Npn \__mhchem_output_commaDecimal: { , } \cs_set_protected:Npn \__mhchem_output_commaEnumeration: {,\HCode {&\#x2009;} } % thinsp -\cs_set_protected:Npn \__mhchem_output_commaEnumerationSmall: {,\HCode{&\#x2009;} } % thinsp - -\cs_set_protected:Npn \__mhchem_output_bond_single: { \a:mhchemoperator{\HCode { &\#x2212; }}\b:mhchemoperator} -\cs_set_protected:Npn \__mhchem_output_bond_double: { \a:mhchemoperator{\HCode { =}}\b:mhchemoperator} -\cs_set_protected:Npn \__mhchem_output_bond_triple: { \a:mhchemoperator{\HCode { &\#x2261;}}\b:mhchemoperator} +\cs_set_protected:Npn \__mhchem_output_commaEnumerationSmall: {,\HCode{&\#x2009;} } % thinsp + +\cs_set_protected:Npn \__mhchem_output_bond_single: { \HCode { \a:mhchemoperator&\#x2212;\b:mhchemoperator}} +\cs_set_protected:Npn \__mhchem_output_bond_double: { \HCode { \a:mhchemoperator=\b:mhchemoperator}} +\cs_set_protected:Npn \__mhchem_output_bond_triple: { \HCode { \a:mhchemoperator&\#x2261;\b:mhchemoperator}} + % todo: add MathML support for these \cs_set_protected:Npn \__mhchem_output_bond_half: % todo: improve {\a:mhchembondhalf} |