大家好。我打算在演示文稿中使用 Beamer 中的枚举来比较两种算法。但是,我打算让每列中的每个连续行都出现。例如,第 1 列的步骤 1 到步骤 4,然后第 2 列的步骤 1 到步骤 4。以下是一个例子:
\documentclass{beamer}
\mode<presentation>{\usetheme{Madrid}}
\usepackage{array}
\begin{document}
\begin{frame}{GA versus $\tau$-Leaping}{}
\centering
\begin{tabular}{>{\onslide<1->}c >{\onslide<2->}c}
% \hline
GA & $\tau$-Leaping \\ % \hline
step 1 & step 1 \\
% \hline
step 2 & step 2 \\
% \hline
step 3 & step 3 \\
% \hline
step 4 & step 4 \\
% \hline
\end{tabular}
\end{frame}
\end{document}
每列如下所示:
\documentclass{beamer}
\usepackage{enumitem}
\begin{document}
\begin{enumerate}[label=\textbf{\textcolor{cyan}{STEP \arabic*}}]
\item
Develop the model according to the chemistry of reaction in Table 1
\item
By applying the stochastic constants, \(c_{\mu}\),compute the
respective cummulative propensities for each of the chain reaction ,\(R_{\mu}\) by using the
equation :
\begin{equation*}
\alpha_{\mu} = \sum_{\mu}^{}c_{\mu}h_{\mu}
\end{equation*}
Where \(\mu =(1,2,3,\ldots ,N\)) and \(h_{\mu}\) is the number of instant combination of
reactants for reaction, \(R_{\mu}\).
\end{enumerate}
\end{document}
答案1
我建议使用列来并排显示内容:
\documentclass{beamer}
\begin{document}
\begin{frame}
\begin{columns}[T]
\begin{column}{.48\textwidth}
\begin{enumerate}[<+->][Step 1.]
\item
Develop the model according to the chemistry of reaction in Table 1
\item
By applying the stochastic constants, \(c_{\mu}\),compute the
respective cummulative propensities for each of the chain reaction ,\(R_{\mu}\) by using the
equation :
\begin{equation*}
\alpha_{\mu} = \sum_{\mu}^{}c_{\mu}h_{\mu}
\end{equation*}
Where \(\mu =(1,2,3,\ldots ,N\)) and \(h_{\mu}\) is the number of instant combination of
reactants for reaction, \(R_{\mu}\).
\end{enumerate}
\end{column}
\begin{column}{.48\textwidth}
\begin{enumerate}[<+->][Step 1.]
\item
Develop the model according to the chemistry of reaction in Table 1
\item
By applying the stochastic constants, \(c_{\mu}\),compute the
respective cummulative propensities for each of the chain reaction ,\(R_{\mu}\) by using the
equation :
\begin{equation*}
\alpha_{\mu} = \sum_{\mu}^{}c_{\mu}h_{\mu}
\end{equation*}
Where \(\mu =(1,2,3,\ldots ,N\)) and \(h_{\mu}\) is the number of instant combination of
reactants for reaction, \(R_{\mu}\).
\end{enumerate}
\end{column}
\end{columns}
\end{frame}
\end{document}