[pstricks] value of shadow can't be a macro

Jean-Côme Charpentier jean-come.charpentier at wanadoo.fr
Mon Apr 30 19:10:45 CEST 2012


Le 26/04/2012 15:26, Marco Daniel a écrit :
> Hi,
>
> the following example fails:
>
> [...]
> \def\mytemp{true}
> \psframe[shadow=\mytemp](0,0)(4,4)
>[...]
>
> It seems to be an expansion problem.

   Yes it is. Yon can do the trick like that:


\documentclass[11pt]{article}
\usepackage{pstricks}
\begin{document}
\def\mytemp{[shadow=true]}
\begin{pspicture}(4,4)
\expandafter\psframe\mytemp(0,0)(4,4)
\end{pspicture}
\end{document}


More information about the PSTricks mailing list