When I use \ref{fig:sth}, LaTeX writes the number of the figure into the text. How do I make LaTeX automatically write a dot after the number of the figure/table/equation/etc.?

  • do you really want a dot if the reference is not at the end of a sentence? (i think this would be confusing.) Dec 2, 2014 at 22:32
  • Do you also have a dot after the figure number with the caption? As in Figure 1. This is a figure.?
    – Werner
    Dec 2, 2014 at 22:37
  • @Werner Yes, I do. It's because according to the grammatical rules of the language I speak I should write it like "1. ábra" ("ábra" means "Figure" in English). Dec 2, 2014 at 23:25
  • 1
    @user3237992: Then it may suffice to add \renewcommand{\thefigure}{\arabic{figure}.} to your preamble. This assumes that your figures are numbered on their own (no chapter/section prefix).
    – Werner
    Dec 2, 2014 at 23:28
  • @Werner Thank you. I'd give you a vote, but I don't have the privilige to do that. Dec 3, 2014 at 1:00

1 Answer 1


For an ending period with all appearances to a figure (both in the setting and the cross-referencing), you can change the representation


Similarly, for tables, you can add


to your preamble. For equations, one can do the same, of course, redefining


The above redefinitions assume that figures (and tables, equations) are not numbered within any other constructs (like sections).

You must log in to answer this question.

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