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==--