From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Nobis Subject: Re: very strange LaTeX error Date: Fri, 20 Dec 2019 17:28:33 +0100 Message-ID: References: <87immbp5ww.fsf@ucl.ac.uk> <87bls3ngci.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:58003) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iiL8o-0002bM-1v for emacs-orgmode@gnu.org; Fri, 20 Dec 2019 11:28:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iiL8m-0004AR-Bo for emacs-orgmode@gnu.org; Fri, 20 Dec 2019 11:28:37 -0500 Received: from basilikum.nobis-admin.de ([89.238.71.130]:53242) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iiL8l-00047l-SY for emacs-orgmode@gnu.org; Fri, 20 Dec 2019 11:28:36 -0500 Received: from bohne (p200300CD670FAF00954500DBCC2E19F1.dip0.t-ipconnect.de [IPv6:2003:cd:670f:af00:9545:db:cc2e:19f1]) by basilikum.nobis-admin.de (Postfix) with ESMTPSA id 955B27E0787 for ; Fri, 20 Dec 2019 17:28:33 +0100 (CET) In-Reply-To: <87bls3ngci.fsf@ucl.ac.uk> (Eric Fraga's message of "Fri, 20 Dec 2019 15:53:34 +0000") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org "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 with the org code base): #+begin_src emacs-lisp (defun org-latex--table-newline (table-row info) (let ((next-el (org-export-get-next-element table-row info))) (concat "\\\\" (when (and next-el (not (eq (org-element-property :type next-el) 'rule))) "\\relax") "\n"))) #+end_src -- Until the next mail..., Stefan.