[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
org syntax: is \begin{equation} a latex-fragment?
From: |
Max Nikulin |
Subject: |
org syntax: is \begin{equation} a latex-fragment? |
Date: |
Thu, 18 Apr 2024 18:56:33 +0700 |
User-agent: |
Mozilla Thunderbird |
Hi,
Is it expected that
---- 8< ----
\begin{equation}
---- >8 ----
is parsed by (org-element-parse-buffer) as the following?
(latex-fragment ... :value "\\begin{equation}")
\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'.
I noticed it trying to figure out how Gnus inline preview works. In the
following fragment (e.g. of this message)
#+startup: latexpreview
\begin{equation}
x = 1
\end{equation}
2 lines (startup and \begin{equation}) are passed to an Org mode
temporary buffer.
- org syntax: is \begin{equation} a latex-fragment?,
Max Nikulin <=