emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Xin Shi <shixin111@gmail.com>
To: Eric Schulte <schulte.eric@gmail.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: How to highlight the LaTeX fragments inside orgmode
Date: Tue, 21 Jun 2011 16:25:43 -0400	[thread overview]
Message-ID: <BANLkTik95gsxh1iYCy35XhEQbFH5uWC2KA@mail.gmail.com> (raw)
In-Reply-To: <8739j3j7v4.fsf@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1340 bytes --]

Hi Eric,

Thanks for your reply!

I added these two lines into .emacs and it worked!

(require 'ob-latex)
(setq org-src-fontify-natively t)

However, I noticed something else is broken with the ob-latex:

The C-c C-e d (export to PDF and open the PDF file) is no longer working.
Maybe a bug in 7.5?

Best,
Xin


On Tue, Jun 21, 2011 at 3:35 PM, Eric Schulte <schulte.eric@gmail.com>wrote:

> 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/
>

[-- Attachment #2: Type: text/html, Size: 2160 bytes --]

  reply	other threads:[~2011-06-21 20:25 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
2011-06-21 20:25   ` Xin Shi [this message]
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=BANLkTik95gsxh1iYCy35XhEQbFH5uWC2KA@mail.gmail.com \
    --to=shixin111@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=schulte.eric@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).