From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Mario E. Munich" Subject: org-article setup Date: Tue, 16 Nov 2010 15:46:40 -0800 Message-ID: Reply-To: mariomu@ieee.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0634642364==" Return-path: Received: from [140.186.70.92] (port=60830 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PIVZX-000124-Bf for emacs-orgmode@gnu.org; Tue, 16 Nov 2010 19:08:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PIVZT-0000tJ-4r for emacs-orgmode@gnu.org; Tue, 16 Nov 2010 19:08:23 -0500 Received: from posteaux1.caltech.edu ([131.215.239.119]:44178 helo=mail.alumni.caltech.edu) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PIVZS-0000sF-Rw for emacs-orgmode@gnu.org; Tue, 16 Nov 2010 19:08:19 -0500 Received: from mail-ey0-f169.google.com (mail-ey0-f169.google.com [209.85.215.169]) by mail.alumni.caltech.edu (Postfix) with ESMTPSA id 28FA33F0D41 for ; Tue, 16 Nov 2010 15:46:41 -0800 (PST) Received: by eydd26 with SMTP id d26so806881eyd.0 for ; Tue, 16 Nov 2010 15:46:40 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --===============0634642364== Content-Type: multipart/alternative; boundary=001636c5b4151541ed0495342b2e --001636c5b4151541ed0495342b2e Content-Type: text/plain; charset=ISO-8859-1 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. - 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). - 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. I would appreciate if somebody could guide me towards a simple Babel configuration that would help me tangle the org-article.org document. Thanks a lot for all the help! -Mario --001636c5b4151541ed0495342b2e Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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=3D7.3.

I have followed the instructions on worg:

http://orgmode.org/w= org/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!

<= /code>I think that=A0 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 ma= nual and in worg.

- In the org Manual, I see chapter 14 devoted to Babel, but I do not se= e 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).

- In wor= g, 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-s= tep process", but the corresponding list of steps only have 3 items.
I would appreciate if somebody could guide me towards a simple Babel co= nfiguration that would help me tangle the org-article.org document.

Thanks a lot for all the help!

-Mario

--001636c5b4151541ed0495342b2e-- --===============0634642364== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============0634642364==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thomas S. Dye" Subject: Re: org-article setup Date: Tue, 16 Nov 2010 14:24:34 -1000 Message-ID: <352384D9-F381-4C5E-9B3D-2C43439CEF95@tsdye.com> References: Mime-Version: 1.0 (Apple Message framework v936) Content-Type: multipart/mixed; boundary="===============0803064112==" Return-path: Received: from [140.186.70.92] (port=46451 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PIVpL-0004Fa-B8 for emacs-orgmode@gnu.org; Tue, 16 Nov 2010 19:24:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PIVpJ-0004YT-OL for emacs-orgmode@gnu.org; Tue, 16 Nov 2010 19:24:43 -0500 Received: from oproxy2-pub.bluehost.com ([67.222.39.60]:35949) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PIVpJ-0004Xw-Dt for emacs-orgmode@gnu.org; Tue, 16 Nov 2010 19:24:41 -0500 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: mariomu@ieee.org Cc: emacs-orgmode@gnu.org --===============0803064112== Content-Type: multipart/alternative; boundary=Apple-Mail-6-261146135 --Apple-Mail-6-261146135 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit On Nov 16, 2010, at 1:46 PM, Mario E. Munich 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. > > - 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). > > - 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. > > I would appreciate if somebody could guide me towards a simple Babel > configuration that would help me tangle the org-article.org document. > > Thanks a lot for all the help! > > -Mario Aloha Mario, Yes, it sounds like Babel isn't configured yet. Here is what I use: #+begin_src emacs-lisp :tangle yes (org-babel-do-load-languages 'org-babel-load-languages '((R . t) (C . t) (ditaa . t) (dot . t) (emacs-lisp . t) (gnuplot . nil) (haskell . nil) (latex . t) (ocaml . nil) (org . t) (perl . t) (python . t) (ruby . t) (screen . nil) (sh . t) (sql . nil) (sqlite . t))) #+end_src You can adjust it to your needs by changing t and nil appropriately. hth, Tom --Apple-Mail-6-261146135 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable
On Nov 16, 2010, at = 1:46 PM, Mario E. Munich 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=3D7.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.

- 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).

- In = worg, there is a page for Babel:
http://orgmod= e.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.

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

Thanks a lot for all the help!

-Mario =

Aloha = Mario,

Yes, it sounds like Babel isn't = configured yet.  Here is what I = use:

#+begin_src emacs-lisp :tangle = yes
  (org-babel-do-load-languages
 &nb= sp; 'org-babel-load-languages
   '((R . = t)
     (C . t)
     = (ditaa . t)
     (dot . = t)
     (emacs-lisp . t)
   =   (gnuplot . nil)
     (haskell . = nil)
     (latex . t)
   =   (ocaml . nil)
     (org . = t)
     (perl . t)
   =   (python . t)
     (ruby . = t)
     (screen . nil)
   =   (sh . t)
     (sql . = nil)
     (sqlite . = t)))
#+end_src

You can adjust it to = your needs by changing t and nil = appropriately.

hth,
Tom
= --Apple-Mail-6-261146135-- --===============0803064112== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============0803064112==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: org-article setup Date: Tue, 16 Nov 2010 23:11:24 -0600 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1818303708==" Return-path: Received: from [140.186.70.92] (port=57868 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PIaIq-0003c9-7n for emacs-orgmode@gnu.org; Wed, 17 Nov 2010 00:11:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PIaIo-0003aD-JG for emacs-orgmode@gnu.org; Wed, 17 Nov 2010 00:11:28 -0500 Received: from mail-wy0-f169.google.com ([74.125.82.169]:42714) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PIaIo-0003a2-Bh for emacs-orgmode@gnu.org; Wed, 17 Nov 2010 00:11:26 -0500 Received: by wyf23 with SMTP id 23so1619051wyf.0 for ; Tue, 16 Nov 2010 21:11:25 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: mariomu@ieee.org Cc: emacs-orgmode@gnu.org --===============1818303708== Content-Type: multipart/alternative; boundary=0016e6d9a15b6af476049538b450 --0016e6d9a15b6af476049538b450 Content-Type: text/plain; charset=ISO-8859-1 On Tue, Nov 16, 2010 at 5:46 PM, Mario E. Munich 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 "", 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. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > > --0016e6d9a15b6af476049538b450 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
On Tue, Nov 16, 2010 at 5:46 PM, Mario E. Munich= <mariomu@ieee.org= > 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=3D7.3.

