0

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!

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

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

  • 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 '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 1 '17 at 11:15

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.