From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Davison Subject: Re: Nice python listings colors, or solution to beamer + minted brokenness? Date: Mon, 14 Feb 2011 15:22:16 +0000 Message-ID: References: <87aahz8nd6.fsf@dustycloud.org> <871v3a8ycj.fsf@dustycloud.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=55889 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pp0Ft-0006H4-Pd for emacs-orgmode@gnu.org; Mon, 14 Feb 2011 10:22:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pp0Fs-0003Ja-0s for emacs-orgmode@gnu.org; Mon, 14 Feb 2011 10:22:24 -0500 Received: from mail-ww0-f49.google.com ([74.125.82.49]:48768) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pp0Fr-0003JP-RQ for emacs-orgmode@gnu.org; Mon, 14 Feb 2011 10:22:23 -0500 Received: by wwb17 with SMTP id 17so5006300wwb.30 for ; Mon, 14 Feb 2011 07:22:22 -0800 (PST) In-Reply-To: <871v3a8ycj.fsf@dustycloud.org> (Christopher Allan Webber's message of "Mon, 14 Feb 2011 08:50:04 -0600") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Christopher Allan Webber Cc: emacs-orgmode@gnu.org Christopher Allan Webber writes: > Dan Davison 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