summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2016-01-13 17:35:22 (GMT)
committeralbert-github <albert.tests@gmail.com>2016-01-13 17:35:22 (GMT)
commit7b0b7ef746ae15df3894847f5b43a29ae20c9599 (patch)
treec181bb560fabbc6ef3882d339e23a956ed5262ac /templates
parentbbbd409c30194917baf2b453477418505622148f (diff)
downloadDoxygen-7b0b7ef746ae15df3894847f5b43a29ae20c9599.zip
Doxygen-7b0b7ef746ae15df3894847f5b43a29ae20c9599.tar.gz
Doxygen-7b0b7ef746ae15df3894847f5b43a29ae20c9599.tar.bz2
PDF generation stops when image with caption is included in a table.
In case an image is included in a table and this image has a caption the generation of a PDF stops with the message: ! Misplaced \noalign. \caption ->\noalign \bgroup \@ifnextchar [{\egroup \LT@c@ption \@firstofone ... l.45 \end{longtabu} This problem has in general been described in: http://tex.stackexchange.com/questions/85919/adding-a-caption-to-a-graphic-inside-a-longtable In this patch the suggestion from this reference is implemented by defining \doxyfigcaption and using this where a caption is required.
Diffstat (limited to 'templates')
-rw-r--r--templates/latex/doxygen.sty7
1 files changed, 7 insertions, 0 deletions
diff --git a/templates/latex/doxygen.sty b/templates/latex/doxygen.sty
index 3f21871..687a1af 100644
--- a/templates/latex/doxygen.sty
+++ b/templates/latex/doxygen.sty
@@ -475,3 +475,10 @@
% Color used for table heading
\newcommand{\tableheadbgcolor}{lightgray}%
+
+% Define caption that is also suitable in a table
+\makeatletter
+\def\doxyfigcaption{%
+\refstepcounter{figure}%
+\@dblarg{\@caption{figure}}}
+\makeatother