emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Dan Davison <dandavison7@gmail.com>
To: Hsiu-Khuern Tang <tangoh@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: [FIXED] Re: :latex-listings publishing option not used; minted + beamer incompatibility?
Date: Mon, 14 Feb 2011 11:15:12 +0000	[thread overview]
Message-ID: <m1oc6en9z3.fsf_-_@> (raw)
In-Reply-To: <AANLkTi=U_-Wc_2oO0eVbXiadODq1N7TWPqndm1BqxvSJ@mail.gmail.com> (Hsiu-Khuern Tang's message of "Wed, 20 Oct 2010 22:06:35 -0700")

[-- Attachment #1: Type: text/plain, Size: 1064 bytes --]

Hsiu-Khuern Tang <tangoh@gmail.com> writes:

> Hi Dan,
> * On Wed 09:09AM, 20 Oct 2010, Dan Davison (davison@stats.ox.ac.uk) wrote:
>> Hsiu-Khuern Tang <tangoh@gmail.com> writes:
>> > BTW, has anyone used minted with beamer?  I get errors like
>> Yes, I exported Eric Fraga's babel/beamer slides example using minted
>> last week and it worked fine. However,
>> > Runaway argument?
>> >  int main(int argc, char **argv) { \ETC.
>> > ! Paragraph ended before \FV@BeginScanning was complete.

This problem is now fixed in Org. The problem was that frames using
minted needed to be marked as fragile; Org was only doing this for
verbatim and lstlisting.

If you are unable to pull the latest Org from the git repo, please
change the `org-beamer-fragile-re' regexp as follows

(setq org-beamer-fragile-re "^[ \t]*\\\\begin{\\(verbatim\\|lstlisting\\|minted\\)}")

Customize can also be used to make this change.

Attached is a version of Eric Fraga's beamer example, modified to use
python instead of octave, and the pdf export resulting from C-c C-e d.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: presentation.org --]
[-- Type: text/x-org, Size: 2929 bytes --]

#+TITLE:     Writing Beamer presentations in org-mode
#+AUTHOR:    Eric S Fraga
#+EMAIL:     e.fraga@ucl.ac.uk
#+DATE:      2010-03-30 Tue
#+OPTIONS:   H:3 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t
#+OPTIONS:   TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in-toc
#+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0 path:http://orgmode.org/org-info.js

#+startup: oddeven

#+startup: beamer
#+LaTeX_CLASS: beamer
#+LaTeX_CLASS_OPTIONS: [bigger]
#+latex_header: \mode<beamer>{\usetheme{Madrid}}

#+COLUMNS: %20ITEM %13BEAMER_env(Env) %6BEAMER_envargs(Args) %4BEAMER_col(Col) %7BEAMER_extra(Extra)

* Introduction
** Overview
- org-mode template
- beamer structure
- beamer settings

* Methodology

** A simple slide
This slide consists of some text with a number of bullet points:
- the first, very @important@, point!
- the previous point shows the use of the special markup which
  translates to the Beamer specific /alert/ command for highlighting
The above list could be numbered or any other type of list and may
include sub-lists.

** A more complex slide
This slide illustrates the use of Beamer blocks.  The following text,
with its own headline, is displayed in a block:
*** Org mode increases productivity				  :B_theorem:
    :BEAMER_env: theorem
    - org mode means not having to remember \LaTeX commands.
    - it is based on ascii text which is inherently portable.
    - Emacs!

    \hfill \(\qed\)

** Two columns

*** A block					      :B_ignoreheading:BMCOL:
    :BEAMER_env: ignoreheading
    :BEAMER_col: 0.4
    - this slide consists of two columns
    - the first (left) column has no heading and consists of text
    - the second (right) column has an image and is enclosed in an
      @example@ block

*** A screenshot 					    :BMCOL:B_example:
    :BEAMER_col: 0.6
    :BEAMER_env: example
    #+ATTR_LATEX: width=\textwidth

** Babel
   :BEAMER_envargs: [t]
*** Python code 					      :BMCOL:B_block:
    :BEAMER_col: 0.45
    :BEAMER_env: block
#+srcname: pythonexample
#+begin_src python :results output :exports both
def f(a):
    return a*a
for i in range(3):
    print f(i)

*** The output						      :BMCOL:B_block:
    :BEAMER_col: 0.4
    :BEAMER_env: block
    :BEAMER_envargs: <2->

#+results: pythonexample
: 0
: 1
: 4

* Conclusions

** Summary
   - org is an incredible tool for time management
   - @but@ it is also excellent for writing and for preparing presentations
   - Beamer is a very powerful \LaTeX{} package for presentations
   - the combination is unbeatable!

[-- Attachment #3: presentation.pdf --]
[-- Type: application/pdf, Size: 115085 bytes --]

[-- Attachment #4: Type: text/plain, Size: 640 bytes --]

>> yes, I now get that error. So something has changed recently. I'm using
>> fully updated ubuntu 10.10. What system are you using?
> I'm using Debian unstable.  My texlive package is version 2009-8; the
> current version in Debian unstable is 2009-11.
>> > A search on Google shows lots of reports related to beamer and Sweave.
>> So perhaps we're seeing the effects of a recent change in the tex/latex
>> stack, rather than an emacs/org/minted/pygments problem??
> Some of the Google results go back quite a long time, e.g.,
> http://tolstoy.newcastle.edu.au/R/help/04/12/9454.html.  I'm staying
> with listings for now.

[-- Attachment #5: Type: text/plain, Size: 201 bytes --]

Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.

  reply	other threads:[~2011-02-14 11:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-19 16:52 :latex-listings publishing option not used; minted + beamer incompatibility? Hsiu-Khuern Tang
2010-10-20  8:09 ` Dan Davison
2010-10-21  5:06   ` Hsiu-Khuern Tang
2011-02-14 11:15     ` Dan Davison [this message]
2011-03-09  7:18       ` [FIXED] " Hsiu-Khuern Tang

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:

  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=m1oc6en9z3.fsf_-_@ \
    --to=dandavison7@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=tangoh@gmail.com \


* 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


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).