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!

George
  • 221

2 Answers2

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

Sigur
  • 37,330
  • 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 01 '17 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 01 '17 at 11:15
2

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

\renewcommand{\figurename}{Εικόνα}
6Js6s6
  • 21