Fix old-way variable assignments.
This commit is contained in:
parent
e62574f70b
commit
8e1eeaa190
|
@ -1,19 +1,20 @@
|
|||
#+title: The Library of Babel
|
||||
#+author: Org-mode People
|
||||
#+STARTUP: oddeven hideblocks
|
||||
#+STARTUP: hideblocks
|
||||
|
||||
* Introduction
|
||||
|
||||
The Library of Babel is an extensible collection of ready-made and
|
||||
easily-shortcut-callable source-code blocks for handling common tasks.
|
||||
Org-babel comes pre-populated with the source-code blocks located in this
|
||||
file. It is possible to add source-code blocks from any org-mode file to
|
||||
the library by calling =(org-babel-lob-ingest "path/to/file.org")=.
|
||||
Org-babel comes pre-populated with the source-code blocks located in
|
||||
this file. It is possible to add source-code blocks from any org-mode
|
||||
file to the library by calling =(org-babel-lob-ingest
|
||||
"path/to/file.org")=.
|
||||
|
||||
This file is included in worg mainly less for viewing through the web
|
||||
interface, and more for contribution through the worg git repository. If
|
||||
you have code snippets that you think others may find useful please add
|
||||
them to this file and [[file:~/src/worg/worg-git.org::contribute-to-worg][contribute them]] to worg.
|
||||
interface, and more for contribution through the worg git repository.
|
||||
If you have code snippets that you think others may find useful please
|
||||
add them to this file and [[file:~/src/worg/worg-git.org::contribute-to-worg][contribute them]] to worg.
|
||||
|
||||
The raw Org-mode text of this file can be downloaded at
|
||||
[[repofile:contrib/babel/library-of-babel.org][library-of-babel.org]]
|
||||
|
@ -63,7 +64,7 @@ as a table in traditional Org-mode table syntax.
|
|||
|
||||
** Remote files
|
||||
|
||||
**** json
|
||||
*** json
|
||||
|
||||
Read local or remote file in [[http://www.json.org/][json]] format into emacs-lisp objects.
|
||||
|
||||
|
@ -83,14 +84,14 @@ Read local or remote file in [[http://www.json.org/][json]] format into emacs-li
|
|||
(json-read))))
|
||||
#+end_src
|
||||
|
||||
**** Google docs
|
||||
*** Google docs
|
||||
|
||||
The following code blocks make use of the [[http://code.google.com/p/googlecl/][googlecl]] Google command line
|
||||
tool. This tool provides functionality for accessing Google services
|
||||
from the command line, and the following code blocks use /googlecl/
|
||||
for reading from and writing to Google docs with Org-mode code blocks.
|
||||
|
||||
****** Read a document from Google docs
|
||||
**** Read a document from Google docs
|
||||
|
||||
The =google= command seems to be throwing "Moved Temporarily" errors
|
||||
when trying to download textual documents, but this is working fine
|
||||
|
@ -120,7 +121,7 @@ document as a string.
|
|||
|
||||
: #+call: gdoc-read(title="loremi", :format "txt")
|
||||
|
||||
****** Write a document to a Google docs
|
||||
**** Write a document to a Google docs
|
||||
|
||||
Write =data= to a google document named =title=. If =data= is tabular
|
||||
it will be saved to a spreadsheet, otherwise it will be saved as a
|
||||
|
@ -157,8 +158,8 @@ example usage
|
|||
Plot column 2 (y axis) against column 1 (x axis). Columns 3 and
|
||||
beyond, if present, are ignored.
|
||||
|
||||
#+name: R-plot(data=R-plot-example-data)
|
||||
#+begin_src R
|
||||
#+name: R-plot
|
||||
#+begin_src R :var data=R-plot-example-data
|
||||
plot(data)
|
||||
#+end_src
|
||||
|
||||
|
@ -296,7 +297,6 @@ are optional.
|
|||
(list :lend " \\\\" :sep " & " :hline hline)))))
|
||||
#+end_src
|
||||
|
||||
|
||||
*** booktabs-notes
|
||||
|
||||
This source block builds on [[booktabs]]. It accepts two additional
|
||||
|
@ -350,7 +350,7 @@ span. Note the use of LaTeX, rather than Org-mode, markup.
|
|||
)))
|
||||
#+end_src
|
||||
|
||||
** Elegant lisp for transposing a matrix.
|
||||
** Elegant lisp for transposing a matrix
|
||||
|
||||
#+tblname: transpose-example
|
||||
| 1 | 2 | 3 |
|
||||
|
@ -440,13 +440,13 @@ Git. 'limit' is currently unsupported.
|
|||
|
||||
** Trivial python code blocks
|
||||
|
||||
#+name: python-identity(a=1)
|
||||
#+begin_src python
|
||||
#+name: python-identity
|
||||
#+begin_src python :var a=1
|
||||
a
|
||||
#+end_src
|
||||
|
||||
#+name: python-add(a=1, b=2)
|
||||
#+begin_src python
|
||||
#+name: python-add
|
||||
#+begin_src python :var a=1 :var b=2
|
||||
a + b
|
||||
#+end_src
|
||||
|
||||
|
|
Loading…
Reference in New Issue