diff options
author | albert-github <albert.tests@gmail.com> | 2016-01-13 17:35:22 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2016-01-13 17:35:22 (GMT) |
commit | 7b0b7ef746ae15df3894847f5b43a29ae20c9599 (patch) | |
tree | c181bb560fabbc6ef3882d339e23a956ed5262ac /src/latexdocvisitor.cpp | |
parent | bbbd409c30194917baf2b453477418505622148f (diff) | |
download | Doxygen-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 'src/latexdocvisitor.cpp')
-rw-r--r-- | src/latexdocvisitor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/latexdocvisitor.cpp b/src/latexdocvisitor.cpp index 5e7278c..b8c2efe 100644 --- a/src/latexdocvisitor.cpp +++ b/src/latexdocvisitor.cpp @@ -114,7 +114,7 @@ static void visitPreStart(FTextStream &t, const bool hasCaption, QCString name, if (hasCaption) { - t << "\n\\caption{"; + t << "\n\\doxyfigcaption{"; } } @@ -947,7 +947,7 @@ void LatexDocVisitor::visitPre(DocHtmlTable *t) if (t->hasCaption()) { DocHtmlCaption *c = t->caption(); - m_t << "\\caption{"; + m_t << "\\doxyfigcaption{"; visitCaption(this, c->children()); m_t << "}"; m_t << "\\label{" << stripPath(c->file()) << "_" << c->anchor() << "}"; |