From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1 with LMTPS id 6GfRC1bSiV76NgAAk0OIDg (envelope-from ) for ; Sun, 05 Apr 2020 12:43:02 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id KHYRKFTSiV6bLQAA1q6Kng (envelope-from ) for ; Sun, 05 Apr 2020 12:43:00 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 7F78B942717 for ; Sun, 5 Apr 2020 12:36:44 +0000 (UTC) Received: from localhost ([::1]:47610 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jL4W2-0000YO-Vh for larch@yhetil.org; Sun, 05 Apr 2020 08:36:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49744) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jL4Ve-0000Y4-M6 for emacs-orgmode@gnu.org; Sun, 05 Apr 2020 08:36:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jL4Vd-00087m-8j for emacs-orgmode@gnu.org; Sun, 05 Apr 2020 08:36:18 -0400 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:56513) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jL4Vd-00086v-3Y for emacs-orgmode@gnu.org; Sun, 05 Apr 2020 08:36:17 -0400 X-Originating-IP: 185.131.40.67 Received: from localhost (40-67.ipv4.commingeshautdebit.fr [185.131.40.67]) (Authenticated sender: admin@nicolasgoaziou.fr) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 7DDF9C0002; Sun, 5 Apr 2020 12:36:13 +0000 (UTC) From: Nicolas Goaziou To: =?utf-8?Q?G=C3=BCrtler=2C_Martin?= Subject: Re: modify frame title in beamer export References: <9c314626-12bf-48f1-b74f-659472b32df6@ITSZ-EXCH-MBX12.htwk-leipzig.de> Mail-Followup-To: =?utf-8?Q?G=C3=BCrtler=2C_Martin?= , "emacs-orgmode\@gnu.org" Date: Sun, 05 Apr 2020 14:36:12 +0200 In-Reply-To: <9c314626-12bf-48f1-b74f-659472b32df6@ITSZ-EXCH-MBX12.htwk-leipzig.de> (=?utf-8?Q?=22G=C3=BCrtler=2C?= Martin"'s message of "Sun, 5 Apr 2020 09:28:56 +0000") Message-ID: <87o8s6az43.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 217.70.183.198 X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "emacs-orgmode@gnu.org" Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=default; t=1586090206; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=z/j6fX2VpqbYV7fghVJZByftea3vr86vj5yAop5jGks=; b=jp7TOfnju3dVfyvTdh9hgrR6m9linpleNv5peW+TrT33KRvIHAmwmkrEXdbZdCMHbZAfWj dNKcWd5aco3Vl8ToO6Ap/65A2fHzl9tpChXkbLDNrR0VW+SUwKHJfiOQjglREsPHkVHygd NIgPonrmCvPdlfkxBFjGgIDxQTL9GMk= ARC-Seal: i=1; s=default; d=yhetil.org; t=1586090206; a=rsa-sha256; cv=none; b=UEgEIpOmhm+X+xOuoURWOJMKayO+lBDcbd+D6L+P1zR2lluLFcHR8lBaSMMM4m5f5kBg2U VI5brA+PXWDIe5D1FYH1P0M1LxRLp72zkISukFULNDpESHDYQgBBqqmQSK8w6O4SUykEz6 At5DaNRLogbGUXqFAmZyE36FcRg9KQA= ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Scanner: scn0 X-Spam-Score: -1.01 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Scan-Result: default: False [-1.01 / 13.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; GENERIC_REPUTATION(0.00)[-0.58559837495637]; HAS_XOIP(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.51.188.0/24:c]; IP_REPUTATION_HAM(0.00)[asn: 22989(0.33), country: US(-0.01), ip: 209.51.188.17(-0.59)]; ARC_SIGNED(0.00)[i=1]; MX_GOOD(-0.50)[cached: eggs.gnu.org]; RCPT_COUNT_TWO(0.00)[2]; MAILLIST(-0.20)[mailman]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:22989, ipnet:209.51.188.0/24, country:US]; MID_RHS_MATCH_FROM(0.00)[]; TAGGED_FROM(0.00)[larch=yhetil.org]; ARC_NA(0.00)[]; RCVD_COUNT_FIVE(0.00)[6]; FROM_NEQ_ENVFROM(0.00)[mail@nicolasgoaziou.fr,emacs-orgmode-bounces@gnu.org]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; DMARC_NA(0.00)[nicolasgoaziou.fr]; HAS_LIST_UNSUB(-0.01)[]; FORGED_SENDER_MAILLIST(0.00)[] X-TUID: QndiQ/xBPeja Hello, "G=C3=BCrtler, Martin" 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.=20 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, --=20 Nicolas Goaziou