summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2020-10-14 09:43:33 (GMT)
committeralbert-github <albert.tests@gmail.com>2020-10-14 09:43:33 (GMT)
commit1084519cd410bacb997b1ddd705800412450241b (patch)
tree09f793b4f3efb55b334a08e707bde5baaa9d6f40 /templates
parentf64705ecdeff9eead62e63f27b2ba88bea87c259 (diff)
downloadDoxygen-1084519cd410bacb997b1ddd705800412450241b.zip
Doxygen-1084519cd410bacb997b1ddd705800412450241b.tar.gz
Doxygen-1084519cd410bacb997b1ddd705800412450241b.tar.bz2
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`
Diffstat (limited to 'templates')
-rw-r--r--templates/latex/doxygen.sty2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/latex/doxygen.sty b/templates/latex/doxygen.sty
index 78a5254..8436ba7 100644
--- a/templates/latex/doxygen.sty
+++ b/templates/latex/doxygen.sty
@@ -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