From: "Marc Nieper-Wißkirchen" <marc@nieper-wisskirchen.de>
To: emacs-orgmode@gnu.org
Subject: LaTeX preview between #+begin_equation/#+end_equation
Date: Wed, 21 Dec 2022 07:56:27 +0100 [thread overview]
Message-ID: <CAEYrNrRiuGUKXe8T58zgUVCwAUPFsqYdK64sNbFzJo0FD6Jm=Q@mail.gmail.com> (raw)
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
reply other threads:[~2022-12-21 6:57 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAEYrNrRiuGUKXe8T58zgUVCwAUPFsqYdK64sNbFzJo0FD6Jm=Q@mail.gmail.com' \
--to=marc@nieper-wisskirchen.de \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).