-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 17/09/10 10:52, Sébastien Vauban wrote:
> Hi Steven and Rainer,
> 
> Steven Delean wrote:
>>> This is not an answer to your question, but rather a question to you:
>>> I added your settings to my .emacs file, and I get fontification in the
>>> pdf output, but no color. Do I need any additional settings to get
>>> coloring of the source code?
>>
>> Yes, you will need to provide arguments to the \lstset listings variable
> 
> See http://www.mail-archive.com/emacs-orgmode@gnu.org/msg28251.html for
> examples of pretty-printed code.

Thanks - that looks really nice. Nice example.

As I said in the other email, that should go to worg.

Instead of
#+begin_LaTeX
#+end_LaTeX

I use

#+LATEX_HEADER: \lstset{
#+LATEX_HEADER:         keywordstyle=\color{blue},
#+LATEX_HEADER:         commentstyle=\color{red},
#+LATEX_HEADER:         stringstyle=\color{green},
#+LATEX_HEADER:         basicstyle=\ttfamily\small,
#+LATEX_HEADER:         columns=fullflexible,
#+LATEX_HEADER:         basewidth={0.5em,0.4em}
#+LATEX_HEADER:         }

And it also works.

Cheers,

Rainer


> 
> Best regards,
>   Seb
> 


- -- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Natural Sciences Building
Office Suite 2039
Stellenbosch University
Main Campus, Merriman Avenue
Stellenbosch
South Africa

Tel:        +33 - (0)9 53 10 27 44
Cell:       +27 - (0)8 39 47 90 42
Fax (SA):   +27 - (0)8 65 16 27 82
Fax (D) :   +49 - (0)3 21 21 25 22 44
Fax (FR):   +33 - (0)9 58 10 27 44
email:      rai...@krugs.de

Skype:      RMkrug
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEUEARECAAYFAkyTMS4ACgkQoYgNqgF2egp8egCggtSGTzSGjx3IICnt6AM0ibsV
irYAmL73loKjAanP5pEg79LbcXZbccQ=
=C9VB
-----END PGP SIGNATURE-----

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Reply via email to