I'm trying to disable the warning
pdfTeX warning (ext4): destination with the same identifier (name{thm.1}) has been already used, duplicate ignored"
using the silence package as suggested here: How do I get rid of particular pdftex warning message?
Example from the link above:
\documentclass{article}
\usepackage{amsthm}
\usepackage{hyperref}
\usepackage{cleveref}
\usepackage{silence}
\WarningFilter{pdftex}{destination with the same}
\newtheorem{thm}{Theorem}
\newtheorem{lem}[thm]{Lemma}
\begin{document}
\begin{lem}
Lemma
\end{lem}
\end{document}
The warning is not filtered. Using MiKTeX.
Edit: This example is purely illustrative, I have a completely different document that gives me headaches. It is huge, importing maybe 50-100 packages, so it is not feasible to get a MWE from it. And it involves figures, not theorems. What I want is not to alter the document, not to reorder \usepackage commands, but just to disable the warning. For this point the example above is enough.
Is there a way to do this? Either by using silence, something equivalent, or a latex build wrapper.
silencecan do nothing with them. – egreg Mar 14 '15 at 11:28amsthmbetweenhyperrefandcleveref. – egreg Mar 14 '15 at 11:34\Hcounterof hyperref. – Ulrike Fischer Mar 14 '15 at 15:00