3

Is there a style with which I can disable a blur shadow that was already enabled? Disabling the draw and changing the fill can easily be down with appending the options:

draw=none, fill=yellow

but didn't see an wasy way to disable an exsiting blur shadow.

enter image description here

Note:

Code:

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{shadows.blur}

\newcommand*{\MyPicture}[1][]{%
    %% #1 = draw options.
    \begin{tikzpicture}
        \node [draw=red, thick,fill=magenta!25,  blur shadow, #1] {Text};
    \end{tikzpicture}%
}%

\begin{document}

\MyPicture
\quad
\MyPicture[draw=none, fill=yellow, blur shadow={}]% <-- How to disable shadow here

\end{document}
4

You can change shadow opacity parameter:

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{shadows.blur}

\newcommand*{\MyPicture}[1][]{%
    %% #1 = draw options.
    \begin{tikzpicture}
        \node [draw=red, thick,fill=magenta!25,  blur shadow, #1] {Text};
    \end{tikzpicture}%
}%

\begin{document}

\MyPicture
\quad
\MyPicture[draw=none, fill=yellow, blur shadow={shadow opacity=0}]% <-- How to disable shadow here

\end{document}

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.