emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Nice python listings colors, or solution to beamer + minted brokenness?
@ 2011-02-14  0:35 Christopher Allan Webber
  2011-02-14  1:46 ` Chris Malone
  2011-02-14 11:07 ` Dan Davison
  0 siblings, 2 replies; 9+ messages in thread
From: Christopher Allan Webber @ 2011-02-14  0:35 UTC (permalink / raw)
  To: emacs-orgmode

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 = 'Reference Desk'
    bl_space_type = 'VIEW_3D'
    bl_region_type = 'TOOLS'

    def draw(self, context):
        layout = self.layout

        row = layout.row()
        row.prop(
            context.scene, 'refdesk_search',
            text="", icon='VIEWZOOM')

        search_string = 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}
  
  \lstset{
    language=\Python,
    keywordstyle=\color{keywords},
    commentstyle=\color{comments}emph,
    procnamestyle=\color{blue}\textbf,
    emphstyle=\color{black}\bfseries, 
    }
#+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=minted

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

-- 
𝓒𝓱𝓻𝓲𝓼𝓽𝓸𝓹𝓱𝓮𝓻 𝓐𝓵𝓵𝓪𝓷 𝓦𝓮𝓫𝓫𝓮𝓻

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2011-02-23  3:21 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2011-02-14 16:12       ` Christopher Allan Webber
2011-02-23  3:21         ` Chris Malone

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