Does anybody know how to fix this problem with mhchem
package?
! Undefined control sequence.
<argument> \l__mhchem_cg_isScript_bool
Recently I've found this part of mhchem.sty
code:
\cs_new_protected:Npn \__mhchem_output_escapeFromTextToItalicMath:n #1
{
\ensuremath
{
\mhchem@hook@beforeItalicMath
\bool_if:NT \l__mhchem_cg_isScript_bool
{
\medmuskip=0mu
\thinmuskip=0mu
\thickmuskip=0mu
}
#1
}
}
It seems to me problem is connected with \bool_if:NT \l__mhchem_cg_isScript_bool
condition which can be wrong with newest expl3
package. The same bug has successfully been solved in siunitx
package.
Win 10, MikTeX 2.9.6236, up-to-date
code
\bool_new:N \l__mhchem_cg_isScript \cs_new_protected:Npn __mhchem_output_escapeFromTextToItalicMath:n #1 { \ensuremath { \mhchem@hook@beforeItalicMath \bool_lazy_any:nT \l__mhchem_cg_isScript { \medmuskip=0mu \thinmuskip=0mu \thickmuskip=0mu } #1 } }\thinmuskip
to zero is wrong.