1

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

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

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.