From mboxrd@z Thu Jan 1 00:00:00 1970 From: Myles English Subject: Re: Simplify repeated same section with different variable value Date: Tue, 24 Apr 2012 13:36:15 +0100 Message-ID: <87397t9uio.fsf@gmail.com> References: <4F969B18.8090706@gmail.com> Reply-To: emacs-orgmode , Myles English Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([208.118.235.92]:57502) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SMeu1-0005TH-BZ for emacs-orgmode@gnu.org; Tue, 24 Apr 2012 08:31:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SMett-0000vO-UM for emacs-orgmode@gnu.org; Tue, 24 Apr 2012 08:31:28 -0400 Received: from mail-ey0-f169.google.com ([209.85.215.169]:32849) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SMett-0000uU-LS for emacs-orgmode@gnu.org; Tue, 24 Apr 2012 08:31:21 -0400 Received: by eaal1 with SMTP id l1so166872eaa.0 for ; Tue, 24 Apr 2012 05:31:19 -0700 (PDT) In-Reply-To: <4F969B18.8090706@gmail.com> (Rainer M. Krug's message of "Tue, 24 Apr 2012 14:22:48 +0200") 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: R.M.Krug@gmail.com Cc: emacs-orgmode >> On Tue, 24 Apr 2012 14:22:48 +0200, Rainer M Krug said: > Hi I have a section which I want to repeat for different variable > values. At the moment I am copying them, but I do not like it at > all: > ** Species one :PROPERTIES: :var: SPECIES="sp1" :END: *** Data > Checks Here is some text #+header: :results output #+begin_src R > checkData(species=SPECIES) #+end_src > ** Species 2 :PROPERTIES: :var: SPECIES="sp2" :END: *** Data Checks > Here is some text #+header: :results output #+begin_src R > checkData(species=SPECIES) #+end_src > I am sure there must be an easier way with org? How about using yasnippet? > Cheers, > Rainer Myles