I have two questions on beamer class:
1- I have more than one sections with the same frame title. Consider "objectives" that overlay on different frames. How could I prevent that the identical frame titles would be displayed more than once in frame header? If you see the attached pdf, "An example" is displayed twice in the header. So the purpose is that it would be displayed once (if it is a good idea, otherwise, suggestions are welcome).
2- as you could see, on the 2nd frame, the \section is very long and
another could 3. . .
watch TV 3. . .
cook 3
sleep 3
are not displayed.
Is there any way that latex would split long environments automatically on two continuous frames? apparently \shrink is not recommended according to beameruserguide.pdf. Any other suggestion is welcome.
-------------------------------------------------
\documentclass[10pt]{beamer}
\mode<presentation>
\usepackage{beamerthemesplit}
\begin{document}
\section{An Example}
\subsection{version 1}
\begin{frame}
\frametitle{Things to do on a Sunday Afternoon}
\begin{block}{One could \ldots}
\begin{itemize}
\item walk the dog\dots
\item read a book
\item confuse a cat
\end{itemize}
\end{block}
and many other things
\begin{block}{another could \ldots}
\begin{itemize}
\item watch TV\dots
\item cook
\item sleep
\end{itemize}
\end{block}
\begin{block}{another could \ldots}
\begin{itemize}
\item watch TV\dots
\item cook
\item sleep
\end{itemize}
\end{block}
\end{frame}
%------------------------------------------------------------------
\section{An Example}
\subsection{version 2}
\begin{frame}
\frametitle{Things to do on a Sunday Afternoon}
\begin{block}{One could \ldots}
\begin{itemize}
\item walk the dog\dots
\item read a book
\item confuse a cat
\end{itemize}
\end{block}
and many other things
\begin{block}{another could \ldots}
\begin{itemize}
\item watch TV\dots
\item cook
\item sleep
\end{itemize}
\end{block}
\begin{block}{another could 2\ldots}
\begin{itemize}
\item watch TV 2\dots
\item cook 2
\item sleep 2
\end{itemize}
\end{block}
\begin{block}{another could 3\ldots}
\begin{itemize}
\item watch TV 3\dots
\item cook 3
\item sleep 3
\end{itemize}
\end{block}
\end{frame}
\end{document}
General ⇒ identical frame titles and long environments in beamer class
identical frame titles and long environments in beamer class
- Attachments
-
- test3.pdf
- (30.02 KiB) Downloaded 548 times
NEW: TikZ book now 40% off at Amazon.com for a short time.

