From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: [org-beamer] Question: How to insert different background images on different frames Date: Thu, 6 Jan 2011 17:27:17 -0600 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0755323589==" Return-path: Received: from [140.186.70.92] (port=55276 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PazEp-0005rA-Ag for emacs-orgmode@gnu.org; Thu, 06 Jan 2011 18:27:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PazEm-0007XJ-By for emacs-orgmode@gnu.org; Thu, 06 Jan 2011 18:27:23 -0500 Received: from mail-bw0-f41.google.com ([209.85.214.41]:55317) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PazEm-0007X8-2P for emacs-orgmode@gnu.org; Thu, 06 Jan 2011 18:27:20 -0500 Received: by bwz16 with SMTP id 16so19481487bwz.0 for ; Thu, 06 Jan 2011 15:27:18 -0800 (PST) In-Reply-To: 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: Sunny Srivastava Cc: emacs-orgmode mailing list --===============0755323589== Content-Type: multipart/alternative; boundary=0016e6d7df5daef29a049935d74c --0016e6d7df5daef29a049935d74c Content-Type: text/plain; charset=ISO-8859-1 Not sure what to say. I tried several placements and still wound up with the .tex file placing the second background declaration in an ineffective location (either inside the second frame environment or before the first frame's end). Maybe manually editing the .tex file directly is the best approach? Best regards, John On Thu, Jan 6, 2011 at 3:48 PM, Sunny Srivastava wrote: > 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. > > _______________________________________________ > 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 > > --0016e6d7df5daef29a049935d74c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Not sure what to say. I tried several placements and still wound up with th= e .tex file placing the second background declaration in an ineffective loc= ation (either inside the second frame environment or before the first frame= 's end). Maybe manually editing the .tex file directly is the best appr= oach?


Best regards,
John

On Thu, Jan 6, 2011 at 3:48 PM, Sunny Srivastava <research.baba@gmai= l.com> wrote:
Hello Org-mode users:

I = am still a beginner with org-mode and I am trying to make my first beamer p= resentation using org-mode=A0exclusively. 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 diffe= rent 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}

% = Now we install another template, effective from now on, we will use a diffe= rent 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\paper= height]{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.

_______________________________________________
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


--0016e6d7df5daef29a049935d74c-- --===============0755323589== 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 --===============0755323589==--