From: LanX <lanx.perl@googlemail.com>
To: emacs-orgmode@gnu.org
Subject: Re: SOLVED False footnotes in Perlcode for Beamerslides
Date: Fri, 3 Sep 2010 19:11:41 +0200 [thread overview]
Message-ID: <AANLkTinY=GpVfkHwPutuimB74nHGrkP2dXLgjLufdccJ@mail.gmail.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 1485 bytes --]
> 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}
>
[-- Attachment #1.2: Type: text/html, Size: 2019 bytes --]
[-- Attachment #2: Type: text/plain, Size: 201 bytes --]
_______________________________________________
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 other threads:[~2010-09-03 17:11 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='AANLkTinY=GpVfkHwPutuimB74nHGrkP2dXLgjLufdccJ@mail.gmail.com' \
--to=lanx.perl@googlemail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).