# Mixing oldstylenums with strings

I want to display the following string:

344F9DA1EA1859437077CCA38923C67797BDB8F6


Using \oldstylenums, but the alphabetic characters are messed up. Any ideas (using LaTeX and CM/CL fonts), without resorting to:

\oldstylenums{344}F\oldstylenums{9}DA\oldstylenums{1} ...


Minimal working example:

\documentclass[a4paper,10pt,pdftex]{article} % define the title

\usepackage{textcomp}

\begin{document}
\oldstylenums{344F9DA1EA1859437077CCA38923C67797BDB8F6}
\end{document}

-
"I'm from Missouri, you've got to show me." In other words, please provide a working minimal example that shows what exactly is "messed up". –  lockstep Mar 14 '11 at 22:01
Sure, I added it, but it's pretty straightforward. –  Hugo S Ferreira Mar 14 '11 at 22:06
Sorry for being a little snippy -- I provided an answer and hope that it is helpful. –  lockstep Mar 14 '11 at 22:13

I suggest to use the cfr-lm package.

\documentclass{article}

\usepackage[rm={oldstyle=false}]{cfr-lm}

\begin{document}

344F9DA1EA1859437077CCA38923C67797BDB8F6

\texto{344F9DA1EA1859437077CCA38923C67797BDB8F6}

\end{document}

-
Nice, but that will make everything oldstyle... I'm looking to format just a specific block. –  Hugo S Ferreira Mar 14 '11 at 22:14
@Hugo: You didn't say so before. ;-) Answer updated. –  lockstep Mar 14 '11 at 22:22