Como rotular corretamente as figuras e tabelas no beamer no Share Latex?

Como rotular corretamente as figuras e tabelas no beamer no Share Latex?

Este é o meu preâmbulo:

\documentclass{beamer}
\usetheme{CambridgeUS}
\usepackage{graphicx,mathabx}

\begin{document}

\begin{frame}
\titlepage
\frametitle{} 
\end{frame}

\begin{frame}
\frametitle{Main Results}
\framesubtitle{Graphical Analysis}
\begin{figure}[h!]
\centering\includegraphics[width=0.6\textwidth] {example-image}
\caption{Effect of increasing $\widecheck{G}$, and decreasing $\widehat{G}$ on $x^*$}
\end{figure}
\end{frame}

\begin{frame}
\frametitle{Appendices}
\framesubtitle{Appendix 2}
\begin{table}[htbp]
\caption{Parametric values}
\begin{center}
\begin{tabular}{|c|c|c|}\hline
Parameter & Value\\\hline
$\alpha$ & 0.6\\
$\beta$ & 0.5\\
$\widehat{G}$ & 90\\
$\widecheck{G}$ & 50\\
$\bar{P}$ & 10\\\hline
\end{tabular}
\end{center}
\end{table}
\end{frame}

\end{document}

Quero numerar minhas figuras e tabelas, como "Figura 1: O título", "Tabela 1: Título". No momento, tenho apenas "Figura:" e "Tabela:". Isto é para todas as figuras e tabelas, e elas não são numeradas. Além disso, quero os dois pontos incluídos.

Responder1

Especifique que deseja usar o numberedmodelo associado a captions. Ou seja, adicione

\setbeamertemplate{caption}[numbered]{}% Number float-like environments

ao seu preâmbulo:

insira a descrição da imagem aqui

\documentclass{beamer}
\usetheme{CambridgeUS}
\usepackage{graphicx,mathabx}

\setbeamertemplate{caption}[numbered]{}% Number float-like environments

\begin{document}

\begin{frame}
  \titlepage
  \frametitle{} 
\end{frame}

\begin{frame}
  \frametitle{Main Results}
  \framesubtitle{Graphical Analysis}
    \begin{figure}[h!]
    \includegraphics[width=0.6\textwidth] {example-image}
    \caption{Effect of increasing $\widecheck{G}$, and decreasing $\widehat{G}$ on $x^*$}
  \end{figure}
\end{frame}

\begin{frame}
  \frametitle{Appendices}
  \framesubtitle{Appendix 2}
  \begin{table}[htbp]
    \caption{Parametric values}
    \begin{tabular}{|c|c|c|}\hline
      Parameter & Value\\\hline
      $\alpha$ & 0.6\\
      $\beta$ & 0.5\\
      $\widehat{G}$ & 90\\
      $\widecheck{G}$ & 50\\
      $\bar{P}$ & 10\\\hline
    \end{tabular}
  \end{table}
\end{frame}

\end{document}

Não vejo o benefício real de numerar carros alegóricos em umbeamerapresentação, pois as referências dentro de tal apresentação serão perdidas para o público. Seria melhor revisitar um slide (usando algo como \againframe) para refrescar a memória do público sobre alguma figura/tabela.

informação relacionada