1

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.) – barbara beeton Dec 2 '14 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 '14 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). – user3237992 Dec 2 '14 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 '14 at 23:28
  • @Werner Thank you. I'd give you a vote, but I don't have the privilige to do that. – user3237992 Dec 3 '14 at 1:00
0

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

\renewcommand{\thefigure}{\arabic{figure}.}

Similarly, for tables, you can add

\renewcommand{\thetable}{\arabic{table}.}

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

\renewcommand{\theequation}{\arabic{equation}.}

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

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.