[Tex/LaTex] Unable to produce symbol \{ using the STIX package

fontsmath-fontspackages

Recently I became aware of the STIX package, and I tried to give a shot by replacing the helvet package.

The problem is that I am unable to produce the { symbol. If I understood correctly, I can produce the above symbol by using the \lbrace and \rbrace commands, respectively, into math-mode. However, this procedure doesn't work.

Here is an MWE:

\documentclass[11pt]{article}

\usepackage{fontspec}
\usepackage{stix}
\usepackage{amsmath,amsfonts,amssymb,bbm}

\begin{document}
\begin{equation*}
\Omega=\lbrace O:l_o=1,C:l_o=0,B:0<l_o<1 \rbrace
\end{equation*}
\end{document}

Best Answer

You should load fontspec with the no-math option.

\documentclass[11pt]{article}

\usepackage{amsmath}
\usepackage[no-math]{fontspec}
\setmainfont{STIX}
\usepackage{stix}

\begin{document}
\begin{equation*}
\Omega=\lbrace O:l_o=1,C:l_o=0,B:0<l_o<1 \rbrace
\end{equation*}
\end{document}

enter image description here

Related Question