emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Improved way to include some headlines from an external org file
@ 2014-09-11 14:24 Xavier Garrido
  2014-09-12  0:45 ` Andrea Rossetti
  2014-09-30 19:55 ` Andrea Rossetti
  0 siblings, 2 replies; 8+ messages in thread
From: Xavier Garrido @ 2014-09-11 14:24 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

Dear Orgers,

By following discussions on this list, I think I have understood that 
the inclusion mechanism through =#+INCLUDE= directive is a bit rough and 
only allows a limited range of use. I know how to include only lines 
using =:lines= parameter but what I would like to achieve is to only 
include some headlines from an external org file. Is there a way using 
babel for example (like this function 
https://github.com/thesoftwarebin/the-emacs-software-bin/blob/master/include-many-files/include-many-files.org) 
to write something like that

#+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

Of course, I can achieve that by using =:lines= and calculating how many 
lines embeds the given headline. But every time the "First base chapter" 
length changes I will have to change all the subsequent =#INCLUDE:= 
commands. I do not know how hard it is to implement this but I think it 
will be a nice addition (at least one I will use a lot).

Thanks for your answer,
Xavier

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-10-01 21:31 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2014-09-30 19:55 ` Andrea Rossetti
2014-10-01  5:06   ` Xavier Garrido
2014-10-01 21:31     ` Andrea Rossetti

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).