This question already has an answer here:

Is there a way to set the default position option for floats?

I want all float to by default to use the option H. Then I only need to set position parameter for those floats that I do not want to use H.

marked as duplicate by Werner, jub0bs, user2478, Adam Liter, barbara beeton May 1 '14 at 20:02

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 7
    If your default preference is that the item (a figure or table, right?) should not float, then don't use LaTeX's float-related mechanisms. Simply load the caption package and use its macros \captionof to generate the caption. By the way, be prepared for substandard layouts if you never (or hardly ever) want tables and figures to float. – Mico May 1 '14 at 14:27

The float package already offers a command \floatplacement to do this:


Put the following in your preamble:

\floatlocation{figure}{H} % for figures
\floatlocation{table}{H}  % for tables

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