emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Custom column environment in beamer export


From: Rasmus
Subject: Re: [O] Custom column environment in beamer export
Date: Tue, 16 Jun 2015 00:30:09 +0200
User-agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux)

Suvayu Ali <address@hidden> writes:

> * Fitting technique                                    :B_minipage:
>   :PROPERTIES:
>   :BEAMER_env: minipage
>   :BEAMER_arg: 0.1\linewidth
>   :END:
> +/cFit/+

The closest would probably be something like

(add-to-list 'org-beamer-environments-extra
             '("minipage"
               "m"
               "\\begin{minipage}%o%a\n\\structure{%h}"
               "\\end{minipage}"))

Which would afford you something like

* slide
** Fitting technique                                            :B_minipage:
  :PROPERTIES:
  :BEAMER_env: minipage
  :BEAMER_OPT: [t]{0.1\linewidth}
  :BEAMER_ACT: <5>
  :END:
  /cFit/

Unfortunately, BEAMER_OPTs are wrapped in square brackets thanks to
org-beamer--normalize-argument, so the above won't actually work (see
org-beamer--format-block).  From the looks of it I'd be willing to call it
a bug, but Nicolas may have had something in mind.

Perhaps these days it would be nice to allow the third element of
org-beamer-environments-extra to be a λ taking either the object or so.
Then again, perhaps this is an overkill and too low-level.

Personally, I'd use a block, e.g.

#+attr_latex: :options [t]{.1\textwidth}
#+begin_minipage
Cfit
#+end_minipage

Rasmus

-- 
This space is left intentionally blank




reply via email to

[Prev in Thread] Current Thread [Next in Thread]