emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [Orgmode] source code block export no expansion


From: Thomas S. Dye
Subject: Re: [Orgmode] source code block export no expansion
Date: Tue, 7 Dec 2010 08:37:19 -1000

Aloha Andreas,

Perhaps :noweb tangle will do what you want.

hth,
Tom

On Dec 7, 2010, at 7:38 AM, Andreas Leha wrote:

Hi all,

I have a question about exporting source code blocks.  Say, I have
several modules (mod1, mod2), that build a bigger part (part1) of my
program, e.g.:


 #+srcname: mod1
 #+begin_src R :tangle no :export code
   print("mod1")
 #+end_src

 #+srcname: mod2
 #+begin_src R :tangle no :export code
   print("mod2")
 #+end_src

 #+srcname: part1
 #+begin_src R :noweb yes :tangle yes :export code :session *R*
   <<mod1>>
   <<mod2>>
 #+end_src


Now during the tangling I would like to tangle just the full part1 -
with noweb links being expanded. Also during execution the noweb links
should be expanded.  This is not a problem.

But at the same time, during the export I'd like to export all three
code snippets, but I'd prefer the noweb links not to be expanded.  Is
that possible?

Thanks in advance,
Andreas

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




reply via email to

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