From: stevejb <stevejb@uw.edu>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: math minor mode for #+BEGIN_EQUATION blocks
Date: Fri, 18 Jul 2014 16:03:21 -0700 [thread overview]
Message-ID: <87mwc6l0xz.fsf@planetbarr.com> (raw)
Greetings,
I have found that it can be useful for me to write equations as follows:
#+LABEL: eq:eq1
#+BEGIN_EQUATION
#+LATEX: \int_{r}^{\infty} x \lambda e^{-\lambda x} dx
#+END_EQUATION
rather than
\begin{equation}
\label{eq:eq1}
\int_{r}^{\infty} x \lambda e^{-\lambda x} dx
\end{equation}
I typically use org-cdlatex-mode for typesetting math. When I am inside a \begin{equation} \end{equation}, all of the expected keyboard shortcuts work. I have two questions:
1. How can I make Emacs recognize that once I type '#+LATEX:' that the rest of the line should be treated as being in the same minor mode as inside of a \begin{equation} \end{equation}?
2. If question 1 gets solved, will org-preview-latex-fragment work as expected?
Thanks in advance,
-Stephen
--
Sent with my mu4e
next reply other threads:[~2014-07-18 23:08 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-18 23:03 stevejb [this message]
2014-07-27 23:16 ` math minor mode for #+BEGIN_EQUATION blocks Bastien
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87mwc6l0xz.fsf@planetbarr.com \
--to=stevejb@uw.edu \
--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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.