TransWikia.com

Redefining section in beamer

TeX - LaTeX Asked by R. Absil on March 24, 2021

I’d like to redefine the section command in beamer in such a way that it has the “default” behaviours and additionally creates a slide with a certain shape.

So far, I’ve tried to code sth like

%newcommand{oldsection}[1]{section{#1}}
%renewcommand{section}[1]
%{
%   oldsection{#1}
%   begin{frame}
%      begin{beamerboxesrounded}[scheme=esi-blue,shadow=true]{}
%      begin{center}
%        LARGE{textcolor{white}{textbf{#1}}}
%       end{center}
%      end{beamerboxesrounded}
%   end{frame}
%}

but it doesn’t work (looks like some kind of infinite loop. Tries with titleformat failed as well, but I may be using this command wrongly.

Thanks for your help

One Answer

No need to mess with the section command, beamer itself has mechanism to easily insert section frames.

documentclass{beamer}

usetheme{Berlin}

AtBeginSection{%
    begin{frame}
        sectionpage
    end{frame}
}

begin{document}

section{Blub}
begin{frame}
    abc
end{frame} 

end{document}

enter image description here

If you don't like this layout, just create your own using

setbeamertemplate{section page}{...}

Answered by samcarter_is_at_topanswers.xyz on March 24, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP