TeX - LaTeX Asked by tush on July 7, 2021
I want to have control over where the frame breaks. This is my first beamer presentation I am creating , yet I couldn’t find an answer to my problem.
Consider the following MWE:
documentclass{beamer}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage[english]{babel}
title{MEW}
begin{document}
section{Intro}
begin{frame}[allowframebreaks,noframenumbering,fragile]{Theoretical Introduction}
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
framebreak
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
end{frame}
end{document}
The output is this:
I want the second frame to start with
Duis aute irure dolor in …
For some reason TeX decided to break it at "reprehenderit in voluptate…".
How can I tell Beamer and TeX to break the frame where I decided to put framebreak
?
Another question: Isn’t the option noframenumbering
should suppress the appending of the roman numerals to the second (and possibly the following third and fourth) frames? It doesn’t seem to have effect.
I am saying it again, I couldn’t find an answer on tex.se about this issue.
Note: I compile the .tex file on Overleaf.
The beamer
manual explicitly states
Do not use the option
allowframebreaks
except for long bibliographies.
I therefore suggest the following solution that uses to different frames in combination with a command that stores the shared frame title.
documentclass{beamer}
usepackage[english]{babel}
begin{document}
section{Intro}
newcommand{introframetitle}{Introductory remarks}
begin{frame}{introframetitle}
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
end{frame}
begin{frame}{introframetitle}
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
end{frame}
end{document}
If you prefer a solution that just uses a single frame
, you could alternatively use overlays:
documentclass{beamer}
usepackage[english]{babel}
begin{document}
section{Intro}
begin{frame}{Introductory remarks}
only<1>{Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.}
only<2>{Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.}
end{frame}
end{document}
Correct answer by leandriis on July 7, 2021
With an additional linebreak
the second frame will start with
Duis aute irure
documentclass{beamer}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage[english]{babel}
title{MEW}
begin{document}
section{Intro}
begin{frame}[allowframebreaks,noframenumbering,fragile]{Theoretical Introduction}
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
framebreaklinebreak
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
end{frame}
end{document}
Answered by luki on July 7, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP