emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* LaTeX preview between #+begin_equation/#+end_equation
@ 2022-12-21  6:56 Marc Nieper-Wißkirchen
  0 siblings, 0 replies; only message in thread
From: Marc Nieper-Wißkirchen @ 2022-12-21  6:56 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

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?

Thanks,

Marc


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-12-21  6:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-21  6:56 LaTeX preview between #+begin_equation/#+end_equation Marc Nieper-Wißkirchen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).