I would like to be able to have an org-mode file that looks like the following:
* Some Heading :ignore:noexport:
** Not exported
Some stuff.
** Other not exported heading
More stuff.
** Exported :export:
Other stuff.
What should get produced when exporting would look like:
Exported
--------
Other Stuff.
The :ignore:
tag is used in conjunction with the ox-extra
package's ignore-headlines functionality -- see this for details.
It seems that the org-mode file above won't currently export -- is there a workaround that would allow this to work? It seems like the key here would be to make org-mode work so that the presence of an :export:
tag removes any inherited :noexport:
tag, and vice versa -- the presence of a :noexport:
tag should remove an inherited :export:
tag for the headline.
(info "(org) Export settings")
: "When headlines are selectively exported with:export:
anywhere in a file, text before the first headline is ignored." In your case, leave out the:noexport:
tag since the subheadings not tagged with:export:
will be ignored. Changing the export scope to "Subtree" (with <kbd>C-s</kbd>) will lead to the desired result.