emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] math minor mode for #+BEGIN_EQUATION blocks


From: stevejb
Subject: [O] math minor mode for #+BEGIN_EQUATION blocks
Date: Fri, 18 Jul 2014 16:03:21 -0700

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]