emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Dan Davison <dandavison7@gmail.com>
To: Christopher Allan Webber <cwebber@dustycloud.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: Nice python listings colors, or solution to beamer + minted brokenness?
Date: Mon, 14 Feb 2011 15:22:16 +0000	[thread overview]
Message-ID: <m1ei7amyjb.fsf@94.196.56.147.threembb.co.uk> (raw)
In-Reply-To: <871v3a8ycj.fsf@dustycloud.org> (Christopher Allan Webber's message of "Mon, 14 Feb 2011 08:50:04 -0600")

Christopher Allan Webber <cwebber@dustycloud.org> writes:

> Dan Davison <dandavison7@gmail.com> writes:
>
>> Hi Christopher,
>>
>> I believe I have just fixed the problem with minted and beamer. Please
>> pull latex org from git and restart emacs, or
           ^^^

Oops, I meant to write "latest" org. I.e. just pull as normal.

>>
>> (setq org-beamer-fragile-re "^[ \t]*\\\\begin{\\(verbatim\\|lstlisting\\|minted\\)}")
>>
>> Personally I think that minted will be preferable to listings for your
>> application.
>>
>> Dan
>
> Dan:
>
> It works!  That looks *fantastic.* 

Great.

If you want to play around with styles, you can use a line like

#+latex_header: \usemintedstyle{tango}

To see all the available styles, use the command

pygmentize -L styles

(my output is below)

Also, if you'd like to experiment with the different options for
the \begin{minted} environment, and if you're comfortable switching
between git branches, then try the branch "minted" of the main org git
repo, and look at the variable `org-export-latex-minted-options'. For
example

(setq org-export-latex-minted-options '(("frame" "lines")))

puts a frame around the src block. Of course, see minted.pdf for the
options.

Dan

$ pygmentize -L styles
Pygments version 1.4, (c) 2006-2008 by Georg Brandl.

Styles:
~~~~~~~
* monokai:
    This style mimics the Monokai color scheme.
* manni:
    A colorful style, inspired by the terminal highlighting style.
* perldoc:
    Style similar to the style used in the perldoc code blocks.
* borland:
    Style similar to the style used in the borland IDEs.
* colorful:
    A colorful style, inspired by CodeRay.
* default:
    The default style (inspired by Emacs 22).
* murphy:
    Murphy's style from CodeRay.
* vs:
    
* trac:
    Port of the default trac highlighter design.
* tango:
    The Crunchy default Style inspired from the color palette from the Tango Icon Theme Guidelines.
* fruity:
    Pygments version of the "native" vim theme.
* autumn:
    A colorful style, inspired by the terminal highlighting style.
* bw:
    
* emacs:
    The default style (inspired by Emacs 22).
* vim:
    Styles somewhat like vim 7.0
* pastie:
    Style similar to the pastie default style.
* friendly:
    A modern style based on the VIM pyte theme.
* native:
    Pygments version of the "native" vim theme.


> Thank you *so* much! :D :D :D


>
>  - cwebb

  reply	other threads:[~2011-02-14 15:22 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-14  0:35 Nice python listings colors, or solution to beamer + minted brokenness? Christopher Allan Webber
2011-02-14  1:46 ` Chris Malone
2011-02-14  2:11   ` Chris Malone
2011-02-14  5:24     ` Christopher Allan Webber
2011-02-14 11:07 ` Dan Davison
2011-02-14 14:50   ` Christopher Allan Webber
2011-02-14 15:22     ` Dan Davison [this message]
2011-02-14 16:12       ` Christopher Allan Webber
2011-02-23  3:21         ` Chris Malone

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=m1ei7amyjb.fsf@94.196.56.147.threembb.co.uk \
    --to=dandavison7@gmail.com \
    --cc=cwebber@dustycloud.org \
    --cc=emacs-orgmode@gnu.org \
    /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).