emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Fix org-do-latex-and-related at buffer start


From: Ihor Radchenko
Subject: Re: [PATCH] Fix org-do-latex-and-related at buffer start
Date: Sun, 22 Dec 2024 11:28:33 +0000

Shao-yu Tseng <dev@notyourcomputer.net> writes:

> When org-mode is called at the start of a buffer that starts with a
> latex fragment, it produces an error "Beginning of buffer" caused by
> attempt to call backward-char.
>
> A minimal example to reproduce:
> 1. Open a scratch buffer
> 2. Insert text \(\Omega\)
> 3. Turn on org-mode

I tried to follow the example, but I am unable to reproduce the problem.
May you please provide more detailed steps to reproduce and share the
information about the Org mode and Emacs versions you are using?

> The observable effect of this bug is that org-export-string-as does not
> work for strings beginning with a latex fragment, example:
>
> (org-export-string-as "\\(\\Omega\\)" 'html t '(:with-toc nil))

It works on my side.

-- 
Ihor Radchenko // yantar92,
Org mode maintainer,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]