My question is simple: Is it possible to add shadow to a NON rounded block in beamer?
I've been trying it with:
\setbeamertemplate{blocks}[rounded=false][shadow=true]
But no success. I'm using the marburg theme. Here is the preamble code:
\documentclass[serif]{beamer}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{epstopdf}
\usepackage[spanish]{babel}
\usepackage{mathpazo}
\linespread{1.05}
\author{Lorem ipsum}
\title{LOrem ipsum}
\setbeamertemplate{navigation symbols}{}
\usetheme[hideallsubsections,left,width=2cm]{Marburg}
\usecolortheme{rose}
\setbeamercolor{titlelike}{bg=structure,fg=white}
\logo{\includegraphics[height=1.5cm]{../Fotos/Logo.png}}
\setbeamertemplate{sidebar left}{
\begin{minipage}{2cm}
\centering
\vspace{\baselineskip}
\insertlogo
\vspace{\baselineskip}
\color{white}{\insertshorttitle[width={2cm},center,respectlinebreaks]}
\insertshortauthor[width={2cm},center,respectlinebreaks] \vspace{\baselineskip}
\insertverticalnavigation{2cm}
\vspace{10\baselineskip}
\insertframenumber / \inserttotalframenumber
\end{minipage}
}
\begin{document}
...
Thanks in advance,
Charlie
Best Answer
Unfortunately this is not easy natively in
beamer
(but there's an easy way to achieve it using external tools) since shadows are applied only to rounded boxes (which are built usingbeamerboxesrounded
) but not to non-rounded boxes (which are built separately usingbeamercolorbox
).As an alternative, I offer you here a possibility using the
tcolorbox
package to define blocks emulating those defined by thebeamer
class, but adding the shadow. In the following example I show how to easily do this defining a proper style and building shadowed clones forexampleblock
andalertblock
:The result, showing the new overlay-aware environments in action:
Notice that the serif class option is obsolete, so instead of
you should use