emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] [patch, ox] #+INCLUDE resolves links


From: Rasmus
Subject: [O] [patch, ox] #+INCLUDE resolves links
Date: Sun, 21 Sep 2014 02:51:34 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)

Hi,

This patch allows INCLUDE to have intuitive links as resolved by
`org-link'-search'.  A couple of examples:

#+INCLUDE: file.org::#custom_id :noheadline :lines "3-"
#+INCLUDE: file.org::*headline :lines "-10"

:noheading tries to get rid of the first headline, and immediately
subsequent drawer and property-drawer, if present.  :noheading is only
interpret when a headline argument is present.  :lines is interpreted
relatively, if coupled with a headline link.

I should work for other types of links as well though it could be
limited to headlines only.

Perhaps it would even make sense to let it take a no-file argument to
locate things within the same buffer.  This would be useful for
including, say, tables in babel/code-appendices.  

What do you think?

—Rasmus

--
Hooray!

Attachment: 0001-ox-Allow-links-with-INCLUDE-keyword.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]