emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Beamer and non-frames
@ 2011-05-29  8:36 Rasmus Pank Roulund
  2011-05-29 17:04 ` Sander Boer
  0 siblings, 1 reply; 4+ messages in thread
From: Rasmus Pank Roulund @ 2011-05-29  8:36 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

How do I put text between frames in an Org-Beamer document? 
What I really want to do is something like:

#+begin_src LaTeX
...
\end{frame}
\againframe<2>{overview.fig}
\end{frame}
#+end_src 

But there is /plenty/ of use of being able to write in-between frames. 

I imagine two ways this could be archived,
  a. Use a special property for a headline
  b. Have a '#+LaTeX_Beamer:' option.

Are anybody aware of any quick fixes?

Thanks,
Rasmus

-- 
Sent from my Emacs

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

* Re: Beamer and non-frames
  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
  0 siblings, 1 reply; 4+ messages in thread
From: Sander Boer @ 2011-05-29 17:04 UTC (permalink / raw)
  To: emacs-orgmode

On 29-5-2011 10:36, Rasmus Pank Roulund wrote:
> Hi,
>
> How do I put text between frames in an Org-Beamer document?
> What I really want to do is something like:
>
> #+begin_src LaTeX
> ...
> \end{frame}
> \againframe<2>{overview.fig}
> \end{frame}
> #+end_src
>
> But there is /plenty/ of use of being able to write in-between frames.
>
> I imagine two ways this could be archived,
>    a. Use a special property for a headline
>    b. Have a '#+LaTeX_Beamer:' option.
>
> Are anybody aware of any quick fixes?
>
> Thanks,
> Rasmus
>

Hi Rasmus,

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.

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.

It has my interest, but don't expect anything useful from me in the 
short term, as I am an elisp noob and I am just getting acquainted with 
the org api.

sander

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

* Re: Beamer and non-frames
  2011-05-29 17:04 ` Sander Boer
@ 2011-05-29 17:18   ` Rasmus Pank Roulund
  2011-05-31  7:55     ` Eric S Fraga
  0 siblings, 1 reply; 4+ messages in thread
From: Rasmus Pank Roulund @ 2011-05-29 17:18 UTC (permalink / raw)
  To: emacs-orgmode


> 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

The 'Org-exporter' notices (1) and stores it in a list L.  Each time it
writes \end{frame} it also checks L and if L is non-empty the exporter
will dump whatever currently exists in L after \end{frame}.

I do, however, not know whether this is easily implemented.

> It has my interest, but don't expect anything useful from me in the
> short term, as I am an elisp noob and I am just getting acquainted
> with the org api.

I am neither good at lisp nor programming in general, although I do need
the command for a Python presentation. I guess I'll have to fix the Beamer
code 'by hand'.

–Rasmus

-- 
Sent from my Emacs

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

* Re: Beamer and non-frames
  2011-05-29 17:18   ` Rasmus Pank Roulund
@ 2011-05-31  7:55     ` Eric S Fraga
  0 siblings, 0 replies; 4+ messages in thread
From: Eric S Fraga @ 2011-05-31  7:55 UTC (permalink / raw)
  To: Rasmus Pank Roulund; +Cc: emacs-orgmode

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)

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

end of thread, other threads:[~2011-05-31  8:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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

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