1

I'm trying to use \gamma inside the mhchem environment, and it refuses to render the correct glyph. Alpha and beta work, as does Uppercase \Gamma. I have tried this with other fonts e.g. Roboto and the same behaviour occurs.

Is this a bug and is there a workaround? MWE:

\documentclass{article}
\usepackage[version=4]{mhchem}
\usepackage{fontspec}
\setmainfont{CMU Bright}
\begin{document}

\ce{\alpha}
\ce{\gamma}
$\alpha$
$\gamma$

\end{document}

The output is the following:

enter image description here

using LuaLatex. With XeTex, a crossed box appears.

EDIT:

Logfile link here: (XeTex) Logfile (LuaLatex)

[! Output of \printchemgreekalphabet]

FINAL EDIT: Shamefully, updating to the newest mactex distribution fixed the problem. Thanks all for your help.

0 Answers0