3

I'm preparing a beamer presentation and I have this part of code

\begin{center}
        \begin{figure}
            \includegraphics[width=6cm]{img1.png}
            \caption[Figura 1]{O Círculo Osculador de $\alpha$ em $s$.}
        \end{figure}
    \end{center}

that generates this enter image description here

I would like to know how to change the word "Figure" in "Figure 1" by another word because I would like to put the translation of "Figure" to my language in the beamer presentation.

Thanks in advance!

7
  • 3
    Have you tried \renewcommand{\figurename}{Figura} ? (tex.stackexchange.com/questions/17489/…)
    – Damien Dtx
    Dec 1, 2017 at 10:58
  • 1
    Use \usepackage[???]{babel} to load some language. Replace ??? by the language, for example, portuguese.
    – Sigur
    Dec 1, 2017 at 11:01
  • Also, you don't need to use center, just use \begin{figure}\centering.
    – Sigur
    Dec 1, 2017 at 11:02
  • @DamienDtx, I tried now, but it doesn't works
    – George
    Dec 1, 2017 at 11:04
  • @Sigur, yes, I'm using the \usepackage[portuguese]{babel}
    – George
    Dec 1, 2017 at 11:04

2 Answers 2

3

babel is the right package to translate variables to some language.

\documentclass{beamer}
\usepackage[portuguese]{babel}

\begin{document}
\begin{frame}
\begin{figure}%
    \centering%
    \includegraphics[width=3cm]{example-image-a}%
    \caption{text}
    \label{fig.A}
\end{figure}
\end{frame}
\end{document}

enter image description here

2
  • thanks! I realized that the babel package was in English language, I just change to Portuguese language and works without put the label command and the renewcommand suggested by DamienDtx.
    – George
    Dec 1, 2017 at 11:12
  • \label{fig.a} has nothing to do with language, it is just to refer to the image with \ref{fig.a}, which of course have no sense if figure has no number.
    – Sigur
    Dec 1, 2017 at 11:15
2

I usually do that so I don't have to use packages

\renewcommand{\figurename}{Εικόνα}

You must log in to answer this question.

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