Skip to content

caption package conflict with package 'float'

Hello:

Recompiling a document written in May I obtain now an error in the package 'float' produced by 'caption'. The error is

! LaTeX Error: Unknown float option H. See the LaTeX manual or LaTeX Companion for explanation. Type H <return> for immediate help. ... l.5 \begin{figure}[H]

The option 'H' provided by float is not recognized.

This simple code reproduces the error:

\documentclass{article} \usepackage[format=hang,font=small]{caption} \usepackage{float} \begin{document} \begin{figure}[H] \centering Hello \caption{This figure is beautiful} \end{figure} \end{document}

For an error free execution the \usepackage{caption} must not be used.

I'm running Debian Sid with Texlive from the repositories. The caption package belongs to the texlive-latex-recommended package version 2019.20190830-1

Edited by José Luis García Pallero