I'm exporting org files to PDF. In some cases, I would like to include a heading without any of its children or contents.
There are currently two ways of hiding (part of) a headline. One is to use :ARCHIVE:
, which behaves exactly as I want for the purposes of export, but also makes the tree archived in sparse trees, searches, etc. The second is to use :noexport:
or exclude_tags
, but this hides the entry completely.
Is it possible to customize which tags behave like :ARCHIVE:
for the purposes of export only, maybe with a variable?
If not, would something like modifying this solution [1] work. I can see that I wouldn't need arch:t
, and the lambda function would be different, but I'm not familiar enough with org-mode's API to know which function to use instead. How would I have to modify it?
[1] How to export headlines, including subheadings, without other contents in org-mode?