If you look carefully at the raised text in this image, you can see that it has two drop shadows: as well as the black one to the southeast of the text, there is a white one to the northwest. I know how to insert one drop shadow in tikz using e.g.
drop shadow={shadow xshift=-0.5mm,shadow yshift=-0.5mm,black}
Is there any easy way to add two shadows of the kind specified? (NB. Being able to specify the 'light direction' via shadow xshift
,shadow yshift
is very useful.)
Best Answer
Duplicate shadows
With key
preaction
another shadow can be inserted, e.g.:This can be further simplified.
drop shadow
usesgeneral shadow
, which is already implemented viapreaction
. Thus thepreaction
part can be dropped:Also a style can be defined to simplify the use case, e.g.:
Text shadows
The following version without package
tikz
sets the text three times, first in color white, moved to the left and raised, then in color black to the right and below, finally the the text:A variant with package
pdfrender
: