From mboxrd@z Thu Jan 1 00:00:00 1970 From: LanX Subject: False footnotes in Perlcode for Beamerslides Date: Fri, 3 Sep 2010 18:42:18 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1761966051==" Return-path: Received: from [140.186.70.92] (port=45671 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OrZLL-00060F-0u for emacs-orgmode@gnu.org; Fri, 03 Sep 2010 12:42:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OrZLJ-0000dc-Lv for emacs-orgmode@gnu.org; Fri, 03 Sep 2010 12:42:22 -0400 Received: from mail-ww0-f49.google.com ([74.125.82.49]:58914) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OrZLJ-0000dR-DR for emacs-orgmode@gnu.org; Fri, 03 Sep 2010 12:42:21 -0400 Received: by wwb24 with SMTP id 24so2426303wwb.30 for ; Fri, 03 Sep 2010 09:42:20 -0700 (PDT) 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 --===============1761966051== Content-Type: multipart/alternative; boundary=0016363ba7a0313374048f5d9d61 --0016363ba7a0313374048f5d9d61 Content-Type: text/plain; charset=ISO-8859-1 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} --0016363ba7a0313374048f5d9d61 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Folks

I'm trying to produce a beamer presentation including p= erl source code.

I'm using the patter from
http://emacs-fu.blogspot.com/2009/10/writing-presentati= ons-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 =
=A0=A0=A0 \begin{lstlisting}[language=3DPerl]
instead of
=A0=A0=A0 \begin{verbatim}
?

Bye
=A0rolf
#+LaTeX_CLASS: beamer
#+MACRO:=A0 beamermode presentation
#+MACRO:= =A0 beamertheme Singapore
#+MACRO:=A0 beamercolortheme lily
#+MACRO:= =A0 beamersubject RMRF


* test2
#+begin_src perl
sub swap {=A0=A0
=A0 ($_[0],$_[1]) =3D (= $_[1],$_[0])=A0=A0
};
($a,$b)=3D(1,2);
swap($a,$b);
print $a,$= b; # 21

sub swap { @_[0,1] =3D @_[1,0] }; #elegantere Alternative#+end_src perl

* Test1
#+begin_LaTeX
\begin{lstlisting}[language=3DPerl]
sub = swap {=A0=A0
=A0 ($_[0],$_[1]) =3D ($_[1],$_[0])=A0=A0
};
($a,$b= )=3D(1,2);
swap($a,$b);
print $a,$b; # 21

sub swap { @_[0,1] = =3D @_[1,0] }; #elegantere Alternative
\end{lstlisting}
--0016363ba7a0313374048f5d9d61-- --===============1761966051== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============1761966051==--