Browse Source

adding custom ID's to ob-worg for pretty/stable internal links

Eric Schulte 16 years ago
parent
commit
402fe5f78f
1 changed files with 35 additions and 2 deletions
  1. 35 2
      org-babel-worg.org

+ 35 - 2
org-babel-worg.org

@@ -1,4 +1,4 @@
-#+OPTIONS:    H:3 num:nil toc:1 \n:nil @:t ::t |:t ^:t -:t f:t *:t TeX:t LaTeX:t skip:nil d:(HIDE) tags:not-in-toc
+#+OPTIONS:    H:3 num:nil toc:2 \n:nil @:t ::t |:t ^:t -:t f:t *:t TeX:t LaTeX:t skip:nil d:(HIDE) tags:not-in-toc
 #+STARTUP:    align fold nodlcheck hidestars oddeven lognotestate
 #+STARTUP:    align fold nodlcheck hidestars oddeven lognotestate
 #+SEQ_TODO:   TODO(t) INPROGRESS(i) WAITING(w@) | DONE(d) CANCELED(c@)
 #+SEQ_TODO:   TODO(t) INPROGRESS(i) WAITING(w@) | DONE(d) CANCELED(c@)
 #+TAGS:       Write(w) Update(u) Fix(f) Check(c) 
 #+TAGS:       Write(w) Update(u) Fix(f) Check(c) 
@@ -25,6 +25,9 @@
 #+end_html
 #+end_html
 
 
 * Introduction
 * Introduction
+  :PROPERTIES:
+  :CUSTOM_ID: introduction
+  :END:
   Org-babel provides the following modifications to [[http://orgmode.org/manual/Literal-examples.html][the existing
   Org-babel provides the following modifications to [[http://orgmode.org/manual/Literal-examples.html][the existing
   support]] for blocks of source code examples in the org-mode core.
   support]] for blocks of source code examples in the org-mode core.
   1. source code execution
   1. source code execution
@@ -32,6 +35,9 @@
   3. exportation of source code blocks to files (literate programming)
   3. exportation of source code blocks to files (literate programming)
 
 
 * Getting started
 * Getting started
+  :PROPERTIES:
+  :CUSTOM_ID: getting-started
+  :END:
   Grab the latest code from the git repo at [[http://github.com/eschulte/org-babel/tree/master][github/org-babel]]
   Grab the latest code from the git repo at [[http://github.com/eschulte/org-babel/tree/master][github/org-babel]]
 #+begin_src sh
 #+begin_src sh
 git clone git://github.com/eschulte/org-babel.git
 git clone git://github.com/eschulte/org-babel.git
@@ -46,7 +52,13 @@ git clone git://github.com/eschulte/org-babel.git
 #+end_src
 #+end_src
   
   
 * Basic org-babel functionality
 * Basic org-babel functionality
+  :PROPERTIES:
+  :CUSTOM_ID: basic-functionality
+  :END:
 *** Source code execution
 *** Source code execution
+    :PROPERTIES:
+    :CUSTOM_ID: source-code-execution
+    :END:
     For interpreted languages such as shell, python, R, etc, org-babel
     For interpreted languages such as shell, python, R, etc, org-babel
     allows source blocks to be executed: the code is passed to the
     allows source blocks to be executed: the code is passed to the
     interpreter and you have control over what is done with the
     interpreter and you have control over what is done with the
@@ -75,6 +87,9 @@ Results of R evaluation
 | 10 |
 | 10 |
 
 
 *** What happens to the results?
 *** What happens to the results?
+    :PROPERTIES:
+    :CUSTOM_ID: results
+    :END:
     Org-babel provides two fundamentally different modes for capturing
     Org-babel provides two fundamentally different modes for capturing
     the results of code evaluation, specified by the :results header
     the results of code evaluation, specified by the :results header
     argument:
     argument:
@@ -144,6 +159,9 @@ Results of Emacs Lisp code evaluation
 | 1 | 3 | 8 | 21 | 55 | 144 | 377 | 987 | 2584 | 6765 |
 | 1 | 3 | 8 | 21 | 55 | 144 | 377 | 987 | 2584 | 6765 |
 
 
 * A meta-programming language for org-mode
 * A meta-programming language for org-mode
+  :PROPERTIES:
+  :CUSTOM_ID: meta-programming-language
+  :END:
 
 
 Since information can pass freely between source-code blocks and
 Since information can pass freely between source-code blocks and
 org-mode tables you can mix and match languages using each language
 org-mode tables you can mix and match languages using each language
@@ -185,6 +203,9 @@ then graph them with R.
 4. Results of R code [[file:images/dirs.png]]
 4. Results of R code [[file:images/dirs.png]]
 
 
 * Spreadsheet plugins for org-mode in any language
 * Spreadsheet plugins for org-mode in any language
+  :PROPERTIES:
+  :CUSTOM_ID: spreadsheet
+  :END:
 
 
 *NOTE*: Maybe in-addition-to/in-stead-of this example we should do a
 *NOTE*: Maybe in-addition-to/in-stead-of this example we should do a
 more traditional "spreadsheet" example with R [Eric]
 more traditional "spreadsheet" example with R [Eric]
@@ -214,7 +235,7 @@ Here's a sample of our test suite.
 #+TBLFM: $5='(if (= (length $3) 1) (progn (message (format "running %S" '(sbe $2 (n $3)))) (sbe $2 (n $3))) (sbe $2))::$6='(if (string= $4 $5) "pass" (format "expected %S but was %S" $4 $5))
 #+TBLFM: $5='(if (= (length $3) 1) (progn (message (format "running %S" '(sbe $2 (n $3)))) (sbe $2 (n $3))) (sbe $2))::$6='(if (string= $4 $5) "pass" (format "expected %S but was %S" $4 $5))
 #+TBLFM: $5=""::$6=""
 #+TBLFM: $5=""::$6=""
 
 
-** code blocks for tests
+*** code blocks for tests
 
 
 #+srcname: basic-elisp
 #+srcname: basic-elisp
 #+begin_src emacs-lisp :var n=7
 #+begin_src emacs-lisp :var n=7
@@ -248,6 +269,9 @@ b + 4
 #+end_src
 #+end_src
 
 
 * Library of Babel
 * Library of Babel
+  :PROPERTIES:
+  :CUSTOM_ID: library-of-babel
+  :END:
   What about those source code blocks which are so useful you want to
   What about those source code blocks which are so useful you want to
   have them available in every org-mode buffer?
   have them available in every org-mode buffer?
 
 
@@ -263,6 +287,9 @@ b + 4
 #+end_src
 #+end_src
 
 
 * Reproducible Research
 * Reproducible Research
+  :PROPERTIES:
+  :CUSTOM_ID: reproducable-research
+  :END:
 #+begin_quote 
 #+begin_quote 
 An article about computational science in a scientific publication is
 An article about computational science in a scientific publication is
 not the scholarship itself, it is merely advertising of the
 not the scholarship itself, it is merely advertising of the
@@ -292,9 +319,15 @@ only RR tool which allows multiple languages and data to coexist and
 cooperate inside of a single document.
 cooperate inside of a single document.
 
 
 * Literate programming
 * Literate programming
+  :PROPERTIES:
+  :CUSTOM_ID: literate-programming
+  :END:
   - org-babel-tangle
   - org-babel-tangle
   - org-babel-load-file
   - org-babel-load-file
 * Reference / Documentation
 * Reference / Documentation
+  :PROPERTIES:
+  :CUSTOM_ID: reference-and-documentation
+  :END:
 
 
 *** Source Code block syntax
 *** Source Code block syntax