5

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}
  • 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 Sereno 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
7

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 Sereno 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

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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