From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: [patch] more Beamer properties Date: Thu, 22 Sep 2016 10:42:16 +0200 Message-ID: <878tuks4uv.fsf@gmx.us> References: <20160530103806.30cbddd9@asaru> <87fuszuclj.fsf@gmx.us> <20160530133335.45ad8693@asaru> <8737ozu5gv.fsf@gmx.us> <20160601104419.0a52f45e@asaru> <874m9dryrk.fsf@gmx.us> <20160602103705.298b0726@asaru> <87eg8fq5tc.fsf@gmx.us> <87fusg0wlm.fsf@saiph.selenimh> <87wpi5sdko.fsf@pank.eu> <87zin1j7vd.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55610) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmzaf-000388-DO for emacs-orgmode@gnu.org; Thu, 22 Sep 2016 04:42:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bmzaa-0007ho-ES for emacs-orgmode@gnu.org; Thu, 22 Sep 2016 04:42:45 -0400 Received: from [195.159.176.226] (port=48799 helo=blaine.gmane.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmzaa-0007dL-7v for emacs-orgmode@gnu.org; Thu, 22 Sep 2016 04:42:40 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1bmzaM-0005vI-SA for emacs-orgmode@gnu.org; Thu, 22 Sep 2016 10:42:26 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Nicolas Goaziou writes: >>> I think >>> >>> #+TITLEGRAPHICS: [[file:link.pdf]] >>> >>> would be cleaner. >> >> I dropped this. One might need to add attributes to the graphic. The >> #+titlegraphics approach wouldn’t allow it. > > Well, wouldn't the following work? > > #+attr_beamer: :attribute1 value1 :attribute2 value2 > > #+TITLEGRAPHICS: [[file:link.pdf]] > >> + (:beamer-short-title "SHORT_TITLE" nil nil parse) >> + (:beamer-short-subtitle "SHORT_SUBTITLE" nil nil parse) >> + (:beamer-short-author "SHORT_AUTHOR" nil nil parse) >> + (:beamer-short-date "SHORT_DATE" nil nil parse) >> + (:beamer-institute "INSTITUTE" nil nil parse) >> + (:beamer-short-institute "SHORT_INSTITUTE" nil nil parse) > > Per above, would the following be cleaner? > > #+attr_beamer: :short shortdate > > #+date: longdate > > Ditto for title, institute, author... Looks good, but how do I get the element representation of a parsed keyword in the :options-alist? In the buffer, I can do (org-export-read-attribute :attr_beamer (org-element-at-point)) But this does not work with what is stored in the info list. I’m probably missing something obvious here... Thanks, Rasmus -- History is what should never happen again