emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] No Expansion of noweb references when exporting


From: Eric Schulte
Subject: Re: [O] No Expansion of noweb references when exporting
Date: Thu, 19 May 2011 07:50:39 -0600
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Hi Mark,

Thanks for pointing this out.  After checking the manual [1] for the
noweb header argument I realized you were right, we're not currently
living up to the described behavior.

I've just pushed up a patch which correctly implements the ":noweb yes"
expansion on export behavior.

Best -- Eric

Mark Cox <address@hidden> writes:

> Hi,
>
> Is it possible for the output of the expansion of a code block to
> appear in the exported document?
>
> Consider the example:
>
> #+TITLE: No expansion of noweb references when exporting
>
> * Example
> :PROPERTIES:
> :tangle: illustration.hpp
> :END:
> #+srcname: boiler-plate-code-generator()
> #+begin_src emacs-lisp :results output :exports none :tangle no
> (dolist (type '("int8_t" "uint8_t" "float" "double"))
>   (princ (format "template <> %s boiler_plate_code<%s>();\n" type type)))
> #+end_src
> #+begin_src c++ :noweb yes
> <<boiler-plate-code-generator()>>
> #+end_src
>
> When I export this to HTML using C-c C-e b, the text
> <<boiler-plate-code-generator()>> is present. What I would like to see
> is the output that is generated when tangling.
>
> Thanks
> Mark
>


Footnotes: 
[1]  http://orgmode.org/manual/noweb.html

-- 
Eric Schulte
http://cs.unm.edu/~eschulte/



reply via email to

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