From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Andreas Kiermeier" Subject: Re: Problem with including file Date: Fri, 3 May 2019 11:14:41 +0930 Message-ID: <03b701d50151$c981bf80$5c853e80$@gmail.com> References: <02c901d500a4$61ee4760$25cad620$@gmail.com> <87v9ytb6be.fsf@nicolasgoaziou.fr> <037201d500c3$761ecb50$625c61f0$@gmail.com> <87lfzphzhi.fsf@lutyens> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([209.51.188.92]:48086) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hMNFr-0003b0-Bw for emacs-orgmode@gnu.org; Thu, 02 May 2019 21:44:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hMNFq-0001ZT-97 for emacs-orgmode@gnu.org; Thu, 02 May 2019 21:44:51 -0400 Received: from mail-pf1-x430.google.com ([2607:f8b0:4864:20::430]:34828) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hMNFq-0001Z2-0g for emacs-orgmode@gnu.org; Thu, 02 May 2019 21:44:50 -0400 Received: by mail-pf1-x430.google.com with SMTP id t87so1473992pfa.2 for ; Thu, 02 May 2019 18:44:49 -0700 (PDT) In-Reply-To: <87lfzphzhi.fsf@lutyens> Content-Language: en-au 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" To: 'Jamie Forth' , emacs-orgmode@gnu.org Hi Jamie, Thanks for the info and link. Seems like I got too excited after Nicolas' reply and noticed exactly what you pointed out. I've now worked out that leaving the original buffer-wide properties in place is OK. But, as you suggested, I've added property drawer to the heading for the appendix. This needed inclusion of a few more of the buffer-wide header-arguments, but at least it saves having to specify a property drawer for every section. Thanks again! Andreas > -----Original Message----- > From: Emacs-orgmode bounces+andreas.kiermeier=gmail.com@gnu.org> On Behalf Of Jamie Forth > Sent: Thursday, 2 May 2019 20:53 > To: emacs-orgmode@gnu.org > Subject: Re: [O] Problem with including file > > Hi Andreas, > > "Andreas Kiermeier" writes: > > > The reason I did tried to do it this way was because it's simpler than > > having to say :export results for every source block. > > But, it a second call to > > > > #+PROPERTY: header-args+ :exports code Just before the #+INCLUDE gets > > everything working perfectly. > > A second #+PROPERTY keyword will just append an additional file property > (the second one shadowing the first). Setting the header-args in property > drawers would do what you want. > > #+PROPERTY: header-args:R :session *R* :cache no > #+PROPERTY: header-args+ :results output > #+PROPERTY: header-args+ :eval never-export > #+PROPERTY: header-args+ :tangle yes > > * Intro > :PROPERTIES: > :header-args: :exports results > :END: > > * Data Analysis Source Code > :PROPERTIES: > :header-args: :exports code > :END: > > https://orgmode.org/manual/Using-Header-Arguments.html#Header- > arguments-in-Org-mode-properties > > -- > Jamie >