From mboxrd@z Thu Jan 1 00:00:00 1970 From: suvayu ali Subject: Re: org-beamer feaure request : single frame background Date: Thu, 26 May 2011 11:15:12 -0700 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:33788) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QPf5r-0006Ed-6l for emacs-orgmode@gnu.org; Thu, 26 May 2011 14:15:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QPf5q-0001Th-B9 for emacs-orgmode@gnu.org; Thu, 26 May 2011 14:15:35 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:41893) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QPf5q-0001Tb-5i for emacs-orgmode@gnu.org; Thu, 26 May 2011 14:15:34 -0400 Received: by wyf19 with SMTP id 19so902650wyf.0 for ; Thu, 26 May 2011 11:15:32 -0700 (PDT) In-Reply-To: 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Sander Boer Cc: emacs-orgmode@gnu.org I see the limitation of my suggestion one now. I guess the only way is option two then. On Thu, May 26, 2011 at 3:08 AM, Sander Boer wrote: > I think it it possible to write a function that prepends > "{\myfunction..etc " =A0and appends "}" to the frame environment. > For the time being a property like "BEAMER_BG: myfile.jpg" could be > harvested and transformed into: > > { > \setbeamertemplate{background canvas}{ > =A0 =A0 =A0 =A0\includegraphics[width=3D\paperwidth]{./myfile.jpg} > > \begin{frame} > ......... > \end{frame} > =A0} > > The latex code could be a bit more elaborate and the image placement > attributes need some automagic, but as a proof of concept, this will do. > > I do think I need a little help with this though, as I have no clue > about org's inner workings. > But let's take it one step at a time, like how does one harvest the > "BEAMER_BG: myfile.jpg" property ? > This page from the manual might help you. http://orgmode.org/manual/Using-the-property-API.html#Using-the-property-AP= I A combination of getting the properties with the property API and adding your own function in the post export hook might be the easiest solution here. > sndr > Good luck, and do post back to the list if you find a solution, I would be interested. --=20 Suvayu Open source is the future. It sets us free.