josephwright / beamer

A LaTeX class for producing presentations and slides
Other
1.41k stars 142 forks source link

Issues with block shadows after new 3.67 release #772

Closed jotagah closed 2 years ago

jotagah commented 2 years ago

I guess Beamer last update messes the box shadows ... again.

From Black/gray to white.

[ ]'s,

J.

samcarter commented 2 years ago

Please make a minimal working example which allows us to reproduce the problem.

Shadows seem to work just fine: Screenshot 2022-05-18 at 13 27 56

jotagah commented 2 years ago

I could not post a minimal example because I had a hard day.

I used the Manhattan theme, for instance, to show the issue.

\documentclass{beamer}
\usetheme{Manhattan}
\definecolor{black}{RGB}{30,30,30}
\setbeamertemplate{blocks}[rounded][shadow=true]
\begin{document}
\begin{frame}
    \begin{block}{Example}
    \end{block}
\end{frame}
\end{document}
samcarter commented 2 years ago

The Manhattan theme does not seem to be available on ctan. Is the exact version you are using available somewhere on the internet?

samcarter commented 2 years ago

That being said: \definecolor{black}{RGB}{30,30,30} is not a good idea, the shadows assume that black is black

josephwright commented 2 years ago

I'd say redefining black is unsupported by any LaTeX package (we have discussed making this impossible in the l3color code).

samcarter commented 2 years ago

As a workaround (see #659):

\documentclass{beamer}
\usetheme{Warsaw}

\colorlet{foo}{black}
\usepackage{xpatch}
\xpatchcmd{\endbeamerboxesrounded}{\pgfsetcolor{black}}{\pgfsetcolor{foo}}{}{}

\definecolor{black}{RGB}{30,30,30}
\setbeamertemplate{blocks}[rounded][shadow=true]
\begin{document}
\begin{frame}
\begin{block}{Example}
\end{block}
\end{frame}
\end{document}
samcarter commented 2 years ago

closing this issue while waiting for a link to the theme file...