1

How can I change the numbers of the text font with the math font numbers and the other way around using XeLaTeX?

3
  • 1
    Can you provide a basic example?
    – egreg
    Commented 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?
    – Sverre
    Commented May 7, 2015 at 18:15
  • You could use siunitx for the numbers, it uses the mathrm font by default.
    – MaxNoe
    Commented May 7, 2015 at 19:44

1 Answer 1

2

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.

You must log in to answer this question.

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