emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] org-article setup


From: John Hendy
Subject: Re: [Orgmode] org-article setup
Date: Tue, 16 Nov 2010 23:11:24 -0600

On Tue, Nov 16, 2010 at 5:46 PM, Mario E. Munich <address@hidden> wrote:
Dear all,

I am trying to use the org-article class created by Tomas Dye. As you might guess, I am having some trouble and thus the email. I am using emacs 23.1.1 on Ubuntu 10.10 and org-mode verision TAG=7.3.

I have followed the instructions on worg:

http://orgmode.org/worg/org-contrib/babel/examples/article-class.php

up to the point in which I need to tangle the org document.

If I try to run the tangle command: M-x org-babel-tangle RET, I get the following error: No org-bable-execute function for python!

I think that  the problem is that I do not have any setup for Babel in my .emacs, so I went to look for the standard Babel setup in the org manual and in worg.

Yup -- that's the error.
 

- In the org Manual, I see chapter 14 devoted to Babel, but I do not see any information on how to set it up in my .emacs (maybe it is enabled by default since Babel is included in org, but I am not sure).


I concur and think that's weird. Even if it is on worg... perhaps the manual should point there? There's a decent amount on babel in the manual so I found it a bit odd that it didn't provide the setup syntax (like Thomas did).
 
- In worg, there is a page for Babel: http://orgmode.org/worg/org-contrib/babel/index.php and a corresponding Introductory Tutorial. In this page, there is a section called Initial Configuration in which there is a mention of a "five-step process", but the corresponding list of steps only have 3 items.

5 vs. 3 is kind of funny. Some of those aren't really even steps. For your case it's as easy as opening up .emacs and adding this:

(org-babel-do-load-languages
 'org-babel-load-languages
 '((python . t)))

Though as Thomas listed, you can have more. It looks like he actually puts his right into the org file itself with a #+src block.

As for the rest of the steps, I actually wasn't able to get it to compile. I get a bunch of these errors:

,-----
| SyntaxError: invalid syntax
| File "<stdin>", line 17
|    print res
|            ^
| SyntaxError: invalid syntax
`-----

I think I get those to go away with "print (res)" instead of res by itself. I think I've had that error before and it's a python version issue. I'd suggest changing it if it's accepted by older versions since python is perhaps moving that direction? I run Arch Linux and would guess that I may be on a later version than a lot of distros.

I also get this at the end in the minibuffer at the very end:
,-----
| reference "gantttest" not found in this buffer
`-----

I get not class file.
 

I would appreciate if somebody could guide me towards a simple Babel configuration that would help me tangle the org-article.org document.


It'd probably be a good idea for someone to clean up worg and the manual a bit. I can do some of those things -- Thomas, perhaps you want to handle the org-article specific things if there are some compilation issues on my end that find fixes and I can make worg a little clearer about babel setup? Not sure who oversees the manual, but a redirect at the least to worg for .emacs configuration would be helpful.


John
 
Thanks a lot for all the help!

-Mario


_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
address@hidden
http://lists.gnu.org/mailman/listinfo/emacs-orgmode



reply via email to

[Prev in Thread] Current Thread [Next in Thread]