Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

floatrow and algorithm package problems

3,047 views
Skip to first unread message

Olaf

unread,
Oct 12, 2009, 7:14:53 AM10/12/09
to
Him

if I use both packages (floatrow and algorithm) I get the error:


ERROR: Package floatrow Error: Do not use float package with floatrow.

--- TeX said ---
(floatrow) The latter will be skipped.

See the floatrow package documentation for explanation.
Type H <return> for immediate help.
...

l.33 \@namedef{o...@floatrow.sty}{}\endinput}


How can I prevent this? or even get this working ?

Thanks,
Olaf

Olaf

unread,
Oct 13, 2009, 2:20:21 AM10/13/09
to
OK, here a minimal example:

---8>---
\documentclass{article}

\usepackage{algorithm}
\usepackage{floatrow}

\begin{document}

\end{document}
--->8---

ERROR: Package floatrow Error: Do not use float package with floatrow.

--- TeX said ---
(floatrow) The latter will be skipped.

See the floatrow package documentation for explanation.
Type H <return> for immediate help.
...

l.33 \@namedef{o...@floatrow.sty}{}\endinput}


Is it save to exchange the order of them?

Thanks,
Olaf

Joseph Wright

unread,
Oct 13, 2009, 3:09:02 AM10/13/09
to
On Oct 13, 7:20 am, Olaf <norep...@inder.net> wrote:
> OK, here a minimal example:
>
> ---8>---
> \documentclass{article}
>
> \usepackage{algorithm}
> \usepackage{floatrow}
>
> \begin{document}
>
> \end{document}
> --->8---
>
> ERROR: Package floatrow Error: Do not use float package with floatrow.
>
> --- TeX said ---
> (floatrow)                The latter will be skipped.
>
> See the floatrow package documentation for explanation.
> Type  H <return>  for immediate help.
>  ...
>
> l.33   \@namedef{...@floatrow.sty}{}\endinput}

>
> Is it save to exchange the order of them?
>
> Thanks,
> Olaf

I imagine that algorithm loads float, which will be the issue. Try
using floatrow first, and I suspect the problem will go away. The only
thing might be that the float emulation in floatrow is not 100%. So
you'll have to see what happens.
--
Joseph Wright

Robin Fairbairns

unread,
Oct 13, 2009, 6:27:12 AM10/13/09
to

best not to -- it might confuse floatrow in operation.

try

\expandafter\def\csname v...@float.sty\endcsname{not really}

before loading algorithm, and

\expandafter\let\csname v...@float.sty\endcsname\relax

after loading it. if i've got it right, this will prevent float from
being loaded, while preventing floatrow from thinking it has been
loaded.

the remaining issue is whether floatrow does enough that algorithm is
happy. this one can't tell without (a) hard work, or (b) trying it.
i'm recommending (b) ... an attitude from my past life as a researcher ;-)
--
Robin Fairbairns, Cambridge

Olaf

unread,
Oct 14, 2009, 1:45:08 AM10/14/09
to
Robin Fairbairns schrieb:

>> Is it save to exchange the order of them?
>
> best not to -- it might confuse floatrow in operation.
>
> try
>
> \expandafter\def\csname v...@float.sty\endcsname{not really}
>
> before loading algorithm, and
>
> \expandafter\let\csname v...@float.sty\endcsname\relax
>
> after loading it. if i've got it right, this will prevent float from
> being loaded, while preventing floatrow from thinking it has been
> loaded.
>
> the remaining issue is whether floatrow does enough that algorithm is
> happy. this one can't tell without (a) hard work, or (b) trying it.
> i'm recommending (b) ... an attitude from my past life as a researcher ;-)

---8<---
\documentclass{article}

\expandafter\def\csname v...@float.sty\endcsname{not really}

\usepackage{algorithm}


\expandafter\let\csname v...@float.sty\endcsname\relax

\usepackage{floatrow}

\begin{document}

\end{document}
--->8---

doesn't solve it:

ERROR: Package floatrow Error: Do not use float package with floatrow.

--- TeX said ---
(floatrow) The latter will be skipped.

See the floatrow package documentation for explanation.
Type H <return> for immediate help.
...

l.33 \@namedef{o...@floatrow.sty}{}\endinput}

So case (b) will will test in the future (not yet enough stuff to test
it). Will this be addressed in future versions of floatrow/algorithm
packages?

Thanks,
Olaf

Joseph Wright

unread,
Oct 14, 2009, 1:56:37 AM10/14/09
to

For me

\documentclass{article}

\usepackage{floatrow}
\usepackage{algorithm}

\begin{document}

\end{document}

works, but without some examples to test I've no idea if this is any good.
--
Joseph Wright

Olaf

unread,
Oct 14, 2009, 3:37:47 AM10/14/09
to
Joseph Wright schrieb:

> For me
>
> \documentclass{article}
>
> \usepackage{floatrow}
> \usepackage{algorithm}
>
> \begin{document}
>
> \end{document}
>
> works, but without some examples to test I've no idea if this is any good.

Yes, there are no 'compile' errors, but mabye it will break some stuff
of floatrow (or even not - case (b))

Olaf

Robin Fairbairns

