emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Pass options to \columns{} environment in beamer export
@ 2015-08-08 16:30 John Hendy
  2015-08-08 21:54 ` Fabrice Popineau
  0 siblings, 1 reply; 6+ messages in thread
From: John Hendy @ 2015-08-08 16:30 UTC (permalink / raw)
  To: emacs-orgmode

I have an org beamer file with the following header since I generally
prefer top-alignment for frames:

#+latex_class_options: [aspectratio=169,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={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 =:beamer_env: columns= 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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Pass options to \columns{} environment in beamer export
  2015-08-08 16:30 Pass options to \columns{} environment in beamer export John Hendy
@ 2015-08-08 21:54 ` Fabrice Popineau
  2015-08-13 23:41   ` John Hendy
  0 siblings, 1 reply; 6+ messages in thread
From: Fabrice Popineau @ 2015-08-08 21:54 UTC (permalink / raw)
  To: John Hendy; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 2321 bytes --]

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 <jw.hendy@gmail.com>:

> I have an org beamer file with the following header since I generally
> prefer top-alignment for frames:
>
> #+latex_class_options: [aspectratio=169,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={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 =:beamer_env: columns= 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épartement Informatique
3, rue Joliot Curie
91192 Gif/Yvette Cedex
Tel direct : +33 (0) 169851950
Standard : +33 (0) 169851212
------------------------------

[-- Attachment #2: Type: text/html, Size: 3672 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Pass options to \columns{} environment in beamer export
  2015-08-08 21:54 ` Fabrice Popineau
@ 2015-08-13 23:41   ` John Hendy
  2015-08-14 11:25     ` Suvayu Ali
  0 siblings, 1 reply; 6+ messages in thread
From: John Hendy @ 2015-08-13 23:41 UTC (permalink / raw)
  To: fabrice.popineau; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 2784 bytes --]

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 <jw.hendy@gmail.com>:
>
>> I have an org beamer file with the following header since I generally
>> prefer top-alignment for frames:
>>
>> #+latex_class_options: [aspectratio=169,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={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 =:beamer_env: columns= 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épartement Informatique
> 3, rue Joliot Curie
> 91192 Gif/Yvette Cedex
> Tel direct : +33 (0) 169851950
> Standard : +33 (0) 169851212
> ------------------------------
>
>

