3

I'm trying to switch my document from using the float and subfig packages to using subcaption. The thing is, I want to have \begin{figure}[H], which I had before; but now I get:

! LaTeX Error: Unknown float option `H'.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              

l.844 \begin{figure}[H]

What should I do? If I can't make this option available to me, can I achieve the same effect some other way (e.g. wrapping the float in a minipage? Something less ugly?)

einpoklum
  • 12,311

1 Answers1

6

Actually, the float package is compatible with subcaption. You just need to make sure and \usepackage{float} in the right place - namely, before \usepackage{hyperref} --- as otherwise you get an error.

When you do that, your \begin{figure}[H]'s will be positioned like they used to with no complaints.

Thanks @DavidCarlisle.

einpoklum
  • 12,311