emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric Schulte <schulte.eric@gmail.com>
To: Xin Shi <shixin111@gmail.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: How to highlight the LaTeX fragments inside orgmode
Date: Tue, 21 Jun 2011 12:35:11 -0700	[thread overview]
Message-ID: <8739j3j7v4.fsf@gmail.com> (raw)
In-Reply-To: <BANLkTikM6ABd8xG+5TX8L-65sp+1TY9UKw@mail.gmail.com> (Xin Shi's message of "Tue, 21 Jun 2011 14:47:46 -0400")

Xin Shi <shixin111@gmail.com> 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/

  reply	other threads:[~2011-06-21 19:35 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-21 18:47 How to highlight the LaTeX fragments inside orgmode Xin Shi
2011-06-21 19:35 ` Eric Schulte [this message]
2011-06-21 20:25   ` Xin Shi
2011-06-21 20:49     ` Nick Dokos
2011-06-21 20:56       ` Xin Shi
2011-06-21 21:02         ` chris.m.malone
2011-06-21 21:05         ` Eric Schulte
2011-06-21 21:24           ` Xin Shi

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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  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=8739j3j7v4.fsf@gmail.com \
    --to=schulte.eric@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=shixin111@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* 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

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