3

I am using revtex 4.1 and am getting an error:

"A float is stuck (cannot be placed); try class option [floatfix]"

In the revtex documentation it states:

"REVTEX uses the ltxgrid package, which provides the ability to attempt repairs when LATEX’s float placement mechanism is about to fail, but that facility is turned off by de- fault. Users should invoke the floatfix document class option to enable this LATEX extension."

My question is: which line of Tex code should I use to enable floatfix?

  • 2
    You should use it in your \documentclass. So it would be something like \documentclass[floatfix]{revtex4}. – TeXnician Jun 28 '17 at 15:02
4

As mentioned in the comments, this can be enabled by adding the option to the initial \documentclass call, at the start of the file:

\documentclass[floatfix]{revtex4}

However, even when the document is compiling perfectly, there isn't a full guarantee that this will make the warnings go away.

| improve this answer | |
  • Be aware, floatfix can also cause problems when placing floats. Just prevented one of my files to compile. – Kay Jun 22 '19 at 14:49
  • @Kay This kind of anecdotal evidence isn't terribly useful without a MWE. But yes, the floatfix option isn't terribly reliable - this is well known. – E.P. Jun 22 '19 at 20:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.