TODO allow tangle to be called on a single source block
[org-mode.git] / test-export.org
blobcde184d4ed72cac8d3c07ae6368f7bac32874e92
1 #+TITLE: Testing Org-Babel Export
2 #+OPTIONS: toc:2 ^:nil
4 * all
6 ** full source blocks
8 *** ruby
10 source block is here, but is shouldn't be exported...
12 #+begin_src ruby :results silent :exports none
13 class Schulte
14   def initialize
15     puts :eric
16   end
17 end
18 #+end_src
20 The source block is here, and lets see the code
22 #+begin_src ruby :results silent :exports code
23 class Schulte
24   def initialize
25     puts :eric
26   end
27 end
28 #+end_src
30 This is a source block, and lets see the results
31 #+begin_src ruby :exports results :results replace
32 :the_results
33 #+end_src
35 lets see the source, and results for a ruby array
36 #+begin_src ruby :results replace
37 [1, 2, 3, 4].map{ |n| n * 2 }
38 #+end_src
41 *** emacs-lisp
43 a table
45 #+begin_src emacs-lisp
46 '(1 2 3 4 5)
47 #+end_src
49 hidden
51 #+begin_src emacs-lisp :exports none :results silent
53 #+end_src
56 ** in-line source blocks
58 This is an inline source code block src_ruby{1 + 6}.  And another
59 source block with text output src_emacs-lisp{"eric"}.