GNU bug report logs -
#78586
TeX-make-inline
Previous Next
Full log
Message #26 received at 78586 <at> debbugs.gnu.org (full text, mbox):
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.