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?

4

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

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.