LaTeX/Beamer,柱环境。覆盖层的水平对齐

LaTeX/Beamer,柱环境。覆盖层的水平对齐,latex,alignment,beamer,Latex,Alignment,Beamer,我正在尝试使用beamer来准备演示文稿。我想有两个专栏,介绍一些代数运算。左边是所采取步骤的说明,右边是结果 \documentclass{beamer} \begin{document} \begin{frame}[t] Not in a column \begin{columns}[t] \begin{column}{0.5\textwidth} \only<2->{Some text} \onl

我正在尝试使用
beamer
来准备演示文稿。我想有两个专栏,介绍一些代数运算。左边是所采取步骤的说明,右边是结果

\documentclass{beamer}
\begin{document}

   \begin{frame}[t]
   Not in a column
   \begin{columns}[t]
      \begin{column}{0.5\textwidth}
            \only<2->{Some text}

            \only<3->{
                      Lorem ipsum dolor sit amet, consectetur adipiscing elit.
                     }
      \end{column}
      \begin{column}{0.5\textwidth}
         \only<2->
         {
         \begin{equation}
            E = mc^2
         \end{equation}
         }

         \only<3->
         {
         \begin{equation}
            F = ma
         \end{equation}
         }
      \end{column}
   \end{columns}
   \end{frame}
\end{document}
\documentclass{beamer}
\开始{document}
\开始{frame}[t]
不在列中
\开始{columns}[t]
\开始{column}{0.5\textwidth}
\只有{一些文本}
\只有{
Lorem ipsum dolor sit amet,是一位杰出的献身者。
}
\结束{column}
\开始{column}{0.5\textwidth}
\只有
{
\开始{等式}
E=mc^2
\结束{方程}
}
\只有
{
\开始{等式}
F=ma
\结束{方程}
}
\结束{column}
\结束{columns}
\结束{帧}
\结束{document}
这里有一些乳胶可以做到这一点(用垃圾词和方程式)。当这是编译的文本和数学是不一致的。我真的不希望它们是一样的,因为LaTeX将在每一列中单独定位文本,而不关心其他框架


有没有人对如何达到我想要的结果有什么想法。我根本不支持列,但我支持方程式编号。

通过编号获得对齐方程式的首选方法是amsmath软件包的
align
环境。请参阅以获得帮助。很简单,比如:

\begin{align}
     f(x) & = \cos^2 x \\
     g(x) & = \sin^2 x
\end{align}
\begin{align}
     f(x) & = \cos^2 x & \text{this is the first function} \\
     g(x) & = \sin^2 x & \text{this is the second function} 
\end{align}
有很多变体试图覆盖最可能的方程对齐需求(同样,请查看文档)

至于你的两列校样格式,我不确定最好的方式。一种快速而肮脏的方法是将其添加为环境中的第二列,类似于:

\begin{align}
     f(x) & = \cos^2 x \\
     g(x) & = \sin^2 x
\end{align}
\begin{align}
     f(x) & = \cos^2 x & \text{this is the first function} \\
     g(x) & = \sin^2 x & \text{this is the second function} 
\end{align}
但这不利于多行解释,并将编号放在文本的右侧。我将尝试并思考一种方法(一种不涉及大量自定义环境的方法,因为肯定有人以前做过)

编辑:作为一个起点,此[排序]工作:

您无法在align环境中进行任何对齐(使事情变得混乱)(&D),并且存在一些垂直对齐问题-align环境将自身置于上方和下方,文本置于右侧单元格中。不过,也许它正朝着一个好的方向前进

\begin{tabular}{p{3 in}|l}
\begin{align} f(x) = \sin^2 x \end{align} & 
this is the first equation \\
\begin{align} g(x) = \cos^2 x \end{align} & 
this is the second equation
\end{tabular}

通常您会使用amsmath的align或align*环境,但不幸的是,它不能很好地与beamer配合使用(出于根本原因,没有人愿意修复)

在第106页有一个关于这个的部分,它与您所做的完全相同。显然,该文档中也描述了一种变通方法