是否可以在 beamer 中使用 \IEEEeqnarray?

是否可以在 beamer 中使用 \IEEEeqnarray?

我在课堂上写了一篇报告IEEEtran。现在我需要在 中制作幻灯片beamer。有很多根据 格式化的方程式,具有不同的对齐方式,因此将它们全部转换为或环境(这是 beamer 中的可能环境\IEEEeqnarray)会很麻烦。\align\eqnarray

我很好奇是否有办法\IEEEeqnarray在课堂上使用环境beamer?我试过了\usepackage{IEEEtrantools},但它在以下示例代码中不起作用:

\documentclass{beamer}
\mode<presentation> {   
    \usetheme{Warsaw} 
    \useoutertheme{infolines} } 
\usepackage{graphicx} % Allows including images 
\usepackage{booktabs} % Allows the use of \toprule, \midrule and \bottomrule in tables 
\usepackage{epstopdf} 
\usepackage[font=small,skip=0pt]{caption} 
\usepackage[backend=bibtex]{biblatex} \bibliography{references} 
\usepackage{bibentry} 
\usepackage{mathtools}
%\usepackage{IEEEtrantools} 
\beamertemplatenavigationsymbolsempty  
\usepackage[framemethod=tikz]{mdframed} %for slide transition %---------------------------------------------------------------------------------------- %  TITLE PAGE %----------------------------------------------------------------------------------------
\title[\date{\today} ]{Heading} % The short title 
\author{kaka} % Your name \institute[my univ] % Your institution as it will appear on the bottom of every slide, may be shorthand to save space { My University \\ % Your institution for the title page \medskip \textit{[email protected]} % Your email address } \date{\today} % Date, can be changed to a custom date

\begin{document}    
    \begin{frame}  
        \frametitle{Overlapping Composite Binary Hypotheses}   
        Due to the uncertainty in the noise variance, composite binary hypotheses ....... 
        \begin{IEEEeqnarray*}{rCl} 
            SNR&=&\dfrac{E[|\vec{a}^ {\ \dagger} \vec{b}s|^2]}{E[|\vec{a}^\dagger \vec{w}|^2]} \\ 
            &=& \frac{E[|s|^2]\cdot |\vec{a}^\dagger \vec{b}|^2}{E[|\vec{a}^\dagger \vec{w}|^2]} 
        \end{IEEEeqnarray*}             
    \end{frame} 
\end{document}

答案1

您已经在使用IEEEtrantools,因此可以使用IEEEeqnarray。以下工作:

\documentclass{beamer}


\mode<presentation> {

\usetheme{Warsaw}
\useoutertheme{infolines} }
\usepackage{graphicx} % Allows including images
\usepackage{mathtools} %
\usepackage{IEEEtrantools}   %% makes IEEE tools available in other classes.
\beamertemplatenavigationsymbolsempty
\begin{document}

 \begin{frame}  \frametitle{Overlapping Composite Binary Hypotheses}   Due to the uncertainty in the noise variance, composite binary hypotheses ....... 
\begin{IEEEeqnarray*}{rCl} 
SNR&=&\dfrac{E[|\vec{a}^ {\ \dagger} \vec{b}s|^2]}{E[|\vec{a}^\dagger \vec{w}|^2]} \\ 
&=& \frac{E[|s|^2]\cdot |\vec{a}^\dagger \vec{b}|^2}{E[|\vec{a}^\dagger \vec{w}|^2]} 
\end{IEEEeqnarray*}

  \end{frame}
\end{document}

在此处输入图片描述

然而,由于你也在加载mathtools,所以所做的工作IEEEeqnarray可以轻松地由align*

\documentclass{beamer}


\mode<presentation> {

\usetheme{Warsaw}
\useoutertheme{infolines} }
\usepackage{graphicx} % Allows including images
\usepackage{mathtools} %
\beamertemplatenavigationsymbolsempty
\begin{document}

 \begin{frame}  \frametitle{Overlapping Composite Binary Hypotheses}   Due to the uncertainty in the noise variance, composite binary hypotheses .......
\begin{align*}
SNR&=\dfrac{E[|\vec{a}^ {\ \dagger} \vec{b}s|^2]}{E[|\vec{a}^\dagger \vec{w}|^2]} \\
&= \frac{E[|s|^2]\cdot |\vec{a}^\dagger \vec{b}|^2}{E[|\vec{a}^\dagger \vec{w}|^2]} \end{align*}

  \end{frame}
\end{document}

正如 LaRiFaRi 所建议的,如果您只想使用,您可能需要将选项添加retainorigcmds到。IEEEtrantoolsIEEEeqnarray*

相关内容