Typesetting my chemistry thesis using mhchem
, I make semi-frequent use of the option to escape to text mode using {}
, especially to typeset hyphens in the midst of chemistry like in the following way: \ce{6{-}Me}
. The output should be:
6-Me
However, after the addition of a word in Hebrew, this broke. The new output is:
6 Me-
Is there any way I can fix this?
My version of the mhchem
package is 4.04, distributed via TexLive, Ubuntu software sources. A minimal working example is attached. I’m using XeLaTeX.
\documentclass{report}
\usepackage[version=4]{mhchem}
\usepackage{polyglossia}
\setmainlanguage[babelshorthands=true,spelling=new]{german}
\setotherlanguage{hebrew} % <-- comment out this line for correct output.
\begin{document}
\ce{6{-}Me}
\end{document}
\setotherlanguage{hebrew}
. What LaTeX engine do you use?This is XeTeX, Version 3.14159265-2.6-0.99992 (TeX Live 2015/Debian) (preloaded format=xelatex 2016.9.27)
mhchem
, too? Since the current one on CTAN is 4.05.