From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Beamer export: How to handle overlayarea Date: Mon, 21 Oct 2013 12:12:43 +0200 Message-ID: <87eh7f3pb8.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42310) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VYCTZ-0003vP-Nv for emacs-orgmode@gnu.org; Mon, 21 Oct 2013 06:12:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VYCTR-0005d9-BA for emacs-orgmode@gnu.org; Mon, 21 Oct 2013 06:12:41 -0400 Received: from mail-wi0-x22d.google.com ([2a00:1450:400c:c05::22d]:33970) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VYCTR-0005cw-45 for emacs-orgmode@gnu.org; Mon, 21 Oct 2013 06:12:33 -0400 Received: by mail-wi0-f173.google.com with SMTP id ey11so3657885wid.0 for ; Mon, 21 Oct 2013 03:12:31 -0700 (PDT) In-Reply-To: (James Harkins's message of "Mon, 21 Oct 2013 15:52:14 +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: orgmode Hello, James Harkins writes: > Per the beamer user guide, the syntax of the overlayarea environment is: > > \begin{overlayarea}{area width}{area height} > environment contents > \end{overlayarea} > > I can't figure out how to get the width and height in properly. > > From the customize interface, I added overlayarea as follows: > > '(org-beamer-environments-extra (quote (("CJK" "Z" "\\begin{CJK}%a%H" > "\\end{CJK}") ("onlyenv" "O" "\\begin{onlyenv}%a" "\\end{onlyenv}") > ("overlayarea" "Y" "\\begin{overlayarea}%o%a" "\\end{overlayarea}")))) > > And I can plug text into %o using the BEAMER_OPT property: > > *** Overlays :B_overlayarea: > :PROPERTIES: > :BEAMER_env: overlayarea > :BEAMER_OPT: {0.9\textwidth}{0.7\textheight} > :END: > > --> > > \begin{overlayarea}[{0.9\textwidth}{0.7\textheight}] > > Oh, hello, BEAMER_OPT automatically adds square brackets, how > charming. Optional arguments are in square brackets in LaTeX. Try %r instead, so you can write: *** {0.9\textwidth}{0.7\textheight} :B_overlayarea: :PROPERTIES: :BEAMER_env: overlayarea :END: > Still, I wonder if there shouldn't be, e.g., %O for > options-without-brackets. Because that was 45 minutes I spent NOT > writing my slides :-| Options without brackets are not options anymore, but random arguments. > Also, side note, [1] seems not to document BEAMER_OPT for environments > within a frame. Reading this page, you would think you could only use > it for frames. I had to dig into the source code to find how to > populate %o. Would you mind suggesting a better phrasing? Regards, -- Nicolas Goaziou