Mike Wile
2008-07-22 12:25:04 UTC
I am trying to use the float package and I am receiving an error. Here is
what I have:
In the preamble:
\usepackage{float}
\floatstyle{ruled}
\newfloat{pseudo}{thp}{los}[chapter]
\floatname{pseudo}{Pseudocode}
In the text:
\begin{pseudo}[H] \tt
\caption{Pseudocode caption}
\begin{tabbing}
PreOrder\=($\mathcal{T}$) \\
\>visit {\rm macchiato} \\
\>PreOrder\=($\mathcal{L}$) \\
\> \>visit {\rm complexify} \\
\> \>PreOrder\=({\rm clueless}) \\
\> \> \>visit {\rm clueless} \\
\> \> \>PreOrder\=($\emptyset$) \\
\> \> \>PreOrder\=($\emptyset$) \\
\> \>PreOrder\=({\rm jazzed}) \\
\> \> \>visit {\rm jazzed} \\
\> \> \>PreOrder\=($\emptyset$) \\
\> \> \>PreOrder\=($\emptyset$) \\
\>PreOrder\=($\mathcal{R}$) \\
\> \>visit {\rm poset} \\
\> \>PreOrder\=({\rm phat}) \\
\> \> \>visit {\rm phat} \\
\> \> \>PreOrder\=($\emptyset$) \\
\> \> \>PreOrder\=($\emptyset$) \\
\> \>PreOrder\=({\rm sheafify}) \\
\> \> \>visit {\rm sheafify} \\
\> \> \>PreOrder\=($\emptyset$) \\
\> \> \>PreOrder\=($\emptyset$)
\end{tabbing}
\end{pseudo}
THIS RUNS FINE!
If I change the [H] to [t], I get this message:
! You can't use `\vadjust' in internal vertical mode.
\endpseudo ...ty \else \vadjust
{\penalty -\@Miv \vbox {}\pen...
l.1265 \end{pseudo}
I am using the color package and I thought I had read that that might be
a problem. Only think is, the author is using the color package and it
works fine for him.
Thanks in advance.
what I have:
In the preamble:
\usepackage{float}
\floatstyle{ruled}
\newfloat{pseudo}{thp}{los}[chapter]
\floatname{pseudo}{Pseudocode}
In the text:
\begin{pseudo}[H] \tt
\caption{Pseudocode caption}
\begin{tabbing}
PreOrder\=($\mathcal{T}$) \\
\>visit {\rm macchiato} \\
\>PreOrder\=($\mathcal{L}$) \\
\> \>visit {\rm complexify} \\
\> \>PreOrder\=({\rm clueless}) \\
\> \> \>visit {\rm clueless} \\
\> \> \>PreOrder\=($\emptyset$) \\
\> \> \>PreOrder\=($\emptyset$) \\
\> \>PreOrder\=({\rm jazzed}) \\
\> \> \>visit {\rm jazzed} \\
\> \> \>PreOrder\=($\emptyset$) \\
\> \> \>PreOrder\=($\emptyset$) \\
\>PreOrder\=($\mathcal{R}$) \\
\> \>visit {\rm poset} \\
\> \>PreOrder\=({\rm phat}) \\
\> \> \>visit {\rm phat} \\
\> \> \>PreOrder\=($\emptyset$) \\
\> \> \>PreOrder\=($\emptyset$) \\
\> \>PreOrder\=({\rm sheafify}) \\
\> \> \>visit {\rm sheafify} \\
\> \> \>PreOrder\=($\emptyset$) \\
\> \> \>PreOrder\=($\emptyset$)
\end{tabbing}
\end{pseudo}
THIS RUNS FINE!
If I change the [H] to [t], I get this message:
! You can't use `\vadjust' in internal vertical mode.
\endpseudo ...ty \else \vadjust
{\penalty -\@Miv \vbox {}\pen...
l.1265 \end{pseudo}
I am using the color package and I thought I had read that that might be
a problem. Only think is, the author is using the color package and it
works fine for him.
Thanks in advance.