Skip to content

Commit b91fad0

Browse files
committed
issue doxygen#11837 Tables in latex has empty caption that results in useless list of tables
Added `entry=none` in case of no caption so tables without a caption won't be shown in the list of tables in case `\listof tables` is added to the latex processing
1 parent 9dcd2b1 commit b91fad0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/latex/doxygen.sty

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@
406406
\def\hascaption{#2}%
407407
\def\haslabel{#3}%
408408
\ifx\hascaption\empty% if caption is empty
409-
\SetTblrOuter[longtblr]{theme=DoxyTableBareTheme}% table without caption or label
409+
\SetTblrOuter[longtblr]{theme=DoxyTableBareTheme,entry=none}% table without caption or label
410410
\else% caption not empty
411411
\ifx\haslabel\empty% if label is empty
412412
\SetTblrOuter[longtblr]{theme=DoxyTableCaptionTheme,caption={#2}}% set table caption
@@ -461,7 +461,7 @@
461461
% #3: Title of the table e.g. Params, Enumerator
462462
% #4: Body
463463
\NewDocumentCommand{\DoxyParamTable}{m m +m +m}{%
464-
\SetTblrOuter[longtblr]{theme=DoxyTableBareTheme}% set table caption and label
464+
\SetTblrOuter[longtblr]{theme=DoxyTableBareTheme,entry=none}% set table caption and label
465465
\sbox0{% render table off-screen first to capture its width in \wd0
466466
\begin{tblr}{measure=vbox,colspec={*{#1}{|l}|}}%
467467
\SetCell[c=#1]{l} \tf{#3} \\[1ex]%

0 commit comments

Comments
 (0)