Skip to main content
2 of 2
added 1 character in body

Include linked headings when exporting to PDF

Given a test.org file like

* A level one heading
** [[file:other.org*some_heading][Some good stuffs]]

If I export it to HTML, Some good stuffs can get a nice link to another HTML. But this is not the case when exporting to PDF.

So when exporting to PDF, I want to include the actual content of some_heading. I know I can use something like

#+INCLUDE: "other.org*some_heading"

But that's a comment, and it's not easy for me to see the origin structure of test.org. I want it at least look like a heading in the org file.

Is there a way to keep Some good stuffs a link when exporting to HTML while include its actual content when exporting to PDF? Thanks.