Re: [O] org-beamer feaure request : single frame background

2011-05-26 Thread Sander Boer
suvayu ali fatkasuvayu+li...@gmail.com writes:


 You can try (untested):

 #+LATEX: { %}

 * This is a frame
   The commented out closing brace is important. Otherwise the exporter
 gets confused.

 #+LATEX: }


This will not work as it is by definition inserted between 
\begin{frame}...\end{frame}
like thus:

\begin{frame}
.
{
\end{frame}

\begin{frame}
.
 }
\end{frame}

I think it it possible to write a function that prepends
{\myfunction..etc   and appends } to the frame environment.
For the time being a property like BEAMER_BG: myfile.jpg could be
harvested and transformed into:

{
\setbeamertemplate{background canvas}{
\includegraphics[width=\paperwidth]{./myfile.jpg}

\begin{frame}
.
\end{frame}
 }

The latex code could be a bit more elaborate and the image placement
attributes need some automagic, but as a proof of concept, this will do.

I do think I need a little help with this though, as I have no clue
about org's inner workings. 
But let's take it one step at a time, like how does one harvest the
BEAMER_BG: myfile.jpg property ?

sndr

-- 
Me thinks: 
You have an unusual equipment for success.  Be sure to use it properly.




Re: [O] org-beamer feaure request : single frame background

2011-05-26 Thread suvayu ali
I see the limitation of my suggestion one now. I guess the only way is
option two then.

On Thu, May 26, 2011 at 3:08 AM, Sander Boer sanderb...@yahoo.com wrote:
 I think it it possible to write a function that prepends
 {\myfunction..etc   and appends } to the frame environment.
 For the time being a property like BEAMER_BG: myfile.jpg could be
 harvested and transformed into:

 {
 \setbeamertemplate{background canvas}{
        \includegraphics[width=\paperwidth]{./myfile.jpg}

 \begin{frame}
 .
 \end{frame}
  }

 The latex code could be a bit more elaborate and the image placement
 attributes need some automagic, but as a proof of concept, this will do.

 I do think I need a little help with this though, as I have no clue
 about org's inner workings.
 But let's take it one step at a time, like how does one harvest the
 BEAMER_BG: myfile.jpg property ?


This page from the manual might help you.

http://orgmode.org/manual/Using-the-property-API.html#Using-the-property-API

A combination of getting the properties with the property API and
adding your own function in the post export hook might be the easiest
solution here.

 sndr


Good luck, and do post back to the list if you find a solution, I
would be interested.

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] org-beamer feaure request : single frame background

2011-05-25 Thread suvayu ali
On Wed, May 25, 2011 at 3:33 AM, Sander Boer sanderb...@yahoo.com wrote:
 A quick look at org-beamer.el makes me think that there is no infrastructure
 in place that accounts for enclosing each frame in its own tex environment,
 although I think that would be trivial.

You can try (untested):

#+LATEX: { %}

* This is a frame
  The commented out closing brace is important. Otherwise the exporter
gets confused.

#+LATEX: }

The other option might be to write your own function and add it to one
of the export hooks.

-- 
Suvayu

Open source is the future. It sets us free.