From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: How to highlight the LaTeX fragments inside orgmode Date: Tue, 21 Jun 2011 12:35:11 -0700 Message-ID: <8739j3j7v4.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:34337) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZ6jI-0007VS-0A for emacs-orgmode@gnu.org; Tue, 21 Jun 2011 15:35:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QZ6jG-00024m-HE for emacs-orgmode@gnu.org; Tue, 21 Jun 2011 15:35:19 -0400 Received: from mail-pz0-f41.google.com ([209.85.210.41]:35818) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZ6jG-00024i-3T for emacs-orgmode@gnu.org; Tue, 21 Jun 2011 15:35:18 -0400 Received: by pzk4 with SMTP id 4so82039pzk.0 for ; Tue, 21 Jun 2011 12:35:17 -0700 (PDT) In-Reply-To: (Xin Shi's message of "Tue, 21 Jun 2011 14:47:46 -0400") 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: Xin Shi Cc: emacs-orgmode Xin Shi writes: > Hello, > > I'm looking for a way to highlight the syntax of the LaTeX fragments inside > orgmode. > > I have tried to put the LaTeX parts into: > > #+BEGIN_SRC LaTeX > #+END_SRC > > But the output tex file will have the > \begin{verbatim} > \end{verbatim} > > surrounding the parts. I'm wondering if it's possible to #+BEGIN_LaTeX: also > highlight the syntax inside the block? > > Thanks! > > Xin Hi Xin, Try the following syntax #+begin_src latex :exports results :results code ... #+end_src Making sure that you have the ob-latex.el loaded. Note that you can set the two header arguments on the subtree or the file level so that you don't have to continually re-type them. See the header arguments portion of the manual for information on how to do this. Best -- Eric -- Eric Schulte http://cs.unm.edu/~eschulte/