emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric Fraga <e.fraga@ucl.ac.uk>
To: James Harkins <jamshark70@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: [beamer] When are :BEAMER_envargs: used or ignored?
Date: Wed, 25 Apr 2012 14:11:51 +0930	[thread overview]
Message-ID: <87sjfsmnhs.fsf@ucl.ac.uk> (raw)
In-Reply-To: <87ehtgoita.wl%jamshark70@dewdrop-world.net> (James Harkins's message of "Mon, 27 Feb 2012 15:07:45 +0800")

James Harkins <jamshark70@gmail.com> 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!
>     :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:
    :BEAMER_env: beamercolorbox
**** Title                                                          :B_block:
     :BEAMER_env: block
     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!

: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs
: using Org-mode version 7.8.06 (release_7.8.06.181.g67694.dirty)

  reply	other threads:[~2012-04-25  4:42 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-27  7:07 [beamer] When are :BEAMER_envargs: used or ignored? James Harkins
2012-04-25  4:41 ` Eric Fraga [this message]
2012-04-25 10:09   ` James Harkins
2012-04-25 12:49     ` James Harkins
2012-04-26  8:14       ` Eric Fraga
2012-04-26  9:51         ` James Harkins
2012-04-26 11:15           ` Sebastien Vauban
2012-04-25 13:15     ` Eric Fraga

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87sjfsmnhs.fsf@ucl.ac.uk \
    --to=e.fraga@ucl.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    --cc=jamshark70@gmail.com \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).