From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: exporting a big project in multiple files to both pdf and html Date: Thu, 01 Feb 2018 13:56:32 +0100 Message-ID: <874ln0yikf.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42841) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ehEPu-0004vT-Nu for emacs-orgmode@gnu.org; Thu, 01 Feb 2018 07:56:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ehEPt-0001Yb-Np for emacs-orgmode@gnu.org; Thu, 01 Feb 2018 07:56:38 -0500 Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:58931) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ehEPt-0001XW-Hs for emacs-orgmode@gnu.org; Thu, 01 Feb 2018 07:56:37 -0500 In-Reply-To: (Alan Schmitt's message of "Thu, 01 Feb 2018 13:29:17 +0100") 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: Alan Schmitt Cc: Yasushi SHOJI , emacs-orgmode Hello, Alan Schmitt writes: > On 2018-02-01 20:09, Yasushi SHOJI writes: > >>> How do I change the link in the second headline so that I can split the >>> second headline into its own file and export it by itself? >> >> Using [[*A headline]] ? >> >> I might be still missing something but I got following: >> >> $ cat a.org >> * A headline >> >> This is the first file. >> >> #+INCLUDE: b.org :minlevel 1 >> >> $ cat b.org >> * Second headline >> >> The first headline is number [[*A headline]] > > =E2=80=A6 > >> hmm... latex export will generate \ref{sec:\#head} >> if you have CUSTOM_ID set. html exporter works, though. > > Not here. If I try to export the second file (the one with the link to > the first file), I get an error: > > user-error: Unable to resolve link: "*A headline" > > This is why I think I need to have the target file name in the link when > exporting it as a standalone file. If you don't mind broken links, there's also `org-export-with-broken-links'. Regards, --=20 Nicolas Goaziou