Hello, "Gürtler, Martin" <martin.guert...@htwk-leipzig.de> writes:
> I'd like to modify the frame title in beamer export based on > properties or priority as this is possible in latex export. > > In latex export, one can set the variable > org-latex-format-headline-function to the name of a function that > creates the content of the headline. I was able to use this in > latex export. > > As beamer export is derived from latex export I had hoped that this > would automatically work for beamer export as well, but this > is not the case, the headlines in beamer export are not modified. > > A second question is, whether one could also use properties to > format the headlines. The arguments of the user supplied function > include tags, but not properties. I suggest to create a function modifying the headline element in the parse tree, and add it to `org-export-filter-parse-tree-functions'. This way, you have access to all properties and what not, and can replace the headline by whatever you need. E.g., (untested): (defun my-beamer-frame-title-filter (ast backend info) (cond ((not (org-export-derived-backend-p 'beamer)) ast) (t (org-element-map ast 'headline (lambda (h) (when (equal (org-export-get-node-property :A h) "foo") (org-element-put-property h :title "FOO!"))) info) ast))) HTH, -- Nicolas Goaziou