From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: Re: [Babel] Can't export to LaTeX anymore (args-out-of-range 0 0) Date: Fri, 17 Sep 2010 12:55:33 -0400 Message-ID: <87ocbw48e2.fsf@gmail.com> References: <87tyltj2tq.fsf@mundaneum.com> <87y6b04fyn.fsf@gmail.com> <87wrqkl7pw.fsf@mundaneum.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=40681 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OweDt-0001Q5-LW for emacs-orgmode@gnu.org; Fri, 17 Sep 2010 12:55:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OweDp-0007gg-6f for emacs-orgmode@gnu.org; Fri, 17 Sep 2010 12:55:41 -0400 Received: from mail-yx0-f169.google.com ([209.85.213.169]:37144) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OweDo-0007gb-UK for emacs-orgmode@gnu.org; Fri, 17 Sep 2010 12:55:37 -0400 Received: by yxk8 with SMTP id 8so1222380yxk.0 for ; Fri, 17 Sep 2010 09:55:36 -0700 (PDT) In-Reply-To: <87wrqkl7pw.fsf@mundaneum.com> (=?utf-8?Q?=22S=C3=A9bastien?= Vauban"'s message of "Fri, 17 Sep 2010 17:18:03 +0200") 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: =?utf-8?Q?S=C3=A9bastien?= Vauban Cc: emacs-orgmode@gnu.org Hi Seb, S=C3=A9bastien Vauban writes: > Hi Eric, > > "Eric Schulte" wrote: >>> The error occurs with such a simple document: >>> >>> #+TITLE: Org-isodoc >>> #+LANGUAGE: en_US >>> >>> * Context >>> >>> This is a letter sample. >>> >>> * Subject >>> #+srcname: subject >>> #+begin_src org :results latex >>> Composing letters using Org mode and the LaTeX isodoc class >>> #+end_src >> >> This is a tricky problem indeed. After some debugging, it appears that t= he >> problem is the result of the "org" code block calling `org-export-as-lat= ex' >> on its body, while `org-export-as-latex' is already called on the entire >> org-mode file. Apparently the Org-mode exporter is not currently able to >> handle nested export calls, because the name of the temporary export buf= fer >> is hard coded into `org-export-preprocess-string', meaning that the buff= er >> is re-used and deleted by the nested export call. >> >> This fix will probably take some time to implement, and until then I don= 't >> think it will be possible to evaluate org-mode blocks during export. > > OK. Am I right, then, to conclude that the discussed Noweb route must be > abandoned (at least, temporarily) for writing isodoc letters? > Noweb expansion is still possible, however explicitly performing the export is not. > > What could be a workaround? > Simply change =3D:results latex=3D to =3D:results org=3D and the code block= body will be harmlessly expanded and deposited in the org buffer on export, then carried along with the rest of the file for export. --8<---------------cut here---------------start------------->8--- #+TITLE: Org-isodoc #+AUTHOR: Seb Vauban #+DATE: 2010-09-13 #+LANGUAGE: en_US * Context This is a letter sample. * Subject #+source: me #+begin_src org I am *eric*. #+end_src #+srcname: subject #+begin_src org :results org replace :noweb yes Composing letters using *Org mode* and the LaTeX isodoc class <> #+end_src --8<---------------cut here---------------end--------------->8--- I should have mentioned this in my earlier email. > > Thanks a lot... > My pleasure. Best -- Eric > > Best regards, > Seb