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
---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
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
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
>> 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
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
> 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
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
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
ah. must remember not to followup to goggle gropes posts :-(
--
Robin Fairbairns, Cambridge
> ah. must 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
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
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