GeneralConflict between amsmath and beamer?

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
curiouslearn
Posts: 105
Joined: Fri Nov 30, 2007 11:32 pm

Conflict between amsmath and beamer?

Post by curiouslearn »

Is there a known conflict between some commands between amsmath and beamer? I am trying to use the command pmatrix in a slide. I do get the desired matrix, but there are many errors thrown out during compilation. I am attaching both the code and the errors.

Thank you for any clarification.

Code: Select all

\documentclass{beamer}
\usepackage{amsmath}

\setbeameroption{show no notes}
\mode<presentation> {
\usetheme{Warsaw}
\setbeamercovered{transparent}
}
\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{footline}{}

\title{Title}
\author[Author names]{Author name}

\institute[institute name]
{\inst{}
Department of Beamer\\
Institute of Technology\\}
\date{}

\begin{document}

\begin{frame}
	\titlepage
\end{frame}
   
		\begin{frame}{Slide Title}
				\begin{itemize}
				    
					\item Technology:
					           \begin{equation*}
								  
					           	  	\begin{pmatrix}
										$p_{00}$ & $p_{01}$ \\
							   			$p_{10}$ & $p_{11}$
									\end{pmatrix}
									 
					           \end{equation*}                                          
                 
					\item Another item
				\end{itemize}			
		\end{frame}		  
\end{document}              
The errors when trying to compile the above:
LaTeX Font Warning: Font shape `OT1/cmss/m/n' in size <4> not available

Latex Error: ./beamer_pmatrix.tex:43 Missing $ inserted.

Latex Error: ./beamer_pmatrix.tex:43 Missing } inserted.

Latex Error: ./beamer_pmatrix.tex:43 Display math should end with $$.

Latex Error: ./beamer_pmatrix.tex:43 Extra }, or forgotten \endgroup.

Latex Error: ./beamer_pmatrix.tex:43 Missing $ inserted.

Latex Error: ./beamer_pmatrix.tex:43 Missing $ inserted.

Latex Error: ./beamer_pmatrix.tex:43 Missing $ inserted.

Latex Error: ./beamer_pmatrix.tex:43 Missing $ inserted.

Latex Error: ./beamer_pmatrix.tex:43 Missing $ inserted.

Latex Error: ./beamer_pmatrix.tex:43 Missing $ inserted.

Latex Error: ./beamer_pmatrix.tex:43 Missing $ inserted.

Latex Error: ./beamer_pmatrix.tex:43 Missing $ inserted.

Latex Error: ./beamer_pmatrix.tex:43 Missing $ inserted.

Latex Error: ./beamer_pmatrix.tex:43 Missing $ inserted.

Latex Error: ./beamer_pmatrix.tex:43 LaTeX Error: Bad math environment delimiter.

Latex Error: ./beamer_pmatrix.tex:43 Missing $ inserted.

Latex Error: ./beamer_pmatrix.tex:43 Display math should end with $$.

LaTeX Font Warning: Size substitutions with differences

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

phi
Posts: 577
Joined: Tue Oct 21, 2008 8:10 pm

Re: Conflict between amsmath and beamer?

Post by phi »

The contents of pmatrix are already in math mode, so you leave the math mode in every cell, but the subscripts don't work in text mode. Simply remove all dollar signs inside the pmatrix environment. Furthermore, be aware of paragraph breaks, they are inserted whenever you input an empty line, which is not supported everywhere, especially in math environments. So please remove all empty lines between \begin{itemize} and \end{itemize}, unless you explicitly want paragraphs there.
curiouslearn
Posts: 105
Joined: Fri Nov 30, 2007 11:32 pm

Re: Conflict between amsmath and beamer?

Post by curiouslearn »

Thanks phi. I thought I had tried it even without the dollar signs...apparently I had not. I removed the blank lines and the $ signs and it worked great.

Thanks again.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10320
Joined: Mon Mar 10, 2008 9:44 pm

Conflict between amsmath and beamer?

Post by Stefan Kottwitz »

Hi,

if you want to remove the beamer warnings have a look at: How to get rid of those beamer warnings.

Stefan
LaTeX.org admin
Post Reply