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

Changing background via \metroset causes text to disappear #368

Open
codecrap opened this issue Apr 30, 2020 · 1 comment
Open

Changing background via \metroset causes text to disappear #368

codecrap opened this issue Apr 30, 2020 · 1 comment

Comments

@codecrap
Copy link

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?

@dbrg77
Copy link

dbrg77 commented Feb 15, 2021

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.

# 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