Re: very strange LaTeX error

2019-12-20 Thread Fraga, Eric
On Friday, 20 Dec 2019 at 17:28, Stefan Nobis wrote: > Hmmm... but it should be solvable. Maybe something along the lines of > this (rough sketch, I have next to no experience with the org code > base): It should be solvable and something like what you have written looks promising. But it's beyon

Re: very strange LaTeX error

2019-12-20 Thread Stefan Nobis
"Fraga, Eric" writes: > However, it seems that simply adding \relax does not work if there > is an \hline immediately following so the solution is not that > straightforward. Hmmm... but it should be solvable. Maybe something along the lines of this (rough sketch, I have next to no experience wi

Re: very strange LaTeX error

2019-12-20 Thread Fraga, Eric
On Friday, 20 Dec 2019 at 15:29, Stefan Nobis wrote: > As the org-table does not support all the fancy features of LaTeX > tables and the LaTeX row/line break is generated implicitly, I would > say the LaTeX export should always emit the additional \relax. I agree. I shouldn't have to be this awa

Re: very strange LaTeX error

2019-12-20 Thread Fraga, Eric
On Friday, 20 Dec 2019 at 13:33, Joost Kremers wrote: > Few people seem to realise that the double backslash `\\` in LaTeX is > a macro that can actually take an optional argument, a measure > specifying the height of the newline. Ah ha! That makes perfect sense. Thank you. -- Eric S Fraga via

Re: very strange LaTeX error

2019-12-20 Thread Stefan Nobis
"Joost Kremers" writes: > The solution I usually opt for is to enclose the brackets in an > additional set of braces: `{[...]}`. Whether Org export can and > should automate that, I can't say. In the generated LaTeX adding a '\relax' (so each line ends with '\\\relax') would be a another solutio

Re: very strange LaTeX error

2019-12-20 Thread Joost Kremers
On Fri, Dec 20, 2019, at 12:56 PM, Fraga, Eric wrote: > #+begin_src latex > \documentclass{scrartcl} > \begin{document} > % packages deleted, none of which is used anyway in the following > \tableofcontents > > \section{some results} > \label{sec:org4f5891c} > \begin{table}[hbtp] >

very strange LaTeX error

2019-12-20 Thread Fraga, Eric
Hello all, this may not belong in this mailing list as it's arguably a LaTeX issue but I'm having a problem exporting a table to PDF via LaTeX. I hope somebody can help me out. I've reduced my problem file to a small (hopefully minimal) example and verified this with emacs -Q, using emacs 27.x w