From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xavier Garrido Subject: Re: Improved way to include some headlines from an external org file Date: Sat, 13 Sep 2014 11:40:42 +0200 Message-ID: <5414111A.1030502@gmail.com> References: <5411B08D.30209@gmail.com> <8438bxoedh.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47075) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XSjpA-0008Ct-3R for emacs-orgmode@gnu.org; Sat, 13 Sep 2014 05:41:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XSjp1-0002Aj-0o for emacs-orgmode@gnu.org; Sat, 13 Sep 2014 05:40:56 -0400 Received: from mail-we0-x236.google.com ([2a00:1450:400c:c03::236]:59653) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XSjp0-0002Ab-QV for emacs-orgmode@gnu.org; Sat, 13 Sep 2014 05:40:46 -0400 Received: by mail-we0-f182.google.com with SMTP id k48so1790328wev.27 for ; Sat, 13 Sep 2014 02:40:45 -0700 (PDT) In-Reply-To: <8438bxoedh.fsf@gmail.com> 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: Andrea Rossetti Cc: "emacs-orgmode@gnu.org" Hi Andrea, Le 12/09/2014 02:45, Andrea Rossetti a écrit : > Xavier Garrido writes: >> Of course, I can achieve that by using =:lines= and calculating how many >> lines embeds the given headline. > > Hi Xavier, another possible approach (maybe less handy, but in > some cases it might fit): the user could keep one .org file > per headline, and #+INCLUDE one headline (= one entire file) > when needed. > This is something I use when dealing with a book or report with basically one big file per chapter. Here the problem is slightly different : I have 4 org/Beamer presentations that almost 80% of them are the same. So instead of maintening this 80% in 4 different places, I'd like to write them and change them in one place and then include the needed headlines at the right place in each of the 4 presentations. I know this can't be done with #+INCLUDE maybe with a nice babel function or a bit of elisp. So maybe someone already did that. Otherwise this may be a nice addition for further release of org ;) Cheers, Xavier