I have followed the instructions on worg:

ht= tp://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!

<= /code>I think that=A0 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 ma= nual and in worg.

Yup -- that's the error.
=A0=

- In the org Manual, I see chapter 14 devoted to Babel, but I do not se= e 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 w= org... perhaps the manual should point there? There's a decent amount o= n babel in the manual so I found it a bit odd that it didn't provide th= e setup syntax (like Thomas did).
=A0
- In worg, there is a page fo= r Babel: http://orgmode.org/worg/org-contrib/babel/index.php and= a corresponding Introductory Tutorial. In this page, there is a section ca= lled 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 ar= en't really even steps. For your case it's as easy as opening up .e= macs and adding this:

(org-babel-do-load-lang= uages
=A0'org-babel-load-languages
=A0'((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 abl= e to get it to compile. I get a bunch of these errors:

=
,-----
|=A0SyntaxError: invalid syntax
| File &quo= t;<stdin>", line 17
| =A0 =A0print res
| =A0 =A0 =A0 =A0 =A0 =A0^
|=A0= SyntaxError: invalid syntax
`-----

I thin= k I get those to go away with "print (res)" instead of res by its= elf. I think I've had that error before and it's a python version i= ssue. I'd suggest changing it if it's accepted by older versions si= nce python is perhaps moving that direction? I run Arch Linux and would gue= ss 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 ver= y end:
,-----
| reference "gantttest" not fou= nd in this buffer
`-----

I get not class= file.
=A0

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


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


John
=A0
Thanks a lot for all the help!

-Mario


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


--0016e6d9a15b6af476049538b450-- --===============1818303708== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============1818303708==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thomas S. Dye" Subject: Re: org-article setup Date: Tue, 16 Nov 2010 19:37:23 -1000 Message-ID: <9B77BDC4-7D88-4339-A1C4-82222DDD36FF@tsdye.com> References: Mime-Version: 1.0 (Apple Message framework v936) Content-Type: multipart/mixed; boundary="===============0913145001==" Return-path: Received: from [140.186.70.92] (port=44248 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PIai2-0008Un-La for emacs-orgmode@gnu.org; Wed, 17 Nov 2010 00:37:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PIai0-0008PA-VW for emacs-orgmode@gnu.org; Wed, 17 Nov 2010 00:37:30 -0500 Received: from oproxy1-pub.bluehost.com ([66.147.249.253]:44612) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PIai0-0008Ob-II for emacs-orgmode@gnu.org; Wed, 17 Nov 2010 00:37:28 -0500 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: John Hendy Cc: mariomu@ieee.org, emacs-orgmode@gnu.org --===============0913145001== Content-Type: multipart/alternative; boundary=Apple-Mail-14-279914721 --Apple-Mail-14-279914721 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Hi John, Apologies for having stupidly done some hacky development work on the master branch of org-article. You must have pulled this weekend when things were *really* unsettled. The errors you're getting now are ones I introduced but have since fixed. The python dependency is from a work in progress that will eventually (and hopefully) support the minted package for source code markup and typesetting. This is the kind of thing that should live in a git branch before it ends up throwing errors around your workspace. So, more apologies. I'll work at getting all the development stuff into a branch so master is stable again. All the best, Tom On Nov 16, 2010, at 7:11 PM, John Hendy wrote: > On Tue, Nov 16, 2010 at 5:46 PM, Mario E. Munich > 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 "", 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. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode --Apple-Mail-14-279914721 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi = John,

Apologies for having stupidly done some hacky = development work on the master branch of org-article.  You must = have pulled this weekend when things were *really* unsettled.  The = errors you're getting now are ones I introduced but have since = fixed.

The python dependency is from a work in = progress that will eventually (and hopefully) support the minted package = for source code markup and typesetting.   This is the kind of thing = that should live in a git branch before it ends up throwing errors = around your workspace.  So, more = apologies.

I'll work at getting all the = development stuff into a branch so master is stable = again.

All the = best,
Tom



= On Nov 16, 2010, at 7:11 PM, John Hendy wrote:

On Tue, Nov 16, 2010 at 5:46 PM, Mario E. Munich = <mariomu@ieee.org> = 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=3D7.3.

I = have followed the instructions on worg:

http://orgmode.org/worg/org-contrib/babel/examples/artic= le-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.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode<= br>

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

= --Apple-Mail-14-279914721-- --===============0913145001== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============0913145001==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thomas S. Dye" Subject: Re: org-article setup Date: Tue, 16 Nov 2010 20:58:52 -1000 Message-ID: <3CC1CE1F-5A5B-43BB-AF11-D5F078AB611C@tsdye.com> References: Mime-Version: 1.0 (Apple Message framework v936) Content-Type: multipart/mixed; boundary="===============0244592612==" Return-path: Received: from [140.186.70.92] (port=39448 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PIbyv-0006NO-C1 for emacs-orgmode@gnu.org; Wed, 17 Nov 2010 01:59:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PIbyt-0005Eq-KB for emacs-orgmode@gnu.org; Wed, 17 Nov 2010 01:59:01 -0500 Received: from oproxy2-pub.bluehost.com ([67.222.39.60]:40489) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PIbyt-0005Eh-8h for emacs-orgmode@gnu.org; Wed, 17 Nov 2010 01:58:59 -0500 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: John Hendy Cc: mariomu@ieee.org, emacs-orgmode@gnu.org --===============0244592612== Content-Type: multipart/alternative; boundary=Apple-Mail-15-284803779 --Apple-Mail-15-284803779 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Aloha John and Mario, I've moved my buggy development efforts to a branch and you can now pull a stable version of Org-article if you're so inclined. All the best, Tom On Nov 16, 2010, at 7:11 PM, John Hendy wrote: > On Tue, Nov 16, 2010 at 5:46 PM, Mario E. Munich > 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 "", 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. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode --Apple-Mail-15-284803779 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Aloha = John and Mario,

I've moved my buggy development = efforts to a branch and you can now pull a stable version of Org-article = if you're so inclined.

All the = best,
Tom

On Nov 16, 2010, at 7:11 PM, = John Hendy wrote:

On Tue, Nov 16, 2010 at 5:46 = PM, Mario E. Munich <mariomu@ieee.org> = 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=3D7.3.

I = have followed the instructions on worg:

http://orgmode.org/worg/org-contrib/babel/examples/artic= le-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.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode<= br>

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

= --Apple-Mail-15-284803779-- --===============0244592612== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============0244592612==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thomas S. Dye" Subject: Re: org-article setup Date: Tue, 16 Nov 2010 21:18:25 -1000 Message-ID: References: Mime-Version: 1.0 (Apple Message framework v936) Content-Type: multipart/mixed; boundary="===============0906720566==" Return-path: Received: from [140.186.70.92] (port=42975 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PIcHo-0002wP-Oi for emacs-orgmode@gnu.org; Wed, 17 Nov 2010 02:18:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PIcHn-0007tq-8f for emacs-orgmode@gnu.org; Wed, 17 Nov 2010 02:18:32 -0500 Received: from oproxy2-pub.bluehost.com ([67.222.39.60]:42377) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PIcHm-0007tb-V5 for emacs-orgmode@gnu.org; Wed, 17 Nov 2010 02:18:31 -0500 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: mariomu@ieee.org Cc: emacs-orgmode@gnu.org --===============0906720566== Content-Type: multipart/alternative; boundary=Apple-Mail-16-285977179 --Apple-Mail-16-285977179 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Aloha Mario, Thanks for pointing this out. I've removed reference to the old five- step process. All the best, Tom On Nov 16, 2010, at 1:46 PM, Mario E. Munich wrote: > - 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. --Apple-Mail-16-285977179 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Aloha = Mario,

Thanks for pointing this out.  I've = removed reference to the old five-step = process.

All the = best,
Tom

On Nov 16, 2010, at 1:46 PM, = Mario E. Munich wrote:

- In worg, there is a page for = Babel: http://orgmod= e.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.

= --Apple-Mail-16-285977179-- --===============0906720566== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============0906720566==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: org-article setup Date: Wed, 17 Nov 2010 15:07:28 -0600 Message-ID: References: <3CC1CE1F-5A5B-43BB-AF11-D5F078AB611C@tsdye.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2125683143==" Return-path: Received: from [140.186.70.92] (port=47347 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PIpE6-0002Xs-Vc for emacs-orgmode@gnu.org; Wed, 17 Nov 2010 16:07:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PIpE2-0003SK-8Q for emacs-orgmode@gnu.org; Wed, 17 Nov 2010 16:07:34 -0500 Received: from mail-bw0-f41.google.com ([209.85.214.41]:43621) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PIpE1-0003Ry-Va for emacs-orgmode@gnu.org; Wed, 17 Nov 2010 16:07:30 -0500 Received: by bwz16 with SMTP id 16so2068918bwz.0 for ; Wed, 17 Nov 2010 13:07:29 -0800 (PST) In-Reply-To: <3CC1CE1F-5A5B-43BB-AF11-D5F078AB611C@tsdye.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Thomas S. Dye" Cc: mariomu@ieee.org, emacs-orgmode@gnu.org --===============2125683143== Content-Type: multipart/alternative; boundary=001636c5995a9a592e0495460f8d --001636c5995a9a592e0495460f8d Content-Type: text/plain; charset=ISO-8859-1 Thanks, Tom. I'm getting an error, though. I tried both settings from Section 1.2 ( http://orgmode.org/worg/org-contrib/babel/examples/article-class.php#sec-1_2) and get this error when I start emacs: ,----- | Symbol's value as variable is void: org-export-latex-classes `----- I just did a fresh git pull, make clean, make && make install just to be sure it wasn't just my version. What am I goofing up? Thanks, John On Wed, Nov 17, 2010 at 12:58 AM, Thomas S. Dye wrote: > Aloha John and Mario, > > I've moved my buggy development efforts to a branch and you can now pull a > stable version of Org-article if you're so inclined. > > All the best, > Tom > > On Nov 16, 2010, at 7:11 PM, John Hendy wrote: > > On Tue, Nov 16, 2010 at 5:46 PM, Mario E. Munich 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 "", 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. >> Emacs-orgmode@gnu.org >> http://lists.gnu.org/mailman/listinfo/emacs-orgmode >> >> > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > > > --001636c5995a9a592e0495460f8d Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thanks, Tom.

I'm getting an error, though. I tried b= oth settings from Section 1.2 (http://orgmode.org/worg/org-cont= rib/babel/examples/article-class.php#sec-1_2) and get this error when I= start emacs:

,-----
|=A0Symbol's value as variable is = void: org-export-latex-classes
`-----

I just di= d a fresh git pull, make clean, make && make install just to be sur= e it wasn't just my version.

What am I goofing up?


Thanks,
John

On W= ed, Nov 17, 2010 at 12:58 AM, Thomas S. Dye <tsd@tsdye.com> wrote:
Aloha J= ohn and Mario,

I've moved my buggy development effor= ts to a branch and you can now pull a stable version of Org-article if you&= #39;re so inclined.

All the best,
Tom

On Nov 16, 2010, at 7:11 PM, John Hendy wrote:

On Tue, Nov 16, 2010 at 5:46 PM, Mario E. Munich <mariomu@ieee.org><= /span> 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=3D7.3.
I have followed the instructions on worg:

h= ttp://orgmode.org/worg/org-contrib/babel/examples/article-class.php

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

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

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

Yup -- that's the error.
= =A0

- In the org Manual, I see cha= pter 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 did= n't provide the setup syntax (like Thomas did).
=A0
- In worg, there is a page fo= r Babel: http://orgmode.org/worg/org-contrib/babel/index.php and= a corresponding Introductory Tutorial. In this page, there is a section ca= lled 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 a= ren't really even steps. For your case it's as easy as opening up .= emacs and adding this:

(org-babel-do-load-lan= guages
=A0'org-babel-load-languages
=A0'((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 #+sr= c block.

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

,-----
|=A0SyntaxError: invalid syntax
| File &qu= ot;<stdin>", line 17
| =A0 =A0print res
| =A0 =A0 =A0 =A0 =A0 =A0^
|= =A0SyntaxError: 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 versi= on issue. I'd suggest changing it if it's accepted by older version= s 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 ve= ry end:
,-----
| reference "gantttest" not fo= und in this buffer
`-----

I get not clas= s file.
=A0

I would appreciate if so= mebody could guide me towards a simple Babel configuration that would help = me tangle the org-arti= cle.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 thing= s -- 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 helpf= ul.


John
=A0
Thanks a lot for all the help!
=
-Mario


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


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


--001636c5995a9a592e0495460f8d-- --===============2125683143== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============2125683143==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thomas S. Dye" Subject: Re: org-article setup Date: Wed, 17 Nov 2010 11:40:51 -1000 Message-ID: <0C743517-2912-4D0C-8CE4-5FD1F9192650@tsdye.com> References: <3CC1CE1F-5A5B-43BB-AF11-D5F078AB611C@tsdye.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: multipart/mixed; boundary="===============0436144075==" Return-path: Received: from [140.186.70.92] (port=58576 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PIpkT-0001kI-4S for emacs-orgmode@gnu.org; Wed, 17 Nov 2010 16:41:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PIpkR-0002JI-5l for emacs-orgmode@gnu.org; Wed, 17 Nov 2010 16:41:01 -0500 Received: from oproxy3-pub.bluehost.com ([69.89.21.8]:49970) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PIpkQ-0002IO-RL for emacs-orgmode@gnu.org; Wed, 17 Nov 2010 16:40:59 -0500 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: John Hendy Cc: mariomu@ieee.org, emacs-orgmode@gnu.org --===============0436144075== Content-Type: multipart/alternative; boundary=Apple-Mail-12-337722717 --Apple-Mail-12-337722717 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Hi John, Perhaps this is missing: (require 'org-latex) Let me know if that fixes your problem and I'll add it to the instructions. All the best, Tom On Nov 17, 2010, at 11:07 AM, John Hendy wrote: > Thanks, Tom. > > I'm getting an error, though. I tried both settings from Section 1.2 > (http://orgmode.org/worg/org-contrib/babel/examples/article-class.php#sec-1_2 > ) and get this error when I start emacs: > > ,----- > | Symbol's value as variable is void: org-export-latex-classes > `----- > > I just did a fresh git pull, make clean, make && make install just > to be sure it wasn't just my version. > > What am I goofing up? > > > Thanks, > John > > On Wed, Nov 17, 2010 at 12:58 AM, Thomas S. Dye wrote: > Aloha John and Mario, > > I've moved my buggy development efforts to a branch and you can now > pull a stable version of Org-article if you're so inclined. > > All the best, > Tom > > On Nov 16, 2010, at 7:11 PM, John Hendy wrote: > >> On Tue, Nov 16, 2010 at 5:46 PM, Mario E. Munich >> 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 "", 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. >> Emacs-orgmode@gnu.org >> http://lists.gnu.org/mailman/listinfo/emacs-orgmode >> >> >> _______________________________________________ >> Emacs-orgmode mailing list >> Please use `Reply All' to send replies to the list. >> Emacs-orgmode@gnu.org >> http://lists.gnu.org/mailman/listinfo/emacs-orgmode > > --Apple-Mail-12-337722717 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi = John,

Perhaps this is = missing:

  (require = 'org-latex)

Let me know if that fixes your = problem and I'll add it to the = instructions.

All the = best,
Tom

On Nov 17, 2010, at = 11:07 AM, John Hendy wrote:

Thanks, = Tom.

I'm getting an error, though. I tried both = settings from Section 1.2 (http://orgmode.org/worg/org-contrib/babel/examples/article-cla= ss.php#sec-1_2) and get this error when I start emacs:
=

,-----
| Symbol's value as variable = is void: org-export-latex-classes
`-----

I = just did a fresh git pull, make clean, make && make install just = to be sure it wasn't just my version.

What am = I goofing = up?


Thanks,
John

On Wed, Nov 17, 2010 at 12:58 AM, = Thomas S. Dye <tsd@tsdye.com> wrote:
=
Aloha John and = Mario,

I've moved my buggy development efforts to a = branch and you can now pull a stable version of Org-article if you're so = inclined.

All the = best,
Tom

On Nov 16, = 2010, at 7:11 PM, John Hendy wrote:

On = Tue, Nov 16, 2010 at 5:46 PM, Mario E. Munich <mariomu@ieee.org> 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=3D7.3.

I have followed the = instructions on worg:

http://orgmode.org/worg/org-contrib/babel/examples/artic= le-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.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode<= br>

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



= --Apple-Mail-12-337722717-- --===============0436144075== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============0436144075==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thomas S. Dye" Subject: Re: org-article setup Date: Wed, 17 Nov 2010 12:47:16 -1000 Message-ID: <9AA1C147-AFD8-4E20-A0FC-D9379A86724E@tsdye.com> References: <3CC1CE1F-5A5B-43BB-AF11-D5F078AB611C@tsdye.com> <0C743517-2912-4D0C-8CE4-5FD1F9192650@tsdye.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: multipart/mixed; boundary="===============1761706959==" Return-path: Received: from [140.186.70.92] (port=33611 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PIqmj-0000mI-AB for emacs-orgmode@gnu.org; Wed, 17 Nov 2010 17:47:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PIqmf-00034v-T5 for emacs-orgmode@gnu.org; Wed, 17 Nov 2010 17:47:25 -0500 Received: from oproxy1-pub.bluehost.com ([66.147.249.253]:40946) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PIqmf-00034j-Ip for emacs-orgmode@gnu.org; Wed, 17 Nov 2010 17:47:21 -0500 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: John Hendy Cc: Emacs Org mode mailing list --===============1761706959== Content-Type: multipart/alternative; boundary=Apple-Mail-14-341707274 --Apple-Mail-14-341707274 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Aloha John, Thanks for helping with this. It is fixed now, though the change on Worg might not appear for some minutes. All the best, Tom On Nov 17, 2010, at 12:07 PM, John Hendy wrote: > That did it. Thanks. I'll have to play around with it now. I > actually am not sure what I'll use this for! Just tried to help > Mario figure things out :) > > > John > > On Wed, Nov 17, 2010 at 3:40 PM, Thomas S. Dye wrote: > Hi John, > > Perhaps this is missing: > > (require 'org-latex) > > Let me know if that fixes your problem and I'll add it to the > instructions. > > All the best, > Tom > > On Nov 17, 2010, at 11:07 AM, John Hendy wrote: > >> Thanks, Tom. >> >> I'm getting an error, though. I tried both settings from Section >> 1.2 (http://orgmode.org/worg/org-contrib/babel/examples/article-class.php#sec-1_2 >> ) and get this error when I start emacs: >> >> ,----- >> | Symbol's value as variable is void: org-export-latex-classes >> `----- >> >> I just did a fresh git pull, make clean, make && make install just >> to be sure it wasn't just my version. >> >> What am I goofing up? >> >> >> Thanks, >> John >> >> On Wed, Nov 17, 2010 at 12:58 AM, Thomas S. Dye >> wrote: >> Aloha John and Mario, >> >> I've moved my buggy development efforts to a branch and you can now >> pull a stable version of Org-article if you're so inclined. >> >> All the best, >> Tom >> >> On Nov 16, 2010, at 7:11 PM, John Hendy wrote: >> >>> On Tue, Nov 16, 2010 at 5:46 PM, Mario E. Munich >>> 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 "", 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. >>> Emacs-orgmode@gnu.org >>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode >>> >>> >>> _______________________________________________ >>> Emacs-orgmode mailing list >>> Please use `Reply All' to send replies to the list. >>> Emacs-orgmode@gnu.org >>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode >> >> > > --Apple-Mail-14-341707274 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Aloha = John,

Thanks for helping with this.  It is fixed = now, though the change on Worg might not appear for some = minutes.

All the = best,
Tom

On Nov 17, 2010, at 12:07 = PM, John Hendy wrote:

That did = it. Thanks. I'll have to play around with it now. I actually am not sure = what I'll use this for! Just tried to help Mario figure things out = :)


John

On Wed, Nov 17, 2010 at 3:40 PM, Thomas S. Dye = <tsd@tsdye.com> = wrote:
Hi John,

Perhaps this = is missing:

  (require = 'org-latex)

Let me know if that fixes your = problem and I'll add it to the instructions.
=

All the = best,
Tom

On Nov 17, 2010, at 11:07 AM, John = Hendy wrote:

Thanks, = Tom.

I'm getting an error, though. I tried both = settings from Section 1.2 (http://orgmode.org/worg/org-contrib/babel/examples/artic= le-class.php#sec-1_2) and get this error when I start emacs:
=

,-----
| Symbol's value as variable = is void: org-export-latex-classes
`-----

I = just did a fresh git pull, make clean, make && make install just = to be sure it wasn't just my version.

What am = I goofing = up?


Thanks,
John

On Wed, Nov 17, 2010 at 12:58 AM, = Thomas S. Dye <tsd@tsdye.com> wrote:
Aloha John = and Mario,

I've moved my buggy development efforts to = a branch and you can now pull a stable version of Org-article if you're = so inclined.

All the = best,
Tom

On Nov 16, 2010, at = 7:11 PM, John Hendy = wrote:

On Tue, Nov 16, 2010 at 5:46 PM, Mario E. Munich = <mariomu@ieee.org> 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=3D7.3.

I have followed the = instructions on worg:

http://orgmode.org/worg/org-contrib/babel/examples/artic= le-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.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode<= br>

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





= --Apple-Mail-14-341707274-- --===============1761706959== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============1761706959==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: org-article setup Date: Wed, 17 Nov 2010 17:07:15 -0600 Message-ID: References: <3CC1CE1F-5A5B-43BB-AF11-D5F078AB611C@tsdye.com> <0C743517-2912-4D0C-8CE4-5FD1F9192650@tsdye.com> <9AA1C147-AFD8-4E20-A0FC-D9379A86724E@tsdye.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0555379561==" Return-path: Received: from [140.186.70.92] (port=54857 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PIr5z-00059p-Ia for emacs-orgmode@gnu.org; Wed, 17 Nov 2010 18:07:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PIr5x-0005Za-I4 for emacs-orgmode@gnu.org; Wed, 17 Nov 2010 18:07:19 -0500 Received: from mail-fx0-f41.google.com ([209.85.161.41]:32947) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PIr5x-0005ZD-4U for emacs-orgmode@gnu.org; Wed, 17 Nov 2010 18:07:17 -0500 Received: by fxm20 with SMTP id 20so1093420fxm.0 for ; Wed, 17 Nov 2010 15:07:16 -0800 (PST) In-Reply-To: <9AA1C147-AFD8-4E20-A0FC-D9379A86724E@tsdye.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Thomas S. Dye" Cc: Emacs Org mode mailing list --===============0555379561== Content-Type: multipart/alternative; boundary=0015174c0c24f95755049547bb95 --0015174c0c24f95755049547bb95 Content-Type: text/plain; charset=ISO-8859-1 No problem and thanks for your swift work! John On Wed, Nov 17, 2010 at 4:47 PM, Thomas S. Dye wrote: > Aloha John, > > Thanks for helping with this. It is fixed now, though the change on Worg > might not appear for some minutes. > > All the best, > Tom > > On Nov 17, 2010, at 12:07 PM, John Hendy wrote: > > That did it. Thanks. I'll have to play around with it now. I actually am > not sure what I'll use this for! Just tried to help Mario figure things out > :) > > > John > > On Wed, Nov 17, 2010 at 3:40 PM, Thomas S. Dye wrote: > >> Hi John, >> >> Perhaps this is missing: >> >> (require 'org-latex) >> >> Let me know if that fixes your problem and I'll add it to the >> instructions. >> >> All the best, >> Tom >> >> On Nov 17, 2010, at 11:07 AM, John Hendy wrote: >> >> Thanks, Tom. >> >> I'm getting an error, though. I tried both settings from Section 1.2 ( >> http://orgmode.org/worg/org-contrib/babel/examples/article-class.php#sec-1_2) >> and get this error when I start emacs: >> >> ,----- >> | Symbol's value as variable is void: org-export-latex-classes >> `----- >> >> I just did a fresh git pull, make clean, make && make install just to be >> sure it wasn't just my version. >> >> What am I goofing up? >> >> >> Thanks, >> John >> >> On Wed, Nov 17, 2010 at 12:58 AM, Thomas S. Dye wrote: >> >>> Aloha John and Mario, >>> >>> I've moved my buggy development efforts to a branch and you can now pull >>> a stable version of Org-article if you're so inclined. >>> >>> All the best, >>> Tom >>> >>> On Nov 16, 2010, at 7:11 PM, John Hendy wrote: >>> >>> On Tue, Nov 16, 2010 at 5:46 PM, Mario E. Munich 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 "", 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. >>>> Emacs-orgmode@gnu.org >>>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode >>>> >>>> >>> _______________________________________________ >>> Emacs-orgmode mailing list >>> Please use `Reply All' to send replies to the list. >>> Emacs-orgmode@gnu.org >>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode >>> >>> >>> >> >> > > --0015174c0c24f95755049547bb95 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable No problem and thanks for your swift work!

John

<= div class=3D"gmail_quote">On Wed, Nov 17, 2010 at 4:47 PM, Thomas S. Dye <tsd@tsdye.com><= /span> wrote:
Aloha J= ohn,

Thanks for helping with this. =A0It is fixed now, t= hough the change on Worg might not appear for some minutes.

All the best,
Tom

On Nov 17, 2010, at 12:07 PM, John Hendy wro= te:

That did it. Thanks. I'll have t= o play around with it now. I actually am not sure what I'll use this fo= r! Just tried to help Mario figure things out :)


John

On We= d, Nov 17, 2010 at 3:40 PM, Thomas S. Dye <tsd@tsdye.com> wrote:=
Hi John= ,

Perhaps this is missing:

=A0=A0(require 'org-latex)

Let me know if that fixes your problem and I'll add= it to the instructions.

All the best,
= Tom

On Nov 17, 2010, at = 11:07 AM, John Hendy wrote:

Thanks, Tom.

I'm gett= ing an error, though. I tried both settings from Section 1.2 (http://orgmode.org/worg/org-contrib/babel/examples/artic= le-class.php#sec-1_2) and get this error when I start emacs:

,-----
|=A0Symbol's value as variable is= void: org-export-latex-classes
`-----

I just d= id a fresh git pull, make clean, make && make install just to be su= re it wasn't just my version.

What am I goofing up?


Thanks,
John

On = Wed, Nov 17, 2010 at 12:58 AM, Thomas S. Dye <tsd@tsdye.com> wr= ote:
Aloha J= ohn and Mario,

I've moved my buggy development effor= ts to a branch and you can now pull a stable version of Org-article if you&= #39;re so inclined.

All the best,
Tom

On Nov 16, 2010, at 7:11 PM, John Hendy wrote:

=
On Tue, No= v 16, 2010 at 5:46 PM, Mario E. Munich <mariomu@ieee.org> wro= te:
Dear all,

I am trying to use the or= g-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=3D7.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.

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

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


- In the org Manual, I see cha= pter 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 di= dn't provide the setup syntax (like Thomas did).
=A0
- In worg, there is a page fo= r Babel: http://orgmode.org/worg/org-contrib/babel/index.php and= a corresponding Introductory Tutorial. In this page, there is a section ca= lled 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 a= ren't really even steps. For your case it's as easy as opening up .= emacs and adding this:

(org-babel-do-load-lan= guages
=A0'org-babel-load-languages
=A0'((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 #+sr= c block.

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

,-----
|=A0SyntaxError: invalid syntax
| File &qu= ot;<stdin>", line 17
| =A0 =A0print res
| =A0 =A0 =A0 =A0 =A0 =A0^
|= =A0SyntaxError: 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 versi= on issue. I'd suggest changing it if it's accepted by older version= s 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 ve= ry end:
,-----
| reference "gantttest" not fo= und in this buffer
`-----

I get not clas= s file.
=A0

I would appreciate if so= mebody could guide me towards a simple Babel configuration that would help = me tangle the org-arti= cle.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 thin= gs -- 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 help= ful.


John
=A0
Thanks a lot for all the help!
=
-Mario


______________________________________________= _
Emacs-orgmode mailing list
Please use `Reply All' to send rep= lies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


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






--0015174c0c24f95755049547bb95-- --===============0555379561== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============0555379561==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Mario E. Munich" Subject: Re: org-article setup Date: Mon, 22 Nov 2010 00:09:51 -0800 Message-ID: References: <3CC1CE1F-5A5B-43BB-AF11-D5F078AB611C@tsdye.com> <0C743517-2912-4D0C-8CE4-5FD1F9192650@tsdye.com> Reply-To: mariomu@ieee.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0681451406==" Return-path: Received: from [140.186.70.92] (port=60375 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PKRTq-0000cm-IL for emacs-orgmode@gnu.org; Mon, 22 Nov 2010 03:10:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PKRTk-0001Kj-2v for emacs-orgmode@gnu.org; Mon, 22 Nov 2010 03:10:30 -0500 Received: from posteaux1.caltech.edu ([131.215.239.119]:37258 helo=mail.alumni.caltech.edu) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PKRTj-0001KC-Ie for emacs-orgmode@gnu.org; Mon, 22 Nov 2010 03:10:24 -0500 Received: from mail-fx0-f41.google.com (mail-fx0-f41.google.com [209.85.161.41]) by mail.alumni.caltech.edu (Postfix) with ESMTPSA id 2CCBC3F1FCD for ; Mon, 22 Nov 2010 00:09:53 -0800 (PST) Received: by fxm20 with SMTP id 20so4374791fxm.0 for ; Mon, 22 Nov 2010 00:09:51 -0800 (PST) In-Reply-To: <0C743517-2912-4D0C-8CE4-5FD1F9192650@tsdye.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Thomas S. Dye" Cc: emacs-orgmode@gnu.org --===============0681451406== Content-Type: multipart/alternative; boundary=20cf30434504d2371b04959fc766 --20cf30434504d2371b04959fc766 Content-Type: text/plain; charset=ISO-8859-1 Dear Thomas and John, thanks a lot for the prompt reply! I just had time to follow the instructions and it works!!! Best regards, -Mario On Wed, Nov 17, 2010 at 1:40 PM, Thomas S. Dye wrote: > Hi John, > > Perhaps this is missing: > > (require 'org-latex) > > Let me know if that fixes your problem and I'll add it to the instructions. > > All the best, > Tom > > On Nov 17, 2010, at 11:07 AM, John Hendy wrote: > > Thanks, Tom. > > I'm getting an error, though. I tried both settings from Section 1.2 ( > http://orgmode.org/worg/org-contrib/babel/examples/article-class.php#sec-1_2) > and get this error when I start emacs: > > ,----- > | Symbol's value as variable is void: org-export-latex-classes > `----- > > I just did a fresh git pull, make clean, make && make install just to be > sure it wasn't just my version. > > What am I goofing up? > > > Thanks, > John > > On Wed, Nov 17, 2010 at 12:58 AM, Thomas S. Dye wrote: > >> Aloha John and Mario, >> >> I've moved my buggy development efforts to a branch and you can now pull a >> stable version of Org-article if you're so inclined. >> >> All the best, >> Tom >> >> On Nov 16, 2010, at 7:11 PM, John Hendy wrote: >> >> On Tue, Nov 16, 2010 at 5:46 PM, Mario E. Munich 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 "", 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. >>> Emacs-orgmode@gnu.org >>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode >>> >>> >> _______________________________________________ >> Emacs-orgmode mailing list >> Please use `Reply All' to send replies to the list. >> Emacs-orgmode@gnu.org >> http://lists.gnu.org/mailman/listinfo/emacs-orgmode >> >> >> > > --20cf30434504d2371b04959fc766 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Dear Thomas and John,

thanks a lot for the prompt reply! I just had = time to follow the instructions and it works!!!

Best regards,
-Mario

On Wed, Nov 17, 2010 at 1:40 PM, = Thomas S. Dye <tsd@ts= dye.com> wrote:
Hi John,

Perhaps this is missing:

=A0=A0(require 'org-latex)

Let me know if that fixes your problem and I'll add it to the ins= tructions.

All the best,
Tom
<= div>

On Nov 17, 2010, at 11:07 = AM, John Hendy wrote:

Thanks, Tom.
<= br>
I'm getting an error, though. I tried both settings from = Section 1.2 (http://orgmode.org/worg/org-co= ntrib/babel/examples/article-class.php#sec-1_2) and get this error when= I start emacs:

,-----
|=A0Symbol's value as variable is= void: org-export-latex-classes
`-----

I just d= id a fresh git pull, make clean, make && make install just to be su= re it wasn't just my version.

What am I goofing up?


Thanks,
John

On = Wed, Nov 17, 2010 at 12:58 AM, Thomas S. Dye <tsd@tsdye.com> wr= ote:
Aloha John and Mario,

I've mov= ed my buggy development efforts to a branch and you can now pull a stable v= ersion of Org-article if you're so inclined.

All the best,
Tom

On Nov 16, 2010, at 7:11 PM, John Hendy wrote:

=
On Tue, No= v 16, 2010 at 5:46 PM, Mario E. Munich <mariomu@ieee.org> wro= te:
Dear all,
I am trying to use the org-article class created by Tomas Dye. As you migh= t 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=3D7.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.

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

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

Yup -- that's the error.
= =A0

- I= n the org Manual, I see chapter 14 devoted to Babel, but I do not see any i= nformation 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 di= dn't provide the setup syntax (like Thomas did).
=A0
- = In worg, there is a page for Babel: http://orgmode.org/worg/org-cont= rib/babel/index.php and a corresponding Introductory Tutorial. In this = page, there is a section called Initial Configuration in which there is a m= ention of a "five-step process", but the corresponding list of st= eps only have 3 items.

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

(org-babel-do-load-lan= guages
=A0'org-babel-load-languages
=A0'((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 #+sr= c block.

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

,-----
|=A0SyntaxError: invalid syntax
| File &qu= ot;<stdin>", line 17
| =A0 =A0print res
| =A0 =A0 =A0 =A0 =A0 =A0^
|= =A0SyntaxError: 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 versi= on issue. I'd suggest changing it if it's accepted by older version= s 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 ve= ry end:
,-----
| reference "gantttest" not fo= und in this buffer
`-----

I get not clas= s file.
=A0
<= br>I would appreciate if somebody could guide me towards a simple Babel con= figuration 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 thin= gs -- 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 help= ful.


John
=A0
Thanks a lot for all the help!
-Mario


_________________= ______________________________
Emacs-orgmode mailing list
Please us= e `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


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




--20cf30434504d2371b04959fc766-- --===============0681451406== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============0681451406==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thomas S. Dye" Subject: Re: org-article setup Date: Mon, 22 Nov 2010 07:04:03 -1000 Message-ID: References: <3CC1CE1F-5A5B-43BB-AF11-D5F078AB611C@tsdye.com> <0C743517-2912-4D0C-8CE4-5FD1F9192650@tsdye.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: multipart/mixed; boundary="===============0587509894==" Return-path: Received: from [140.186.70.92] (port=53790 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PKZoj-0004WV-Jm for emacs-orgmode@gnu.org; Mon, 22 Nov 2010 12:04:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PKZoI-0005dY-Ml for emacs-orgmode@gnu.org; Mon, 22 Nov 2010 12:04:34 -0500 Received: from cpoproxy1-pub.bluehost.com ([69.89.21.11]:50516) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PKZoI-0005cQ-Bb for emacs-orgmode@gnu.org; Mon, 22 Nov 2010 12:04:10 -0500 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: mariomu@ieee.org Cc: emacs-orgmode@gnu.org --===============0587509894== Content-Type: multipart/alternative; boundary=Apple-Mail-56-753114941 --Apple-Mail-56-753114941 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Aloha Mario, Good news! Don't hesitate to come back to the list if you have other questions. All the best, Tom On Nov 21, 2010, at 10:09 PM, Mario E. Munich wrote: > Dear Thomas and John, > > thanks a lot for the prompt reply! I just had time to follow the > instructions and it works!!! > > Best regards, > > -Mario > > On Wed, Nov 17, 2010 at 1:40 PM, Thomas S. Dye wrote: > Hi John, > > Perhaps this is missing: > > (require 'org-latex) > > Let me know if that fixes your problem and I'll add it to the > instructions. > > All the best, > Tom > > On Nov 17, 2010, at 11:07 AM, John Hendy wrote: > >> Thanks, Tom. >> >> I'm getting an error, though. I tried both settings from Section >> 1.2 (http://orgmode.org/worg/org-contrib/babel/examples/article-class.php#sec-1_2 >> ) and get this error when I start emacs: >> >> ,----- >> | Symbol's value as variable is void: org-export-latex-classes >> `----- >> >> I just did a fresh git pull, make clean, make && make install just >> to be sure it wasn't just my version. >> >> What am I goofing up? >> >> >> Thanks, >> John >> >> On Wed, Nov 17, 2010 at 12:58 AM, Thomas S. Dye >> wrote: >> Aloha John and Mario, >> >> I've moved my buggy development efforts to a branch and you can now >> pull a stable version of Org-article if you're so inclined. >> >> All the best, >> Tom >> >> On Nov 16, 2010, at 7:11 PM, John Hendy wrote: >> >>> On Tue, Nov 16, 2010 at 5:46 PM, Mario E. Munich >>> 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 "", 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. >>> Emacs-orgmode@gnu.org >>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode >>> >>> >>> _______________________________________________ >>> Emacs-orgmode mailing list >>> Please use `Reply All' to send replies to the list. >>> Emacs-orgmode@gnu.org >>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode >> >> > > --Apple-Mail-56-753114941 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Aloha = Mario,

Good news!  Don't hesitate to come back = to the list if you have other questions.

All = the best,
Tom

On Nov 21, 2010, at = 10:09 PM, Mario E. Munich wrote:

Dear = Thomas and John,

thanks a lot for the prompt reply! I just had = time to follow the instructions and it works!!!

Best = regards,

-Mario

On Wed, Nov 17, = 2010 at 1:40 PM, Thomas S. Dye <tsd@tsdye.com> wrote:
=
Hi John,

Perhaps = this is missing:

  (require = 'org-latex)

Let me know if that fixes your = problem and I'll add it to the = instructions.

All the = best,
Tom

On Nov 17, 2010, at 11:07 AM, John = Hendy wrote:

Thanks, = Tom.

I'm getting an error, though. I tried both = settings from Section 1.2 (http://orgmode.org/worg/org-contrib/babel/examples/artic= le-class.php#sec-1_2) and get this error when I start emacs:
=

,-----
| Symbol's value as variable = is void: org-export-latex-classes
`-----

I = just did a fresh git pull, make clean, make && make install just = to be sure it wasn't just my version.

What am = I goofing = up?


Thanks,
John

On Wed, Nov 17, 2010 at 12:58 AM, = Thomas S. Dye <tsd@tsdye.com> wrote:
Aloha John and Mario,

I've moved my = buggy development efforts to a branch and you can now pull a stable = version of Org-article if you're so inclined.
=

All the = best,
Tom

On Nov 16, 2010, at = 7:11 PM, John Hendy = wrote:

On Tue, Nov 16, 2010 at 5:46 PM, Mario E. Munich = <mariomu@ieee.org> 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=3D7.3.

I have = followed the instructions on worg:

http://orgmode.org/worg/org-contrib/babel/examples/artic= le-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.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode<= br>

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





= --Apple-Mail-56-753114941-- --===============0587509894== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============0587509894==--