unread,
Oct 14, 2009, 6:43:16 AM10/14/09
to
Olaf <nore...@inder.net> writes:
>Robin Fairbairns schrieb:

>> try
>>
>> \expandafter\def\csname v...@float.sty\endcsname{not really}
>>
>> before loading algorithm, and
>>
>> \expandafter\let\csname v...@float.sty\endcsname\relax
>>
>> after loading it. if i've got it right, this will prevent float from
>> being loaded, while preventing floatrow from thinking it has been
>> loaded.
>
>---8<---
>\documentclass{article}
>
>\expandafter\def\csname v...@float.sty\endcsname{not really}
>\usepackage{algorithm}
>\expandafter\let\csname v...@float.sty\endcsname\relax

where did those dots come from?

>\usepackage{floatrow}
>
>\begin{document}
>
>\end{document}
>--->8---
>
>doesn't solve it:

quelle surprise.

why not copy what i wrote? i don't _know_ that it will work, but i
reckon it has a better chance than some random modification of it.
--
Robin Fairbairns, Cambridge

Joseph Wright

unread,
Oct 14, 2009, 7:34:06 AM10/14/09
to
On Oct 14, 11:43 am, r...@cl.cam.ac.uk (Robin Fairbairns) wrote:

Robin,

That will be Google Groups, which thinks it's an e-mail address. I've
had problems with that before: not everyone realises.
--
Joseph Wright

Robin Fairbairns

unread,
Oct 15, 2009, 6:15:57 AM10/15/09
to
Joseph Wright <joseph...@morningstar2.co.uk> writes:
>On Oct 14, 11:43=A0am, r...@cl.cam.ac.uk (Robin Fairbairns) wrote:
>> >> =A0 \expandafter\let\csname v...@float.sty\endcsname\relax
>>
>> >> after loading it. =A0if i've got it right, this will prevent float fro=

>m
>> >> being loaded, while preventing floatrow from thinking it has been
>> >> loaded.
>>
>> >---8<---
>> >\documentclass{article}
>>
>> >\expandafter\def\csname v...@float.sty\endcsname{not really}
>> >\usepackage{algorithm}
>> >\expandafter\let\csname v...@float.sty\endcsname\relax
>>
>> where did those dots come from?
>>
>> >\usepackage{floatrow}
>>
>> >\begin{document}
>>
>> >\end{document}
>> >--->8---
>>
>> >doesn't solve it:
>>
>> quelle surprise.
>>
>> why not copy what i wrote? =A0i don't _know_ that it will work, but i

>> reckon it has a better chance than some random modification of it.
>
>That will be Google Groups, which thinks it's an e-mail address. I've
>had problems with that before: not everyone realises.

ah. must remember not to followup to goggle gropes posts :-(
--
Robin Fairbairns, Cambridge

Donald Arseneau

unread,
Oct 15, 2009, 8:01:52 AM10/15/09
to
On Oct 15, 3:15 am, r...@cl.cam.ac.uk (Robin Fairbairns) wrote:

> ah.  must remember not to followup to goggle gropes posts :-(

Is that like the old finger command?

:-)

Robin Fairbairns

unread,
Oct 15, 2009, 11:40:30 AM10/15/09
to
Donald Arseneau <as...@triumf.ca> writes:
>On Oct 15, 3:15=A0am, r...@cl.cam.ac.uk (Robin Fairbairns) wrote:
>
>> ah. =A0must remember not to followup to goggle gropes posts :-(

>
>Is that like the old finger command?

finger on this machine shows me present 4 times. and no-one else.
'snot like it used to be, in the old days. back then it was several
people on one machine; now its several machines to one person.

>:-)

anyway, *all* my posts come from old fingers. i can (just about)
still command them.
--
Robin Fairbairns, Cambridge

Olaf

unread,
Oct 16, 2009, 4:42:59 AM10/16/09
to
Robin Fairbairns schrieb:

Indeed, it comes from google groups:

http://groups.google.de/group/comp.text.tex/msg/7ac1702a0a83fc51?dmode=source

looks really bad, it seems google group's are not usable .. Sorry for
confusion.

Anyway, hopefully I got it right this time:

---8<---
\documentclass{article}

\usepackage{algorithm}

\expandafter\def\csname v...@float.sty\endcsname{not really}
\usepackage{floatrow}


\expandafter\let\csname v...@float.sty\endcsname\relax

\begin{document}

\end{document}
--->8---

with:

ERROR: Package floatrow Error: Do not use float package with floatrow.

--- TeX said ---
(floatrow) The latter will be skipped.

See the floatrow package documentation for explanation.
Type H <return> for immediate help.
...

l.33 \@namedef{o...@floatrow.sty}{}\endinput}

Thanks,
Olaf

Robin Fairbairns

unread,
Oct 16, 2009, 5:35:16 AM10/16/09
to

you've got the right tags, but you put them in the wrong place. the
idea is to fool the system into believing you had loaded float.sty,
and then cancel the deceit before loading floatrow.

so the two (different) \expandafter... lines should be round the
loading of algorithm, not the loading of floatrow.

(and we still don't know whether floatrow will provide what you need
for algorithm ...)

good luck
--
Robin Fairbairns, Cambridge

0 new messages