emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] orgmode/beamer - won't export blocks


From: Benjamin Slade
Subject: Re: [O] orgmode/beamer - won't export blocks
Date: Tue, 24 May 2011 19:05:25 -0500

Thanks, Sebastien and Eric.

I updated to org-mode v7.5 [stable], but I'm still having the same problem.

I include below a minimal example and also the snippet of code in my
.emacs config file which is relevant.

Cheers, Ben.

%%Minimal example begins%%
#+startup: beamer
#+LaTeX_CLASS: beamer
#+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
#+BEAMER_FRAME_LEVEL: 2

#+MACRO: BEAMERMODE presentation
#+MACRO: BEAMERTHEME Madrid
#+MACRO: BEAMERCOLORTHEME lily
#+MACRO: BEAMERSUBJECT RMRF
#+MACRO: BEAMERINSTITUTE Miskatonic University, Astrology Dept.
#+TITLE: Presentation with Org-Mode and Beamer
#+AUTHOR: Someone

* My presentation

** Overview

   1. Blocks

   2. That's it

** Blocks
Nothing to see here.
*** A block                                                       :B_example:
    :PROPERTIES:
    :BEAMER_env: example
    :END:
  - Hello, world
  - I can't see any block here!
%%Minimal example ends%%


I have the following in my .emacs, in case there's something here that
is causing a problem (taken from
http://emacs-fu.blogspot.com/2009/10/writing-presentations-with-org-mode-and.html
)

%%snippet from .emacs begins%%
;; #+LaTeX_CLASS: beamer in org files
(unless (boundp 'org-export-latex-classes)
  (setq org-export-latex-classes nil))
(add-to-list 'org-export-latex-classes
  ;; beamer class, for presentations
  '("beamer"
     "\\documentclass[11pt]{beamer}\n
      \\mode<{{{beamermode}}}>\n
      \\usetheme{{{{beamertheme}}}}\n
      \\usecolortheme{{{{beamercolortheme}}}}\n
      \\beamertemplateballitem\n
      \\setbeameroption{show notes}
      \\usepackage[utf8]{inputenc}\n
      \\usepackage[T1]{fontenc}\n
      \\usepackage{hyperref}\n
      \\usepackage{color}
      \\usepackage{listings}
      \\lstset{numbers=none,language=[ISO]C++,tabsize=4,
  frame=single,
  basicstyle=\\small,
  showspaces=false,showstringspaces=false,
  showtabs=false,
  keywordstyle=\\color{blue}\\bfseries,
  commentstyle=\\color{red},
  }\n
      \\usepackage{verbatim}\n
      \\institute{{{{beamerinstitute}}}}\n
       \\subject{{{{beamersubject}}}}\n"

     ("\\section{%s}" . "\\section*{%s}")


     ("\\begin{frame}[fragile]\\frametitle{%s}"
       "\\end{frame}"
       "\\begin{frame}[fragile]\\frametitle{%s}"
       "\\end{frame}")))

  ;; letter class, for formal letters

  (add-to-list 'org-export-latex-classes

  '("letter"
     "\\documentclass[11pt]{letter}\n
      \\usepackage[utf8]{inputenc}\n
      \\usepackage[T1]{fontenc}\n
      \\usepackage{color}"

     ("\\section{%s}" . "\\section*{%s}")
     ("\\subsection{%s}" . "\\subsection*{%s}")
     ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
     ("\\paragraph{%s}" . "\\paragraph*{%s}")
     ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
%%snippet from .emacs ends%%

________________________________
From: Eric S Fraga
Subject: Re: [O] orgmode/beamer - won't export blocks
Date: Tue, 24 May 2011 22:11:07 +0100
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux)
________________________________

> Benjamin Slade wrote:
>> I'm having the same trouble which seems to be reported in this thread (I'm
>> not running Aquamacs though, just GNU Emacs under Linux, with orgmode v7.4):
>> http://www.mail-archive.com/address@hidden/msg28752.html

Benjamin,

But that is quite old.  That thread ended inconclusively because the OP
never got back to us with further details.  And as Sebastien says:

[...]

"Sebastien Vauban" <address@hidden> writes:
> If you search for accurate help, please post an "ECM" (Example Complete and
> Minimal), so that one can very quickly try your file, report if it works or
> not, and try to spot the problem.
>
> Best regards,
>   Seb

Please give us a small *complete* org file (say, one slide with one or
two blocks) that doesn't work and we can see what is happening.  It
might also be worthwhile updating your version to org to the most recent
stable release (7.5), if you can.

In any case, I would suggest you look at the configuration options in
your org file, specifically #+BEAMER_FRAME_LEVEL and the H: #+OPTIONS
setting.

I use org+beamer practically daily and it works just fine!

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.5 (release_7.5.299.gb638.dirty)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]