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.

Best,

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7
Monthly Athmospheric CO₂, Mauna Loa Obs. 2017-12: 406.82, 2016-12: 404.42

Attachment: signature.asc
Description: PGP signature

Reply via email to