emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Xavier Garrido <xavier.garrido@gmail.com>
To: Andrea Rossetti <andrea.rossetti@gmail.com>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: Improved way to include some headlines from an external org file
Date: Sat, 13 Sep 2014 11:40:42 +0200	[thread overview]
Message-ID: <5414111A.1030502@gmail.com> (raw)
In-Reply-To: <8438bxoedh.fsf@gmail.com>

Hi Andrea,

Le 12/09/2014 02:45, Andrea Rossetti a écrit :
> Xavier Garrido <xavier.garrido@gmail.com> 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

  reply	other threads:[~2014-09-13  9:41 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 [this message]
2014-09-30 23:10     ` Rasmus
2014-10-01  5:29       ` Xavier Garrido
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=5414111A.1030502@gmail.com \
    --to=xavier.garrido@gmail.com \
    --cc=andrea.rossetti@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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).