emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Re: orgmode/beamer - won't export blocks
@ 2011-05-30 16:18 Benjamin Slade
  2011-05-30 17:44 ` Sebastien Vauban
  0 siblings, 1 reply; 11+ messages in thread
From: Benjamin Slade @ 2011-05-30 16:18 UTC (permalink / raw)
  To: emacs-orgmode

Hi Seb,

Many thanks for your reply. One last question: do you have an example
(or a link to an explanation about) making one's "own theme"? (I
understand the #+INCLUDE option).

cheers,
  --Ben

> Message: 20
> Date: Mon, 30 May 2011 16:42:03 +0200
> From: "Sebastien Vauban" <wxhgmqzgwmuf@spammotel.com>
> To: emacs-orgmode@gnu.org
> Subject: Re: [O] orgmode/beamer - won't export blocks
> Message-ID: <80boykxnb8.fsf@somewhere.org>
> Content-Type: text/plain; charset=utf-8
>
> Hi Benjamin,
>
> Benjamin Slade wrote:
>> So you don't include LaTeX packages that you always want to be loaded in the
>> .emacs config?
>
> No, I tend to avoid doing such. This really is the worst place to think of...
> because your .emacs file is personal. Then, you cannot (easily) share any of
> your custom with anybody...
>
>> I have a bunch of packages that I would need for my beamer presentations and
>> it would be nice just to have them automatically included every time.
>
> If you want to do so, either put your list of packages
>
> - in an Org file that you #+INCLUDE as needed, or
> - in your own theme (that's what I generally end up doing).
>
> Both are better places, IMHO, for customs.
>
> Best regards,
>  Seb

^ permalink raw reply	[flat|nested] 11+ messages in thread
* Re: orgmode/beamer - won't export blocks
@ 2011-05-29 17:06 Benjamin Slade
  2011-05-30 14:42 ` Sebastien Vauban
  0 siblings, 1 reply; 11+ messages in thread
From: Benjamin Slade @ 2011-05-29 17:06 UTC (permalink / raw)
  To: emacs-orgmode

Hi Seb,

So you don't include LaTeX packages that you always want to be loaded
in the .emacs config? I have a bunch of packages that I would need for
my beamer presentations and it would be nice just to have them
automatically included every time.

By the bye, I found the old config code from here:
http://emacs-fu.blogspot.com/2009/10/writing-presentations-with-org-mode-and.html

cheers,
  --Ben
-----------------------------------------------------------------------------
From: 	Sebastien Vauban
Subject: 	Re: [O] orgmode/beamer - won't export blocks
Date: 	Fri, 27 May 2011 23:35:11 +0200
User-agent: 	Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (windows-nt)

Hi Benjamin,

Benjamin Slade wrote:
> Thank you for the help.
>
> Yes, removing the configuration code from .emacs results in the
> correct behaviour (i.e. blocks are now exported properly).

Where did you find that way to do?  I guess in old threads... Is it still on
Worg, this should be removed.

> Quick question -- is there still a way of setting up beamer/orgmode
> configuration in .emacs?

Why are you asking that?  It's even better: you don't need any special
configuration anymore (like before) for beamer to work out of the box.

The only lines I still have in my .emacs about beamer are:

#+begin_src emacs-lisp
        ;; XXX 2010-03-25 TEMP Fix for conflict TikZ/hyperref: loading
        ;; `atbegshi' before document class beamer
        (add-to-list 'org-export-latex-classes
                     '("beamer"
                       "\\RequirePackage{atbegshi}
                       \\documentclass{beamer}\n"
                       org-beamer-sectioning))
#+end_src

Maybe even not needed anymore...

Best regards,
  Seb

-- 
Sébastien Vauban

^ permalink raw reply	[flat|nested] 11+ messages in thread
* Re: orgmode/beamer - won't export blocks
@ 2011-05-25  0:05 Benjamin Slade
  2011-05-27  7:01 ` Eric S Fraga
  0 siblings, 1 reply; 11+ messages in thread
From: Benjamin Slade @ 2011-05-25  0:05 UTC (permalink / raw)
  To: emacs-orgmode

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)

^ permalink raw reply	[flat|nested] 11+ messages in thread
* orgmode/beamer - won't export blocks
@ 2011-05-24 17:21 Benjamin Slade
  2011-05-24 19:43 ` Sebastien Vauban
  0 siblings, 1 reply; 11+ messages in thread
From: Benjamin Slade @ 2011-05-24 17:21 UTC (permalink / raw)
  To: emacs-orgmode

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

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/emacs-orgmode@gnu.org/msg28752.html


I've followed tutorials, and orgmode isn't generating beamer \block
structures (I checked the LaTeX code generated: it is generating \itemize
rather than \block).

Did anyone ever figure out the reason for this?

---------------------------------------------------------------------------------

[Orgmode] Baffled by beamer blocks

Philip J. Hollenback
Tue, 17 Aug 2010 08:31:43 -0700

I've got a basic org-mode 7.01g + beamer setup working and am able to
create and export presentations.  However I am completely unable to
create presentations with blocks in them.  I've followed the examples on
the website such as http://orgmode.org/worg/org-tutorials/org-beamer.php
with no success.

When I try to write a presentation with blocks, I find that instead of
blocks I end up with nested lists in the frames.  The LaTeX output shows
no \block structures.  I see no error messages in any of my emacs
buffers. I should note that I'm running Aquamacs 1.9 on the mac.

Can anyone suggest what in my setup might be preventing blocks from
working?  I'm really baffled at this point.

Thanks,
P.
--
Philip J. Hollenback
phil...@pobox.com
www.hollenback.net

[-- Attachment #2: Type: text/html, Size: 1753 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2011-05-30 17:44 UTC | newest]

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

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