我在 beamer 环境中无法将一对列组合在一起\columns
。正如其他相关问题所建议的那样,我尝试修改列的宽度,但到目前为止没有任何变化。幻灯片如下所示:
代码如下:
\begin{frame}
Constrained parameters are stored in the file \texttt{work/models/func1.mdl}. Although there are some public parameters, by default all particle masses and external function calculated ones, by modifying the file it is posible to set all of them as public. \\ \pause
Finally, lets see some of the methods that can make the calculation of spectrum and of all public model constrains:\pause
\begin{columns}
\column[t]{0.5cm}
\begin{itemize}
\item \texttt{sortOddParticles(txt)}\\
\item \texttt{qNumbers(pName,\&spin2, \&charge3,\&cdim)}\footnote{The \& represents a memory direction in C}\\
\item \texttt{pdg2name(nPDG)}\\
\item \texttt{pMass(pName)}\\
\item \texttt{nextOdd(n,\&pMass)}\\
\end{itemize}
\column[t]{5cm}
\begin{itemize}
\item \texttt{findVal(name,\&val)}\\
%\item \texttt{findValW(name)}\\
%\item \texttt{printVar(FD)}\\
%\item \texttt{printMasses(FD,sort)}\\
%\item \texttt{printHiggsMasses(FD,sort)}\\
\end{itemize}
\end{columns}
\end{frame}
答案1
- 造成
\footnote
了麻烦,但您可以使用\footnotemark[1]
和\footnotetext[1]{}
来规避这个问题。 \column[t]{0.5cm}
对于专栏的内容来说当然太小了
\documentclass{beamer}
\begin{document}
\begin{frame}
\begin{columns}[onlytextwidth, T]
\begin{column}{.47\textwidth}
\begin{itemize}
\item \texttt{sortOddParticles(txt)}
\item \texttt{qNumbers(pName, \&spin2, \&charge3, \&cdim)}\footnotemark
\item \texttt{pdg2name(nPDG)}
\item \texttt{pMass(pName)}
\item \texttt{nextOdd(n,\&pMass)}
\end{itemize}
\end{column}
\begin{column}{.47\textwidth}
\begin{itemize}
\item \texttt{findVal(name,\&val)}
\item \texttt{findValW(name)}
\item \texttt{printVar(FD)}
\item \texttt{printMasses(FD,sort)}
\item \texttt{printHiggsMasses(FD, sort)}
\end{itemize}
\end{column}
\end{columns}
\footnotetext{The \& represents a memory direction in C}
\end{frame}
\end{document}
答案2
重点似乎是 \footnote。我修改了其他一些方面,但或多或少是出于美观的原因。
\documentclass{beamer}
\begin{document}
\begin{frame}
Constrained parameters are stored in the file
\texttt{work/models/func1.mdl}. Although there are some public
parameters, by default all particle masses and external function
calculated ones, by modifying the file it is posible to set all of
them as public. \\ \pause Finally, lets see some of the methods that
can make the calculation of spectrum and of all public model
constrains:\pause
\begin{columns}[t,onlytextwidth]
\begin{column}{0.47\linewidth}
\begin{itemize}
\item \texttt{sortOddParticles(txt)}\\
\item \texttt{qNumbers(pName,\&spin2, \&charge3,\&cdim)}%\footnote{The \& represents a memory direction in C}\\
\item \texttt{pdg2name(nPDG)}\\
\item \texttt{pMass(pName)}\\
\item \texttt{nextOdd(n,\&pMass)}\\
\end{itemize}
\end{column}
\begin{column}{0.47\linewidth}
\begin{itemize}
\item \texttt{findVal(name,\&val)}\\
\item \texttt{findValW(name)}\\
\item \texttt{printVar(FD)}\\
\item \texttt{printMasses(FD,sort)}\\
\item \texttt{printHiggsMasses(FD,sort)}\\
\end{itemize}
\end{column}
\end{columns}
\end{frame}
\end{document}
正如手册中所述:“首先要警告:使用脚注通常不是一个好主意。”[beameruserguide.pdf 中的第 12.12 节]