Hi,
I would like to use pgf/tikz to build a box which has a nice 'mirror-
shadow'
at the bottom. Enclosed please find a minimal example. The first box
(\myboxone) basically shows what I want but the corners of the shadow
are
all rounded. Is there a way to have rounded corners at the top of the
shadow, but sharp corners at the bottom of the shadow? Can this be
achieved
with the \node command?
It can be achieved with the \fill command (\myboxtwo), however, I
could not
come up with a simple way of how to place the shadow precisely under
the box
in this case.
All the best
Marius
\documentclass{scrartcl}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[USenglish]{babel}
\usepackage{xcolor}
\usepackage{tikz}
\newcommand*{\myboxone}{%
\begin{tikzpicture}
\node[rectangle,rounded corners,fill,inner xsep=2mm,inner
ysep=2mm,text
justified,top color=black!50,bottom color=black,anchor=south]{\color
{white}%
My first trial.
};
\node at (0mm,-0.2mm)[rectangle,rounded corners,shade,top
color=black!50,bottom color=white,inner xsep=2mm,inner ysep=1.2mm,text
width=23mm,anchor=north]{};
\end{tikzpicture}
}
\newcommand*{\myboxtwo}{%
\begin{tikzpicture}
\node[rectangle,rounded corners,fill,inner xsep=2mm,inner
ysep=2mm,text
justified,top color=black!50,bottom color=black]{\color{white}%
My second trial.
};
\fill[shade,top color=black!50,bottom
color=white,anchor=north](0mm,0mm)[rounded
corners]--(0mm,2mm)--(30mm,2mm)[sharp corners]--(30mm,0mm)--cycle;
\end{tikzpicture}
}
\begin{document}
\myboxone
\par\bigskip
\myboxtwo
\end{document}
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.
http://p.sf.net/sfu/bobj-july_______________________________________________
pgf-users mailing list
pgf-users@...
https://lists.sourceforge.net/lists/listinfo/pgf-users