Re: [O] Beamer and non-frames

2011-05-31 Thread Eric S Fraga
Rasmus Pank Roulund rasmus.p...@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: \againframe2{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}
\againframe2{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)



[O] Beamer and non-frames

2011-05-29 Thread Rasmus Pank Roulund
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}
\againframe2{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




Re: [O] Beamer and non-frames

2011-05-29 Thread Sander Boer

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}
\againframe2{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




Re: [O] Beamer and non-frames

2011-05-29 Thread Rasmus Pank Roulund

 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: \againframe2{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