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: Wed, 01 Oct 2014 07:29:21 +0200 Message-ID: <542B9131.3000409@gmail.com> References: <5411B08D.30209@gmail.com> <8438bxoedh.fsf@gmail.com> <5414111A.1030502@gmail.com> <87a95giu0x.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52564) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZCTg-00063z-Nk for emacs-orgmode@gnu.org; Wed, 01 Oct 2014 01:29:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XZCTc-0005dn-24 for emacs-orgmode@gnu.org; Wed, 01 Oct 2014 01:29:28 -0400 Received: from mail-wi0-x233.google.com ([2a00:1450:400c:c05::233]:60386) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZCTb-0005dU-RQ for emacs-orgmode@gnu.org; Wed, 01 Oct 2014 01:29:23 -0400 Received: by mail-wi0-f179.google.com with SMTP id d1so573955wiv.0 for ; Tue, 30 Sep 2014 22:29:23 -0700 (PDT) In-Reply-To: <87a95giu0x.fsf@gmx.us> 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: Rasmus , emacs-orgmode@gnu.org Hi Rasmus, Le 01/10/2014 01:10, Rasmus a écrit : > Hi Xavier, > > You could test the patch here: > > http://permalink.gmane.org/gmane.emacs.orgmode/91307 > I am following the discussion since the beginning (and all your exchange with Nicolas) > I think it introduces something close to what you are looking for. > This is exactly what I needed and I will try to test it today. >> #+BEGIN_SRC org >> #+INCLUDE: "./base.org" :headline "First base chapter" >> ,* A more personal chapter >> #+INCLUDE: "./base.org" :headline "Second base chapter" >> ,* Another personal chapter >> #+END_SRC > > You'd be able to do > > * first chapter > Note how we're renaming /first base chapter/ on the fly. > * In this book /first base chapter/ is my second chapter > #+INCLUDE: "./base.org::*First base chapter" :only-contents t > > Of course, you can also include other named objects such as tables and > probably code blocks. > Reading the discussion, I didn't get this last feature of including named code blocks and tables ! I have another use case that can benefit from this patch. So thanks a lot for all the hard work. Cheers, Xavier > —Rasmus >