# nag package complaining about the label of a chapter after {table}[H]

by LokiRagnarok   Last Updated October 09, 2019 14:23 PM

Consider the following MWE:

\RequirePackage[l2tabu, orthodox]{nag}
\documentclass[oneside, a4paper, 10pt]{book}
\usepackage{float}
\begin{document}

\begin{table}[H]
\end{table}

\chapter{Chapter}\label{chapter}
\end{document}


This throws the following warning:

Package nag Warning: \label in float, but not after \caption on input line 9.


As far as I understand it, nag expects to see a caption for the table and does not realize that the \label belongs to the \chapter. For semantic reasons pertaining to that particular table, I cannot give it a caption.

What are my options here, besides ignoring the warning?

(Please note that the thread Why does an environment's label have to appear after the caption? deals with a slightly different problem and this thread is not a duplicate.)

Tags :

## Related Questions

Updated March 26, 2015 07:29 AM

Updated March 29, 2015 07:07 AM

Updated April 10, 2015 20:09 PM

Updated June 03, 2015 23:10 PM

Updated June 08, 2015 21:09 PM