[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: modify frame title in beamer export

From: Nicolas Goaziou
Subject: Re: modify frame title in beamer export
Date: Sun, 05 Apr 2020 14:36:12 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)


"Gürtler, Martin" <address@hidden> 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)
       ((not (org-export-derived-backend-p 'beamer)) ast)
        (org-element-map ast 'headline
          (lambda (h)
            (when (equal (org-export-get-node-property :A h) "foo")
              (org-element-put-property h :title "FOO!")))


Nicolas Goaziou

reply via email to

[Prev in Thread] Current Thread [Next in Thread]