Marc Nieper-Wißkirchen <[email protected]> writes:

> I have a code block outputting mathematical LaTeX code as a result:
>
> #+BEGIN_SRC ... :wrap equation*
> <code>
> #+END_SRC
>
> The result looks like
>
> #+RESULTS:
> #+begin_equation*
> <math>
> #+end_equation*
>
> As <math> does not contain the surrounding
> \begin{equation*}/\end{equation*}, I added the :wrap keyword.
>
> Export to LaTeX works fine, but LaTeX preview in Org does not.  This
> only works when I replace (by hand) #+begin_equation*/#+end_equation*
> by \begin{equation*}/\end{equation*}.  Can I achieve this with wrap?
> Or is there a way to make #+begin_equation*/#+end_equation* work with
> the preview? Is the latter otherwise equivalent?

That's a fair feature request, but very hard to implement.
(Even with the new latex preview system).

-- 
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