1

I'm setting a book with main text font Source Serif Pro while sticking with Computer Modern math font. (Those may not be the best choices, but for the time being, I am stuck with them.) But \mathit is not behaving as I hope. I want $v$ and $\mathit{vs}$ to look compatible, but instead they look startlingly different.

demonstration of wildly different v's

Here's the code:

\documentclass{article}
\usepackage{fontspec}
\setmainfont{Source Serif Pro}[Scale=MatchLowercase]
\begin{document}
\thispagestyle{empty}
Singular $v$, plural $\mathit{vs}$, list \texttt{(cons $v$ $\mathit{vs}$)}.
\end{document}

I have found the question How do I change the math italic font in XeTeX/fontspec? and I have poked at the documentation for the mathspec and fontspec packages, and fontspec preserves the Computer Modern symbols just as I had hoped. How can I tell \mathit that I want it to do the same thing it did under Computer Modern?

2
  • even in cm I wouldn't use $\mathit{vs}$ as the plural of $v$, \mathit is the text italic font, used in math, not the math italic font, so $v$s would be better markup. Dec 4 '19 at 20:56
  • @DavidCarlisle $\mathit{vs}$ is meant to be a metavariable with a two-letter name, not a plural of $v$. Not sure if that makes a difference. Dec 8 '19 at 14:02
2

use the no-math option

\documentclass{article}
\usepackage[no-math]{fontspec}
\setmainfont{Source Serif Pro}[Scale=MatchLowercase]
\begin{document}
\thispagestyle{empty}
Singular $v$, plural $\mathit{vs}$, list \texttt{(cons $v$ $\mathit{vs}$)}.
\end{document}

enter image description here

3
  • answers the question, but $v$s is still better markup for the plural of $v$ :-) Dec 4 '19 at 20:57
  • @DavidCarlisle I didn't look at the meaning at all ;-) Dec 4 '19 at 21:21
  • @DavidCarlisle vs is actually a metavariable that stands for a list of values, not a plural of v. Dec 8 '19 at 14: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.