Re: [O] Pass options to \columns{} environment in beamer export

2015-08-15 Thread Suvayu Ali
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+li...@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.



Re: [O] Pass options to \columns{} environment in beamer export

2015-08-14 Thread Suvayu Ali
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.



Re: [O] Pass options to \columns{} environment in beamer export

2015-08-14 Thread John Hendy
On Fri, Aug 14, 2015 at 6:25 AM, Suvayu Ali fatkasuvayu+li...@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.




Re: [O] Pass options to \columns{} environment in beamer export

2015-08-13 Thread John Hendy
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.popin...@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.he...@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
 --




[O] Pass options to \columns{} environment in beamer export

2015-08-08 Thread John Hendy
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



Re: [O] Pass options to \columns{} environment in beamer export

2015-08-08 Thread Fabrice Popineau
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.he...@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
--