I have a tikz graphics which uses a shadow effect. After compiling the PDF everything is fine.
However, when I include this PDF in another latex document using \includegraphics or \includepdf, the shadow effect is gone. At least it misses sometimes in Ubuntu/Evince and in Preview under OS X, while Adobe Reader under Windows displays it correctly. Under OS X the Effekt is missing only "sometimes". Recompiling the document several times seems to resolve the problem every now and then.
The following example reproduces the problem:
Code: Select all
\documentclass{article}
\usepackage[table]{xcolor}
\usepackage[english]{babel}
\usepackage{tikz}
\pgfrealjobname{l}
\usetikzlibrary{shapes,arrows,backgrounds,chains,%
matrix,patterns,arrows,decorations.pathmorphing,decorations.pathreplacing,%
positioning,fit,calc,decorations.text,shadows,fadings,shadows.blur,decorations.markings%
}
\begin{document}
\beginpgfgraphicnamed{logo}
\begin{tikzpicture}
\newdimen\R
\R=0.6cm
\tikzstyle{hexagon} = [
shade,
blur shadow={shadow blur steps=10},
top color=white,
bottom color=blue!10
];
\draw [style=hexagon] (240:\R) -- (300:\R) -- (360:\R) -- (60:\R) -- (120:\R) -- (180:\R) -- (240:\R) -- (300:\R) node (hex) {} ;
\end{tikzpicture}
\endpgfgraphicnamed
\end{document}
I suppose the problem is due to different layers in the logo PDF.
Has anyone an idea how I could solve the problem?