Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Is it possible to use the dark theme only on the title and section frames? #295

Closed
joaocandre opened this issue Sep 21, 2017 · 3 comments
Closed

Comments

@joaocandre
Copy link

How would I achieve this? I've tried several combinations of keys for both metroset and setbeamercolor but I'm not getting anywhere. Is it possible?

@benjamin-weiss
Copy link
Contributor

There you go.

\documentclass{beamer}
\usetheme{metropolis}

\AtBeginSection{
  {
    \metroset{background=dark}
    \frame[plain,c,noframenumbering]{\sectionpage}
  }
}


\title{Dark theme on title and section frames only}
\date{\today}
\author{Benjamin Weiss}
\institute{Centre for Modern Beamer Themes}

\begin{document}

{
\metroset{background=dark}
\maketitle
}

\section{First Section}

\begin{frame}{First Frame}
Hello, world!
\end{frame}

\section{Second Section}

\begin{frame}{Second Frame}
Hello, world!
\end{frame}

\end{document}

@joaocandre
Copy link
Author

joaocandre commented Sep 22, 2017

Thanks! That did it. I guess setting the background at the beggining of each section would also work?

@benjamin-weiss
Copy link
Contributor

Yes, but you would have to group every \section command, like I did with the title page.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants