In the example below, the style I've defined for every node
uses a drop shadow. My a
node uses that default style without modification. However, I'd like to override that style for node b
, which should have no shadow at all.
I've tried to
- pass
fill opacity=0
todrop shadow
locally, or - pass nothing to the option (
drop shadow=,
),
but node b
still has a shadow.
I've read section 66 of the TikZ/PGF (v3.0) manual about the shadows
library, but I haven't found a way of overriding a drop shadow
style. Any help?
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{positioning,shadows}
\tikzset{
every node/.style={
draw,
drop shadow = {opacity=0.5,fill=red},
fill = white,
},
}
\begin{document}
\begin{tikzpicture}
\node (a) {a};
\node[
right=of a,
drop shadow={opacity=0}, % the shadow is still there
% drop shadow=, % also no effet
] (b) {b};
\end{tikzpicture}
\end{document}
drop shadow={fill=white, opacity=1, draw=white}
.