[med-svn] [Git][med-team/seqan-raptor][master] Resolve doxygen latex error

Enrico Seiler (@eseiler) gitlab at salsa.debian.org
Tue Sep 16 15:24:41 BST 2025



Enrico Seiler pushed to branch master at Debian Med / seqan-raptor


Commits:
99a62b2e by Enrico Seiler at 2025-09-16T14:00:05+00:00
Resolve doxygen latex error

- - - - -


4 changed files:

- debian/changelog
- + debian/patches/doxygen_longtabu
- debian/patches/series
- debian/rules


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,10 @@
+seqan-raptor (3.0.1+ds-10) UNRELEASED; urgency=medium
+
+  * Team upload.
+  * Resolve doxygen latex error (Closes: #1114369)
+
+ -- Enrico Seiler <enrico.seiler.debian at outlook.com>  Tue, 16 Sep 2025 13:34:51 +0000
+
 seqan-raptor (3.0.1+ds-9) unstable; urgency=medium
 
   * d/{tests/,}control: adjust minimum version of libseqan3-dev to include the


=====================================
debian/patches/doxygen_longtabu
=====================================
@@ -0,0 +1,133 @@
+From: Enrico Seiler <enrico.seiler.debian at 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


=====================================
debian/patches/series
=====================================
@@ -5,3 +5,4 @@ debian_xxhash
 debian_cppreference
 doxygen_update
 debian_seqan340
+doxygen_longtabu


=====================================
debian/rules
=====================================
@@ -49,7 +49,11 @@ endif
 override_dh_auto_build-indep:
 ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES)))
 	dh_auto_build --indep --builddirectory doc_build
-	cd doc_build/latex && $(MAKE)
+	cd doc_build/latex && \
+	sed -i 's@\\begin{longtabu}spread 0pt \[c]{\*{2}{|X\[-1]}|}@\\begin{longtable}\[c]{c|c}@g' *.tex && \
+	sed -i 's@\\begin{longtabu}spread 0pt \[c]{\*{8}{|X\[-1]}|}@\\begin{longtable}\[c]{c|c|c|c|c|c|c|c}@g' *.tex && \
+	sed -i 's@\\end{longtabu}@\\end{longtable}@g' *.tex && \
+	$(MAKE)
 endif
 
 override_dh_auto_test-arch:



View it on GitLab: https://salsa.debian.org/med-team/seqan-raptor/-/commit/99a62b2eb113592ba27464cbd454d8bf89a5fe0a

-- 
View it on GitLab: https://salsa.debian.org/med-team/seqan-raptor/-/commit/99a62b2eb113592ba27464cbd454d8bf89a5fe0a
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20250916/350214f2/attachment-0001.htm>


More information about the debian-med-commit mailing list