I am writing a book in the following codes:
\documentclass[12pt,b5paper]{ctexbook}
\usepackage[english]{babel}
\usepackage{amsfonts}
\usepackage[T1]{fontenc}
\usepackage[garamond]{mathdesign}
\begin{document}
The numbers in texts are
\begin{center}
0123456789,
\end{center}
and in math environment they are also
\[0123456789.\]
\end{document}
After compiling, they are the following way,
My GOAL is to change the numbers' in both texts and math modes to times but not to change to the font of the other texts and math modes. The following is the effect that I want to get.
NOTE: 1. I don't want to change the font of other non-number texts or non-number math mode. 2. The numbers I talked about here consist of page numbers, enumerating numbers, mathematical numbers and so on.
How can I get these? Any help would be appreciated and welcome!


fontspec? Or ... what kind of answer do you want here, given that no answer can give you what you want? (So I assume you'll comment on any answer 'This isn't what I want.') – cfr Jun 17 '18 at 15:03fontspectag suggests you might, but you might not know the implications. Otherwise, the answer is you can't. – cfr Jun 18 '18 at 01:46