From: Xavier Garrido <xavier.garrido@gmail.com>
To: Rasmus <rasmus@gmx.us>, emacs-orgmode@gnu.org
Subject: Re: Improved way to include some headlines from an external org file
Date: Wed, 01 Oct 2014 07:29:21 +0200 [thread overview]
Message-ID: <542B9131.3000409@gmail.com> (raw)
In-Reply-To: <87a95giu0x.fsf@gmx.us>
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
>
next prev parent reply other threads:[~2014-10-01 5:29 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-11 14:24 Improved way to include some headlines from an external org file Xavier Garrido
2014-09-12 0:45 ` Andrea Rossetti
2014-09-13 9:40 ` Xavier Garrido
2014-09-30 23:10 ` Rasmus
2014-10-01 5:29 ` Xavier Garrido [this message]
2014-09-30 19:55 ` Andrea Rossetti
2014-10-01 5:06 ` Xavier Garrido
2014-10-01 21:31 ` Andrea Rossetti
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=542B9131.3000409@gmail.com \
--to=xavier.garrido@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=rasmus@gmx.us \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).