Re: Text with blurred shadow



On 25 Jan., 16:41, Herbert Voss <Herbert.V...@xxxxxxxxxxxxxxxxxxx>
wrote:
Am 25.01.2012 16:26, schrieb HansMaier:

I would like to add a blurred shadow to the text in the box.
Does somebody have suggestions how this can be achieved using "TikZ&
PGF" and/or "pst-blur"?

\documentclass{article}
\usepackage{pst-blur}
\begin{document}

\psframebox[shadow,blur,framearc=0.1]{\parbox{\linewidth}{%
\large\bfseries
\textcolor[rgb]{1,0,0}{H}\textcolor[rgb]{1,0,0}{e}\textcolor[rgb]
{0,0,1}{r}\textcolor[rgb]{0,0,1}{e} \textcolor[rgb]{1,0.9,0}{i}
\textcolor[rgb]{1,0.9,0}{s} \textcolor[rgb]{0,1,0}{s}\textcolor[rgb]
{0,1,0}{o}\textcolor[rgb]{1,0,0}{m}\textcolor[rgb]{1,0,0}{e}
\textcolor[rgb]{0,0,1}{coloured} \textcolor[rgb]{1,0,0}{text}
\textcolor[rgb]{1,0,0.5}{on} \textcolor[rgb]{1,0,1}{the} \\
\textcolor[rgb]{1,0,0}{title} \textcolor[rgb]{1,0.5,0}{page}}}

\end{document}

Thanks a lot for that prompt response Herbert! Do you know how I can
add equal space below and above the text? And, if possible, use
different colors for the outline of the box and the actual shadow (as
in the initial example)?

------------------------
\documentclass{article}
\usepackage{pst-blur}
\begin{document}


\psframebox[shadow=true,blur,framearc=0.8]{\parbox{\linewidth}{%
\vspace{40pt}
\large\bfseries
\centering
\textcolor[rgb]{1,0,0}{H}\textcolor[rgb]{1,0,0}{e}\textcolor[rgb]
{0,0,1}{r}\textcolor[rgb]{0,0,1}{e} \textcolor[rgb]{1,0.9,0}{i}
\textcolor[rgb]{1,0.9,0}{s} \textcolor[rgb]{0,1,0}{s}\textcolor[rgb]
{0,1,0}{o}\textcolor[rgb]{1,0,0}{m}\textcolor[rgb]{1,0,0}{e}
\textcolor[rgb]{0,0,1}{coloured} \textcolor[rgb]{1,0,0}{text}
\textcolor[rgb]{1,0,0.5}{on} \textcolor[rgb]{1,0,1}{the} \\
\textcolor[rgb]{1,0,0}{title} \textcolor[rgb]{1,0.5,0}{page}}}
\end{document}
------------------------
.



Relevant Pages

  • Re: three part node and shadowing
    ... Kjell Magne Fauske wrote: ... problems with colour of shadow, it override colours of each node part. ... I use recent tikz package delivered with MikTex. ... I test them on basis copy/past. ...
    (comp.text.tex)
  • three part node and shadowing
    ... I like to draw by Tikz three part node with different colour for each part and common shadow in right/down direction. ... \frametitle{Presentation of derivation} ... rectangle split,rectangle split parts=3, ...
    (comp.text.tex)