3

I have a report written in IEEEtran class. Now I need to make slides in beamer. There are lot of equations formatted according to \IEEEeqnarray with different alignments, so it will be cumbersome to transform them all to either \align or \eqnarray environments which are possible environments in beamer.

I am curious if there is any way to use \IEEEeqnarray environment in beamer class? I did try \usepackage{IEEEtrantools}, but its not working in following example code:

\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{kaka@tata.com} % 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}
  • It is possible. You are already using IEEEtrantools. – user11232 Apr 14 '15 at 15:46
  • It is commented out. When I use IEEEtrantools, it comes up with an error. – kaka Apr 14 '15 at 15:50
  • 1
    The code in the following answer works for me. How about for you? Does it work? – user11232 Apr 14 '15 at 15:53
  • 1
    if you are on MiKTeX, you might need to download mirrors.ctan.org/macros/latex/contrib/IEEEtran/tools/… into your working directory. If this is the fix, your error has been File IEEEtrantools.sty not found. \beamertemplatenavigationsymbolsempty and would have been interesting for us. – LaRiFaRi Apr 14 '15 at 15:56
  • This is the error I am getting ........File `IEEEtrantools.sty' not found. \beamertemplatenavigationsymbolsempty – kaka Apr 14 '15 at 15:58
5

You are already using IEEEtrantools, hence it is possible to use IEEEeqnarray. The following works:

\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}

enter image description here

However, as you are also loading mathtools, the job done by IEEEeqnarray can be easily done by 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}

As suggested by LaRiFaRi, you may want to add the option retainorigcmds to IEEEtrantools, if you want to use only IEEEeqnarray*.

  • same error....File `IEEEtrantools.sty' not found. \beamertemplatenavigationsymbolsempty – kaka Apr 14 '15 at 16:05
  • @kaka Then you have to install it. But it comes with both miktex and texlive. – user11232 Apr 14 '15 at 16:15
  • 1
    @kaka have you tried what I recommended in comment above? (tex.stackexchange.com/a/91672) – LaRiFaRi Apr 14 '15 at 16:17
  • I am looking and working on it. Many thanks. – kaka Apr 14 '15 at 16:18
  • 1
    @LaRiFaRi Many Thanks for guiding the blind. It is nicely working now. – kaka Apr 14 '15 at 16:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.