I am trying to typeset an old math paper that uses the text digits instead of the math digits in equations. E.g.
However, mathastext
loads the math digits font from the baskervillef
package in math environments by default. How can I change the default math digits font to the text digits font in math environments? Are there any solutions that do not require XeLaTeX
?
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[p,osf]{baskervillef}
\usepackage[basic, frenchmath]{mathastext}
\begin{document}
Text digit: $i \neq n + \text{1}$
Math digit: $i \neq n + 1$
\end{document}
Best Answer
You can declare the text font as a Math symbol font, then set up the digits to use it