Math & ScienceBeamer and array environment

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
workerbee
Posts: 43
Joined: Sat Nov 22, 2008 1:53 am

Beamer and array environment

Post by workerbee »

Hi All,

I was making a Beamer presentation and am listing formulas and equations in a couple of the slides. Some of them I've used an array environment but I've noticed there's no corresponding equation number. Is there a way I can get that equation number to show and fall in line with other following equations?

Here's my coding:

Code: Select all

\begin{frame}
\frametitle{The Proportional Hazard Model}
\begin{equation}
T=\min\{T_0,I\}
\end{equation}
\[
\delta = \left\{
\begin{array}{l l}
1 & if \quad T_{0>I} \\
0 & if \quad T_{0\leq I}\\
\end{array} \right. \]
\begin{equation} \label{PH}
h(t)=\lambda(t)Exp(\beta X)
\end{equation}
\end{frame}
BTW, the attached image is what I have. I want to input an equation number (#2) for the array-ed data.
Attachments
array.jpg
array.jpg (23.83 KiB) Viewed 12162 times

Recommended reading 2024:

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

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

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Re: Beamer and array environment

Post by Stefan Kottwitz »

Hi,

using the array environment is not the cause. You have used \[...\] for this equation, just use \begin{equation} ... \end{equation} instead. Btw. instead of array you could use the cases environment of amsmath.

Stefan
LaTeX.org admin
workerbee
Posts: 43
Joined: Sat Nov 22, 2008 1:53 am

Re: Beamer and array environment

Post by workerbee »

Thanks Stefan!
Post Reply