[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: org syntax: is \begin{equation} a latex-fragment?
From: |
Ihor Radchenko |
Subject: |
Re: org syntax: is \begin{equation} a latex-fragment? |
Date: |
Fri, 19 Apr 2024 18:10:35 +0000 |
Max Nikulin <manikulin@gmail.com> writes:
> Is it expected that
>
> ---- 8< ----
> \begin{equation}
> ---- >8 ----
>
> is parsed by (org-element-parse-buffer) as the following?
>
> (latex-fragment ... :value "\\begin{equation}")
Yes.
It matches https://orgmode.org/worg/org-syntax.html#LaTeX_Fragments
> \begin{something} is quite special in LaTeX, so despite it is similar to
> `latex-fragment' definition, it almost certainly leads to an error.
> Perhaps is should be detected by `org-lint' and treated as literal text
> by `org-element' since it is incomplete `latex-environment'.
Yes, a linter would make sense.
Patches welcome!
--
Ihor Radchenko // yantar92,
Org mode contributor,
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>