From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Help resolving CUSTOM_ID based links that point to outside current subtree scope Date: Tue, 01 Aug 2017 10:25:57 +0200 Message-ID: <87tw1rsnhm.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43335) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dcSV7-0008LC-2X for emacs-orgmode@gnu.org; Tue, 01 Aug 2017 04:26:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dcSV6-0003Wm-7q for emacs-orgmode@gnu.org; Tue, 01 Aug 2017 04:26:01 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:49278) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dcSV6-0003W5-2N for emacs-orgmode@gnu.org; Tue, 01 Aug 2017 04:26:00 -0400 In-Reply-To: (Kaushal Modi's message of "Fri, 28 Jul 2017 19:19:03 +0000") 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: Kaushal Modi Cc: emacs-org list Hello, Kaushal Modi writes: > Ah! I made a typo in the example above; here's the corrected one: > > * Link source > :PROPERTIES: > :EXPORT_FILE_NAME: link-source > :END: > - Link to [[#link-dest][Link dest]] > * Link dest > :PROPERTIES: > :EXPORT_FILE_NAME: link-dest > :CUSTOM_ID: link-dest > :END: > > ("Link source" and "Link dest" subtrees are at the same level. So exporting > just "Link source" subtree does not 'see' the "Link dest" subtree.) I guess you could write a function that changes custom ID links into external links prior to export, e.g., within `org-export-before-parsing-hook'. Regards, -- Nicolas Goaziou