all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Nobis <stefan-ml@snobis.de>
To: emacs-orgmode@gnu.org
Subject: Re: very strange LaTeX error
Date: Fri, 20 Dec 2019 17:28:33 +0100	[thread overview]
Message-ID: <m1eewz55ce.fsf@nobis-it.eu> (raw)
In-Reply-To: <87bls3ngci.fsf@ucl.ac.uk> (Eric Fraga's message of "Fri, 20 Dec 2019 15:53:34 +0000")

"Fraga, Eric" <e.fraga@ucl.ac.uk> 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	other threads:[~2019-12-20 16:28 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-20 11:56 very strange LaTeX error Fraga, Eric
2019-12-20 12:33 ` Joost Kremers
2019-12-20 14:29   ` Stefan Nobis
2019-12-20 15:53     ` Fraga, Eric
2019-12-20 16:28       ` Stefan Nobis [this message]
2019-12-20 16:36         ` Fraga, Eric
2019-12-20 14:48   ` Fraga, Eric

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m1eewz55ce.fsf@nobis-it.eu \
    --to=stefan-ml@snobis.de \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.