Re: Export of this table fails LuaLaTeX compilation

2022-10-13 Thread Leo Butler
On Thu, Oct 13 2022, Max Nikulin wrote: > On 13/10/2022 09:44, Ihor Radchenko wrote: >> Max Nikulin writes: >> >>> I am considering \noalign{} instead of \relax. I was never aware of its >>> effect, but accordingly to The TeXbook it should keep TeX in vertical >>> mode without any action due to

Re: Export of this table fails LuaLaTeX compilation

2022-10-12 Thread gerard . vermeulen
On 12.10.2022 18:21, Max Nikulin wrote: [...] Stewart Thomas. [BUG] Tables with square brackets do not compile in PDF (latex) export. Wed, 10 Nov 2021 11:16:10 -0500. https://list.orgmode.org/cao12v+wb18nan0fudpaen94ghdt_2nbdjtc4u7n4w3hazba...@mail.gmail.com I can not figure out an easy way t

Re: Export of this table fails LuaLaTeX compilation

2022-10-12 Thread Max Nikulin
On 13/10/2022 09:44, Ihor Radchenko wrote: Max Nikulin writes: I am considering \noalign{} instead of \relax. I was never aware of its effect, but accordingly to The TeXbook it should keep TeX in vertical mode without any action due to empty argument. (Actually I surprised that \relax causes an

Re: Export of this table fails LuaLaTeX compilation

2022-10-12 Thread Ihor Radchenko
Max Nikulin writes: > On 12/10/2022 14:26, Ihor Radchenko wrote: >> Max Nikulin writes: >>> >>> I can not figure out an easy way to separate \\ from [b] text but to >>> prevent the problem you have discovered. I am unsure if >>> >>> \\[0pt] >>> >>> has no negative consequences and safe enou

Re: Export of this table fails LuaLaTeX compilation

2022-10-12 Thread Max Nikulin
On 12/10/2022 16:17, gerard.vermeu...@posteo.net wrote: On 12.10.2022 07:55, Max Nikulin wrote: On 12/10/2022 12:15, gerard.vermeulen wrote: On 12.10.2022 06:45, Max Nikulin wrote: LuaLaTeX is irrelevant. It seems \hline is allowed only immediately after \\. Minimal LaTeX example: \begin{t

Re: Export of this table fails LuaLaTeX compilation

2022-10-12 Thread gerard . vermeulen
On 12.10.2022 07:55, Max Nikulin wrote: On 12/10/2022 12:15, gerard.vermeulen wrote: On 12.10.2022 06:45, Max Nikulin wrote: LuaLaTeX is irrelevant. It seems \hline is allowed only immediately after \\. Minimal LaTeX example: \begin{tabular}{l} b\\\relax \hline \end{tabular} Your example

Re: Export of this table fails LuaLaTeX compilation

2022-10-12 Thread Max Nikulin
On 12/10/2022 14:26, Ihor Radchenko wrote: Max Nikulin writes: I can not figure out an easy way to separate \\ from [b] text but to prevent the problem you have discovered. I am unsure if \\[0pt] has no negative consequences and safe enough. I expect that LaTeX sources are not easy to r

Re: Export of this table fails LuaLaTeX compilation

2022-10-12 Thread Ihor Radchenko
Max Nikulin writes: > Gerard, we forgot to post the reason why \relax has been added after \\. > The intention was to prevent errors in the case of > > | a | > | [b] | > > or > > - item \\ >[2022-10-12] > > Stewart Thomas. [BUG] Tables with square brackets do not compile in PDF > (latex)

Re: Export of this table fails LuaLaTeX compilation

2022-10-11 Thread Max Nikulin
On 12/10/2022 12:15, gerard.vermeulen wrote: On 12.10.2022 06:45, Max Nikulin wrote: LuaLaTeX is irrelevant. It seems \hline is allowed only immediately after \\. Minimal LaTeX example: \begin{tabular}{l} b\\\relax \hline \end{tabular} Your example fails on my Mac texlive-2020 with: ! Mispl

Re: Export of this table fails LuaLaTeX compilation

2022-10-11 Thread gerard . vermeulen
On 12.10.2022 06:45, Max Nikulin wrote: On 12/10/2022 11:15, Ihor Radchenko wrote: Confirmed. But what is the problem here? Isn't \relax supposed to work in LuaTeX? LuaLaTeX is irrelevant. It seems \hline is allowed only immediately after \\. Minimal LaTeX example: \begin{tabular}{l} b\\\

Re: Export of this table fails LuaLaTeX compilation

2022-10-11 Thread gerard . vermeulen
On 12.10.2022 06:15, Ihor Radchenko wrote: gerard.vermeu...@posteo.net writes: I am regularly updating 9.6-pre from https://elpa.gnu.org/devel/ and yesterday my LaTeX export stopped working. The org-mode snippet below (attached, together with the LaTeX export file) shows the problem. The

Re: Export of this table fails LuaLaTeX compilation

2022-10-11 Thread Max Nikulin
On 12/10/2022 11:15, Ihor Radchenko wrote: Confirmed. But what is the problem here? Isn't \relax supposed to work in LuaTeX? LuaLaTeX is irrelevant. It seems \hline is allowed only immediately after \\. Minimal LaTeX example: \begin{tabular}{l} b\\\relax \hline \end{tabular}

Re: Export of this table fails LuaLaTeX compilation

2022-10-11 Thread Ihor Radchenko
gerard.vermeu...@posteo.net writes: > I am regularly updating 9.6-pre from https://elpa.gnu.org/devel/ and > yesterday > my LaTeX export stopped working. The org-mode snippet below (attached, > together > with the LaTeX export file) shows the problem. The LaTeX file compiles > after I remove

Export of this table fails LuaLaTeX compilation

2022-10-11 Thread gerard . vermeulen
-- Gerard #+title: Export of this table fails LuaLaTeX compilation #+macro: nit (eval (format "@@latex:\\colorbox{red}{\\texttt{%s}}@@" $1)) #+options: title:nil toc:nil Macro {{{nit(works outside table)}}} but fails inside tables where =\\= matters. The LaTeX export fails to compile wit