[-- Attachment #2: Type: text/html, Size: 4751 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Pass options to \columns{} environment in beamer export
  2015-08-13 23:41   ` John Hendy
@ 2015-08-14 11:25     ` Suvayu Ali
  2015-08-15  4:16       ` John Hendy
  0 siblings, 1 reply; 6+ messages in thread
From: Suvayu Ali @ 2015-08-14 11:25 UTC (permalink / raw)
  To: emacs-orgmode

Hi John,

On Thu, Aug 13, 2015 at 06:41:45PM -0500, John Hendy wrote:
> 
> I would not have guessed that from Worg, that's for sure. Thanks much for
> chiming in.

In the tutorial under "Special environments"[1], I see the following
paragraph:

  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.

Do you think it could be worded more clearly?  When I wrote the article
(which is quite a while back :-p), I was trying to be complete without
being too verbose.  While working on your project, if you think of
improvements to the article, please feel free to make the changes.  The
article is in desperate need of updates.  I have a long list of
additions, if only I could find the time.

Cheers,


Footnotes:

[1] http://orgmode.org/worg/exporters/beamer/ox-beamer.html#special-environments

-- 
Suvayu

Open source is the future. It sets us free.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Pass options to \columns{} environment in beamer export
  2015-08-14 11:25     ` Suvayu Ali
@ 2015-08-15  4:16       ` John Hendy
  2015-08-15  6:48         ` Suvayu Ali
  0 siblings, 1 reply; 6+ messages in thread
From: John Hendy @ 2015-08-15  4:16 UTC (permalink / raw)
  To: emacs-orgmode

On Fri, Aug 14, 2015 at 6:25 AM, Suvayu Ali <fatkasuvayu+linux@gmail.com> wrote:
>
> Hi John,
>
> On Thu, Aug 13, 2015 at 06:41:45PM -0500, John Hendy wrote:
> >
> > I would not have guessed that from Worg, that's for sure. Thanks much for
> > chiming in.
>
> In the tutorial under "Special environments"[1], I see the following
> paragraph:
>
>   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.
>

I indeed saw said paragraph (it's quoted it in my initial email to the
list). I highly suspected it contained what I needed, I just didn't
know how to apply it practically.

> Do you think it could be worded more clearly?  When I wrote the article
> (which is quite a while back :-p), I was trying to be complete without
> being too verbose.  While working on your project, if you think of
> improvements to the article, please feel free to make the changes.  The
> article is in desperate need of updates.  I have a long list of
> additions, if only I could find the time.


Definitely, and I can take a stab at it now that I understand how it
works. I think what didn't register was the meaning of "contiguous
environments." I'm not really sure how to parse that.
- What is an "environment" (as in any of the b_xxx properties causes
it to be in a columns env. as well)?

- What is "contiguous" (I think I now understand this to mean
"nested.")? I guess I tend to think of contiguous as "of the same
part," which didn't immediately register as "parent/child." That said,
I think I *did* try putting the columns env property on my first level
headline, but that didn't work. I needed:

* Top
** Columns property
*** actual column 1
*** actual column 2


John

>
>
> Cheers,
>
>
> Footnotes:
>
> [1] http://orgmode.org/worg/exporters/beamer/ox-beamer.html#special-environments
>
> --
> Suvayu
>
> Open source is the future. It sets us free.
>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Pass options to \columns{} environment in beamer export
  2015-08-15  4:16       ` John Hendy
@ 2015-08-15  6:48         ` Suvayu Ali
  0 siblings, 0 replies; 6+ messages in thread
From: Suvayu Ali @ 2015-08-15  6:48 UTC (permalink / raw)
  To: emacs-orgmode

Hi John,

On Fri, Aug 14, 2015 at 11:16:42PM -0500, John Hendy wrote:
> On Fri, Aug 14, 2015 at 6:25 AM, Suvayu Ali <fatkasuvayu+linux@gmail.com> wrote:
> >
> >   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.

 [...]

> Definitely, and I can take a stab at it now that I understand how it
> works. I think what didn't register was the meaning of "contiguous
> environments." I'm not really sure how to parse that.
> - What is an "environment" (as in any of the b_xxx properties causes
> it to be in a columns env. as well)?

Environment here refers to what is exported to LaTeX.  Since the
previous paragraph was talking about "column", I mean these blocks:

  \begin{column}
  ...
  \end{column}

I think the important bit to understand (in general about the beamer
exporter), the properties are what determine the exported LaTeX
environment.  The tags are there for the convenience of the user.  The
BMCOL tag is the exception, no other tag behaves this way.  There is
another special tag, B_ignoreheading, but there the purpose is to end
the previous environment, rather than export a new one.

> - What is "contiguous" (I think I now understand this to mean
> "nested.")? I guess I tend to think of contiguous as "of the same
> part," which didn't immediately register as "parent/child." That said,

The dictionary meaning of contiguous is something that shares a
boundary, or adjacent.  Maybe a more common, but less specific, word is
easier to follow, say something like adjacent or consecutive.  Is the
meaning clearer if contiguous is changed to one of these?  

Would a more verbose explanation, maybe with an example, be better?
Either way, please feel free to make the change :).

Cheers,

-- 
Suvayu

Open source is the future. It sets us free.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-08-15  6:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-08 16:30 Pass options to \columns{} environment in beamer export John Hendy
2015-08-08 21:54 ` Fabrice Popineau
2015-08-13 23:41   ` John Hendy
2015-08-14 11:25     ` Suvayu Ali
2015-08-15  4:16       ` John Hendy
2015-08-15  6:48         ` Suvayu Ali

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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).