3

I am using pdfLaTeX and the gfsdidot package for my document.

According to the documentation,

The package provides also a matching small caps shape for both latin and greek including old style numbers.

I read a lot of related questions on this website, but I didn't find how to use old style digits for the whole document.

\documentclass{article}

\usepackage{gfsdidot}
\usepackage[T1]{fontenc}

\begin{document}
123
\end{document}
2
  • 1
    it doesn't look as if the package implement a default osf-option. You get old style numbers only if you use \scshape or \oldstylenums{123}. Mar 2 at 18:04
  • @UlrikeFischer Is there a way to apply oldstylenums to all numbers without messing with active characters?
    – richardIII
    Mar 2 at 18:09

1 Answer 1

4

Run it with lualatex:

\documentclass{article}

\usepackage{fontspec}
\setmainfont{GFSDidot}[
   Extension = .otf,
  Numbers = OldStyle,
  BoldFont = *Bold,
  ItalicFont = *Italic,
  BoldItalicFont = *BoldItalic,
]
\begin{document}
    0123456789
\end{document}

enter image description here

2
  • With your code, \textbf does not longer work
    – richardIII
    Mar 2 at 20:38
  • See edited code ...
    – user187802
    Mar 2 at 20:54

You must log in to answer this question.

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