How can I change the numbers of the text font with the math font numbers and the other way around using XeLaTeX?
-
1Can you provide a basic example?– egregCommented May 7, 2015 at 18:05
-
As I understand your question, you want to use numbers from the same font in both text and math environments. Won't you get that by just using the same font everywhere?– SverreCommented May 7, 2015 at 18:15
-
You could use siunitx for the numbers, it uses the mathrm font by default.– MaxNoeCommented May 7, 2015 at 19:44
Add a comment
|
1 Answer
Try giving (say)
\setromanfont{Bitstream Charter}
\setmathfont[range=\mathup/{num}]{Courier New}
\setmathfont[range=\mathit/{latin,Latin,greek,Greek}]{Bitstream Charter}
This will produce numbers in Bitstream Charter font in normal text and Courier New font numbers in Math mode.