emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Max Nikulin <manikulin@gmail.com>
To: Stewart Thomas <sjt015@bucknell.edu>, emacs-orgmode@gnu.org
Subject: Re: [BUG] Tables with square brackets do not compile in PDF (latex) export [9.5 (release_9.5-59-g52e6f1 @ /home/sjt015/repo/emacs/lisp/org/)]
Date: Sat, 13 Nov 2021 21:57:44 +0700	[thread overview]
Message-ID: <ce760fc3-5aae-144d-2d02-7dea215f73fc@gmail.com> (raw)
In-Reply-To: <CAO12V+wB18nAN0FuDPAeN94GHdt_2nbdJtc4u7n4W3HAZbaZsA@mail.gmail.com>

On 10/11/2021 23:16, Stewart Thomas wrote:
> 
> A table in which a first column begins with square brackets is not
> compiling. The square bracket is interpreted by latex as an argument
> to the preceding line break.

Confirmed

Thank you for reporting the issue. Example of a workaround

---- >8 ----
#+macro: tr @@latex:\relax @@

| one |
| {{{tr}}}[2] |

Ref \\
{{{tr}}} [2]
---- 8< -----

To fix the bug newline (in tables and paragraphs) should be exported as 
"\\\relax" or "\\{}". I do not suggest curly brackets in the beginning 
of line to avoid issues with spurious spaces. Percent character 
(comment) at the end of line should be considered for a fix since it is 
usually used in the opposite way: to suppress newline character and 
spaces at the beginning of next source line.


  reply	other threads:[~2021-11-13 14:58 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-10 16:16 [BUG] Tables with square brackets do not compile in PDF (latex) export [9.5 (release_9.5-59-g52e6f1 @ /home/sjt015/repo/emacs/lisp/org/)] Stewart Thomas
2021-11-13 14:57 ` Max Nikulin [this message]
2022-10-07  8:31   ` [PATCH] " Ihor Radchenko
2022-10-07 11:34     ` Max Nikulin
2022-10-08  5:17       ` [PATCH v2] " Ihor Radchenko
2022-10-10 16:30         ` Max Nikulin
2022-10-11  3:36           ` Ihor Radchenko

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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=ce760fc3-5aae-144d-2d02-7dea215f73fc@gmail.com \
    --to=manikulin@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=sjt015@bucknell.edu \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).