Changing background via \metroset causes text to disappear
When using the metroset command midway to change the background color from light to dark (for example to make a section or frame stand out), the text disappears when the change is reverted, for example:
\metroset{background=dark} \begin{frame}{Test1} Content1 \end{frame} \metroset{background=light} \begin{frame}{Test2} Content2 \end{frame}
In this example, "Content1" would be visible but "Content2" not anymore.
I was trying to find the origin of this problem in how the metroset command is defined, but without success. Does someone know how this can be fixed or circumvented?
I have the exact same problem. Having searched a bit, I found the answer in issue #295. it seems a simple use of {} will do the trick. You just enclose \metroset{background=dark} together with the frame you want to set with dark inside a pair of {}. No need to set the background back to light. In you example, you want Test1 to be dark, so you just do:
{
\metroset{background=dark}
\begin{frame}{Test1}
Content1
\end{frame}
}
\begin{frame}{Test2}
Content2
\end{frame}
I'm relatively new to latex, so not sure how and why this works.