From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Charles C. Berry" Subject: Re: export: noweb blocks substituted versus verbatim ? Date: Sat, 26 Sep 2015 19:54:18 -0700 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35122) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zg26b-00018n-1H for emacs-orgmode@gnu.org; Sat, 26 Sep 2015 22:54:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zg26W-0006ZT-0O for emacs-orgmode@gnu.org; Sat, 26 Sep 2015 22:54:24 -0400 Received: from iport-acv6-out.ucsd.edu ([132.239.0.13]:48260) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zg26V-0006ZL-OY for emacs-orgmode@gnu.org; Sat, 26 Sep 2015 22:54:19 -0400 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Andreas Leha Cc: emacs-orgmode@gnu.org On Sat, 26 Sep 2015, Andreas Leha wrote: > Hi Brian, > > Brian Beckman writes: >> Hello -- I have a situation where some code blocks with noweb references in >> them <> are substituted inline when I export the document, and >> other code blocks with noweb references, are copied verbatim into the >> exported PDF. I do not know what causes this difference in behavior and I >> don't know how to control it, but I'd like to control it. I'd like to be >> able to specify that some blocks have behavior 1 (references substituted >> inline) and other blocks have behavior 2 (references verbatim). >> >> I'm sure this is pilot error, but I'm stumped and would be grateful for advice. > > [[ omitted: the MVE ]] > > As far as I can see, the difference is that some of the code blocks have > the header argument `:noweb yes', while others do not. > > I do not know how to achieve working noweb extension during evaluation > but omitting noweb extension during export, though. > You can do like this (apart from anonymous backends): #+header: :noweb (if (org-bound-and-true-p org-export-current-backend) "no" "yes") HTH, Chuck