identical frame titles and long environments in beamer class
Hi,
You can use the allowframebreaks option:carol wrote:...Is there any way that latex would split long environments automatically on two continuous frames?...
Code: Select all
\begin{frame}[allowframebreaks]
...
(frame contents)
...
\end{frame}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Re: identical frame titles and long environments in beamer class
Thanks Gmedina for your solution for the 2nd problem.
Any body knows a solution for the first problem?
Look forward to your reply,
carol
Any body knows a solution for the first problem?
Look forward to your reply,
carol
identical frame titles and long environments in beamer class
Hi carol,
for the first problem, if I understood it correctly, you can use an empty optional argument for the section command; i.e., you can use
for the second frame title "An Example".
If I misunderstood your problem, I apologise; in that case, coluld you please try to describe it in more detail?
for the first problem, if I understood it correctly, you can use an empty optional argument for the section command; i.e., you can use
Code: Select all
\section[]{An Example}
If I misunderstood your problem, I apologise; in that case, coluld you please try to describe it in more detail?
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Re: identical frame titles and long environments in beamer class
Thanks for your reply.
I changed the code as you could see below. However, there are two problems:
1- 1.a. with allowframebreaks, the itemized environment is not kept on a single frame. As you could see the sentence prior to an itemized environment (one could 2 ... on the 1st frame) remains on the first frame and the rest on the 2nd, which preferably should stay together. Is there any way that latex would cause the break more "intelligently"?
1.b. Otherwise, I used [shrink] but the problem is that it reduces the width too which is a problem for long sentences to be reduced from ex. to 50%. Preferably, it should shrink more on height than on width depends on the text.
1.c. allowframebreaks numbers the frames which is good but the following frames with the same frame title will remain unnumbered. Is there any other solution than integrate the following frames in the same section?
for ex, the frames with the title "Things to do on a Sunday Afternoon" are numbered but if we use other subsections or sections with the same title, with allowframebreaks, their frame title numbering will be reset to I and without allowframebreaks, they will be unnumbered which will be awkward in both cases.
2- I used \section[] but you will see the result on test3.pdf, frame 3. I also used \section*, so that the sections don't appear on the table of contents (which is not displayed here).
------------------------
\documentclass[10pt]{beamer}
\mode<presentation>
\usepackage{beamerthemesplit}
\begin{document}
\section{An Example}
\subsection{version 1}
\begin{frame}[allowframebreaks]
\frametitle{Things to do on a Sunday Afternoon}
\begin{block}{One could \ldots}
\begin{itemize}
\item walk the dog\dots
\item read a book
\item confuse a cat
\end{itemize}
\end{block}
and many other things
\begin{block}{another could \ldots}
\begin{itemize}
\item watch TV\dots
\item cook
\item sleep
\end{itemize}
\end{block}
\begin{block}{another could \ldots}
\begin{itemize}
\item watch TV\dots
\item cook
\item sleep
\end{itemize}
\end{block}
\end{frame}
%------------------------------------------------------------------
\section*[]{An Example}
\subsection{version 2}
\begin{frame}[allowframebreaks]
\frametitle{Things to do on a Sunday Afternoon}
\begin{block}{One could \ldots}
\begin{itemize}
\item walk the dog\dots
\item read a book
\item confuse a cat
\end{itemize}
\end{block}
and many other things
\begin{block}{another could \ldots}
\begin{itemize}
\item watch TV\dots
\item cook
\item sleep
\end{itemize}
\end{block}
\begin{block}{another could 2\ldots}
\begin{itemize}
\item watch TV 2\dots
\item cook 2
\item sleep 2
\end{itemize}
\end{block}
\begin{block}{another could 3\ldots}
\begin{itemize}
\item watch TV 3\dots
\item cook 3
\item sleep 3
\end{itemize}
\end{block}
\end{frame}
\end{document}
I changed the code as you could see below. However, there are two problems:
1- 1.a. with allowframebreaks, the itemized environment is not kept on a single frame. As you could see the sentence prior to an itemized environment (one could 2 ... on the 1st frame) remains on the first frame and the rest on the 2nd, which preferably should stay together. Is there any way that latex would cause the break more "intelligently"?
1.b. Otherwise, I used [shrink] but the problem is that it reduces the width too which is a problem for long sentences to be reduced from ex. to 50%. Preferably, it should shrink more on height than on width depends on the text.
1.c. allowframebreaks numbers the frames which is good but the following frames with the same frame title will remain unnumbered. Is there any other solution than integrate the following frames in the same section?
for ex, the frames with the title "Things to do on a Sunday Afternoon" are numbered but if we use other subsections or sections with the same title, with allowframebreaks, their frame title numbering will be reset to I and without allowframebreaks, they will be unnumbered which will be awkward in both cases.
2- I used \section[] but you will see the result on test3.pdf, frame 3. I also used \section*, so that the sections don't appear on the table of contents (which is not displayed here).
------------------------
\documentclass[10pt]{beamer}
\mode<presentation>
\usepackage{beamerthemesplit}
\begin{document}
\section{An Example}
\subsection{version 1}
\begin{frame}[allowframebreaks]
\frametitle{Things to do on a Sunday Afternoon}
\begin{block}{One could \ldots}
\begin{itemize}
\item walk the dog\dots
\item read a book
\item confuse a cat
\end{itemize}
\end{block}
and many other things
\begin{block}{another could \ldots}
\begin{itemize}
\item watch TV\dots
\item cook
\item sleep
\end{itemize}
\end{block}
\begin{block}{another could \ldots}
\begin{itemize}
\item watch TV\dots
\item cook
\item sleep
\end{itemize}
\end{block}
\end{frame}
%------------------------------------------------------------------
\section*[]{An Example}
\subsection{version 2}
\begin{frame}[allowframebreaks]
\frametitle{Things to do on a Sunday Afternoon}
\begin{block}{One could \ldots}
\begin{itemize}
\item walk the dog\dots
\item read a book
\item confuse a cat
\end{itemize}
\end{block}
and many other things
\begin{block}{another could \ldots}
\begin{itemize}
\item watch TV\dots
\item cook
\item sleep
\end{itemize}
\end{block}
\begin{block}{another could 2\ldots}
\begin{itemize}
\item watch TV 2\dots
\item cook 2
\item sleep 2
\end{itemize}
\end{block}
\begin{block}{another could 3\ldots}
\begin{itemize}
\item watch TV 3\dots
\item cook 3
\item sleep 3
\end{itemize}
\end{block}
\end{frame}
\end{document}
- Attachments
-
- test3.pdf
- (49.91 KiB) Downloaded 464 times
identical frame titles and long environments in beamer class
Hi carol,
you can manually force a break in a frame with the allowframebreaks option by using the \break or \framebreak command.
You cannot use the optional argument when using the starred sectional units, that's why you get a wrong output with \section*[]{An example}.
As for your other question, perhaps the information about the allowframebreaks in the beameruserguide (pp 55ff) could be useful.
you can manually force a break in a frame with the allowframebreaks option by using the \break or \framebreak command.
You cannot use the optional argument when using the starred sectional units, that's why you get a wrong output with \section*[]{An example}.
As for your other question, perhaps the information about the allowframebreaks in the beameruserguide (pp 55ff) could be useful.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
identical frame titles and long environments in beamer class
So there is no solution if one doesn't want that section title be displayed in outline (option *) nor on the top-right hand of presentation header (option [])?gmedina wrote:Hi,
You cannot use the optional argument when using the starred sectional units, that's why you get a wrong output with \section*[]{An example}.
.
When we use \allowframebreaks, the frames are numbered with the same title. What to do if I want that from for ex the fifth slide to use the same title and system numbering (controlled by \allowframebreaks) but want to add a word from the sixth slide to the same frame title? If we take test3.tex as an example, consider having the frame titles "Things to do on a Sunday Afternoon" for some slides (Things to do on a Sunday Afternoon I, Things to do on a Sunday Afternoon II) and for the followings, "Things to do on a Sunday Afternoon III (in May)", just some words be added in parantheses.
Finally, I don't know how it is possible to have different frames with the same title but roman numbered in different sections and subsections. If I precede the section and subsection declaration by frame declaration, the first section and subsection are displayed correctly while the following ones are not. And if I precede the frame declaration by section and subsection declarations (as this is the usual way to do so), meaning that each section, subsection have an independent frame, I don't get the continuous roman numbering. What would be the solution since the userguide didn't help and I think what I want to do is useful for other presentations?
thanks