RE: }-warning when using \fromSlide inside tabular environment
"Hendri Adriaens" <[email protected]> Fri, 6 May 2005 14:40:14 +0200
| Newsgroups | gmane.comp.tex.latex.prosper.user |
|---|---|
| Message-ID | <[email protected]> |
> I get the warning
>
> ! Missing } inserted.
> <inserted text>
> }
> l.647 \end{slide}}
>
> when I used \fromSlide inside a tabular.
& and \\ can't be used in \fromSlide (and friends)
if not fully processed into boxes by, for instance,
the tabular environment. So, either have the full
tabular in a \fromSlide and if you don't want to
repeat the tabular everytime (as done, eg, here:
http://www.geocities.com/kijoo2000/prosper_guide.pdf
)
make sure the \fromSlide only contains a single cell.
Further, for maths, one should use `align' from amsmath
and \bm for bold math (\bf changes italic shape to roman)
and is not a LaTeX command (see your favorite manual or
the TeX FAQ for more info on that).
-Hendri.
\documentclass[pdf]{prosper}
\usepackage{amsmath}
\usepackage{bm}
\begin{document}
\overlays{4}{
\begin{slide}[Replace]{Direct reordering algorithm for PRSF}
Then
\begin{align*}
&P_l {\bm X}_0^{-1} (T_{K-1} T_{K-2} \ldots T_{1} T_{0}) {\bm X}_{0}
P_r =\\
&\fromSlide{2}{=\underbrace{P_l {\bm X}_0^{-1}}_{{\textstyle
S_0^{-1}}}T_{K-1}
\underbrace{{\bm X}_{K-1} P_r}_{{\textstyle S_{K-1}}}
\underbrace{P_l {\bm X}_{K-1}^{-1}}_{{\textstyle S_{K-1}^{-1}}}
T_{K-2} \underbrace{{\bm X}_{K-2} P_r}_{{\textstyle S_{K-2}}}
\ldots
}\\
&\fromSlide{2}{\ldots\underbrace{P_l {\bm X}_{2}^{-1}}_{{\textstyle
S_{2}^{-1}}}T_{1}
\underbrace{{\bm X}_{1} P_r}_{{\textstyle S_{1}}}
\underbrace{P_l{\bm X}_{1}^{-1}}_{{\textstyle S_{1}^{-1}}}
T_{0} \underbrace{{\bm X}_{0} P_r}_{{\textstyle S_{0}}} =
}\\
&\fromSlide{3}{=S_{0}^{-1}T_{K-1}S_{K-1}
S_{K-1}^{-1} T_{K-2} S_{K-2} \ldots
S_{2}^{-1} T_{1} S_{1}
S_{1}^{-1} T_{0} S_{0} =
}\\
&\fromSlide{4}{=\begin{bmatrix}
T_{22}^{(K-1)} & 0 \\
0 & T_{11}^{(K-1)} \\
\end{bmatrix}\ldots
\begin{bmatrix}
T_{22}^{(1)} & 0 \\
0 & T_{11}^{(1)} \\
\end{bmatrix}
\begin{bmatrix}
T_{22}^{(0)} & 0 \\
0 & T_{11}^{(0)} \\
\end{bmatrix},
}
\end{align*}
\end{slide}}
\end{document}
-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20