This is a demo document about the codename =org-teaching= framework, which aims at managing teaching material using Org-mode.
- You’re viewing a reveal.js Web slides deck. You may press ‘s’ to view presenter notes.
Attention, this framework heavily relies on:
- org-mode (version 9 at the time of writing)
- and the org-reveal exporter for
reveal.js
.
These slides are one variant of the same teaching material, also available as a PDF handbook.
You may prefer to view them in your Web browser in full-screen (F11
for instance). Should Reveal-JS
fail on displaying slides, an
alternate format would be the printed PDF (but
you’re gonna lose the ability to display speaker notes).
This PDF handbook is one variant of the same teaching material, also available as a slides deck. Note that the layout is formatted as a portrait handbook, including the content placed in the speaker notes of slides[fn:1].
This section may contain content that is best viewed in (LaTeX) PDF export of org-mode.
The contents of this project is Copyright (c) 2016-2018 Olivier Berger - IMT/Télécom SudParis, unless otherwise specified. See the LICENSE file for more details.
The goal is to be able to edit a single file (namely lesson.org
)
which will contain, in a single source, all the content of a lesson,
written with org-mode syntax.
From this single source, several documents are generated :
- slides (as a dynamic Web document) for overhead presentation
- a handbook that contains the same information (or more) and can be handed to the students for work outside the classroom (a PDF file)
- optionaly, another version of the handbook for the teaching team, to provide additional instructions (also a PDF file)
Pretty much all features of reveal.js
, supported by the org-mode reveal.js exporter (org-reveal), should be supported too.
If you’re already familiar with reveal.js, you may have noticed that the current settings adopted for our slides generation are quite frugal: no fancy 3D effects and likes.
I’m using the 3 levels of outlining / sectioning so that the content can be sectioned in the same way in lesson.org
and appear appropriately in the slides and handbook, with these principles:
- First level outlines define main sections of the document.
- Second level outlines are the main “horizontal” slides that will be played with page up/down
- Third level outlines may be used for additional content (“vertical” slides) that may be skipped for the presentation, but is still accessible with cursor keys.
org-reveal’s Speaker notes/ may be added to the slides (and will only appear on dual-screen presentation after having pressed ‘/s’: standard reveal.js feature).
They will be masked for the audience, but will, by default, appear in the handbook given to the students.
The syntax in the org-mode source is:
#+BEGIN_NOTES
This is a note
#+END_NOTES
I’ve adopted this principle of exporting everything in the speaker notes to the students handbook, but YMMV. I’m not even sure this makes a lot of sense on a pedagogical ground.
In case you’re not completely satisfied, this could be modified by hacking the way the LaTeX PDF export works.
An alternative is to use maked sections (see next section).
I’ve implemented some “easy ways” to preserve some of the content of the same lesson.org
source for certain outputs (using org exporter’s standard EXCLUDE_TAGS
):
- Slides only material
- that won’t be embedded in the handbook : surprise stuff for live audience, or HTML-only hacks;
- Teachers only material
- secret knowledge that only adults need to know (for instance), which won’t be exported;
- Handbook only material
- stuff that only fits in the handbook, and/or only exports as LaTeX and not HTML.
Tagging a section/slide with :slidesonly:
means it isn’t exported in the handbooks.
Below is an example (or not)…
There should be no “Only in the slides” after this section, in the
handbooks, as it has been tagged with slidesonly
.
On the contrary, in the slides view, this appears, as there’s a :slidesonly:
tag on the current head line.
Tagging a section/slide with :teachersonly:
means it isn’t exported in the students handbook (nor in the slides).
Below is an example…
There should be no “Only for teachers” after this section, in the slides or in the
students handbook, as it has been tagged with teachersonly
.
On the contrary this appears in the teachers handbook, as there’s a :teachersonly:
tag on the current head line.
This slide/section contains notes, but only part of it is displayed in the presentation notes included in the handbook. Special notes and are kept only for the teachers handbook.
We use an org-mode drawer for that (additional benefit is that the content is folded by default in emacs, as it may be verbose and/or “sensitive”) :
#+BEGIN_NOTES
This part of the note can be viewed by the students in the handbook.
:TEACHERSONLY:
Not this one
:END:
#+END_NOTES
Just like sections are for slides only, others can be for the handbook
only, using the handbookonly
tag. This may be useful for Annex
sections for instance, or for stuff that the HTML exporter won’t like, with inline LaTeX.
Code is colorized / highlighted in the slides :-)
As you’re using org-mode, its babel
components are available, to embed source code in the same lesson.org
source, and manage executable code and teaching material at once.
Look for literate programing instructions in the org-mode docs to know more.
Included is the use of the reveal.js jump plugin to allow jumping directly to slides # by entering a number and hitting RETURN. Quite handy while writing and testing slides.
Please try and talk to me to suggest new stuff and/or provide patches ;)
Only one file should be edited for writing the lesson’s material : =lesson.org=
Only exception is modification of some configurations for title pages and other bits that shouldn’t change much in time (see section Configuration of layout).
You have 2 options to generate the different formats:
- either manualy use the standard org-mode exporters from inside Emacs
- or use the Docker container for automation / reproducibility
We’re using the standard exporters so each output format will be exported from its corresponding umbrella .org
source.
Open the corresponding org-mode source and export :
- slides
- open
slides.org
, thenC-c C-e R ...
fororg-reveal
export (toslides.html
), provided that you have loaded org-reveal in Emacs - handbook
- open
handbook.org
, thenC-c C-e l ...
for LaTeX export (tohandbook.pdf
) - teacher handbook
- open
teacher-handbook.org
, thenC-c C-e l ...
for LaTeX export (toteacher-handbook.pdf
)
Depending on how you installed org-reveal (Git submodules or otherwise), org-reveal
may already be available.
If not yet, load it with M-x load-file
from the location of its Git submodule (elisp/org-reveal/ox-reveal.el
by default).
You may use the olberger/docker-org-export
docker container image
I’ve prepared, to make org-mode exports. Or you may rebuild it
yourself (see below).
This is recommended to avoid man in the middle, IMHO:
cd docker
docker build -t obergixlocal/docker-org-export .
Use the provided docker/docker-org-export
script, which relies on
the olberger/docker-org-export
container image. See how Makefile does it.
Each lesson.org
needs some configuration :
- Configure
org-reveal-title-slide
inslides.org
. - Configure in the headers elements like:
- header (
\lhead{...}
and\rhead{...}
) - and footer (
\lfoot{...}
and\rfoot{...}
)
ex:
#+LaTeX_HEADER: \rhead{...}
inhandbook.org
andteacher-handbook.org
. - header (
I’ve tested DeckTape using a Docker container containing PhantomJS
and
decktape
to convert the slides to a single PDF document.
See the provided decktape.sh script that runs the container, bind-mounting the working dir into the container, so that input and output files can be found.
Note that I used a rebuilt Docker image, reusing the DeckTape Dockerfile, rebuilding with something alongside:
docker build -t obergixlocal/decktape .
We have experienced issues with presentations made on some versions of Firefox, which are known by reveal.js maintainer… maybe best viewed in chrome.
You may prefer to have a PDF variant of the slides (see Printing slides) in case.
See the contents of the files… but be wary that it’s sometimes messy and incrementally obtained.
Emacs is your buddy.
Git clone from https://gitlab.com/olberger/org-teaching.git
(see the Gitlab project)
The repository contains Git submodules for :
reveal.js/
elisp/org-reveal
- reveal.js’s jump plugin (
reveal.js-jump-plugin/
)
So :
git submodule init
git submodule update
You may prefer to install them another way (ELPA repo, CDN, etc.)
See the org-reveal settings set in the sources and the docs for a detailed explanation.
I’m using the following for a “frugal” look close to what powerpoint or beamer (?) could look like :
#+REVEAL_HLEVEL: 2
#+REVEAL_THEME: simple
#+REVEAL_TRANS: fade
#+REVEAL_SPEED: fast
#+REVEAL_MARGIN: 0.0
#+REVEAL_EXTRA_CSS: ./presentation.css
#+REVEAL_ROOT: ./reveal.js
#+OPTIONS: reveal_center:nil
The highest level sections include the following properties below the heading line, to customize the look of the slide.
:PROPERTIES:
:REVEAL_EXTRA_ATTR: class="center"
:reveal_background: #dbdbed
:END:
This is intended to provide some visual sense of the transitions between sections. Please adapt and report.
I’m not yet sure how much may be achieved with HTML and CSS for the title page of the slides deck, so I’ve relied on the embedding of a background image that will contain the logos and additional graphics.
#+REVEAL_TITLE_SLIDE_BACKGROUND: ./media/title-slide-background.png
I’m quite sure this could be improved.
- All contributors to org-mode (special kudos to Carsten Dominik and Bastien Guerry)
- Yujie Wen for
org-reveal
- Hakim El Hattab for
reveal.js
- My colleagues at Telecom SudParis who had to teach with this tool without much rehersal
- Our students who endured it for a brand new course (and included bugs)
- Alexey Lebedeff for his docker-org-export Docker container
I may be contacted from my Web page or via the Gitlab project.
Created and used for 2 editions of teaching “Web Architecture and Applications” in the CSC4101 module at Telecom SudParis (Olivier Berger and colleagues)
[fn:1] the greyed box in the previous section is an example.