From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fabrice Popineau Subject: Re: Pass options to \columns{} environment in beamer export Date: Sat, 8 Aug 2015 23:54:58 +0200 Message-ID: References: Reply-To: fabrice.popineau@centralesupelec.fr Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e013cc2d6ddc2ab051cd3ce5a Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43159) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZOC5Z-0008Eb-IA for emacs-orgmode@gnu.org; Sat, 08 Aug 2015 17:55:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZOC5U-0007FA-C3 for emacs-orgmode@gnu.org; Sat, 08 Aug 2015 17:55:37 -0400 Received: from smtp2.supelec.fr ([160.228.120.31]:33251) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZOC5T-0007As-S3 for emacs-orgmode@gnu.org; Sat, 08 Aug 2015 17:55:32 -0400 Received: from localhost (localhost [127.0.0.1]) by smtp2.supelec.fr (Postfix) with ESMTP id A6FE080144 for ; Sat, 8 Aug 2015 23:55:19 +0200 (CEST) Received: from smtp2.supelec.fr ([127.0.0.1]) by localhost (smtp2.supelec.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id H0YADmip817R for ; Sat, 8 Aug 2015 23:55:19 +0200 (CEST) Received: from mail-ob0-f169.google.com (mail-ob0-f169.google.com [209.85.214.169]) by smtp2.supelec.fr (Postfix) with ESMTPSA id 2909B80121 for ; Sat, 8 Aug 2015 23:55:19 +0200 (CEST) Received: by obbop1 with SMTP id op1so101289676obb.2 for ; Sat, 08 Aug 2015 14:55:17 -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: John Hendy Cc: emacs-orgmode --089e013cc2d6ddc2ab051cd3ce5a Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable This should do it : * Hello ** columns :B_columns: :PROPERTIES: :BEAMER_env: columns :BEAMER_opt: [c] :END: *** Column 1 :BMCOL: :PROPERTIES: :BEAMER_col: 0.3 :END: Colonne 1 *** Column 2 :BMCOL: :PROPERTIES: :BEAMER_col: 0.7 :END: Colonne 2 Fabrice 2015-08-08 18:30 GMT+02:00 John Hendy : > I have an org beamer file with the following header since I generally > prefer top-alignment for frames: > > #+latex_class_options: [aspectratio=3D169,t,presentation,bigger,fleqn] > > I have some columns where I want vertically centered text, and am not > sure how to pass the option to \columns{} instead of an individual > \column{}. > > Worg says this(http://orgmode.org/worg/exporters/beamer/ox-beamer.html): > > "All contiguous environments are automatically wrapped in a columns > environment, although it can be forced at any point by setting the > BEAMER_env property to columns. This might be handy if you want to > pass special options." > > But where does that go? I have this: > > * Test > > ** Col1 :BMCOL: > :PROPERTIES: > :BEAMER_col: 0.5 > :END: > > - blah > - blah > - blah > > ** Col2 :BMCOL: > :PROPERTIES: > :BEAMER_col: 0.5 > :END: > > - blah > - blah > - blah > > I want this (note the [c] to override my document-wide [t] option): > > \begin{frame}[label=3D{sec:orgheadline1}]{Test} > \begin{columns}[c] > \begin{column}{0.5\columnwidth} > \begin{itemize} > \item blah > \item blah > \item blah > \end{itemize} > \end{column} > > \begin{column}{0.5\columnwidth} > \begin{itemize} > \item blah > \item blah > \item blah > \end{itemize} > \end{column} > \end{columns} > \end{frame} > \end{document} > > But if I add =3D:beamer_env: columns=3D to both subheadlines, I get each > in it's own \begin/end{columns} environment, which is not what I want. > I just need a single columns env, with the [c] option passed, that > encompasses both individual column environments. > > > John > > --=20 Fabrice Popineau ----------------------------- SUPELEC D=C3=A9partement Informatique 3, rue Joliot Curie 91192 Gif/Yvette Cedex Tel direct : +33 (0) 169851950 Standard : +33 (0) 169851212 ------------------------------ --089e013cc2d6ddc2ab051cd3ce5a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
This should do it :

* Hello
<= div>
** columns =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0:B= _columns:
:PROPERTIES:
:BEAMER_env: columns
:= BEAMER_opt: [c]
:END:

*** Column 1 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 :BMCOL:
:PROPERTIES:
:BEAMER_col: 0.3
:END:

Colonne 1=

*** Column 2 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 :BMCOL:
:PROPERTIES:
:BEAMER_col: 0.7
<= div>:END:

Colonne 2

Fabrice


2015-08-08 18:30 GMT+02:00 John Hendy &= lt;jw.hendy@gmail.c= om>:
I have an org beamer f= ile with the following header since I generally
prefer top-alignment for frames:

#+latex_class_options: [aspectratio=3D169,t,presentation,bigger,fleqn]

I have some columns where I want vertically centered text, and am not
sure how to pass the option to \columns{} instead of an individual
\column{}.

Worg says this(http://orgmode.org/worg/export= ers/beamer/ox-beamer.html):

"All contiguous environments are automatically wrapped in a columns environment, although it can be forced at any point by setting the
BEAMER_env property to columns. This might be handy if you want to
pass special options."

But where does that go? I have this:

* Test

** Col1=C2=A0 =C2=A0 =C2=A0 :BMCOL:
=C2=A0 =C2=A0:PROPERTIES:
=C2=A0 =C2=A0:BEAMER_col: 0.5
=C2=A0 =C2=A0:END:

- blah
- blah
- blah

** Col2=C2=A0 =C2=A0 =C2=A0 :BMCOL:
=C2=A0 =C2=A0:PROPERTIES:
=C2=A0 =C2=A0:BEAMER_col: 0.5
=C2=A0 =C2=A0:END:

- blah
- blah
- blah

I want this (note the [c] to override my document-wide [t] option):

\begin{frame}[label=3D{sec:orgheadline1}]{Test}
\begin{columns}[c]
\begin{column}{0.5\columnwidth}
\begin{itemize}
\item blah
\item blah
\item blah
\end{itemize}
\end{column}

\begin{column}{0.5\columnwidth}
\begin{itemize}
\item blah
\item blah
\item blah
\end{itemize}
\end{column}
\end{columns}
\end{frame}
\end{document}

But if I add =3D:beamer_env: columns=3D to both subheadlines, I get each in it's own \begin/end{columns} environment, which is not what I want.<= br> I just need a single columns env, with the [c] option passed, that
encompasses both individual column environments.


John




--
Fabrice Popineau
---------------------= --------
SUPELEC
D=C3=A9partement Informatique
3, rue Joliot Curie
91192 Gif/Yvette Cedex
Tel direct= : +33 (0) 169851950
Standard : +33 (0) 169851212
-----= -------------------------

--089e013cc2d6ddc2ab051cd3ce5a--