From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Allan Webber Subject: Nice python listings colors, or solution to beamer + minted brokenness? Date: Sun, 13 Feb 2011 18:35:01 -0600 Message-ID: <87aahz8nd6.fsf@dustycloud.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=46671 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PomP3-0000nU-AH for emacs-orgmode@gnu.org; Sun, 13 Feb 2011 19:34:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PomP1-0004xl-U6 for emacs-orgmode@gnu.org; Sun, 13 Feb 2011 19:34:57 -0500 Received: from li28-75.members.linode.com ([75.127.72.75]:43910) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PomP1-0004xO-PD for emacs-orgmode@gnu.org; Sun, 13 Feb 2011 19:34:55 -0500 Received: from grumps (localhost [127.0.0.1]) by li28-75.members.linode.com (Postfix) with ESMTP id A0934C911 for ; Mon, 14 Feb 2011 00:34:53 +0000 (UTC) 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: emacs-orgmode@gnu.org Hello all, I currently am trying to export something vaguely like this for a presentation in beamer: #+BEGIN_SRC python :exports code class ReferenceDeskPanel(bpy.types.Panel): bl_label =3D 'Reference Desk' bl_space_type =3D 'VIEW_3D' bl_region_type =3D 'TOOLS' def draw(self, context): layout =3D self.layout row =3D layout.row() row.prop( context.scene, 'refdesk_search', text=3D"", icon=3D'VIEWZOOM') search_string =3D context.scene.get('refdesk_search') #+END_SRC I've tried using listings with: #+begin_LaTeX \definecolor{keywords}{RGB}{255,0,90} \definecolor{comments}{RGB}{60,179,113} =20=20 \lstset{ language=3D\Python, keywordstyle=3D\color{keywords}, commentstyle=3D\color{comments}emph, procnamestyle=3D\color{blue}\textbf, emphstyle=3D\color{black}\bfseries,=20 } #+end_LaTeX in my document but I can't figure out how to get the class name (ReferenceDeskPanel) to be highlighted in any form. I've read through the listings manual but I can't find any reference on how to do this. I also tried using minted, but I'm running into the problem discussed in this thread: http://article.gmane.org/gmane.emacs.orgmode/32147/match=3Dminted I'm at wit's end... I just want to figure out how to syntax highlight my whole python snippet! Any examples of good color sets in listings to use would be *greatly* appreciated! Or a solution to that minted + beamer problem! Either one! Super, ultra thanks in advance, - cwebb --=20 =F0=9D=93=92=F0=9D=93=B1=F0=9D=93=BB=F0=9D=93=B2=F0=9D=93=BC=F0=9D=93=BD=F0= =9D=93=B8=F0=9D=93=B9=F0=9D=93=B1=F0=9D=93=AE=F0=9D=93=BB =F0=9D=93=90=F0= =9D=93=B5=F0=9D=93=B5=F0=9D=93=AA=F0=9D=93=B7 =F0=9D=93=A6=F0=9D=93=AE=F0= =9D=93=AB=F0=9D=93=AB=F0=9D=93=AE=F0=9D=93=BB