emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric S Fraga <e.fraga@ucl.ac.uk>
To: Rasmus Pank Roulund <rasmus.pank@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Beamer and non-frames
Date: Tue, 31 May 2011 08:55:01 +0100	[thread overview]
Message-ID: <87y61njonq.fsf@ucl.ac.uk> (raw)
In-Reply-To: <irtv22$kr$1@dough.gmane.org> (Rasmus Pank Roulund's message of "Sun, 29 May 2011 19:18:19 +0200")

Rasmus Pank Roulund <rasmus.pank@gmail.com> writes:

>> I am sorry I have no solution for you just now.
>> This behavior you're seeking is something I long for as well, to
>> insert a this frame only custom background, to be precise.
>
> So many great things can be put in-between 
>
>    \end{frame}
>    ...
>    \begin{frame}
>
> in Beamer....
>
>> The issue lies in the org-beamer.el way of divvying up the file into
>> frames (if memory servers me, it's the org-beamer-sectioning function,
>> but I can be mistaken), it's a  big function that handles most of
>> org-beamers functionality. For the behavior that we seek we need to
>> implement a function that can encapsulate the \begin{frame}
>> ... \end{frame} code. However, this is not trivial.
>
> Yeah, I gussed it was something like that..
>
> However, maybe something like to the following could be implemented.
> I note the following in my file:
>
>
> ** Frame
> ...
>
> #+latex_beamer_outside_frame: \againframe<2>{overview.fig} %(1) 
>
> ** Next frame

[...]

Depending on whether you use beamer for both presentation and for
handouts, I can give you a kludge that should work for presentation
only:

--8<---------------cut here---------------start------------->8---
** Previous frame
   text here

#+begin_latex
\end{frame}
\againframe<2>{overview.fig}
\begin{frame}<handout>
#+end_latex

** Following frame
--8<---------------cut here---------------end--------------->8---

Very fragile... and untested!  This won't work if the previous frame has
blocks or unterminated lists unfortunately.

An alternative, and likely more workable, solution would be to do some
post-processing using one of org's hooks (org-export-latex-final-hook
maybe with a check for org-beamer-export-is-beamer-p?) to catch some
special tags you put in and insert the appropriate latex code yourself.
This would require some elisp...

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.5 (release_7.5.323.gd1f33)

      reply	other threads:[~2011-05-31  8:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-29  8:36 Beamer and non-frames Rasmus Pank Roulund
2011-05-29 17:04 ` Sander Boer
2011-05-29 17:18   ` Rasmus Pank Roulund
2011-05-31  7:55     ` Eric S Fraga [this message]

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=87y61njonq.fsf@ucl.ac.uk \
    --to=e.fraga@ucl.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    --cc=rasmus.pank@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).