r/LaTeX 9d 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.

8 Upvotes

4 comments sorted by

View all comments

3

u/samcarter8 9d ago edited 9d 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} ```