emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
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)


I have found that it can be useful for me to write equations as follows:

#+LABEL: eq:eq1
#+LATEX: \int_{r}^{\infty} x \lambda e^{-\lambda x} dx 

rather than

  \int_{r}^{\infty} x \lambda e^{-\lambda x} dx 

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,

Sent with my mu4e

             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:

  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=87mwc6l0xz.fsf@planetbarr.com \
    --to=stevejb@uw.edu \
    --cc=emacs-orgmode@gnu.org \


* 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


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