Hello, Adam Porter <a...@alphapapa.net> writes:
> Tim Visher <tim.vis...@gmail.com> writes: > >> I like the filename of the exported file to always match the content of the >> heading being exported. Is that possible? At the moment I basically >> duplicate it >> like: >> >> ** Foo Heading >> :PROPERTIES: >> :EXPORT_FILE_NAME: Foo Heading >> :END: > > I guess the simplest way would be to advise the org-export function with > a function that sets that property in the heading being exported. You > could even add another advice that would clear the property afterward. I suggest to use a hook to add this property right before export, e.g., in `org-export-before-processing-hook'. Regards, -- Nicolas Goaziou