<div dir="ltr"><br><br><div class="gmail_quote">On Fri, Jan 21, 2011 at 2:49 AM, jfbu <span dir="ltr"><<a href="mailto:jfbu@free.fr">jfbu@free.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
The following has its problems but it partially solves your problem:<br>
<br>
\documentclass{minimal}<br>
\DeclareSymbolFont{digitsfont}{OT1}{cmr}{m}{n}<br>
\SetSymbolFont{digitsfont}{bold}{OT1}{cmtt}{m}{n}<br>
\DeclareMathVersion{ttfordigits}<br>
\SetSymbolFont{digitsfont}{ttfordigits}{OT1}{cmtt}{m}{n}<br>
\DeclareMathSymbol{0}{\mathord}{digitsfont}{`0}<br>
\DeclareMathSymbol{1}{\mathord}{digitsfont}{`1}<br>
\DeclareMathSymbol{2}{\mathord}{digitsfont}{`2}<br>
\DeclareMathSymbol{3}{\mathord}{digitsfont}{`3}<br>
\DeclareMathSymbol{4}{\mathord}{digitsfont}{`4}<br>
\DeclareMathSymbol{5}{\mathord}{digitsfont}{`5}<br>
\DeclareMathSymbol{6}{\mathord}{digitsfont}{`6}<br>
\DeclareMathSymbol{7}{\mathord}{digitsfont}{`7}<br>
\DeclareMathSymbol{8}{\mathord}{digitsfont}{`8}<br>
\DeclareMathSymbol{9}{\mathord}{digitsfont}{`9}<br>
\let\oldmathbf\mathbf<br>
\renewcommand\mathbf[1]{\mbox{{\mathversion{ttfordigits}$\oldmathbf{#1}$}}}<br>
<br>
\begin{document}<br>
\[\mathbf{letters\ should\ be\ bold\ and\ digits\ in\ typewriter\ face:1234567890}\]<br>
We know try without \texttt{$\backslash$mathbf} but with a \texttt{$\backslash$boldmath} declaration:\boldmath<br>
\[these\ digits\ are\ again\ in\ tt\ font:1234567890\]<br>
But perhaps one does want the digits to be also bold in that case, then the<br>
\begin{verbatim}<br>
\SetSymbolFont{digitsfont}{bold}{OT1}{cmtt}{m}{n}<br>
\end{verbatim}<br>
from the preamble should be<br>
\begin{verbatim}<br>
\SetSymbolFont{digitsfont}{bold}{OT1}{cmr}{bx}{n}<br>
\end{verbatim}<br>
However \$\texttt{$\backslash$mathbf}\{0123456789\}\$ would then give digits<br>
in cmtt, and non bold, also after \texttt{$\backslash$boldmath}, which might<br>
not be what is wanted.<br>
\end{document}<br>
<br>
Regards,<br>
Jean-Francois Burnol<br>
<br></blockquote><div><br><br>Thanks </div></div></div>