2

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}

2 Answers 2

3

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

2
  • so amsfonts and amssymb packages are unnecessary?
    – Yorgos
    Dec 27, 2015 at 15:32
  • @Yorgos Yes, stix already provides substitutes.
    – egreg
    Dec 27, 2015 at 15:36
2

I'd like to suggest the XITS font by Khaled Hosny instead of STIX. As one might guess from the name, XITS is an hommage to STIX, but with refined shapes and a much wider range of glyphs and distributed as a Unicode math font.

\documentclass{article}
\usepackage{mathtools}
\usepackage{unicode-math}% loads fontspec
\setmainfont{XITS}
\setmathfont{XITS Math}
\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

1
  • 1
    Is the documentation the same between stix and xits package? I mean, that the commands apply to the former package apply also to the latter package?
    – Yorgos
    Dec 28, 2015 at 17:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.