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}
3
  • 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
    Commented Mar 14, 2011 at 22:01
  • Sure, I added it, but it's pretty straightforward. Commented Mar 14, 2011 at 22:06
  • Sorry for being a little snippy -- I provided an answer and hope that it is helpful.
    – lockstep
    Commented Mar 14, 2011 at 22:13

1 Answer 1

7

I suggest to use the cfr-lm package.

\documentclass{article}

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

\begin{document}

344F9DA1EA1859437077CCA38923C67797BDB8F6

\texto{344F9DA1EA1859437077CCA38923C67797BDB8F6}

\end{document}
2
  • Nice, but that will make everything oldstyle... I'm looking to format just a specific block. Commented Mar 14, 2011 at 22:14
  • @Hugo: You didn't say so before. ;-) Answer updated.
    – lockstep
    Commented Mar 14, 2011 at 22:22

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .