[Tex/LaTex] Figure caption and reference formatting

captionslanguages

I'd like to format my captions of figures. The main source of the problem is in my native language, Hungarian I need to reverse the figure number and the word 'figure'.
My current code:


\renewcommand{\figurename}{}
\renewcommand{\thefigure}{\textbf{\arabic{figure}. ábra}}

And it looks like this, under the figures (ábra means figure):

1. ábra: The caption.

This is exactly what I want there, but this code has side effects.

First of it. When I refer to a figure with the code
\ref{fig:marker}, it will look like this:
You can see it on the figure 1.

And I don't want it to be bold in the reference.

Second. With this code, the list of figure look like this:
enter image description here

So it is also bold, contains the word 'figure' and overlapped with the caption. I know this is due to my renewcommand codes…

And the last one, which is the least important, and I think I need to write a macro to it.

When I refer to a figure I'd need to add a suffix to the word 'figure' in Hungarian, in order to get the meaning ON the figure. This thing is more complicated because the suffix has 3 forms according to the number. So I'd need to check if the number is 1 or 2 then the refered word would be this and if it is 3 or 6… then another.

My question about it: Is this possible to achieve at all? If not I will use another sentence when I refer, which is acceptable, but not so elegant. 🙂

Thank you in advance,
Greg

Best Answer

You should use the babel package and set the language to hungarian. This also changes the typesetting rules. If Number Figure is the proper sequence in Hungarian, it should automatically change this. On this (Hungarian) site you can find Babel documentation.

Edit: If you check page 207 of this document is says:

In the part, chapter, appendix name the number (or letter) goes before the name, so ‘Part I’ translates to ‘I. rész’.

The same is true with captions (‘Table 2.1’ goes to ‘2.1. táblázat’).

the command you should use in your preamble is:

\usepackage[hungarian]{babel}

or

\usepackage[magyar]{babel}
Related Question