emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Re: [BUG] Tables with square brackets do not compile in PDF


From: Max Nikulin
Subject: Re: [PATCH] Re: [BUG] Tables with square brackets do not compile in PDF (latex) export [9.5 (release_9.5-59-g52e6f1 @ /home/sjt015/repo/emacs/lisp/org/)]
Date: Fri, 7 Oct 2022 18:34:52 +0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0

On 07/10/2022 15:31, Ihor Radchenko wrote:

I am attaching a tentative patch to fix this.
However, I am not sure if I replaced \\ with \\\relax in the right
places.

Ihor, thank you for looking into this issue. I have not read your patch with enough attention to check that regular paragraphs, list entries and other elements are handled as well. Just a couple of notes:

+(defconst org-latex-linebreak-safe "\\\\\\relax"

Is there a reason why you did not add \n at the end? It could help to avoid a lot of `concat' calls.

-   (equal "\\begin{tabular}{l}\n\\(x\\)\\\\\n\\end{tabular}"
+   (equal "\\begin{tabular}{l}\n\\(x\\)\\\\\\relax\n\\end{tabular}"

May be left as is since the line next to \\ does not start from square brackets.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]