|
|
@@ -3,8 +3,8 @@
|
|
|
#+SEQ_TODO: TODO OPEN | DONE RESOLVED
|
|
|
#+STARTUP: oddeven
|
|
|
|
|
|
-* Tasks [5/10]
|
|
|
-** TODO selective export of text, code, figures [0/2]
|
|
|
+* Tasks [4/10]
|
|
|
+** TODO selective export of text, code, figures [1/2]
|
|
|
[DED] The litorgy buffer contains everything (code, headings and
|
|
|
notes/prose describing what you're up to, textual/numeric/graphical
|
|
|
code output, etc). However on export to html / LaTeX one might want
|
|
|
@@ -12,7 +12,7 @@
|
|
|
want to create a presentation of what you've done which omits the
|
|
|
code.
|
|
|
|
|
|
-*** TODO export header argument
|
|
|
+*** DONE export header argument
|
|
|
[EMS] So I think this should be implemented as a property which can
|
|
|
be set globally or on the outline header level (I need to review
|
|
|
the mechanics of org-mode properties). And then as a source block
|
|
|
@@ -25,6 +25,8 @@
|
|
|
show the actual code)
|
|
|
- =both= :: show both the source code, and the results
|
|
|
|
|
|
+this will be done in [[* (sandbox) selective export][(sandbox) selective export]].
|
|
|
+
|
|
|
*** TODO inline source blocks
|
|
|
Thinking there should be *two types* of source code blocks. The
|
|
|
first should be the *large blocks* we're used to, and these should
|
|
|
@@ -113,15 +115,20 @@
|
|
|
posterity. Same for a shell session either in a *shell* buffer, or
|
|
|
pasted from another terminal emulator. And python of course.
|
|
|
|
|
|
-** DONE folding of code blocks?
|
|
|
+** TODO folding of code blocks? [1/2]
|
|
|
[DED] In similar way to using outline-minor-mode for folding function
|
|
|
bodies, can we fold code blocks? #+begin whatever statements are
|
|
|
pretty ugly, and in any case when you're thinking about the overall
|
|
|
game plan you don't necessarily want to see the code for each Step.
|
|
|
-
|
|
|
- Sounds good, and wasn't too hard to implement. Code blocks should
|
|
|
- now be fold-able in the same manner as headlines (by pressing TAB
|
|
|
- on the first line).
|
|
|
+
|
|
|
+*** DONE folding of source code block
|
|
|
+ Sounds good, and wasn't too hard to implement. Code blocks should
|
|
|
+ now be fold-able in the same manner as headlines (by pressing TAB
|
|
|
+ on the first line).
|
|
|
+
|
|
|
+*** TODO folding of results
|
|
|
+ So, lets do a three-stage tab cycle... First fold the src block,
|
|
|
+ then fold the results, then unfold.
|
|
|
|
|
|
** DONE a header argument specifying silent evaluation (no output)
|
|
|
This would be useful across all types of source block. Currently
|
|
|
@@ -195,7 +202,7 @@ This is currently working only with emacs lisp as in the following
|
|
|
example in the [[* emacs lisp source reference][emacs lisp source reference]].
|
|
|
|
|
|
|
|
|
-* Bugs [1/1]
|
|
|
+* Bugs [1/2]
|
|
|
** RESOLVED Args out of range error
|
|
|
|
|
|
The following block resulted in the error below [DED]. It ran without
|
|
|
@@ -220,6 +227,22 @@ used to be output when the block returned an empty results string.
|
|
|
This should be fixed in the current version, you should now see the
|
|
|
following message =no result returned by source block=.
|
|
|
|
|
|
+** TODO ruby arrays not recognized as such
|
|
|
+
|
|
|
+Something is wrong in [[file:litorgy/ligorgy-script.el]] related to the
|
|
|
+recognition of ruby arrays as such.
|
|
|
+
|
|
|
+#+begin_src ruby :results replace
|
|
|
+[1, 2, 3, 4]
|
|
|
+#+end_src
|
|
|
+
|
|
|
+: 1
|
|
|
+
|
|
|
+#+begin_src python :results replace
|
|
|
+[1, 2, 3, 4]
|
|
|
+#+end_src
|
|
|
+
|
|
|
+| 1 | 2 | 3 | 4 |
|
|
|
|
|
|
* Sandbox
|
|
|
This is a place for code examples
|
|
|
@@ -346,6 +369,13 @@ out...
|
|
|
(transpose table)
|
|
|
#+end_src
|
|
|
|
|
|
+#+begin_src emacs-lisp
|
|
|
+'(1 2 3 4 5)
|
|
|
+#+end_src
|
|
|
+
|
|
|
+| 1 | 2 | 3 | 4 | 5 |
|
|
|
+
|
|
|
+
|
|
|
*** Ruby and Python
|
|
|
|
|
|
#+begin_src ruby :var table=sandbox :results replace
|
|
|
@@ -530,7 +560,15 @@ other + 2
|
|
|
|
|
|
|
|
|
|
|
|
-** (sandboc) selective export
|
|
|
+** (sandbox) selective export
|
|
|
+
|
|
|
+#+begin_begin_src :results silent :export code
|
|
|
+class Schulte
|
|
|
+ def initialize
|
|
|
+ puts :eric
|
|
|
+ end
|
|
|
+end
|
|
|
+#+end_begin_src
|
|
|
|
|
|
|
|
|
|