Re: three part node and shadowing



On Sep 16, 9:14 pm, Zarko Cucej <zarko.cu...@xxxxxxxxx> wrote:
Dear all.
I like to draw by Tikz three part node (see below) with different colour
for each part and common shadow in right/down direction. There I have
problems with colour of shadow, it override colours of each node part.

I use recent tikz package delivered with MikTex. Please, help me!

regards, Zarko

\documentclass{beamer}
%---------------------------------------------------------------%
     \usepackage{tikz,graphicx,fancybox,multido}
     \usetikzlibrary{arrows,shadows,shapes,%
         calc,backgrounds,automata,trees}

\begin{document}
%---------------------------------------------------------------%
     \begin{frame}
     \frametitle{Presentation of derivation}
%---------------------------------------------------------------%
\begin{tikzpicture}[every node/.style={%
     rectangle,
%
% if this part of node parameters ore comment,
% than you see origina colours od node parts,
     copy shadow={fill=red,draw=red,
                  shadow xshift=1mm,shadow yshift=-1mm},
%
     rectangle split,rectangle split parts=3,
     minimum width=62mm,text width=60mm,
     draw=yellow,line width=1mm,
     rectangle split part fill={gray!50,green!50,blue!50}
                     }]\small
\node
     {The \textbf{derivative} is the limit
     \[  \lim_{h\to 0}\frac{f(x+h)-f(x)}{h}  \ ,\]
     if this limit exists as a finite number.%
         \nodepart{second}
     The derivative has important applications in physics as a rate of
change and as a linear approximation.
         \nodepart{third}
     The derivative can be evaluated using appropriate formulas.
         };
\end{tikzpicture}
     \end{frame}
%---------------------------------------------------------------%
     \end{document}

This looks like a bug. Please file a bug report on the PGF project
page:
http://sourceforge.net/tracker2/?func=browse&group_id=142562&atid=752792

A workaround is to use a drop shadow instead of the copy shadow.

Regards,
Kjell Magne Fauske
.



Relevant Pages


Loading