> Especially, is there a simple way to setup begin_src
Found it myself by grepping thru the el files:
Just needed to customize org-export-latex-listings to non-nil!
Thx 8)
PS: Awesome peace of software! :)
2010/9/3 LanX
<lanx.perl@googlemail.com>
Hi Folks
I'm trying to produce a beamer presentation including perl source code.
I'm using the patter from
http://emacs-fu.blogspot.com/2009/10/writing-presentations-with-org-mode-and.html
to get some Syntax highlighting.
My problem is that org-mode parses $_[0] as footnotes!
Switching to
#+begin_src perl
solves the problem but without syntax highlighting.
Any help appreciated! (my talk is tomorrow :)
Especially, is there a simple way to setup begin_src such that it uses
\begin{lstlisting}[language=Perl]
instead of
\begin{verbatim}
?
Bye
rolf
#+LaTeX_CLASS: beamer
#+MACRO: beamermode presentation
#+MACRO: beamertheme Singapore
#+MACRO: beamercolortheme lily
#+MACRO: beamersubject RMRF
* test2
#+begin_src perl
sub swap {
($_[0],$_[1]) = ($_[1],$_[0])
};
($a,$b)=(1,2);
swap($a,$b);
print $a,$b; # 21
sub swap { @_[0,1] = @_[1,0] }; #elegantere Alternative
#+end_src perl
* Test1
#+begin_LaTeX
\begin{lstlisting}[language=Perl]
sub swap {
($_[0],$_[1]) = ($_[1],$_[0])
};
($a,$b)=(1,2);
swap($a,$b);
print $a,$b; # 21
sub swap { @_[0,1] = @_[1,0] }; #elegantere Alternative
\end{lstlisting}