emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* math minor mode for #+BEGIN_EQUATION blocks
@ 2014-07-18 23:03 stevejb
  2014-07-27 23:16 ` Bastien
  0 siblings, 1 reply; 2+ messages in thread
From: stevejb @ 2014-07-18 23:03 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-07-28 17:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-18 23:03 math minor mode for #+BEGIN_EQUATION blocks stevejb
2014-07-27 23:16 ` Bastien

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