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.)
Hspecifier and you don't want to give the table a caption, why using atableenvironment at all? – campa Oct 09 '19 at 14:13table(1) is a floating environment , but you are suppressing the floating, and (2) uses a predefined counter, but you are not issuing\caption. So basically you want a table which appears exactly there where you write it and without numbering. What's wrong with a simpletabular? – campa Oct 09 '19 at 14:19tabularbe contained in atableenvironment; similarly, there's no requirement that\includegraphicsbe in afigureenvironment. – egreg Oct 09 '19 at 14:30tableandfigure. If you add an answer, I'll accept it. – LokiRagnarok Oct 14 '19 at 09:18