Warning about duplicate figure numbers in LaTeX

In the log file of the generated doxygen manual we see warnings like:
```
pdfTeX warning (ext4): destination with the same identifier (name{figure.22.1})
 has been already used, duplicate ignored

\AtBegShi@Output ...ipout \box \AtBeginShipoutBox
                                                  \fi \fi

```
(this pull request was also triggered by: https://stackoverflow.com/questions/64328597/pdftex-warning-saying-about-duplicate-figures)

The solution is found by means of: https://tex.stackexchange.com/questions/566677/multiple-use-of-figure-number-ext4-warning/  in short:
> The hyperref package patches \caption so \H@refstepcounter is used instead of \refstepcounter.

The definition isn't necessary in `manual.sty` as the `doxygen_manual.tex` includes `doxygen.sty`
This commit is contained in:
albert-github 2020-10-14 11:43:33 +02:00
parent f64705ecde
commit 1084519cd4
2 changed files with 1 additions and 8 deletions

View file

@ -40,10 +40,3 @@
\usepackage{xpatch}
\xpatchcmd{\part}{plain}{empty}{}{}
% Define caption that is also suitable in a table
\makeatletter
\def\doxyfigcaption{%
\refstepcounter{figure}%
\@dblarg{\@caption{figure}}}
\makeatother

View file

@ -571,6 +571,6 @@
% Define caption that is also suitable in a table
\makeatletter
\def\doxyfigcaption{%
\refstepcounter{figure}%
\H@refstepcounter{figure}%
\@dblarg{\@caption{figure}}}
\makeatother