emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Benjamin Slade <slade@jnanam.net>
To: emacs-orgmode@gnu.org
Subject: Re: orgmode/beamer - won't export blocks
Date: Tue, 24 May 2011 19:05:25 -0500	[thread overview]
Message-ID: <BANLkTi=Yggkck1aECfV9S78uD3Wbjd22EQ@mail.gmail.com> (raw)

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	other threads:[~2011-05-25  0:05 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-25  0:05 Benjamin Slade [this message]
2011-05-27  7:01 ` orgmode/beamer - won't export blocks Eric S Fraga
2011-05-27 17:20   ` Benjamin Slade
2011-05-27 21:35     ` Sebastien Vauban
  -- strict thread matches above, loose matches on Subject: below --
2011-05-30 16:18 Benjamin Slade
2011-05-30 17:44 ` Sebastien Vauban
2011-05-29 17:06 Benjamin Slade
2011-05-30 14:42 ` Sebastien Vauban
2011-05-24 17:21 Benjamin Slade
2011-05-24 19:43 ` Sebastien Vauban
2011-05-24 21:11   ` Eric S Fraga

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='BANLkTi=Yggkck1aECfV9S78uD3Wbjd22EQ@mail.gmail.com' \
    --to=slade@jnanam.net \
    --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).