1

In a document I'm using palatino for text (package newpxtext) and euler (package eulervm) for math.

If I use the package eulervm with no options, the digits, the commas and the periods in math mode are taken from palatino.

If I use the package eulervm with the option euler-digits, the digits, the commas and the periods in math mode are taken from euler.

How, in math mode, can I use the digits from euler and the commas and the periods from palatino?

Edit: a minimal code showing the differences:

\documentclass{minimal}
\usepackage{newpxtext}
\usepackage[euler-digits]{eulervm}
\begin{document}
Text with digits (0, 1, 2, 3, 4, 5, 6, 7, 8, 9), commas and periods.
Now in math mode, $0,1,2,3,4,5,6,7,8,9.$
\end{document}
  • 1
    Welcome to TeX.SE! Can you please add a short compilable code showing what you tried so far? – Mensch Oct 20 '17 at 16:19
1

I would make a virtue out of necessity, i.e., I would run the instruction \useosf so that "old-style" numerals are used in text mode. Incidentally, I would also load the eulervm package with the options small and euler-hat-accent.

Then, use text mode if the numerals do not belong to anything "math-y", and use math mode for numerals that are part of an equation.

I wouldn't bother changing around text-mode and math-mode commas and periods. In math-y material, commas that occur in sequence expressions -- for $i=1,2,\dots$ -- and in intervals -- `The closed interval $[0,1]$ -- usually won't occur in close proximity to text-mode commas. I doubt any readers would get confused over the two types of commas.

enter image description here

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{newpxtext} \useosf % use old-style numerals
\usepackage[small,euler-digits,euler-hat-accent,T1]{eulervm}
\begin{document}
Text mode: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, \^{a}, \^{c}, \^{z}.

Math mode: $0,1,2,3,4,5,6,7,8,9,\hat{a},\hat{c},\hat{z}.$
\end{document}

Math mode: $0,1,2,3,4,5,6,7,8,9,\hat{a}.$
\end{document}

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.