
アルゴリズム環境でいくつかの疑似コードを記述していますが、アルゴリズムのタイトルとインデックス番号のフォント サイズを小さくするにはどうすればよいでしょうか?
\begin{frame}{Proposal Algorithm}
\begin{minipage}{.49\textwidth}
\centering{\textcolor{red}{Proposal}}
\begin{algorithm}[H]
\begin{algorithmic}[10]
\tiny{
\STATE a
\WHILE {\textcolor{red}{$x>0$}}
\STATE Simulate $g\sim uniformm[0,1]$;\\
\STATE Simulate $y\sim \mathcal{N}(0,\sigma^2)$\\
\ENDWHILE
}
\end{algorithmic}
\caption{\small{$\Delta$- proposla new algorithm}}
\label{al122}
\end{algorithm}
\end{minipage}
\end{frame}
答え1
パッケージを使用してcaption
フォント サイズを変更できます。
\documentclass{beamer}
\setbeamertemplate{caption}[numbered]
\usepackage{caption}
\captionsetup[algorithm]{font=tiny}
\usepackage{algorithm,algorithmic}
\begin{document}
\begin{frame}{Proposal Algorithm}
\begin{minipage}{.49\textwidth}
\centering{\textcolor{red}{Proposal}}
\begin{algorithm}[H]
\begin{algorithmic}[10]
\tiny
\STATE a
\WHILE {\textcolor{red}{$x>0$}}
\STATE Simulate $g\sim uniformm[0,1]$;\\
\STATE Simulate $y\sim \mathcal{N}(0,\sigma^2)$\\
\ENDWHILE
\end{algorithmic}
\caption{$\Delta$- proposla new algorithm}
\label{al122}
\end{algorithm}
\end{minipage}
\end{frame}
\end{document}