I have a beamer document with many complex trees, so I set defaults for colors, shadows, and so on. Is there a way to remove the drop shadow from a single node? E.g., in the following tree, suppose that Winesap apples should have no shadow. The closest I’ve come is with [drop shadow={fill=white,opacity=1}]
, but there’s still a faint gray outline of the shadow. And that outline is visible in xpdf, evince, mupdf, zathura, acroread, and even ImageMagick.
\documentclass{beamer}
\usecolortheme[named=teal]{structure}
\usepackage{tikz}
\usetikzlibrary{shadows,trees}
\begin{document}
\tikzset{edge from parent fork right,grow'=right,
every node/.style={rectangle,rounded corners,thick,draw=structure,fill=white,drop shadow},
edge from parent/.style={thick,draw=structure}}
\begin{frame}
\begin{tikzpicture}[level 1/.style={level distance=7em,sibling distance=9em},
level 2/.style={level distance=7em,sibling distance=6em},
level 3/.style={level distance=7em,sibling distance=3em}]
\node {food}
child {node {fruit}
child {node {apples}
child {node {Granny Smith}}
child {node[drop shadow={fill=white,opacity=1}] {Winesap}}}
child {node {pears}}}
child {node {veggies}
child {node {beets}}
child {node {Swiss chard}}};
\end{tikzpicture}
\end{frame}
\end{document}