dfeich / org-babel-examples

Examples using emacs org mode babel inline source code with different backend languages
573 stars 116 forks source link

+TITLE: README

+DATE: <2015-06-16 Tue>

+AUTHOR: Derek Feichtinger

+EMAIL: derek.feichtinger@psi.ch

+OPTIONS: ':nil *:t -:t ::t <:t H:3 \n:nil ^:t arch:headline

+OPTIONS: author:t c:nil creator:comment d:(not "LOGBOOK") date:t

+OPTIONS: e:t email:nil f:t inline:t num:t p:nil pri:nil stat:t

+OPTIONS: tags:t tasks:t tex:t timestamp:t toc:nil todo:t |:t

+CREATOR: Emacs 24.5.1 (Org mode 8.2.10)

+DESCRIPTION:

+EXCLUDE_TAGS: noexport

+KEYWORDS:

+LANGUAGE: en

+SELECT_TAGS: export

** Contents

Note that you need to look at the examples in raw mode! Github can nicely render an org file, but you will lose the markup. For some of the example documents I provide the exported PDF documents as well.

  1. Babel examples for various backends
    • [[./lisp/lisp-babel.org][Emacs lisp]]
    • [[./python/pythonbabel.org][python]] ([[./python/pythonbabel.pdf][PDF]] output)
    • [[./python/ipython-babel.org][Ipython]]
    • [[./shell/shell-babel.org][shell]] (bash)
    • [[./sqlite/sqlite-babel.org][SQLite]]
    • [[./calc/calc.org][Emacs calc]]
    • [[./C/c-babel.org][C]]
    • [[./graphviz/graphviz-babel.org][graphviz]] ([[./graphviz/graphviz-babel.pdf][PDF]] output)
    • [[./plantuml/plantuml-babel.org][plantuml]]
    • [[./ditaa/ditaa-babel.org][ditaa]]
    • [[./gnuplot/gnuplot-babel.org][gnuplot]]
  2. Export backend Examples
    • [[./latex/latex-example.org][LaTeX]] ([[./latex/latex-example.pdf][PDF]] output)
    • [[./beamer/beamer-example.org][LaTeX Beamer]] for presentations ([[./beamer/beamer-example.pdf][PDF]] output)
    • [[./odt/odt-example.org][ODT]] for exporting to LibreOffice (and then also MS Word) ([[./odt/odt-example.odt][ODT]] export)
      • [[./odt/styles.org][org file to produce an example ODT styles file]]
    • [[./exporting-tips.org][some collected miscellaneous exporter tips]] (just beginning)
  3. general [[./tables/tables.org][Org table related]] examples

** Motivation

Org-Mode is a fantastic piece of work that over the last years took over most of my daily workflows. It's ability to be already useful on a beginner's level (as outliner or simple agenda) that allows stepwise learning until you end with an extremely versatile authoring and programming framework make it unique. Add to it the community which constantly are improving it, and also managed to write for this complex format a parsing library that turns an org document into an abstract data structure for which exporters to other formats can be easily produced.

Just to show you where I profit from org, and naturally from the basic Emacs funtionality, I'll list a number of use cases.