emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric S Fraga <e.fraga@ucl.ac.uk>
To: Nicolas Goaziou <n.goaziou@gmail.com>
Cc: Org Mode List <emacs-orgmode@gnu.org>
Subject: Re: [dev] About a beamer back-end
Date: Tue, 19 Jun 2012 22:04:23 +0100	[thread overview]
Message-ID: <87k3z32eug.fsf@ucl.ac.uk> (raw)
In-Reply-To: <87ehpbphcz.fsf@gmail.com> (Nicolas Goaziou's message of "Tue, 19 Jun 2012 15:21:32 +0200")

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

Nicolas Goaziou <n.goaziou@gmail.com> writes:

> Hello,
>
> Eric S Fraga <e.fraga@ucl.ac.uk> writes:
>
>> Well, I will have to chime in with a contrary view.  I like using
>> headlines to define blocks, and I use blocks on almost every frame.  I
>> have the following reasons for preferring a headline approach:
>>
>> - the proposed approach does not easily (at all?) cater for blocks
>>   within blocks
>
> I may be missing your point, but you can have nested blocks.  What would
> be more difficult to achieve with blocks?

Sorry!  I missed the begin...end structure for the blocks you were
proposing.  Indeed, I see no reason that your proposal does not support
a recursive nesting of blocks.

>> - ease of hiding of content: org for me is still primarily an
>>   outliner!
>
> You can hide blocks too.

but the difference is that the hidden block doesn't tell you anything
about the block itself?  that is, there is no equivalent to the text
content of a headline that is visible when the contents below the
headline are hidden.  This is possibly (?) a minor point, mind you.

>> - being able to re-arrange content in a frame quickly (M-<up>, etc.)
>
> See `org-element-drag-backward' and `org-element-drag-forward'.

Okay.  Will it be easy to bind these to M-<up> etc. to achieve
consistent behaviour?  I.e. does org-metaup know what to do with blocks?

>> - within frames, there is no other use for lower level headlines.  Using
>>   these for blocks seems appropriate.  What else could they be used
>>   for?
>
> Good question.
>
> One idea would be to use them as outline tools that would have no impact
> on export (they would help hiding frame contents in the buffer but would
> be ignored in produced LaTeX code).
>
>
> Obviously, both approaches (blocks or headlines) have drawbacks.  I'm
> still unsure about which one would be the quickest/cleanest/most useful.

Understood!  And I don't want to stand in the way of an implementation
of beamer support in the new exporter.

As a point for discussion and evaluation, attached is an example slide
(both org and pdf) demonstrating the type of thing I tend to do for some
of my beamer documents.

Also, please don't forget about columns!


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: beamerblocks.org --]
[-- Type: text/org, Size: 1953 bytes --]

#+title: Blocks in beamer via org
#+author: Eric S Fraga
#+startup: beamer
#+LaTeX_CLASS: beamer
#+LaTeX_CLASS_OPTIONS: [presentation]
#+OPTIONS:   H:5 num:t toc:nil \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t
#+OPTIONS:   TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:nil

#+BEAMER_FRAME_LEVEL: 2

#+startup: oddonly
#+startup: fninline
#+ BEAMER_HEADER_EXTRA: \usetheme{Madrid}\usecolortheme{default}
#+ latex_header: \usepackage[absolute,overlay]{textpos}\setlength{\TPHorizModule}{1mm}\setlength{\TPVertModule}{1mm}\newcommand{\UCL}{\begin{textblock}{14}(120.0,0.0)\pgfuseimage{ucllogo}\end{textblock}}
#+latex_header: \mode<beamer>{\usetheme{progressbar}}

#+latex_header: \usepackage{tikz}
* Test
*** Nested blocks
    :PROPERTIES:
    :BEAMER_envargs: [t]
    :END:
    Use distillation for separation of two components.
***** The problem                                     :BMCOL:B_ignoreheading:
      :PROPERTIES:
      :BEAMER_col: 0.3
      :BEAMER_env: ignoreheading
      :END:
******* Equilibrium                                            :B_definition:
        :PROPERTIES:
        :BEAMER_env: definition
        :END:
        \( \displaystyle y = \frac{\alpha x} {1 + (\alpha -1) x} \)
******* Goal                                                        :B_block:
        :PROPERTIES:
        :BEAMER_env: block
        :END:
        Minimise energy consumption
***** Distillation                                          :BMCOL:B_example:
      :PROPERTIES:
      :BEAMER_col: 0.6
      :BEAMER_env: example
      :END:
      #+begin_center
      #+attr_latex: width=0.9\textwidth
      [[file:~/s/figures/teaching/introduction/distillation-unit.pdf]]
      #+end_center

      \vfill
***** Approach                                        :BMCOL:B_ignoreheading:
      :PROPERTIES:
      :BEAMER_col: 1.0
      :BEAMER_env: ignoreheading
      :END:

      \vfill

      We will use the @McCabe-Thiele@ method for the initial design.

[-- Attachment #3: beamerblocks.pdf --]
[-- Type: application/pdf, Size: 144598 bytes --]

[-- Attachment #4: Type: text/plain, Size: 102 bytes --]


-- 
: Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D
: in Emacs 24.1.50.1 and Org release_7.8.11-69-ga2fd96

  reply	other threads:[~2012-06-19 22:02 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-15 15:08 [dev] About a beamer back-end Nicolas Goaziou
2012-06-15 16:41 ` suvayu ali
2012-06-15 16:47   ` Avdi Grimm
2012-06-18  7:50     ` Eric S Fraga
2012-06-18 12:35       ` suvayu ali
2012-06-19 13:21       ` Nicolas Goaziou
2012-06-19 21:04         ` Eric S Fraga [this message]
2012-06-20  6:23           ` Greg Tucker-Kellogg
2012-06-20 11:55             ` Sebastien Vauban
2012-06-20 15:20               ` Eric S Fraga
2012-06-21 14:37           ` Nicolas Goaziou
2012-06-21 14:51             ` Sebastien Vauban
2012-06-21 16:03               ` Nicolas Goaziou
     [not found]                 ` <87obocodo7.fsf-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2012-06-21 21:14                   ` **: " Sebastien Vauban
2012-06-25 22:39                     ` Andreas Leha
2012-06-21 14:55             ` Rasmus
2012-06-21 15:56               ` Nicolas Goaziou
2012-06-21 16:36                 ` Rasmus
2012-06-21 16:49             ` suvayu ali
2012-06-22  7:54             ` Eric S Fraga
2012-06-18  6:32 ` Daniel Bausch
2012-06-18 10:17 ` Rasmus
2012-06-18 10:35   ` Sebastien Vauban
2012-06-18 12:00     ` Rasmus
2012-06-28 10:40 ` Andreas Leha
2012-06-28 10:47   ` suvayu ali
2012-06-28 10:50     ` Andreas Leha

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k3z32eug.fsf@ucl.ac.uk \
    --to=e.fraga@ucl.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    --cc=n.goaziou@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).