Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I don't know what is wrong, because I can see the output but it is compiling with error.

\documentclass{tufte-book}

\usepackage{amsmath}

\begin{document}
\begin{itemize}
\item \begin{tabular}{cc}
\[
\begin{cases}
& x=0.99 \\ & y=0.99
\end{cases} \]
& $\rightarrow$ \qquad $P\left( B | A \right) = 0.33$.
\end{tabular}
\item \begin{tabular}{cc}
\[
\begin{cases}
& x=0.99 \\ & y=0.995
\end{cases} \]
& $\rightarrow$ \qquad $P\left( B | A \right) = 0.498$.
\end{tabular}
\item \begin{tabular}{cc}
\[
\begin{cases}
& x=0.99 \\ & y=0.999
\end{cases} \]
& $\rightarrow$ \qquad $P\left( B | A \right) = 0.83$.
\end{tabular}
\end{itemize}
\end{document}

Any ideas?

share|improve this question

2 Answers 2

You might be interested in the following implementation, which is a little cleaner:

enter image description here

\documentclass{tufte-book}% http://ctan.org/pkg/tufte-latex
\usepackage{amsmath,array}% http://ctan.org/pkg/{amsmath,array}
\newcommand{\probability}[2]{%
  \left\{\begin{array}{@{}l<{\kern-\nulldelimiterspace}@{}}
    #1
    \end{array}\right. \qquad \rightarrow \qquad P\bigl( B \bigm| A \bigr) = #2
}  
\begin{document}
\begin{itemize}
  \item $\probability{x = 0.99 \\ y = 0.99\phantom{0}}{0.33}$
  \item $\probability{x = 0.99 \\ y = 0.995}{0.498}$
  \item $\probability{x = 0.99 \\ y = 0.999}{0.83}$
\end{itemize}
\end{document}
share|improve this answer
    
Shorter and nicer. –  Przemysław Scherwentke Jun 19 '13 at 2:01
    
It worked!! Thank you very much!!! –  Elisa Jun 19 '13 at 2:27

You have displayed math mode called by \[ inside a tabular. Please replace \[, \] by dollar signs, and if you need \cases to behave as in displayed mode, add \displaystyle after opening $'s, but it is not the case (sorry for a pun).

\documentclass{tufte-book}

\usepackage{amsmath}

\begin{document}
\begin{itemize}
\item \begin{tabular}{cc}
$
\begin{cases}
& x=0.99 \\ & y=0.99
\end{cases} $
& $\rightarrow$ \qquad $P\left( B | A \right) = 0.33$.
\end{tabular}
\item \begin{tabular}{cc}
$
\begin{cases}
& x=0.99 \\ & y=0.995
\end{cases} $
& $\rightarrow$ \qquad $P\left( B | A \right) = 0.498$.
\end{tabular}
\item \begin{tabular}{cc}
$
\begin{cases}
& x=0.99 \\ & y=0.999
\end{cases} $
& $\rightarrow$ \qquad $P\left( B | A \right) = 0.83$.
\end{tabular}
\end{itemize}
\end{document}

enter image description here

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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