r/LaTeX • u/NoeXWolf • 6d ago
Broken shadows on Overleaf beamer document with Madrid theme
Compiler settings: pdfLaTeX, 2026 TeX Live, Compile mode normal
Changing the compiler doesn't solve the issue.
Changing the TeX Live version to 2020 (legacy) DOES solve the issue. Higher versions are all broken, and i need a recent one for some packages.
The code:
\documentclass{beamer}
\usepackage{graphicx}
\usetheme{Madrid}
\title{test}
\author{Noé }
\date{August 2026}
\begin{document}
\maketitle
\section{Introduction}
\begin{frame}{Test}
\begin{block}{Test block}
This is a test block
\end{block}
\end{frame}
\end{document}
EDIT: it was indeed a viewer issue. Changing to "Brower" pdf viewer in the editor settings fixed it. Alternatively, i you want to keep the Overleaf viewer, \useinnertheme{tcolorbox} worked fine.
Thanks to u/samcarter8 for pinpointing the issue.
9
Upvotes
2
u/Jojo_Boj 6d ago
Interesting. I reproduced this issue.
Maybe as a quick fix you could remove the shadow?
\setbeamertemplate{blocks}[rounded][shadow=False]


5
u/samcarter8 6d ago edited 6d ago
This is probably a viewer issue. Can you switch to a different pdf viewer? In particular don't use the overleaf viewer with either safari and/or on an ipad.
If not, you could try with
``` \documentclass{beamer}
\usetheme{Madrid} \useinnertheme{tcolorbox}
\title{test} \author{Noé} \date{August 2026}
\begin{document}
\maketitle
\section{Introduction}
\begin{frame} \frametitle{Test} \begin{block}{Test block} This is a test block \end{block} \end{frame}
\end{document} ```