You could use the pgf-blur
package, which gives you this:
In fact, it can add a "faded" drop shadow to pretty much anything:
The shadow fading is not continuous, like in the previously accepted answer. It fades in a number of discrete steps, but that number can be changed, see the documentation.
Here's the code for the examples:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{shadows.blur}
\usetikzlibrary{shapes.symbols}
\begin{document}
\begin{center}
\begin{tikzpicture}
\node[draw=none,shade,
top color=blue!40,
bottom color=blue!5,
rounded corners=6pt,
blur shadow={shadow blur steps=5}
] {\sffamily\bfseries\large A pretty box};
\node[tape,draw=none,shade,
top color=blue!40,
bottom color=blue!5,
rounded corners=1pt,
blur shadow={shadow blur steps=5,shadow blur extra rounding=1.3pt}
] at (5,0){\sffamily\bfseries\large Another pretty box};
\end{tikzpicture}
\end{center}
\end{document}
Edit
Sometimes, PDF renderers will show a dark line in the center of the shadow. This is due to the way they handle anti-aliasing and clipping. To avoid this:
- Use pgf-blur v1.01, which tries hard to hide this artefact
- In Acrobat, turn off the "Page Display" preference "Enhance thin lines". These shadows consist of many thin lines, and they won't look good if Acrobat changes their width
- Don't use too many
blur shadow steps
. It looks best if you have about two pixels per step at viewing resolution.
You can set the title page
template to suppress the shadow (this will leave the shadow for the blocks unaltered):
\documentclass{beamer}
\usetheme{Warsaw}
\title{The Title}
\author{The Author}
\setbeamertemplate{title page}[default][colsep=-4bp,rounded=true]
\begin{document}
\begin{frame}
\maketitle
\end{frame}
\begin{frame}
\begin{exampleblock}{Example}
Test
\end{exampleblock}
\begin{alertblock}{Alert}
Test
\end{alertblock}
\end{frame}
\end{document}
Best Answer
Since you seem to be a beginner to these ugly jobs (apologies if not), have a good start. Start with
tcolorbox
. Details can be found in the manual which can be obtained by runningtexdoc tcolorbox
from command prompt/terminal. Remember that there are many varieties of shadows if you look in to the manual.