all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Export of this table fails LuaLaTeX compilation
@ 2022-10-12  3:15 gerard.vermeulen
  2022-10-12  4:15 ` Ihor Radchenko
  0 siblings, 1 reply; 16+ messages in thread
From: gerard.vermeulen @ 2022-10-12  3:15 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1050 bytes --]

Hello,

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
all occurrences of \relax.

Best -- 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 with LuaLaTeX because
of =\\\relax= instead of =\\=:
|-----------------------------------------|
| @@latex:\colorbox{red}{\texttt{bug}}@@  |
| {{{nit(bug)}}}                          |
|-----------------------------------------|
exports to:
#+begin_src latex :exports none :results silent
   \begin{center}
   \begin{tabular}{l}
   \hline
   \colorbox{red}{\texttt{bug}}\\\relax
   \colorbox{red}{\texttt{bug}}\\\relax
   \hline
   \end{tabular}
   \end{center}
#+end_src

[-- Attachment #2: bug.tex --]
[-- Type: application/x-tex, Size: 1269 bytes --]

[-- Attachment #3: bug.org --]
[-- Type: application/octet-stream, Size: 739 bytes --]

#+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 with LuaLaTeX because
of =\\\relax= instead of =\\=:
|-----------------------------------------|
| @@latex:\colorbox{red}{\texttt{bug}}@@  |
| {{{nit(bug)}}}                          |
|-----------------------------------------|
exports to:
#+begin_src latex :exports none :results silent
  \begin{center}
  \begin{tabular}{l}
  \hline
  \colorbox{red}{\texttt{bug}}\\\relax
  \colorbox{red}{\texttt{bug}}\\\relax
  \hline
  \end{tabular}
  \end{center}
#+end_src

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2022-10-14  2:33 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-12  3:15 Export of this table fails LuaLaTeX compilation gerard.vermeulen
2022-10-12  4:15 ` Ihor Radchenko
2022-10-12  4:45   ` Max Nikulin
2022-10-12  5:15     ` gerard.vermeulen
2022-10-12  5:55       ` Max Nikulin
2022-10-12  7:26         ` Ihor Radchenko
2022-10-12  8:20           ` Max Nikulin
2022-10-13  2:44             ` Ihor Radchenko
2022-10-13  4:59               ` Max Nikulin
2022-10-13 14:27                 ` Leo Butler
2022-10-13 15:18                   ` [PATCH] ox-latex: Use \empty instead of \relax after \\ Max Nikulin
2022-10-14  2:32                     ` Ihor Radchenko
2022-10-12  9:17         ` Export of this table fails LuaLaTeX compilation gerard.vermeulen
2022-10-12 16:21           ` Max Nikulin
2022-10-13  5:03             ` gerard.vermeulen
2022-10-12  4:53   ` gerard.vermeulen

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.