Howto beamer with org-mode




with org-mode

Install the other pre-requisites

sudo aptitude install latex latex-beamer \
  texlive-latex-extra texlive-fonts-recommended ttf-marvosym

Init a org file

Add some particular headers

\#+TITLE:     your-title
\#+AUTHOR:    your-name
\#+EMAIL:     your-email
\#+DATE:      bootstrap-date
\#+DESCRIPTION: some-description
\#+KEYWORDS: some-keywords
\#+LANGUAGE:  en
\#+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:

\#+startup: beamer
\#+LaTeX_CLASS: beamer
\#+LaTeX_CLASS_OPTIONS: [bigger]


They are escaped here (\#) otherwise, it’s evaluated by org-mode. For real, replace the \# by #.

Example of org-code and the output

There is automatically a front-page

The informations comes from the previous blocks.

frame-11 image

And a outline page

This will come from the content of the other frames below.

frame-11 image

Frame 1

* Some group of frames
** frame11
*** some stuff
*** to tell
*** in list elements

frame-11 image

Frame 2

** frame12
*** what do you know!
*** nice or what?

frame-11 image

A frame about clojure in another group

* Awsomeness!
** Clojure
*** code clojure
\#+BEGIN_SRC clj
(fact (+ 1 1) => 2)
*** /Midje/, unit testing fwk is pretty awesome!

As we can see here, we can embedded some block of code from any language as org-mode usually permits.

frame-11 image

About emacs

** Emacs
*** It's pretty cool too!

frame-11 image


** Org-mode with beamer
*** rocks as we can present                                           :BMCOL:
:BEAMER_col: 0.5
*** in columns
*** and as always
:BEAMER_col: 0.5
*** include images

frame-11 image

Wait! What’s with the syntax?

It’s a binding that does that for us. Selection the item that you want in columns then C-c C-b |, this will ask you for the size of the column (ratio between 0 and 1). Give, for example, 0.4 then hit enter. Do the same all the other columns.

Launch the export

C-c C-e will launch a buffer with the options for exporting in the format you want!

C-c C-e d compile in latex, then export to pdf and open it.

And that’s it


Here’s only what i think of, feel free to think otherwise.

Pros Cons
Simple Not editable in browser (as in google docs)
Portability – Plain text
Versionable (you choose your DVCS)
Share easy
Free as in free beer!