Hello, Alan Schmitt <alan.schm...@polytechnique.org> writes:
> On 2018-02-01 20:09, Yasushi SHOJI <yasushi.sh...@gmail.com> 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]] > > … > >> 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, -- Nicolas Goaziou