<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.softwareheritage.org/index.php?action=history&amp;feed=atom&amp;title=Presentation_with_org_beamer</id>
	<title>Presentation with org beamer - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.softwareheritage.org/index.php?action=history&amp;feed=atom&amp;title=Presentation_with_org_beamer"/>
	<link rel="alternate" type="text/html" href="https://wiki.softwareheritage.org/index.php?title=Presentation_with_org_beamer&amp;action=history"/>
	<updated>2026-04-22T05:08:05Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.10</generator>
	<entry>
		<id>https://wiki.softwareheritage.org/index.php?title=Presentation_with_org_beamer&amp;diff=227&amp;oldid=prev</id>
		<title>StefanoZacchiroli: 1 revision: import public pages from the intranet wiki</title>
		<link rel="alternate" type="text/html" href="https://wiki.softwareheritage.org/index.php?title=Presentation_with_org_beamer&amp;diff=227&amp;oldid=prev"/>
		<updated>2016-07-20T13:02:35Z</updated>

		<summary type="html">&lt;p&gt;1 revision: import public pages from the intranet wiki&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 13:02, 20 July 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>StefanoZacchiroli</name></author>
	</entry>
	<entry>
		<id>https://wiki.softwareheritage.org/index.php?title=Presentation_with_org_beamer&amp;diff=226&amp;oldid=prev</id>
		<title>Ardumont: Ardumont moved page PresentationWithOrgBeamer to Presentation with org beamer</title>
		<link rel="alternate" type="text/html" href="https://wiki.softwareheritage.org/index.php?title=Presentation_with_org_beamer&amp;diff=226&amp;oldid=prev"/>
		<updated>2015-05-07T15:19:55Z</updated>

		<summary type="html">&lt;p&gt;Ardumont moved page &lt;a href=&quot;/index.php?title=PresentationWithOrgBeamer&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;PresentationWithOrgBeamer (page does not exist)&quot;&gt;PresentationWithOrgBeamer&lt;/a&gt; to &lt;a href=&quot;/wiki/Presentation_with_org_beamer&quot; title=&quot;Presentation with org beamer&quot;&gt;Presentation with org beamer&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Presentation with org-beamer =&lt;br /&gt;
