From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sunny Srivastava Subject: Re: [org-beamer] Question: How to insert different background images on different frames Date: Thu, 6 Jan 2011 20:06:25 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1773175426==" Return-path: Received: from [140.186.70.92] (port=50192 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pb0mi-0006W5-ML for emacs-orgmode@gnu.org; Thu, 06 Jan 2011 20:06:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pb0mh-00062O-4M for emacs-orgmode@gnu.org; Thu, 06 Jan 2011 20:06:28 -0500 Received: from mail-ew0-f41.google.com ([209.85.215.41]:43777) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pb0mg-00062I-Qx for emacs-orgmode@gnu.org; Thu, 06 Jan 2011 20:06:27 -0500 Received: by ewy27 with SMTP id 27so8357047ewy.0 for ; Thu, 06 Jan 2011 17:06:26 -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: John Hendy Cc: emacs-orgmode mailing list --===============1773175426== Content-Type: multipart/alternative; boundary=0015174be17a317d2b0499373a18 --0015174be17a317d2b0499373a18 Content-Type: text/plain; charset=ISO-8859-1 Thank you John. I also tried a bunch of modifications, but could not do it. I thought may be there is a way to handle this through :PROPERTY:, but I am not skilled enough to figure out a way. On Thu, Jan 6, 2011 at 6:27 PM, John Hendy wrote: > 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 >> >> > --0015174be17a317d2b0499373a18 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thank you John. I also tried a bunch of modifications, but could not do it.=

I thought may be there is a way to handle this through = :PROPERTY:, but I am not skilled enough to figure out a way.

On Thu, Jan 6, 2011 at 6:27 PM, John Hendy <jw.hendy@gmail.com> wrote:
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@gmail.com> wr= ote:
Hello Org-mode users:

I am still a beginner with org-m= ode and I am trying to make my first beamer presentation using org-mode=A0e= xclusively. 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@gn= u.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode



--0015174be17a317d2b0499373a18-- --===============1773175426== 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 --===============1773175426==--