From be6eaa30937a0e00725577b24e8c3e3dc1ac4f67 Mon Sep 17 00:00:00 2001 From: pkerner <99948649+pkerner@users.noreply.github.com> Date: Fri, 15 May 2026 17:53:57 +0200 Subject: [PATCH 1/2] Fix missing row terminator in LaTeX attribute longtable export --- doorstop/core/publishers/latex.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doorstop/core/publishers/latex.py b/doorstop/core/publishers/latex.py index 4c205a3f..655a1905 100644 --- a/doorstop/core/publishers/latex.py +++ b/doorstop/core/publishers/latex.py @@ -184,7 +184,7 @@ def lines(self, obj, **kwargs): yield "\\begin{longtable}{|l|l|}" yield "Attribute & Value\\\\" yield self.HLINE - yield "{} & {}".format(attr, item.attribute(attr)) + yield "{} & {}\\\\".format(attr, item.attribute(attr)) if header_printed: yield self.END_LONGTABLE else: From e4f1c273ce53d37ac4e1078e6f0709af828448eb Mon Sep 17 00:00:00 2001 From: pkerner <99948649+pkerner@users.noreply.github.com> Date: Mon, 18 May 2026 10:56:22 +0200 Subject: [PATCH 2/2] Fix incorrect Markdown italic parsing for '_' breaking LaTeX math expressions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Disable underscore-based italic substitution to prevent corruption of LaTeX indices (e.g., x_i → x\textit{i}). This ensures that mathematical expressions like x_{i} and a_{ij} are preserved correctly during LaTeX export. --- doorstop/core/publishers/_latex_functions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doorstop/core/publishers/_latex_functions.py b/doorstop/core/publishers/_latex_functions.py index 93531fcc..492f653a 100644 --- a/doorstop/core/publishers/_latex_functions.py +++ b/doorstop/core/publishers/_latex_functions.py @@ -47,7 +47,7 @@ def _latex_convert(line): # Replace *. line = re.sub("\\*(.*?)\\*", "\\\\textit{\\1}", line) # Replace _. - line = re.sub(r"_(?