&lt;br /&gt;
org-mode (an emacs major mode) comes with a namespace \`ox-beamer\` which permits to export org-mode to pdf presentation using LaTeX's beamer package.&lt;br /&gt;
&lt;br /&gt;
This permits using org-mode's simple markup to write presentations.&lt;br /&gt;
&lt;br /&gt;
= Pre-requisite =&lt;br /&gt;
== environment ==&lt;br /&gt;
We need&lt;br /&gt;
&lt;br /&gt;
* emacs&lt;br /&gt;
&lt;br /&gt;
* latex&lt;br /&gt;
&lt;br /&gt;
* latex's beamer package&lt;br /&gt;
&lt;br /&gt;
Use your distribution's package manager to install those.&lt;br /&gt;
&lt;br /&gt;
== emacs setup ==&lt;br /&gt;
For inria, we need access to some latex macro that org does not know by default.&lt;br /&gt;
This macro defines a \`picblock\` entry which permits to easily embed pictures with text.&lt;br /&gt;
&lt;br /&gt;
Thus we need to extend emacs's org-beamer-mode:&lt;br /&gt;
&lt;br /&gt;
    (require 'ox-beamer)&lt;br /&gt;
    &lt;br /&gt;
    (add-to-list 'org-beamer-environments-extra&lt;br /&gt;
                 '(&amp;quot;picblock&amp;quot;  &amp;quot;P&amp;quot; &amp;quot;\\begin{picblock}%o{%h}&amp;quot;      &amp;quot;\\end{picblock}&amp;quot;))&lt;br /&gt;
&lt;br /&gt;
=== inria-presentation minor mode ===&lt;br /&gt;
&lt;br /&gt;
For convenience here is a emacs minor mode to ease creating new presentation.&lt;br /&gt;
Kill/Yank this snippet in your emacs configuration ~/.emacs.d/init.el for it to be loaded at emacs' startup time.&lt;br /&gt;
When you want to create a presentation with beamer:&lt;br /&gt;
M-x org-beamer-mode RET&lt;br /&gt;
&lt;br /&gt;
    ;;; inria-presentation.el --- Default setup to create inria/irill presentation in org-mode  -*- lexical-binding: t; -*-&lt;br /&gt;
    &lt;br /&gt;
    ;; Copyright (C) 2015  inria irill&lt;br /&gt;
    &lt;br /&gt;
    ;; Author: ardumont &amp;lt;eniotna.t@gmail.com&amp;gt;&lt;br /&gt;
    ;; Keywords: convenience&lt;br /&gt;
    &lt;br /&gt;
    ;; This program is free software; you can redistribute it and/or modify&lt;br /&gt;
    ;; it under the terms of the GNU General Public License as published by&lt;br /&gt;
    ;; the Free Software Foundation, either version 3 of the License, or&lt;br /&gt;
    ;; (at your option) any later version.&lt;br /&gt;
    &lt;br /&gt;
    ;; This program is distributed in the hope that it will be useful,&lt;br /&gt;
    ;; but WITHOUT ANY WARRANTY; without even the implied warranty of&lt;br /&gt;
    ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the&lt;br /&gt;
    ;; GNU General Public License for more details.&lt;br /&gt;
    &lt;br /&gt;
    ;; You should have received a copy of the GNU General Public License&lt;br /&gt;
    ;; along with this program.  If not, see &amp;lt;http://www.gnu.org/licenses/&amp;gt;.&lt;br /&gt;
    &lt;br /&gt;
    ;;; Commentary:&lt;br /&gt;
    &lt;br /&gt;
    ;; Depends on org-mode embedded in emacs as in at least emacs-24.3 and above&lt;br /&gt;
    &lt;br /&gt;
    ;;; Code:&lt;br /&gt;
    &lt;br /&gt;
    (require 'ox-beamer)&lt;br /&gt;
    &lt;br /&gt;
    ;; setup beamer-mode by adding a binding C-c C-b B to deal with picblock.&lt;br /&gt;
    (add-to-list 'org-beamer-environments-extra&lt;br /&gt;
                 '(&amp;quot;picblock&amp;quot;  &amp;quot;P&amp;quot; &amp;quot;\\begin{picblock}%o{%h}&amp;quot;      &amp;quot;\\end{picblock}&amp;quot;))&lt;br /&gt;
    &lt;br /&gt;
    (defun inria-presentation/template-headers-at-pt ()&lt;br /&gt;
      &amp;quot;Inject default template inside the current buffer.&lt;br /&gt;
    No intelligence whatsoever.&amp;quot;&lt;br /&gt;
      (interactive)&lt;br /&gt;
      (with-current-buffer (buffer-name)&lt;br /&gt;
        (insert&lt;br /&gt;
         &amp;quot;# org export options&lt;br /&gt;
    #+LANGUAGE:  en&lt;br /&gt;
    #+OPTIONS:   H:2 num:t toc:t \\n:nil @:t ::t |:t ^:t -:t f:t *:t &amp;lt;:t&lt;br /&gt;
    #+OPTIONS:   TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in-toc&lt;br /&gt;
    #+EXPORT_SELECT_TAGS: export&lt;br /&gt;
    #+EXPORT_EXCLUDE_TAGS: noexport&lt;br /&gt;
    #+LINK_UP:&lt;br /&gt;
    #+LINK_HOME:&lt;br /&gt;
    &lt;br /&gt;
    # activate org-beamer-mode minor mode automatically&lt;br /&gt;
    #+STARTUP: beamer&lt;br /&gt;
    #+LaTeX_CLASS: beamer&lt;br /&gt;
    #+LaTeX_CLASS_OPTIONS: [presentation,xcolor=table]&lt;br /&gt;
    &lt;br /&gt;
    #+COLUMNS: %40ITEM %10BEAMER_env(Env) %9BEAMER_envargs(Env Args) %4BEAMER_col(Col) %10BEAMER_extra(Extra)&lt;br /&gt;
    &lt;br /&gt;
    # have the theme desired&lt;br /&gt;
    #+latex_header: \\mode&amp;lt;presentation&amp;gt;{\\usetheme{irill} \\beamertemplatenavigationsymbolsempty \\setbeamertemplate{navigation symbols}{} \\setbeamertemplate{headline}{} }&lt;br /&gt;
    &lt;br /&gt;
    # some color&lt;br /&gt;
    #+latex_header: \\rowcolors[]{1}{blue!10}{blue!05}&lt;br /&gt;
    &lt;br /&gt;
    # to have a toc for each section&lt;br /&gt;
    #+latex_header: \\AtBeginSection[] {\\begin{frame}&amp;lt;beamer&amp;gt; \\frametitle{Outline} \\tableofcontents[currentsection]\\end{frame} }&lt;br /&gt;
    &lt;br /&gt;
    # set the paths for images&lt;br /&gt;
    #+latex_header: \\graphicspath{{pics/}{../images/}{../../images/}{../pics/}{../../pics/}{../figures/}{../../figures/}{../logos/}{../../logos/}}&lt;br /&gt;
    &lt;br /&gt;
    # some default information I did not find how to set this in org-mode&lt;br /&gt;
    #+latex_header: \\institute[Irill/INRIA/UPD]{Présentation en ComDir\\\\ \\url{roberto@diiacosmo.org}\\\\ \\includegraphics[height=2cm]{SWH_logo_4-02b}}&lt;br /&gt;
    &lt;br /&gt;
    # to add the picblock macro&lt;br /&gt;
    #+latex_header: \\usepackage{extblocks}&lt;br /&gt;
    #+latex_header: \\usepackage{pgfpages}\n&amp;quot;)))&lt;br /&gt;
    &lt;br /&gt;
    (defvar inria-presentation-mode-map&lt;br /&gt;
      (let ((map (make-sparse-keymap)))&lt;br /&gt;
        (define-key map (kbd &amp;quot;C-c g h&amp;quot;) 'inria-presentation/template-headers-at-pt)&lt;br /&gt;
        map)&lt;br /&gt;
      &amp;quot;Inria-presentation's mode map.&amp;quot;)&lt;br /&gt;
    &lt;br /&gt;
    ;;;###autoload&lt;br /&gt;
    (define-minor-mode inria-presentation-mode &amp;quot;Inria presentation mode.&amp;quot;&lt;br /&gt;
      :lighter &amp;quot; IP&amp;quot;&lt;br /&gt;
      :keymap inria-presentation-mode-map)&lt;br /&gt;
    &lt;br /&gt;
    (add-hook 'org-beamer-mode-hook (lambda () (inria-presentation-mode)))&lt;br /&gt;
    &lt;br /&gt;
    (provide 'inria-presentation)&lt;br /&gt;
    ;;; inria-presentation.el ends here&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Default template headers ==&lt;br /&gt;
Now we need to edit org-mode buffers to setup the pdf generation.&lt;br /&gt;
&lt;br /&gt;
    #+TITLE: &amp;lt;title&amp;gt;&lt;br /&gt;
    #+AUTHOR: &amp;lt;author&amp;gt;&lt;br /&gt;
    #+DATE: &amp;lt;date-or-no-line-for-autogenerated-date&amp;gt;&lt;br /&gt;
    #+EMAIL: &amp;lt;email&amp;gt;&lt;br /&gt;
    #+DESCRIPTION: &amp;lt;some-description&amp;gt;&lt;br /&gt;
    #+KEYWORDS: &amp;lt;some-keywords&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
    # org export options&lt;br /&gt;
    #+LANGUAGE:  en&lt;br /&gt;
    #+OPTIONS:   H:2 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t &amp;lt;:t&lt;br /&gt;
    #+OPTIONS:   TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in-toc&lt;br /&gt;
    #+EXPORT_SELECT_TAGS: export&lt;br /&gt;
    #+EXPORT_EXCLUDE_TAGS: noexport&lt;br /&gt;
    #+LINK_UP:&lt;br /&gt;
    #+LINK_HOME:&lt;br /&gt;
    &lt;br /&gt;
    # activate org-beamer-mode minor mode automatically&lt;br /&gt;
    #+STARTUP: beamer&lt;br /&gt;
    #+LaTeX_CLASS: beamer&lt;br /&gt;
    #+LaTeX_CLASS_OPTIONS: [presentation,xcolor=table]&lt;br /&gt;
    &lt;br /&gt;
    #+COLUMNS: %40ITEM %10BEAMER_env(Env) %9BEAMER_envargs(Env Args) %4BEAMER_col(Col) %10BEAMER_extra(Extra)&lt;br /&gt;
    &lt;br /&gt;
    # have the theme desired&lt;br /&gt;
    #+latex_header: \mode&amp;lt;presentation&amp;gt;{\usetheme{irill} \beamertemplatenavigationsymbolsempty \setbeamertemplate{navigation symbols}{} \setbeamertemplate{headline}{} }&lt;br /&gt;
    &lt;br /&gt;
    # some color&lt;br /&gt;
    #+latex_header: \rowcolors[]{1}{blue!10}{blue!05}&lt;br /&gt;
    &lt;br /&gt;
    # to have a toc for each section&lt;br /&gt;
    #+latex_header: \AtBeginSection[] {\begin{frame}&amp;lt;beamer&amp;gt; \frametitle{Outline} \tableofcontents[currentsection]\end{frame} }&lt;br /&gt;
    &lt;br /&gt;
    # set the paths for images&lt;br /&gt;
    #+latex_header: \graphicspath{{pics/}{../images/}{../../images/}{../pics/}{../../pics/}{../figures/}{../../figures/}{../logos/}{../../logos/}}&lt;br /&gt;
    &lt;br /&gt;
    # some default information I did not find how to set this in org-mode&lt;br /&gt;
    #+latex_header: \institute[Irill/INRIA/UPD]{Présentation en ComDir\\ \url{roberto@dicosmo.org}\\ \includegraphics[height=2cm]{SWH_logo_4-02b}}&lt;br /&gt;
    &lt;br /&gt;
    # to add the picblock macro&lt;br /&gt;
    #+latex_header: \usepackage{extblocks}&lt;br /&gt;
    #+latex_header: \usepackage{pgfpages}&lt;br /&gt;
&lt;br /&gt;
= sources =&lt;br /&gt;
* http://orgmode.org/worg/exporters/beamer/tutorial.html&lt;br /&gt;
&lt;br /&gt;
* http://orgmode.org/worg/exporters/beamer/ox-beamer.html&lt;br /&gt;
&lt;br /&gt;
* [http://orgmode.org/manual/Export-settings.html#Export-settings org-mode global export options]&lt;br /&gt;
&lt;br /&gt;
* [http://orgmode.org/manual/Beamer-export.html#Beamer-export org-mode beamer export options]&lt;br /&gt;
&lt;br /&gt;
[[Category:Tools]]&lt;/div&gt;</summary>
		<author><name>Ardumont</name></author>
	</entry>
</feed>