From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Fraga Subject: Re: [beamer] When are :BEAMER_envargs: used or ignored? Date: Wed, 25 Apr 2012 14:11:51 +0930 Message-ID: <87sjfsmnhs.fsf@ucl.ac.uk> References: <87ehtgoita.wl%jamshark70@dewdrop-world.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:40901) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SMu3M-0001g0-V2 for emacs-orgmode@gnu.org; Wed, 25 Apr 2012 00:42:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SMu3L-0000j4-7o for emacs-orgmode@gnu.org; Wed, 25 Apr 2012 00:42:08 -0400 Received: from db3ehsobe006.messaging.microsoft.com ([213.199.154.144]:38566 helo=db3outboundpool.messaging.microsoft.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SMu3K-0000io-US for emacs-orgmode@gnu.org; Wed, 25 Apr 2012 00:42:07 -0400 In-Reply-To: <87ehtgoita.wl%jamshark70@dewdrop-world.net> (James Harkins's message of "Mon, 27 Feb 2012 15:07:45 +0800") 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: James Harkins Cc: emacs-orgmode@gnu.org James Harkins writes: > According to the online documentation [1], it seems > that :BEAMER_envargs: should apply to all Beamer environments: And it does generally although I have tried setting it (for your example below) to {ybg} and it disappears. If I set it to [ybg], it does appear in the exported latex. I haven't delved into the beamer export code in a long while but it must be checking for constructs of the form [...] or <...>, I would guess. In any case, addressing your real question: [...] > Or, the simple question -- how do you set the colors of a color box in > Beamer export? > Oh, wait, I just figured it out... though you would have to admit, > this is not remotely obvious. > ** Frame 2 \\ where we will not use columns > #+LaTeX: \setbeamercolor{ybg}{bg=yellow} > *** ybg :B_beamercolorbox: > Please test this stuff! > :PROPERTIES: > :BEAMER_env: beamercolorbox > :END: > > It kind of strikes me like an epic hack: you have to name the headline > after the Beamer color ID, instead of naming the headline after the > content... not very /org/anized. Well, the problem is that a beamercolorbox is *not* a block and does not expect a title parameter. It actually expects only a colour (well, a beamer colour structure, to be precise, such as the one you have defined). What is /org/ expected to do with the entry you specify? To achieve what you want (maybe, as I am not clear exactly what you want ;-), you should probably define a block *within* the beamercolorbox or vice versa. For instance: --8<---------------cut here---------------start------------->8--- ** Frame 2 \\ where we will not use columns *** ybg :B_beamercolorbox: :PROPERTIES: :BEAMER_env: beamercolorbox :END: **** Title :B_block: :PROPERTIES: :BEAMER_env: block :END: Please test this stuff! --8<---------------cut here---------------end--------------->8--- > Worth a bug report or feature request? It is not a bug, IMO. Whether it should be a feature request or not is debatable. The syntax is, at present, fairly straightforward in that the headline text becomes the argument to the environment defined. What that environment does with the argument is obviously up to the environment itself! HTH, eric -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.1.50.1 : using Org-mode version 7.8.06 (release_7.8.06.181.g67694.dirty)