|
|
@@ -198,11 +198,14 @@ would then be [[#sandbox][the sandbox]].
|
|
|
(require 'org-babel-init)
|
|
|
#+end_src
|
|
|
|
|
|
-* Tasks [0/0]
|
|
|
+
|
|
|
+* Tasks [30/49]
|
|
|
+** PROPOSED use example block for large amounts of stdout output?
|
|
|
+ We're currently `examplizing' with : at the beginning of the line,
|
|
|
+ but should larger amounts of output be in a
|
|
|
+ \#+begin_example...\#+end_example block? What's the cutoff? > 1 line?
|
|
|
** TODO make tangle files read-only?
|
|
|
With a file-local variable setting?
|
|
|
-** TODO fold source blocks on #+srcname line?
|
|
|
- I.e., as well as on #+begin_src line.
|
|
|
** TODO take default values for header args from properties
|
|
|
Use file-wide and subtree wide properties to set default values for
|
|
|
header args.
|
|
|
@@ -660,6 +663,76 @@ This would allow for display of images upon export providing
|
|
|
functionality similar to =org-exp-blocks= only in a more general
|
|
|
manner.
|
|
|
|
|
|
+** TODO Add languages [1/6]
|
|
|
+I'm sure there are many more that aren't listed here. Please add
|
|
|
+them, and bubble any that you particularly care about up to the top.
|
|
|
+
|
|
|
+Any new language should be implemented in a org-babel-lang.el file.
|
|
|
+Follow the pattern set by [[file:lisp/org-babel-script.el][org-babel-script.el]], [[file:lisp/org-babel-shell.el][org-babel-shell.el]] and
|
|
|
+[[file:lisp/org-babel-R.el][org-babel-R.el]].
|
|
|
+
|
|
|
+*** TODO perl
|
|
|
+This could probably be added to [[file:lisp/org-babel-script.el][org-babel-script.el]]
|
|
|
+
|
|
|
+*** TODO java
|
|
|
+
|
|
|
+*** DONE ditaa
|
|
|
+(see [[* file result types][file result types]])
|
|
|
+
|
|
|
+#+srcname: implementing-ditaa
|
|
|
+#+begin_src ditaa :results replace :file blue.png :cmdline -r
|
|
|
++---------+
|
|
|
+| cBLU |
|
|
|
+| |
|
|
|
+| +----+
|
|
|
+| |cPNK|
|
|
|
+| | |
|
|
|
++----+----+
|
|
|
+#+end_src
|
|
|
+
|
|
|
+#+resname: implementing-ditaa
|
|
|
+[[file:blue.png][blue.png]]
|
|
|
+
|
|
|
+*** STARTED gnuplot
|
|
|
+(see [[* file result types][file result types]])
|
|
|
+
|
|
|
+- a =file= header argument
|
|
|
+- a =cmdline= header argument
|
|
|
+- to add variables
|
|
|
+ - scalar variables should be replaced in the body of the gnuplot code
|
|
|
+ - vector variables should be exported to tab-separated files, and
|
|
|
+ the variable names should be replaced with the path to the files
|
|
|
+
|
|
|
+#+PLOT: title:"Citas" ind:1 deps:(3) type:2d with:histograms set:"yrange [0:]"
|
|
|
+#+TBLNAME: gnuplot-data
|
|
|
+| independent var | first dependent var | second dependent var |
|
|
|
+|-----------------+---------------------+----------------------|
|
|
|
+| 0.1 | 0.425 | 0.375 |
|
|
|
+| 0.2 | 0.3125 | 0.3375 |
|
|
|
+| 0.3 | 0.24999993 | 0.28333338 |
|
|
|
+| 0.4 | 0.275 | 0.28125 |
|
|
|
+| 0.5 | 0.26 | 0.27 |
|
|
|
+| 0.6 | 0.25833338 | 0.24999993 |
|
|
|
+| 0.7 | 0.24642845 | 0.23928553 |
|
|
|
+| 0.8 | 0.23125 | 0.2375 |
|
|
|
+| 0.9 | 0.23333323 | 0.2333332 |
|
|
|
+| 1 | 0.2225 | 0.22 |
|
|
|
+| 1.1 | 0.20909075 | 0.22272708 |
|
|
|
+| 1.2 | 0.19999998 | 0.21458333 |
|
|
|
+| 1.3 | 0.19615368 | 0.21730748 |
|
|
|
+
|
|
|
+#+srcname: implementing-gnuplot
|
|
|
+#+begin_src gnuplot :var data=gnuplot-data
|
|
|
+set title "Implementing Gnuplot"
|
|
|
+plot "data" using 1:2 with lines
|
|
|
+#+end_src
|
|
|
+
|
|
|
+*** TODO dot
|
|
|
+(see [[* file result types][file result types]])
|
|
|
+
|
|
|
+*** TODO asymptote
|
|
|
+(see [[* file result types][file result types]])
|
|
|
+
|
|
|
** DEFERRED use textConnection to pass tsv to R?
|
|
|
When passing args from the org buffer to R, the following route is
|
|
|
used: arg in buffer -> elisp -> tsv on file -> data frame in R. I
|
|
|
@@ -1954,83 +2027,15 @@ This is currently working only with emacs lisp as in the following
|
|
|
example in the [[* emacs lisp source reference][emacs lisp source reference]].
|
|
|
|
|
|
|
|
|
-** TODO Add languages [1/6]
|
|
|
-I'm sure there are many more that aren't listed here. Please add
|
|
|
-them, and bubble any that you particularly care about up to the top.
|
|
|
-
|
|
|
-Any new language should be implemented in a org-babel-lang.el file.
|
|
|
-Follow the pattern set by [[file:lisp/org-babel-script.el][org-babel-script.el]], [[file:lisp/org-babel-shell.el][org-babel-shell.el]] and
|
|
|
-[[file:lisp/org-babel-R.el][org-babel-R.el]].
|
|
|
-
|
|
|
-*** TODO perl
|
|
|
-This could probably be added to [[file:lisp/org-babel-script.el][org-babel-script.el]]
|
|
|
-
|
|
|
-*** TODO java
|
|
|
-
|
|
|
-*** DONE ditaa
|
|
|
-(see [[* file result types][file result types]])
|
|
|
-
|
|
|
-#+srcname: implementing-ditaa
|
|
|
-#+begin_src ditaa :results replace :file blue.png :cmdline -r
|
|
|
-+---------+
|
|
|
-| cBLU |
|
|
|
-| |
|
|
|
-| +----+
|
|
|
-| |cPNK|
|
|
|
-| | |
|
|
|
-+----+----+
|
|
|
-#+end_src
|
|
|
-
|
|
|
-#+resname: implementing-ditaa
|
|
|
-[[file:blue.png][blue.png]]
|
|
|
-
|
|
|
-*** STARTED gnuplot
|
|
|
-(see [[* file result types][file result types]])
|
|
|
-
|
|
|
-- a =file= header argument
|
|
|
-- a =cmdline= header argument
|
|
|
-- to add variables
|
|
|
- - scalar variables should be replaced in the body of the gnuplot code
|
|
|
- - vector variables should be exported to tab-separated files, and
|
|
|
- the variable names should be replaced with the path to the files
|
|
|
-
|
|
|
-#+PLOT: title:"Citas" ind:1 deps:(3) type:2d with:histograms set:"yrange [0:]"
|
|
|
-#+TBLNAME: gnuplot-data
|
|
|
-| independent var | first dependent var | second dependent var |
|
|
|
-|-----------------+---------------------+----------------------|
|
|
|
-| 0.1 | 0.425 | 0.375 |
|
|
|
-| 0.2 | 0.3125 | 0.3375 |
|
|
|
-| 0.3 | 0.24999993 | 0.28333338 |
|
|
|
-| 0.4 | 0.275 | 0.28125 |
|
|
|
-| 0.5 | 0.26 | 0.27 |
|
|
|
-| 0.6 | 0.25833338 | 0.24999993 |
|
|
|
-| 0.7 | 0.24642845 | 0.23928553 |
|
|
|
-| 0.8 | 0.23125 | 0.2375 |
|
|
|
-| 0.9 | 0.23333323 | 0.2333332 |
|
|
|
-| 1 | 0.2225 | 0.22 |
|
|
|
-| 1.1 | 0.20909075 | 0.22272708 |
|
|
|
-| 1.2 | 0.19999998 | 0.21458333 |
|
|
|
-| 1.3 | 0.19615368 | 0.21730748 |
|
|
|
-
|
|
|
-#+srcname: implementing-gnuplot
|
|
|
-#+begin_src gnuplot :var data=gnuplot-data
|
|
|
-set title "Implementing Gnuplot"
|
|
|
-plot "data" using 1:2 with lines
|
|
|
-#+end_src
|
|
|
-
|
|
|
-*** TODO dot
|
|
|
-(see [[* file result types][file result types]])
|
|
|
-
|
|
|
-*** TODO asymptote
|
|
|
-(see [[* file result types][file result types]])
|
|
|
-
|
|
|
-
|
|
|
* Bugs [18/23]
|
|
|
** TODO Allow source blocks to be recognised when #+ are not first characters on the line
|
|
|
I think Carsten has recently altered the core so that #+ can have
|
|
|
preceding whitespace, at least for literal/code examples. org-babel
|
|
|
should support this.
|
|
|
|
|
|
+** TODO fold source blocks on #+srcname line?
|
|
|
+ I.e., as well as on #+begin_src line.
|
|
|
+
|
|
|
** TODO non-orgtbl formatted lists
|
|
|
for example
|
|
|
|