Am 29.10.2015 um 17:15 schrieb Guenter Milde:
documents that use the mhchem package (which is automatically loaded if required, by default) fail to compile with XeTeX or LuaTeX and TeX fonts.
I think you discovered a bug in LyX: We automatically load inputenc: \usepackage[latin9]{inputenc} But inputenc must not be used for XeTeX. So this file becomes uncompilable when uncommenting the inputenc line: \documentclass[english]{article} \usepackage[T1]{fontenc} %\usepackage[latin9]{inputenc} \PassOptionsToPackage{version=3}{mhchem} \usepackage{mhchem} \usepackage{babel} \begin{document} test: $\ce{H2SO4}$ \end{document} I get then this error message: ! Package inputenc Error: inputenc is not designed for xetex or luatex. (inputenc) only UTF-8 supported. See the inputenc package documentation for explanation. Type H <return> for immediate help. mhchem is not to blame here. regards Uwe