From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sunny Srivastava Subject: [org-beamer] Question: How to insert different background images on different frames Date: Thu, 6 Jan 2011 16:48:34 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0267735072==" Return-path: Received: from [140.186.70.92] (port=51836 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PaxhF-0002aU-OO for emacs-orgmode@gnu.org; Thu, 06 Jan 2011 16:48:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PaxhE-00072j-7j for emacs-orgmode@gnu.org; Thu, 06 Jan 2011 16:48:37 -0500 Received: from mail-ew0-f41.google.com ([209.85.215.41]:55886) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PaxhD-00072V-Sp for emacs-orgmode@gnu.org; Thu, 06 Jan 2011 16:48:36 -0500 Received: by ewy27 with SMTP id 27so8308349ewy.0 for ; Thu, 06 Jan 2011 13:48:34 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode mailing list --===============0267735072== Content-Type: multipart/alternative; boundary=0015174c1c589d18740499347665 --0015174c1c589d18740499347665 Content-Type: text/plain; charset=ISO-8859-1 Hello Org-mode users: I am still a beginner with org-mode and I am trying to make my first beamer presentation using org-mode exclusively. I had my moments of enlightenment but at the moment I am stuck, please bear with me if my question is very basic. I want to include different background images for different frames. The beamer solution is to use \usebackgroundtemplate. Let's say I want to insert the image on the 2nd frame, I would write the latex code as follows: \end{frame} %% frame 1 ends % Now we install the new template for the following frames: \usebackgroundtemplate{ \includegraphics[width=\paperwidth,height=\paperheight]{my_background_image.png} } \begin{frame} %% frame 2 begins %% This frame will have my_background_image as the background image. \end{frame} % Now we install another template, effective from now on, we will use a different background image \usebackgroundtemplate{ \includegraphics[width=\paperwidth,height=\paperheight]{my_different_image.png} } \begin{frame} %% This frame will have my_different_image as the background image. \end{frame} For no image we can simply use \usebackgroundtemplate{}. Currently I tried to replicate this in org by doing something like this * frame 1 - item1 - item2 #+begin_latex \usebackgroundtemplate{ \includegraphics[width=\paperwidth,height=\paperheight]{my_background_image.png} } #+begin_latex * frame 2 This inserts the latex statement before \end{frame} (as expected). Is there a way to get the statement after \end{frame} in the exported .tex file? It would be even better if I can avoid using latex and let org handle this. I am sorry for such a basic query. Thanks in advance for any pointers of help. Much appreciated. Best Regards, S. --0015174c1c589d18740499347665 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello Org-mode users:

I am still a beginner with org-mod= e and I am trying to make my first beamer presentation using org-mode=A0exc= lusively. I had my moments of enlightenment but at the moment I am stuck,= =A0please bear with me if my question is very basic.

I want to include different background images for differe= nt frames. The beamer solution is to use \usebackgroundtemplate.
=
Let's say I want to insert the image on the 2nd frame, I wou= ld write the latex code as follows:

\end{frame} = =A0 %% frame 1 ends

% Now we install the new templ= ate for the following frames:

\usebackgroundtemplate{
=A0=A0 =A0 =A0 =A0 = =A0\includegraphics[width=3D\paperwidth,height=3D\paperheight]{my_backgroun= d_image.png}
}=A0

\begin{frame} %% frame= 2 begins

%% This frame will have=A0my_background_image as the backgro= und image.

\end{frame}

% No= w we install another template, effective from now on, we will use a differe= nt background image
\usebackgroundtemplate{
=A0=A0 =A0 =A0 =A0 =A0 =A0\includegr= aphics[width=3D\paperwidth,height=3D\paperheight]{my_different_image.png}
}=A0

\begin{frame}

%% This frame will ha= ve=A0my_different_image as the background image.

\= end{frame}=A0=A0


For no image we can simply use \usebackg= roundtemplate{}.


Currently I tried = to replicate this in org by doing something like this

* frame 1
=A0=A0- item1
=A0=A0- item2
#+begin_latex
\usebackgroundtemplate{
= =A0=A0 =A0 =A0 =A0 =A0\includegraphics[width=3D\paperwidth,height=3D\paperh= eight]{my_background_image.png}
}=A0
#+begin_latex

* frame 2<= /div>

This inserts the latex statement before \end{frame= } (as expected). Is there a way to get the statement after \end{frame} in t= he exported .tex file? It would be even better if I can avoid using latex a= nd let org handle this.=A0

I am sorry for such a basic query.

=
Thanks in advance for any pointers of help. Much appreciated.

Best Regards,
S.
--0015174c1c589d18740499347665-- --===============0267735072== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============0267735072==--