From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: Pass options to \columns{} environment in beamer export Date: Thu, 13 Aug 2015 18:41:45 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c11776ca89c9051d39e031 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42362) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZQ284-0004T1-H4 for emacs-orgmode@gnu.org; Thu, 13 Aug 2015 19:41:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZQ283-0001G9-0a for emacs-orgmode@gnu.org; Thu, 13 Aug 2015 19:41:48 -0400 Received: from mail-qg0-x234.google.com ([2607:f8b0:400d:c04::234]:34231) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZQ282-0001G3-Qx for emacs-orgmode@gnu.org; Thu, 13 Aug 2015 19:41:46 -0400 Received: by qgeg42 with SMTP id g42so42482982qge.1 for ; Thu, 13 Aug 2015 16:41:45 -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: fabrice.popineau@centralesupelec.fr Cc: emacs-orgmode --001a11c11776ca89c9051d39e031 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Sorry for the late reply -- took me a bit to get back to working on this so I could try it. That definitely works! I would not have guessed that from Worg, that's for sure. Thanks much for chiming in. John On Sat, Aug 8, 2015 at 4:54 PM, Fabrice Popineau < fabrice.popineau@supelec.fr> wrote: > 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 >> >> > > > -- > Fabrice Popineau > ----------------------------- > SUPELEC > D=C3=A9partement Informatique > 3, rue Joliot Curie > 91192 Gif/Yvette Cedex > Tel direct : +33 (0) 169851950 > Standard : +33 (0) 169851212 > ------------------------------ > > --001a11c11776ca89c9051d39e031 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Sorry for the late reply -- too= k me a bit to get back to working on this so I could try it. That definitel= y works!

I would not have guessed that from Worg, that's for sure. Thanks muc= h for chiming in.


John


On Sat, Aug 8, 2015 at 4:54 PM, Fabric= e Popineau <fabrice.popineau@supelec.fr> wrote:
This should do it :
* Hello

** 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
:END:

Colonne 2=

Fabrice


201= 5-08-08 18:30 GMT+02:00 John Hendy <jw.hendy@gmail.com>:
I have an org beamer file with the followin= g 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 P= opineau
-----------------------------
SUPELEC
D=C3= =A9partement Informatique
3, rue Joliot Curie
91192 Gif= /Yvette Cedex
Tel direct : +33 (0) 169851950
<= div>Standard : +33 (0) 169851212
------------------= ------------


--001a11c11776ca89c9051d39e031--