changing background across sub-frames

View: New views
2 Messages — Rating Filter:   Alert me  

changing background across sub-frames

by Lucio Chiappetti :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have a frame, which consists of up to 6 sub-frames or overlays.
<1> to <3> have a common subtitle, while the rest of the content changes.
<4> has a different subtitle and content, and <5> and <6> yet another
title and varying content.

My convention wants to show the frame number in the frame title bar, but
not the subframe number ... a frame is a topic, while subframes are
subtopics.

So I am not considering the idea of splitting the frame in one frame
containing only <1> to <3> and another with <4> to <6>.

What I'd want to achieve is that sub-frames <1> to <3> (or even only
<1> to <2>) contain a different background.

My standard background is a solid black colour.
For <1> to <2> I'd like to show an image.

I can currently set such background and reset it to black using
\setbeamertemplate OUTSIDE of \begin{frame} ... \end{frame}.

Is there a way to reset the background to black INSIDE the frame (ideally
after <2>) ?

Or alternatively to display the image behind the text even if it is not
the "official" background ?



\pgfdeclareimage[width=128mm]{lssmosaic}{lssmosaic4}
\setbeamertemplate{background}{\pgfuseimage{lssmosaic}}

\begin{frame}[label=frameNames,t]
  \frametitle{LSSDB -- Nomenclature issues  -- \insertframenumber}
  \only<1-3>{
   \begin{beamercolorbox}[...]{some subtitle}\end{beamercolorbox}
   some stuff
  }
  \only<4>{
   \begin{beamercolorbox}[...]{some other subtitle}\end{beamercolorbox}
   some other stuff
  }
  \only<5-6>{
   \begin{beamercolorbox}[...]{yet another subtitle}\end{beamercolorbox}
   some more stuff
  }
\end{frame}

% reset the background
\setbeamertemplate{background}{}


--
------------------------------------------------------------------------
Lucio Chiappetti - INAF/IASF - via Bassini 15 - I-20133 Milano (Italy)
For more info : http://www.iasf-milano.inaf.it/~lucio/personal.html
------------------------------------------------------------------------
Wir muessen wissen / wir werden wissen
          Inscription on David Hilbert's grave  http://tinyurl.com/3e5hfl
------------------------------------------------------------------------

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Latex-beamer-users mailing list
Latex-beamer-users@...
https://lists.sourceforge.net/lists/listinfo/latex-beamer-users

Re: changing background across sub-frames

by Jon Engel :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
What about starting a new frame after <2> but keeping the same frame number?  You can do that  e.g. through

\addtocounter{framenumber}{-1}  

before the frame containing <3>.


Lucio Chiappetti wrote:
I have a frame, which consists of up to 6 sub-frames or overlays.
<1> to <3> have a common subtitle, while the rest of the content changes.
<4> has a different subtitle and content, and <5> and <6> yet another
title and varying content.

My convention wants to show the frame number in the frame title bar, but
not the subframe number ... a frame is a topic, while subframes are
subtopics.

So I am not considering the idea of splitting the frame in one frame
containing only <1> to <3> and another with <4> to <6>.

What I'd want to achieve is that sub-frames <1> to <3> (or even only
<1> to <2>) contain a different background.

My standard background is a solid black colour.
For <1> to <2> I'd like to show an image.

I can currently set such background and reset it to black using
\setbeamertemplate OUTSIDE of \begin{frame} ... \end{frame}.

Is there a way to reset the background to black INSIDE the frame (ideally
after <2>) ?

Or alternatively to display the image behind the text even if it is not
the "official" background ?



\pgfdeclareimage[width=128mm]{lssmosaic}{lssmosaic4}
\setbeamertemplate{background}{\pgfuseimage{lssmosaic}}

\begin{frame}[label=frameNames,t]
  \frametitle{LSSDB -- Nomenclature issues  -- \insertframenumber}
  \only<1-3>{
   \begin{beamercolorbox}[...]{some subtitle}\end{beamercolorbox}
   some stuff
  }
  \only<4>{
   \begin{beamercolorbox}[...]{some other subtitle}\end{beamercolorbox}
   some other stuff
  }
  \only<5-6>{
   \begin{beamercolorbox}[...]{yet another subtitle}\end{beamercolorbox}
   some more stuff
  }
\end{frame}

% reset the background
\setbeamertemplate{background}{}


--
------------------------------------------------------------------------
Lucio Chiappetti - INAF/IASF - via Bassini 15 - I-20133 Milano (Italy)
For more info : http://www.iasf-milano.inaf.it/~lucio/personal.html
------------------------------------------------------------------------
Wir muessen wissen / wir werden wissen
          Inscription on David Hilbert's grave  http://tinyurl.com/3e5hfl
------------------------------------------------------------------------

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Latex-beamer-users mailing list
Latex-beamer-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/latex-beamer-users