beamer add tag
Mingzhang Michael Yin (imported from SE)
Hello when I use the section page in Beamer theme Metropolis, I have long section but the content are narrowed in the middle of the page.


I want to reduce the margins in the section page, and only in section page.

This commend `\setbeamersize{text margin left=0mm,text margin right=0mm}` reduces the margin for all pages, EXCEPT the section page. Please help. Thanks!
Top Answer
Changing the text margin won't help for the metropolis theme because it hard codes the with of the section title to `22em`. This also means that not even a smaller font would help.

However the definition of the section page can be slightly adjusted to occupy the whole text width instead of the hard coded value:



\setbeamertemplate{section page}{
    \usebeamercolor[fg]{section title}
    \usebeamerfont{section title}
    \usebeamertemplate*{progress bar in section page}
      \usebeamercolor[fg]{subsection title}%
      \usebeamerfont{subsection title}%





In case the normally available text width is not enough, your `\setbeamersize{text margin left=0mm,text margin right=0mm}` will now also change the margin of the section page.

This room is for discussion about this question.

Once logged in you can direct comments to any contributor here.

Enter question or answer id or url (and optionally further answer ids/urls from the same question) from

Separate each id/url with a space. No need to list your own answers; they will be imported automatically.