Discussion:
Float package problem
(too old to reply)
Mike Wile
2008-07-22 12:25:04 UTC
Permalink
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.
Joseph Wright
2008-07-22 13:00:02 UTC
Permalink
Post by Mike Wile
I am trying to use the float package and I am receiving an error. Here is
\usepackage{float}
\floatstyle{ruled}
\newfloat{pseudo}{thp}{los}[chapter]
\floatname{pseudo}{Pseudocode}
\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!
! You can't use `\vadjust' in internal vertical mode.
\endpseudo ...ty \else \vadjust
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.
I made a full example (and switched to NFSS); all works fine:

\documentclass{article}

\usepackage{float}
\newfloat{pseudo}{thp}{los}
\begin{document}

Some text as filler
\begin{pseudo}[t]
\ttfamily
\begin{tabbing}
PreOrder\=($\mathcal{T}$) \\
\>visit \textrm{macchiato} \\
\>PreOrder\=($\mathcal{L}$) \\
\> \>visit \textrm{complexify} \\
\> \>PreOrder\=(\textrm{clueless}) \\
\> \> \>visit \textrm{clueless} \\
\> \> \>PreOrder\=($\emptyset$) \\
\> \> \>PreOrder\=($\emptyset$) \\
\> \>PreOrder\=(\textrm{jazzed}) \\
\> \> \>visit \textrm{jazzed} \\
\> \> \>PreOrder\=($\emptyset$) \\
\> \> \>PreOrder\=($\emptyset$) \\
\>PreOrder\=($\mathcal{R}$) \\
\> \>visit \textrm{poset} \\
\> \>PreOrder\=(\textrm{phat}) \\
\> \> \>visit \textrm{phat} \\
\> \> \>PreOrder\=($\emptyset$) \\
\> \> \>PreOrder\=($\emptyset$) \\
\> \>PreOrder\=(\textrm{sheafify}) \\
\> \> \>visit \textrm{sheafify} \\
\> \> \>PreOrder\=($\emptyset$) \\
\> \> \>PreOrder\=($\emptyset$)
\end{tabbing}
\end{pseudo}
\end{document}

Joseph Wright
Mike Wile
2008-07-22 13:04:20 UTC
Permalink
in article
Post by Joseph Wright
Post by Mike Wile
I am trying to use the float package and I am receiving an error. Here is
\usepackage{float}
\floatstyle{ruled}
\newfloat{pseudo}{thp}{los}[chapter]
\floatname{pseudo}{Pseudocode}
\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!
! You can't use `\vadjust' in internal vertical mode.
\endpseudo ...ty \else \vadjust
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.
\documentclass{article}
\usepackage{float}
\newfloat{pseudo}{thp}{los}
\begin{document}
Some text as filler
\begin{pseudo}[t]
\ttfamily
\begin{tabbing}
PreOrder\=($\mathcal{T}$) \\
\>visit \textrm{macchiato} \\
\>PreOrder\=($\mathcal{L}$) \\
\> \>visit \textrm{complexify} \\
\> \>PreOrder\=(\textrm{clueless}) \\
\> \> \>visit \textrm{clueless} \\
\> \> \>PreOrder\=($\emptyset$) \\
\> \> \>PreOrder\=($\emptyset$) \\
\> \>PreOrder\=(\textrm{jazzed}) \\
\> \> \>visit \textrm{jazzed} \\
\> \> \>PreOrder\=($\emptyset$) \\
\> \> \>PreOrder\=($\emptyset$) \\
\>PreOrder\=($\mathcal{R}$) \\
\> \>visit \textrm{poset} \\
\> \>PreOrder\=(\textrm{phat}) \\
\> \> \>visit \textrm{phat} \\
\> \> \>PreOrder\=($\emptyset$) \\
\> \> \>PreOrder\=($\emptyset$) \\
\> \>PreOrder\=(\textrm{sheafify}) \\
\> \> \>visit \textrm{sheafify} \\
\> \> \>PreOrder\=($\emptyset$) \\
\> \> \>PreOrder\=($\emptyset$)
\end{tabbing}
\end{pseudo}
\end{document}
Joseph Wright
Thanks for the try. This works for me, too. It doesn't when I add
\usepackage{color}
Mike Wile
2008-07-22 13:05:48 UTC
Permalink
in article
Post by Joseph Wright
Post by Mike Wile
I am trying to use the float package and I am receiving an error. Here is
\usepackage{float}
\floatstyle{ruled}
\newfloat{pseudo}{thp}{los}[chapter]
\floatname{pseudo}{Pseudocode}
\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!
! You can't use `\vadjust' in internal vertical mode.
\endpseudo ...ty \else \vadjust
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.
\documentclass{article}
\usepackage{float}
\newfloat{pseudo}{thp}{los}
\begin{document}
Some text as filler
\begin{pseudo}[t]
\ttfamily
\begin{tabbing}
PreOrder\=($\mathcal{T}$) \\
\>visit \textrm{macchiato} \\
\>PreOrder\=($\mathcal{L}$) \\
\> \>visit \textrm{complexify} \\
\> \>PreOrder\=(\textrm{clueless}) \\
\> \> \>visit \textrm{clueless} \\
\> \> \>PreOrder\=($\emptyset$) \\
\> \> \>PreOrder\=($\emptyset$) \\
\> \>PreOrder\=(\textrm{jazzed}) \\
\> \> \>visit \textrm{jazzed} \\
\> \> \>PreOrder\=($\emptyset$) \\
\> \> \>PreOrder\=($\emptyset$) \\
\>PreOrder\=($\mathcal{R}$) \\
\> \>visit \textrm{poset} \\
\> \>PreOrder\=(\textrm{phat}) \\
\> \> \>visit \textrm{phat} \\
\> \> \>PreOrder\=($\emptyset$) \\
\> \> \>PreOrder\=($\emptyset$) \\
\> \>PreOrder\=(\textrm{sheafify}) \\
\> \> \>visit \textrm{sheafify} \\
\> \> \>PreOrder\=($\emptyset$) \\
\> \> \>PreOrder\=($\emptyset$)
\end{tabbing}
\end{pseudo}
\end{document}
Joseph Wright
I should add that when I add the color package to the above, I get

! Extra }, or forgotten \endgroup.
\endpseudo ...k \fi \fi \egroup

only when I use [t]. When I use [H] it's still fine.
Martin Heller
2008-07-22 13:25:07 UTC
Permalink
Post by Mike Wile
Post by Joseph Wright
Joseph Wright
I should add that when I add the color package to the above, I get
! Extra }, or forgotten \endgroup.
\endpseudo ...k \fi \fi \egroup
only when I use [t]. When I use [H] it's still fine.
Joseph Wright's example works om my system -- with or without the
color package:

*File List*
article.cls 2005/09/16 v1.4f Standard LaTeX document class
size10.clo 2005/09/16 v1.4f Standard LaTeX file (size option)
color.sty 2005/11/14 v1.0j Standard LaTeX Color (DPC)
color.cfg 2007/01/18 v1.5 color configuration of teTeX/TeXLive
pdftex.def 2007/06/12 v0.04h Graphics/color for pdfTeX
float.sty 2001/11/08 v1.3d Float enhancements (AL)
supp-pdf.tex
***********
Mike Wile
2008-07-22 14:02:56 UTC
Permalink
Post by Martin Heller
Post by Mike Wile
Post by Joseph Wright
Joseph Wright
I should add that when I add the color package to the above, I get
! Extra }, or forgotten \endgroup.
\endpseudo ...k \fi \fi \egroup
only when I use [t]. When I use [H] it's still fine.
Joseph Wright's example works om my system -- with or without the
*File List*
article.cls 2005/09/16 v1.4f Standard LaTeX document class
size10.clo 2005/09/16 v1.4f Standard LaTeX file (size option)
color.sty 2005/11/14 v1.0j Standard LaTeX Color (DPC)
color.cfg 2007/01/18 v1.5 color configuration of teTeX/TeXLive
pdftex.def 2007/06/12 v0.04h Graphics/color for pdfTeX
float.sty 2001/11/08 v1.3d Float enhancements (AL)
supp-pdf.tex
***********
Thanks. Since no one else was having this problem I went on CTAN and
downloaded float.sty. I had an older version but this new one works fine.
Thanks again.

Joseph Wright
2008-07-22 13:37:41 UTC
Permalink
Post by Mike Wile
in article
Post by Joseph Wright
Post by Mike Wile
I am trying to use the float package and I am receiving an error. Here is
\usepackage{float}
\floatstyle{ruled}
\newfloat{pseudo}{thp}{los}[chapter]
\floatname{pseudo}{Pseudocode}
\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!
! You can't use `\vadjust' in internal vertical mode.
\endpseudo ...ty \else \vadjust
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.
\documentclass{article}
\usepackage{float}
\newfloat{pseudo}{thp}{los}
\begin{document}
Some text as filler
\begin{pseudo}[t]
\ttfamily
\begin{tabbing}
PreOrder\=($\mathcal{T}$) \\
\>visit \textrm{macchiato} \\
\>PreOrder\=($\mathcal{L}$) \\
\>        \>visit \textrm{complexify} \\
\>        \>PreOrder\=(\textrm{clueless}) \\
\>        \>          \>visit \textrm{clueless} \\
\>         \>        \>PreOrder\=($\emptyset$) \\
\>         \>        \>PreOrder\=($\emptyset$) \\
\>        \>PreOrder\=(\textrm{jazzed}) \\
\>        \>          \>visit \textrm{jazzed} \\
\>         \>        \>PreOrder\=($\emptyset$) \\
\>         \>        \>PreOrder\=($\emptyset$) \\
\>PreOrder\=($\mathcal{R}$) \\
\>        \>visit \textrm{poset} \\
\>        \>PreOrder\=(\textrm{phat}) \\
\>        \>          \>visit \textrm{phat} \\
\>         \>        \>PreOrder\=($\emptyset$) \\
\>         \>        \>PreOrder\=($\emptyset$) \\
\>        \>PreOrder\=(\textrm{sheafify}) \\
\>        \>          \>visit \textrm{sheafify} \\
\>         \>        \>PreOrder\=($\emptyset$) \\
\>         \>        \>PreOrder\=($\emptyset$)
\end{tabbing}
\end{pseudo}
\end{document}
Joseph Wright
I should add that when I add the color package to the above, I get
! Extra }, or forgotten \endgroup.
\endpseudo ...k \fi \fi \egroup
only when I use [t]. When I use [H] it's still fine.
Okay, try

\listfiles
\documentclass{article}

\usepackage{float,color}
\newfloat{pseudo}{thp}{los}
\begin{document}

Some text as filler
\begin{pseudo}[t]
\ttfamily
\begin{tabbing}
PreOrder\=($\mathcal{T}$) \\
\>visit \textrm{macchiato} \\
\>PreOrder\=($\mathcal{L}$) \\
\> \>visit \textrm{complexify} \\
\> \>PreOrder\=(\textrm{clueless}) \\
\> \> \>visit \textrm{clueless} \\
\> \> \>PreOrder\=($\emptyset$) \\
\> \> \>PreOrder\=($\emptyset$) \\
\> \>PreOrder\=(\textrm{jazzed}) \\
\> \> \>visit \textrm{jazzed} \\
\> \> \>PreOrder\=($\emptyset$) \\
\> \> \>PreOrder\=($\emptyset$) \\
\>PreOrder\=($\mathcal{R}$) \\
\> \>visit \textrm{poset} \\
\> \>PreOrder\=(\textrm{phat}) \\
\> \> \>visit \textrm{phat} \\
\> \> \>PreOrder\=($\emptyset$) \\
\> \> \>PreOrder\=($\emptyset$) \\
\> \>PreOrder\=(\textrm{sheafify}) \\
\> \> \>visit \textrm{sheafify} \\
\> \> \>PreOrder\=($\emptyset$) \\
\> \> \>PreOrder\=($\emptyset$)
\end{tabbing}
\end{pseudo}
\end{document}

For \listfiles, I get:

*File List*
article.cls 2005/09/16 v1.4f Standard LaTeX document class
size10.clo 2005/09/16 v1.4f Standard LaTeX file (size option)
float.sty 2001/11/08 v1.3d Float enhancements (AL)
color.sty 2005/11/14 v1.0j Standard LaTeX Color (DPC)
color.cfg 2007/01/18 v1.5 color configuration of teTeX/TeXLive
dvips.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
dvipsnam.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
***********

and a clean compile.

Joseph Wright
Continue reading on narkive:
Loading...