Hi Seb,

Sébastien Vauban <wxhgmqzgw...@spammotel.com> 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 the
>> problem is the result of the "org" code block calling `org-export-as-latex'
>> 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 buffer
>> is hard coded into `org-export-preprocess-string', meaning that the buffer
>> 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 =:results latex= to =:results org= 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

<<me>>
#+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

_______________________________________________
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

Reply via email to