From mboxrd@z Thu Jan 1 00:00:00 1970 From: stevejb Subject: math minor mode for #+BEGIN_EQUATION blocks Date: Fri, 18 Jul 2014 16:03:21 -0700 Message-ID: <87mwc6l0xz.fsf@planetbarr.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54632) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X8HG7-0000zD-3W for emacs-orgmode@gnu.org; Fri, 18 Jul 2014 19:08:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X8HG0-0000eT-JR for emacs-orgmode@gnu.org; Fri, 18 Jul 2014 19:08:11 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:37006) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X8HG0-0000d2-Do for emacs-orgmode@gnu.org; Fri, 18 Jul 2014 19:08:04 -0400 Received: from compute6.internal (compute6.nyi.mail.srv.osa [10.202.2.46]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id DEAD321AA6 for ; Fri, 18 Jul 2014 19:08:00 -0400 (EDT) Received: from itory.planetbarr.com (unknown [184.11.141.245]) by mail.messagingengine.com (Postfix) with ESMTPA id 77203C00005 for ; Fri, 18 Jul 2014 19:08:00 -0400 (EDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org 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