1

If I load fontspec, without unicode-math or mathspec, in LuaLaTex or XeLaTeX, I can no longer use \mathsf{\Phi}, \mathbf{\Phi}, and maybe other variants.

Demo:

\documentclass[a4paper]{article}
\begin{document}
\pagestyle{empty}
\[ \Phi\mathbf{\Phi}\mathsf{\Phi} \qquad A\mathbf{A}\mathsf{A} \]
\end{document}

example 1

\documentclass[a4paper]{article}
\usepackage{fontspec}
\begin{document}
\pagestyle{empty}
\[ \Phi\mathbf{\Phi}\mathsf{\Phi} \qquad A\mathbf{A}\mathsf{A} \]
\end{document}

example 2

Why is this? What happened to them? I hadn't realized that just loading fontspec would have any effect on math mode...

Is there any way to get the styles back?

1 Answer 1

3

Pass the no-math option:

\documentclass[a4paper]{article}
\usepackage[no-math]{fontspec}

\begin{document}

\[
\Phi\mathbf{\Phi}\mathsf{\Phi} \qquad A\mathbf{A}\mathsf{A}
\]

\end{document}

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .