Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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}
share|improve this question
1  
"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

1 Answer 1

up vote 7 down vote accepted

I suggest to use the cfr-lm package.

\documentclass{article}

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

\begin{document}

344F9DA1EA1859437077CCA38923C67797BDB8F6

\texto{344F9DA1EA1859437077CCA38923C67797BDB8F6}

\end{document}
share|improve this answer
    
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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.