From mboxrd@z Thu Jan 1 00:00:00 1970 From: edgar@openmail.cc Subject: Re: Feature request: #+INCLUDE: with anchors Date: Fri, 12 Jan 2018 07:14:45 +0000 Message-ID: <890072acf0ef26b87e349615f7b83751@openmail.cc> References: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53950) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ea2Xj-0005W4-IU for emacs-orgmode@gnu.org; Fri, 12 Jan 2018 11:51:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ea2Xe-00032g-6x for emacs-orgmode@gnu.org; Fri, 12 Jan 2018 11:50:58 -0500 Received: from onethreetwo.vfemail.net ([199.16.11.132]:21881 helo=vfemail.net) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ea2Xe-00031I-0S for emacs-orgmode@gnu.org; Fri, 12 Jan 2018 11:50:54 -0500 In-Reply-To: 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" To: emacs-orgmode@gnu.org > Message: 6 > Date: Thu, 11 Jan 2018 11:39:29 +0100 > From: Rasmus > To: emacs-orgmode@gnu.org > Subject: Re: [O] Feature request: #+INCLUDE: with anchors > Message-ID: <878td4r866.fsf@gmx.us> > Content-Type: text/plain; charset=utf-8 > > What would happen if one of the keywords aren?t unique? Get the first instance? what happens when a referenced heading, block or table is not unique (or doesn't exist)? > > Something similar can already be done in Org. See this part of the > manual: > > Inclusions may specify a file-link to extract an object matched by > org-link-search (see Search options). > > To extract only the contents of the matched object, set > :only-contents property to non-nil. This will omit any planning lines > or property drawers. The ranges for :lines keyword are relative to the > requested element. Some examples: > > #+INCLUDE: "./paper.org::#theory" :only-contents t > Include the body of the heading with the custom id ?theory? > #+INCLUDE: "./paper.org::mytable" Include named element. > #+INCLUDE: "./paper.org::*conclusion" :lines 1-20 > Include the first 20 lines of the headline named ?conclusion?. > Although I was aware of this, I think that what you write is very useful, thank you. ------------------------------------------------- ONLY AT VFEmail! - Use our Metadata Mitigator to keep your email out of the NSA's hands! $24.95 ONETIME Lifetime accounts with Privacy Features! 15GB disk! No bandwidth quotas! Commercial and Bulk Mail Options!