I'm searching for a way to enforce text figures in LaTeX tables, figures, and the references (and cross-referencing) to tables and figures.

For instance, the table number should be written with text figure format.

Please let me know if something is not clear. Any idea would be helpful.

  • try \renewcommand{\thefigure}{\oldstylenums{\arabic{figure}}} for example
    – touhami
    Sep 14, 2016 at 15:31
  • Added comment to the answer
    – tandem
    Sep 14, 2016 at 15:48

1 Answer 1


Here is a solution


% just for the example



my nice figure \ref{nf} and  my table \ref{nt}\lipsum[1]
\caption{Nice  figure}
\caption{Nice table}\label{nt}
a & 1 \\ 
b & 2 \\ 

Update if chapters used

\ifnum\value{chapter}>0 \oldstylenums{\arabic{chapter}}.\fi
\ifnum\value{chapter}>0 \oldstylenums{\arabic{chapter}}.\fi\oldstylenums{\arabic{table}}}

enter image description here

  • This works great if you are referring to a figure in a section.. not when the figure is in a given section of a chapter.
    – tandem
    Sep 14, 2016 at 15:47
  • @tandem answer updated.
    – touhami
    Sep 14, 2016 at 17:28
  • thanks for the update. but now there is an error.. here it is: Package textcomp Warning: Oldstyle digits unavailable for family ptm. (textcomp) Lining digits used instead on input line 102.
    – tandem
    Sep 14, 2016 at 19:14
  • @tandem you didn't provide a minimal example so i can't guess what fonts and packages are used.
    – touhami
    Sep 14, 2016 at 19:24
  • 1
    @tandem I copied the short block that has the Update above (answer) and the line mentioned in my last comment.
    – Johannes_B
    Sep 19, 2016 at 19:16

You must log in to answer this question.

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