emacs-orgmode
[Top][All Lists]
Advanced

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

Re: very strange LaTeX error


From: Stefan Nobis
Subject: Re: very strange LaTeX error
Date: Fri, 20 Dec 2019 17:28:33 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (darwin)

"Fraga, Eric" <address@hidden> 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.



reply via email to

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