From: Enrico Seiler <enrico.seiler.debian@outlook.com>
Date: Tue, 16 Sep 2025 13:32:30 +0000
Subject: Use lontable instead of longtabu in doxygen
Forwarded: not-needed

---
 test/documentation/override_tables.sty   | 102 +++++++++++++++++++++++++++++++
 test/documentation/raptor_doxygen_cfg.in |   3 +-
 2 files changed, 104 insertions(+), 1 deletion(-)
 create mode 100644 test/documentation/override_tables.sty

diff --git a/test/documentation/override_tables.sty b/test/documentation/override_tables.sty
new file mode 100644
index 0000000..a2eb5fd
--- /dev/null
+++ b/test/documentation/override_tables.sty
@@ -0,0 +1,102 @@
+% Source: https://github.com/doxygen/doxygen/issues/11634#issuecomment-3048000922
+% Adapted "DoxyEnumFields" to only use one argument (Doxygen 1.9.8)
+
+\NeedsTeXFormat{LaTeX2e}
+
+% Packages used by this style file
+\RequirePackage{doxygen}
+
+% Used by parameter lists
+\renewenvironment{DoxyParams}[2][]{%
+    \tabulinesep=1mm%
+    \par%
+    \ifthenelse{\equal{#1}{}}%
+      {\begin{longtable}[l]{|l|l|}}% name + description
+    {\ifthenelse{\equal{#1}{1}}%
+      {\begin{longtable}[l]{|l|l|l|}}% in/out + name + desc
+      {\begin{longtable}[l]{|l|l|l|l|}}% in/out + type + name + desc
+    }
+    \multicolumn{2}{l}{\hspace{-6pt}\bfseries\fontseries{bc}\selectfont\color{darkgray} #2}\\[1ex]%
+    \endfirsthead%
+    \multicolumn{2}{l}{\hspace{-6pt}\bfseries\fontseries{bc}\selectfont\color{darkgray} #2}\\[1ex]%
+    \endhead%
+    \hline%
+}{%
+    \end{longtable}%
+    \vspace{6pt}%
+}
+
+% Used for fields of simple structs
+\renewenvironment{DoxyFields}[1]{%
+    \tabulinesep=1mm%
+    \par%
+    \begin{longtable}[l]{|l|l|l|}%
+    \multicolumn{3}{l}{\hspace{-6pt}\bfseries\fontseries{bc}\selectfont\color{darkgray} #1}\\[1ex]%
+    \endfirsthead%
+    \multicolumn{3}{l}{\hspace{-6pt}\bfseries\fontseries{bc}\selectfont\color{darkgray} #1}\\[1ex]%
+    \endhead%
+    \hline%
+}{%
+    \end{longtable}%
+    \vspace{6pt}%
+}
+
+% Used for fields simple class style enums
+\renewenvironment{DoxyEnumFields}[1]{%
+    \tabulinesep=1mm%
+    \par%
+    \begin{longtable}[l]{|l|l|}
+    \multicolumn{2}{l}{\hspace{-6pt}\bfseries\fontseries{bc}\selectfont\color{darkgray} #1}\\[1ex]%
+    \endfirsthead%
+    \multicolumn{2}{l}{\hspace{-6pt}\bfseries\fontseries{bc}\selectfont\color{darkgray} #1}\\[1ex]%
+    \endhead%
+    \hline%
+}{%
+    \end{longtable}%
+    \vspace{6pt}%
+}
+
+% Used by return value lists
+\renewenvironment{DoxyRetVals}[1]{%
+    \tabulinesep=1mm%
+    \par%
+    \begin{longtable}[l]{|l|l|}%
+    \multicolumn{2}{l}{\hspace{-6pt}\bfseries\fontseries{bc}\selectfont\color{darkgray} #1}\\[1ex]%
+    \endfirsthead%
+    \multicolumn{2}{l}{\hspace{-6pt}\bfseries\fontseries{bc}\selectfont\color{darkgray} #1}\\[1ex]%
+    \endhead%
+    \hline%
+}{%
+    \end{longtable}%
+    \vspace{6pt}%
+}
+
+% Used by exception lists
+\renewenvironment{DoxyExceptions}[1]{%
+    \tabulinesep=1mm%
+    \par%
+    \begin{longtable}[l]{|l|l|}%
+    \multicolumn{2}{l}{\hspace{-6pt}\bfseries\fontseries{bc}\selectfont\color{darkgray} #1}\\[1ex]%
+    \endfirsthead%
+    \multicolumn{2}{l}{\hspace{-6pt}\bfseries\fontseries{bc}\selectfont\color{darkgray} #1}\\[1ex]%
+    \endhead%
+    \hline%
+}{%
+    \end{longtable}%
+    \vspace{6pt}%
+}
+
+% Used by template parameter lists
+\renewenvironment{DoxyTemplParams}[1]{%
+    \tabulinesep=1mm%
+    \par%
+    \begin{longtable}[l]{|l|l|}%
+    \multicolumn{2}{l}{\hspace{-6pt}\bfseries\fontseries{bc}\selectfont\color{darkgray} #1}\\[1ex]%
+    \endfirsthead%
+    \multicolumn{2}{l}{\hspace{-6pt}\bfseries\fontseries{bc}\selectfont\color{darkgray} #1}\\[1ex]%
+    \endhead%
+    \hline%
+}{%
+    \end{longtable}%
+    \vspace{6pt}%
+}
diff --git a/test/documentation/raptor_doxygen_cfg.in b/test/documentation/raptor_doxygen_cfg.in
index cfab46a..aa9708a 100644
--- a/test/documentation/raptor_doxygen_cfg.in
+++ b/test/documentation/raptor_doxygen_cfg.in
@@ -260,7 +260,8 @@ PAPER_TYPE             = a4
 EXTRA_PACKAGES         = {lstfiracode}
 LATEX_HEADER           =
 LATEX_FOOTER           =
-LATEX_EXTRA_STYLESHEET = ${RAPTOR_DOXYGEN_SOURCE_DIR}/test/documentation/raptor-latex.sty
+LATEX_EXTRA_STYLESHEET = ${RAPTOR_DOXYGEN_SOURCE_DIR}/test/documentation/raptor-latex.sty \
+                         ${RAPTOR_DOXYGEN_SOURCE_DIR}/test/documentation/override_tables.sty
 LATEX_EXTRA_FILES      =
 PDF_HYPERLINKS         = YES
 USE_PDFLATEX           = YES
