Skip to content

Commit

Permalink
Merge pull request #441 from albert-github/feature/bug_image_in_table
Browse files Browse the repository at this point in the history
PDF generation stops when image with caption is included in a table.
  • Loading branch information
Dimitri van Heesch committed Jan 17, 2016
2 parents 4d91798 + 1d77a4e commit 41e7143
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
7 changes: 7 additions & 0 deletions doc/manual.sty
Expand Up @@ -31,3 +31,10 @@
\fancyfoot[CO]{\fancyplain{}{}}
\fancyfoot[RO]{\fancyplain{}{}}

% Define caption that is also suitable in a table
\makeatletter
\def\doxyfigcaption{%
\refstepcounter{figure}%
\@dblarg{\@caption{figure}}}
\makeatother

2 changes: 1 addition & 1 deletion src/latexdocvisitor.cpp
Expand Up @@ -114,7 +114,7 @@ static void visitPreStart(FTextStream &t, const bool hasCaption, QCString name,

if (hasCaption)
{
t << "\n\\caption{";
t << "\n\\doxyfigcaption{";
}
}

Expand Down
7 changes: 7 additions & 0 deletions templates/latex/doxygen.sty
Expand Up @@ -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

0 comments on commit 41e7143

Please sign in to comment.