Skip to content

Commit 4b6f6f2

Browse files
committed
issue #10707 Issue with doxyfigcaption
The doxygen caption style was, now, written for the version with hyperlinks, without hyperlinks this gave problems. (relevant older commits are: 7b0b7ef and 1084519)
1 parent c55f070 commit 4b6f6f2

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

src/latexdocvisitor.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,14 @@ static void visitPreStart(TextStream &t, bool hasCaption, QCString name, QCStri
167167
{
168168
if (!inlineImage)
169169
{
170-
t << "\n\\doxyfigcaption{";
170+
if (Config_getBool(PDF_HYPERLINKS))
171+
{
172+
t << "\n\\doxyfigcaption{";
173+
}
174+
else
175+
{
176+
t << "\n\\doxyfigcaptionnolink{";
177+
}
171178
}
172179
else
173180
{

templates/latex/doxygen.sty

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -684,10 +684,16 @@
684684
\doxysubparagraphfont{#1}%
685685
\doxyminisecfont{#1}}%
686686
% Define caption that is also suitable in a table
687+
% for usage with hyperlinks
687688
\makeatletter
688689
\def\doxyfigcaption{%
689690
\H@refstepcounter{figure}%
690691
\@dblarg{\@caption{figure}}}
692+
693+
% for usage without hyperlinks
694+
\def\doxyfigcaptionnolink{%
695+
\refstepcounter{figure}%
696+
\@dblarg{\@caption{figure}}}
691697
\makeatother
692698

693699
% Define alpha enumarative names for counters > 26

0 commit comments

Comments
 (0)