GNU bug report logs - #78586
TeX-make-inline

Previous Next

Package: auctex;

Reported by: "Paul D. Nelson" <ultrono <at> gmail.com>

Date: Sun, 25 May 2025 14:03:02 UTC

Severity: normal

Done: "Paul D. Nelson" <ultrono <at> gmail.com>

Full log


Message #26 received at 78586 <at> debbugs.gnu.org (full text, mbox):

From: Ikumi Keita <ikumi <at> ikumi.que.jp>
To: "Paul D. Nelson" <ultrono <at> gmail.com>
Cc: arash <at> gnu.org, 78586 <at> debbugs.gnu.org
Subject: Re: bug#78586: TeX-make-inline
Date: Fri, 30 May 2025 16:00:52 +0900
Hi Paul,

>>>>> "Paul D. Nelson" <ultrono <at> gmail.com> writes:
> Thanks Ikuya, good catch!  Please find attached the updated patch.  Paul

> +(defun LaTeX-make-inline ()
> +  "Convert LaTeX display math environment at point to inline math.
> +Remove the enclosing math environment (such as \\\\=[...\\\\=] or

That works but I recommend
\\=\\[
rather than \\\\=[ . See (elisp) Keys in Documentation:
,----
| ‘\=’
|      quotes the following character and is discarded; thus, ‘\=`’ puts
|      ‘`’ into the output, ‘\=\[’ puts ‘\[’ into the output, and ‘\=\=’
|      puts ‘\=’ into the output.
`----
And you don't have to quote \]. It will be displayed literally.

Additionally, we should provide similar quotation in
> +(ert-deftest LaTeX-make-inline-bracket-period ()
> +  "Convert \\[..\\] to $..$ and keep trailing period."
as well.

Bye,
Ikumi Keita
#StandWithUkraine #StopWarInUkraine
#Gaza #StopMassiveKilling #CeasefireNOW




This bug report was last modified 3 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.