From mboxrd@z Thu Jan 1 00:00:00 1970 From: LanX Subject: Re: SOLVED False footnotes in Perlcode for Beamerslides Date: Fri, 3 Sep 2010 19:11:41 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1473450546==" Return-path: Received: from [140.186.70.92] (port=55491 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OrZnk-0007VG-1c for emacs-orgmode@gnu.org; Fri, 03 Sep 2010 13:11:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OrZni-0005dF-PU for emacs-orgmode@gnu.org; Fri, 03 Sep 2010 13:11:43 -0400 Received: from mail-ew0-f41.google.com ([209.85.215.41]:64409) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OrZni-0005cy-HJ for emacs-orgmode@gnu.org; Fri, 03 Sep 2010 13:11:42 -0400 Received: by ewy28 with SMTP id 28so1520727ewy.0 for ; Fri, 03 Sep 2010 10:11:41 -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 --===============1473450546== Content-Type: multipart/alternative; boundary=0016e65b54dc40f81e048f5e0676 --0016e65b54dc40f81e048f5e0676 Content-Type: text/plain; charset=ISO-8859-1 > 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 > 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} > --0016e65b54dc40f81e048f5e0676 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
> Especially, is there a simple way to setup begin_src

Found = it myself by grepping thru the el files:

Just needed to customize or= g-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 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}

--0016e65b54dc40f81e048f5e0676-- --===============1473450546== 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 --===============1473450546==--