[babel] Re: [Orgmode] org-babel: Meta-LaTeX-Python-Environment

2009-10-28 Thread Dan Davison
Dear thread participants, please note that we were breaking the rule of prepending the subject line with the string [babel]! One question inline below. Eric Schulte schulte.e...@gmail.com writes: Thomas S. Dye t...@tsdye.com writes: On Oct 27, 2009, at 12:55 PM, Eric Schulte wrote:

Re: [Orgmode] org-babel: Meta-LaTeX-Python-Environment

2009-10-28 Thread Thomas S. Dye
On Oct 28, 2009, at 5:19 AM, Eric Schulte wrote: I see, you are using the org-mode file a level above the direct export. Maybe another option here would be to tag headlines based on which export target they are included within, and then base your exports on the headline tags (using

Re: [babel] Re: [Orgmode] org-babel: Meta-LaTeX-Python-Environment

2009-10-28 Thread Dan Davison
Dan Davison davi...@stats.ox.ac.uk writes: Am I right in thinking that one issue remaining in this thread is that we currently have no means of tangling the output of org-babel-latex? Thus the 'begin_src latex' blocks that we can tangle have unevaluated variables, and the resulting

[babel] Re: [Orgmode] org-babel: Meta-LaTeX-Python-Environment

2009-10-28 Thread Thomas S. Dye
On Oct 28, 2009, at 6:10 AM, Dan Davison wrote: Dear thread participants, please note that we were breaking the rule of prepending the subject line with the string [babel]! One question inline below. Eric Schulte schulte.e...@gmail.com writes: Thomas S. Dye t...@tsdye.com writes: On

Re: [Orgmode] org-babel: Meta-LaTeX-Python-Environment

2009-10-28 Thread Dan Davison
[cc'ing list who were accidentally omitted] Torsten Wagner torsten.wag...@gmail.com writes: Hi Dan,   1. Hiding of the source code blocks for export I like to export the results of the source code block to LaTeX only. However, Using ':exports results' specifies that

Re: [babel] Re: [Orgmode] org-babel: Meta-LaTeX-Python-Environment

2009-10-28 Thread Eric Schulte
Thomas S. Dye t...@tsdye.com writes: On Oct 28, 2009, at 6:10 AM, Dan Davison wrote: Am I right in thinking that one issue remaining in this thread is that we currently have no means of tangling the output of org-babel-latex? Thus the 'begin_src latex' blocks that we can tangle have

Re: [babel] Re: [Orgmode] org-babel: Meta-LaTeX-Python-Environment

2009-10-28 Thread Thomas S. Dye
On Oct 28, 2009, at 7:15 AM, Eric Schulte wrote: Thomas S. Dye t...@tsdye.com writes: On Oct 28, 2009, at 6:10 AM, Dan Davison wrote: Am I right in thinking that one issue remaining in this thread is that we currently have no means of tangling the output of org-babel- latex? Thus the

Re: [babel] Re: [Orgmode] org-babel: Meta-LaTeX-Python-Environment

2009-10-28 Thread Eric Schulte
Thomas S. Dye t...@tsdye.com writes: [...] Eric, I think Torsten has a clearer idea than I do about what kinds of programming structures might be appropriate here, but your suggestion looks to me like an elegant replacement for the file based technique I'm using to pass information into

Re: [babel][Orgmode] org-babel: Meta-LaTeX-Python-Environment

2009-10-28 Thread Torsten Wagner
Hi Dan, thanks for helping me to realize my idea. Actually, I do not know whether it is not working or it is not working as I expect: I used the following simple example: --8--cut here--start---8--- * Simple Test of org-babel #+srcname: test()

Re: [Orgmode] org-babel: Meta-LaTeX-Python-Environment

2009-10-27 Thread Thomas S. Dye
On Oct 26, 2009, at 2:24 PM, Dan Davison wrote: Torsten Wagner torsten.wag...@gmail.com writes: ... ... The inline code blocks will not be processed inside source blocks. I'm not sure how to achieve what you want with the current machinery, but have you read the recent posts by Thomas

Re: [Orgmode] org-babel: Meta-LaTeX-Python-Environment

2009-10-27 Thread Torsten Wagner
Ups, sorry that happens if you are working normally with emacs and compose a message in a online editor (gmail). My fingers hit some emacs shortcuts without my brain was telling them ;) ... and fired up the unfinished mail. Anyhow I hope it is somehow clear what I like to do Thus, just the

Re: [Orgmode] org-babel: Meta-LaTeX-Python-Environment

2009-10-27 Thread Torsten Wagner
Perhaps this will do what you want? When I run org-babel-tangle on the following org file, and then LaTeX the output, the resulting pdf file says: A bit of LATEX code, with the result: 6 * Test org #+begin_src python x = 6 f = open('python_results.tex', 'w') f.write(str(x))

Re: [Orgmode] org-babel: Meta-LaTeX-Python-Environment

2009-10-27 Thread Thomas S. Dye
On Oct 27, 2009, at 12:55 PM, Eric Schulte wrote: Torsten Wagner torsten.wag...@gmail.com writes: Perhaps this will do what you want? When I run org-babel-tangle on the following org file, and then LaTeX the output, the resulting pdf file says: A bit of LATEX code, with the result:

Re: [Orgmode] org-babel: Meta-LaTeX-Python-Environment

2009-10-26 Thread Dan Davison
Torsten Wagner torsten.wag...@gmail.com writes: ... Within a LaTeX-file (org-file) I like to use python snippets to perform calculus and other tasks which are otherwise extremely difficult or time consuming to perform directly in LaTeX. E.g. on-the-fly-generation of graphs or calculus

[Orgmode] org-babel: Meta-LaTeX-Python-Environment

2009-10-25 Thread Torsten Wagner
Hi, I started working on an little latex-package to allow the execution of python code in LaTeX a while ago. It stopped at some point and now it is on my pending project lists for a while already. When I read about org-babel I saw a lot of similarities. I like to start again on the basis of

[Orgmode] org-babel and matplotlib?

2009-10-19 Thread Piter_
Hi all. If I understand correctly, one can make inline images using org-babel and GNU-R. Will it work with matplotlib and python. Thanks Petro. ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org

Re: [Orgmode] org-babel and matplotlib?

2009-10-19 Thread Eric Schulte
Hi Petro, Yes, this should be possible. To force the resulting image to be included in the org-mode file you should add file to your results header argument, and ensure that your block of python code, generates the file, saves the file, and returns the path to the file as the last part of the

Re: [babel] Re: [Orgmode] org-babel installation failing using the latest version from git repo and emacs 23.1.50.1

2009-10-17 Thread Eric S Fraga
At Thu, 15 Oct 2009 13:01:46 -0400, Dan Davison wrote: I'm not on ubuntu 9.10 yet. Carsten / others -- is 6.30c what you'd get with emacs 23 on the current ubuntu beta release, or is org frozen at 6.21 in emacs23? I can't speak for ubuntu but Debian's unstable version of emacs (which I'm

Re: [babel] Re: [Orgmode] org-babel installation failing using the latest version from git repo and emacs 23.1.50.1

2009-10-17 Thread Dirk-Jan C . Binnema
Hi Dan, Eric == Eric S Fraga ucec...@ucl.ac.uk writes: Eric At Thu, 15 Oct 2009 13:01:46 -0400, Eric Dan Davison wrote: I'm not on ubuntu 9.10 yet. Carsten / others -- is 6.30c what you'd get with emacs 23 on the current ubuntu beta release, or is org frozen at 6.21 in

[Orgmode] [org-babel] Idea: Rendering output of code blocks inline (like org links)

2009-10-15 Thread Marcelo de Moraes Serpa
Hello list! I haven't still managed to get org-babel to work, but I do have a doubt that might turn into a feature request :) Would it be possible to have chunks of code around the buffer get evaluated when you close them with some kind of token, and them only show the output, *just like links

[Orgmode] org-babel installation failing using the latest version from git repo and emacs 23.1.50.1

2009-10-15 Thread Marcelo de Moraes Serpa
Hello, Well, I'm very, very excited to start using org-babel and making cool stuff with it. However, I could not yet get it to work here. The first thing that is not working, and I hope some more emacs-savvy users could put me in the right direction is that, I have this code in my .emacs: ;ORG

[babel] Re: [Orgmode] org-babel installation failing using the latest version from git repo and emacs 23.1.50.1

2009-10-15 Thread Dan Davison
Hi Marcelo, (Please note that we've agreed to tag org-babel messages with [babel]) Marcelo de Moraes Serpa celose...@gmail.com writes: Hello, Well, I'm very, very excited to start using org-babel and making cool stuff with it. However, I could not yet get it to work here. OK, we must fix

Re: [Orgmode] [org-babel] Idea: Rendering output of code blocks inline (like org links)

2009-10-15 Thread Eric Schulte
Marcelo de Moraes Serpa celose...@gmail.com writes: Hello list! I haven't still managed to get org-babel to work, but I do have a doubt that might turn into a feature request :) Would it be possible to have chunks of code around the buffer get evaluated when you close them with some

[Orgmode] Org Babel, Ruby and Outlook

2009-10-15 Thread Miguel Fernando Cabrera
Hi All, In a similar way to [1], I want to import my Outlook appointments into Org. I thought of a less sophisticated way to archive this using Org Babel. I coded a Ruby script to print out the Appointments in Org Format so I can see them in the agenda view. I execute the code using the

Re: [Orgmode] Org Babel, Ruby and Outlook

2009-10-15 Thread Eric Schulte
Hi Miguel, That is a very cool application. To insert your script's results directly into the Org-mode buffer try changing your header line from #+begin_src ruby :results output to #+begin_src ruby :results output raw as this seems like the sort of thing which would be generally useful,

Re: [Orgmode] org-babel feature request

2009-10-11 Thread Maurizio Vitale
Dan == Dan Davison davi...@stats.ox.ac.uk writes: Dan Maurizio Vitale Dan m...@cuma.i-did-not-set--mail-host-address--so-tickle-me Dan writes: Dan [...] It would be nice if it was possible to have multiple result sections. This way I could embed in the document the

Re: [Orgmode] org-babel feature request

2009-10-11 Thread Maurizio Vitale
Dan == Dan Davison davi...@stats.ox.ac.uk writes: Dan Maurizio Vitale maurizio.vit...@polymath-solutions.com Dan writes: Dan == Dan Davison davi...@stats.ox.ac.uk writes: Dan Maurizio Vitale Dan m...@cuma.i-did-not-set--mail-host-address--so-tickle-me Dan writes:

[Orgmode] org-babel feature request

2009-10-10 Thread Maurizio Vitale
Thanks for the work on org-babel. I'm not sure the following is even mature enough in my mind to qualify it as a feature request. Maybe in the end it might be replaced by some other functionality that subsume it. But here's the scenario: I'd like to use org-babel for documenting the

Re: [Orgmode] org-babel feature request

2009-10-10 Thread Dan Davison
Maurizio Vitale m...@cuma.i-did-not-set--mail-host-address--so-tickle-me writes: [...] It would be nice if it was possible to have multiple result sections. This way I could embed in the document the result that was obtained when writing the documentation, while still allowing the person

Re: [Orgmode] org-babel feature request

2009-10-10 Thread Dan Davison
Maurizio Vitale maurizio.vit...@polymath-solutions.com writes: Dan == Dan Davison davi...@stats.ox.ac.uk writes: Dan Maurizio Vitale Dan m...@cuma.i-did-not-set--mail-host-address--so-tickle-me Dan writes: Dan [...] It would be nice if it was possible to have

[Orgmode] Org-babel for jython?

2009-10-09 Thread Eric S Fraga
At Mon, 14 Sep 2009 07:44:57 -0600, Eric Schulte wrote: Dan Davison and I (Eric Schulte) are happy to announce that Org-babel has now been released as a contributed package in Org-mode with corresponding documentation on worg [1]. Org-babel provides the following functionality: -

Re: [Orgmode] Org-babel for jython?

2009-10-09 Thread Dan Davison
Eric S Fraga ucec...@ucl.ac.uk writes: Eric et al., any chance of creating a jython interface? Or has anybody else done this already? I've tried creating one from your org-babel-python.el file by changing all occurrences of python to jython (bar one: the run-python command as that

[Orgmode] org-babel-tangle indentation

2009-10-08 Thread Chris Gray
Hi, I've been using org-babel for a couple of weeks now and I really like it for programming. One thing I've noticed, though, is that source blocks are not indented when they are output by org-babel-tangle. This makes the output source hard to read, and incorrect for languages where indentation

Re: [Orgmode] org-babel-tangle indentation

2009-10-08 Thread Eric Schulte
Hi Chris, You have touched upon a true limitation in the current tangle functionality. I think this issue has two parts (one of which you address below). 1) it is impossible to specify a piece of heavily indented code in a source-code block. For example --8---cut

Re: [Orgmode] org-babel-tangle indentation

2009-10-08 Thread Dan Davison
Chris, Eric -- Coincidentally, I think the email I just sent to the list provides a solution to these issues. I've also been using org-babel-tangle to write a python program this week. I've been finding it very helpful merely using basic org mode features such as folding and restructuring to

[Orgmode] org-babel: [PATCH] allow emacs-lisp results to be pretty-printed

2009-10-03 Thread Benjamin Andresen
Hey there, on irc (#org-mode) someone asked how one would go about to insert the result of a emacs-lisp function without it being transformed into a org-mode table. I didn't see any other way, so I wrote a small patch that allows the parameter :results to accept 'pp'. Is this the right way? And

Re: [Orgmode] org-babel: interactive terminal support

2009-09-25 Thread Dan Davison
Benjamin Andresen be...@in-ulm.de writes: Hello, after seeing org-babel I immediately thought of the eev project by Eduardo Ochs (http://angg.twu.net/) Basically I wanted to do what he does in this video: http://angg.twu.net/eev-current/anim/channels.anim.html So I wrote a small

[Orgmode] org-babel, position and indentation of resname

2009-09-22 Thread Nicolas Goaziou
Hello, I would like to put all my asymptote code in the header of the org file, and then, display the result later. I tried to move #+resname: but it is recreated just beneath the corresponding code at each export. I tried to use #+srcname: without success either. Is it possible to achieve this

[Orgmode] org-babel: interactive terminal support

2009-09-22 Thread Benjamin Andresen
Hello, after seeing org-babel I immediately thought of the eev project by Eduardo Ochs (http://angg.twu.net/) Basically I wanted to do what he does in this video: http://angg.twu.net/eev-current/anim/channels.anim.html So I wrote a small org-babel gnu screen interface. Eev does the same with

Re: [Orgmode] org-babel, position and indentation of resname

2009-09-22 Thread Eric Schulte
Nicolas Goaziou n.goaz...@gmail.com writes: Hello, I would like to put all my asymptote code in the header of the org file, and then, display the result later. I tried to move #+resname: but it is recreated just beneath the corresponding code at each export. I tried to use #+srcname:

Re: [Orgmode] org-babel: load-path question and indentation of blocks

2009-09-17 Thread Sebastian Rose
Eric Schulte schulte.e...@gmail.com writes: Sebastian Rose sebastian_r...@gmx.de writes: Hi Dan and Eric, I'm an org-babel fan now :) Here are two little things I noticed and that I want to discard from my todo list. * load-path Why is load modified only temporarily in

[Orgmode] org-babel, src blocks and asymptote

2009-09-16 Thread Nicolas Goaziou
Hello, Org-babel looks very interesting. I am pleased to see an asymptote module included in it. While testing it, I think I found 2 problems : To activate the asymptote module, you have to begin the source block, for example, with #+begin_src asymptote :file bezier.pdf Unfortunately, the

Re: [Orgmode] org-babel, src blocks and asymptote

2009-09-16 Thread Eric Schulte
Hi Nicolas, Nicolas Goaziou n.goaz...@gmail.com writes: Hello, Org-babel looks very interesting. I am pleased to see an asymptote module included in it. While testing it, I think I found 2 problems : To activate the asymptote module, you have to begin the source block, for example, with

[Orgmode] org-babel: load-path question and indentation of blocks

2009-09-16 Thread Sebastian Rose
Hi Dan and Eric, I'm an org-babel fan now :) Here are two little things I noticed and that I want to discard from my todo list. * load-path Why is load modified only temporarily in org-babel-init.el? Wouldn't this here make sense? diff --git a/contrib/lisp/org-babel-init.el

Re: [Orgmode] org-babel: load-path question and indentation of blocks

2009-09-16 Thread Eric Schulte
Sebastian Rose sebastian_r...@gmx.de writes: Hi Dan and Eric, I'm an org-babel fan now :) Here are two little things I noticed and that I want to discard from my todo list. * load-path Why is load modified only temporarily in org-babel-init.el? Wouldn't this here make sense?

[Orgmode] org-babel

2009-09-15 Thread Jörg Hagmann
org-babel doesn't work here. First question: do I have the current org-version? I updated today and have 6.30trans (On 2 computers, Mac Leopard and ubuntu). If that's ok, next: I have (require 'org-babel-init) (require 'org-babel-ruby) ;; requires ruby, irb, ruby-mode, and inf-ruby

Re: [Orgmode] org-babel

2009-09-15 Thread Carsten Dominik
Hi Jörg, you need to have the contrib/lisp directory of Org on your load path. - Carsten On Sep 15, 2009, at 9:58 AM, Jörg Hagmann wrote: org-babel doesn't work here. First question: do I have the current org-version? I updated today and have 6.30trans (On 2 computers, Mac Leopard and

Re: [Orgmode] org-babel

2009-09-15 Thread Jörg Hagmann
Thank you, David and Carsten. Now it works with shell scripts. With Ruby, I get: Source block produced no output (Using the first example from the manual) Ruby versions 1.8.6 on the Mac, 1.8.7 on ubuntu. ? Thanks, Jörg Carsten Dominik wrote: Hi Jörg, you need to have the contrib/lisp

Re: [Orgmode] org-babel

2009-09-15 Thread Jörg Hagmann
Sorry for the question below. I needed require 'date'; maybe a first example not needing to load anything would avoid this kind of noise. In any case, thanks a lot for this tool! Cheers, Jörg Jörg Hagmann wrote: Thank you, David and Carsten. Now it works with shell scripts. With Ruby, I

Re: [Orgmode] org-babel

2009-09-15 Thread Eric Schulte
Hi Jörg, Thanks for the catch, I've added require 'date' to the initial ruby example. -- Eric Jörg Hagmann joerg.hagm...@unibas.ch writes: Sorry for the question below. I needed require 'date'; maybe a first example not needing to load anything would avoid this kind of noise. In any case,

Re: [Orgmode] org-babel

2009-09-15 Thread Stephan Schmitt
Hi Eric, apropos require: if the result of an emacs-lisp source block is a list, a function from org-table.el is needed (orgtbl-to-orgtbl, or so) which is not loaded by default. In other words, somewhere a (require org-table) is missing. Nice tool, btw, Stephan Eric Schulte wrote:

Re: [Orgmode] org-babel

2009-09-15 Thread Eric Schulte
Hi Stephan, You are correct, surprisingly org-table isn't explicitly required anywhere in org-babel. It must have already been loaded in every previous usage. I've just pushed a fix to this issue. Thanks -- Eric Stephan Schmitt drmab...@cs.tu-berlin.de writes: Hi Eric, apropos require:

<    1   2   3