What is the right way to solve this package clash? After I updated memoir from the 2021 texlive install I started getting this LaTeX Error: Command \newfloat already defined. This is because I load the float package. I do this because I need the [H] option that float provides (even though egreg says don't). Similarly I solve the conflict with the strategy mentioned in the other answer \let\newfloat\undefined. It does what I need, but I am unsure of the consequences of my action, I imagine this might cause some problems either trying to use the newfloat features of the package or class. Although for now I havnt tried to use that feature from either.
Asked
Active
Viewed 143 times
0
Bob
- 1,270
- 9
- 14
H"nuclear" option. Please replace all instances of[H]with[ht]and recompile your document. – Mico Apr 03 '22 at 17:33captionpackage. UsingHthen requires you to ensure that the typeset result is as good as it might be and there is often great difficulty in doing that. Why not let LaTeX do the best for you? – Peter Wilson Apr 03 '22 at 17:59\def\@captype{figure}or\def\@captype{table}for the captions. – John Kormylo Apr 03 '22 at 18:31[h]to an[H](and go back and forth while I fiddle) than it is to unwrap the contents of the float. @Mico i tried your suggestion and while it was an improvement of[h]it still doesnt produce exactly the same results as[H]. Namely in this case it is inappropriate for the following paragraph to come anywhere but at the very and of a bunch of consecutive tables. – Bob Apr 03 '22 at 19:30[H]OPTION. See John Kormylo's\flushqueueanswer to https://tex.stackexchange.com/questions/639781. – Peter Wilson Apr 06 '22 at 17:45[H]option seems to be exactly what I need. I could unpack all the contents and use workarounds (such as thecaptionpackage) but that is way more work. Is there a reason why that would be better than simply using the[H]option? – Bob Apr 07 '22 at 19:34