[Tex/LaTex] How to get All Math Numbers in Italics

fouriermath-mode

I am currently trying to get all numbers in math mode in italics. However, I find no way of re-defining the numbers 0,1,2,3,4,5,6,7,8,9 to make them italics as long as they are in a math environment. I am using the Fourier font, both for text and math. Though it's not quite useful, here is a small MWE.

\documentclass{article}
% PACKAGES LOADING
\usepackage[sloped]{fourier} % To customise font.
\begin{document}
$0123456789$
\end{document}

The numbers in the output (below) are of course not in italics, which is what I wish.

enter image description here

Any help will be appreciated.

PS: I am aware that this may be considered bad typesetting practices, but I want to see how it looks in my document anyway.

PS2: I found several closely-related questions in the site; but none of them addressed this question in particular. If this is already answered in the site; I am sorry: I never saw it in my search.

Best Answer

enter image description here

normally you would have been able to allocate digits to the letter alphabet but that doesn't seem to give italic digits in this setup, so I allocated a new math alphabet.

\documentclass{article}
% PACKAGES LOADING
\usepackage[sloped]{fourier} % To customise font.
\DeclareSymbolFont{mathit}{T1}{fut\mathfamilyextension}{m}{it}%

\DeclareMathSymbol{0}{\mathord}{mathit}{`0}
\DeclareMathSymbol{1}{\mathord}{mathit}{`1}
\DeclareMathSymbol{2}{\mathord}{mathit}{`2}
\DeclareMathSymbol{3}{\mathord}{mathit}{`3}
\DeclareMathSymbol{4}{\mathord}{mathit}{`4}
\DeclareMathSymbol{5}{\mathord}{mathit}{`5}
\DeclareMathSymbol{6}{\mathord}{mathit}{`6}
\DeclareMathSymbol{7}{\mathord}{mathit}{`7}
\DeclareMathSymbol{8}{\mathord}{mathit}{`8}
\DeclareMathSymbol{9}{\mathord}{mathit}{`9}
\begin{document}
$0123456789$
\end{document}
Related Question