Share Latex の beamer の図や表に適切なラベルを付けるにはどうすればよいですか?

Share Latex の beamer の図や表に適切なラベルを付けるにはどうすればよいですか?

これは私の序文です:

\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}

図や表に「図 1: タイトル」、「表 1: タイトル」のように番号を付けたいのですが、現在は「図:」と「表:」だけです。これはすべての図と表に適用され、番号は付けられていません。また、コロンも含めたいです。

答え1

numberedsに関連付けられたテンプレートを使用することを指定しますcaption。つまり、

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

あなたの序文に:

ここに画像の説明を入力してください

\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}

フロートに番号を付けることに本当のメリットはないと思う。beamerプレゼンテーション内での参照は聴衆にとって見失いやすいものとなるため、プレゼンテーションを中断しないでください\againframe。図や表に関する聴衆の記憶をリフレッシュするには、スライドを再度表示 ( などを使用) するのが最善です。

関連情報