I want to define a constant globally within my pspicture environment as follows:
\begin{pspicture}(4,2)
\psgrid
\SpecialCoor
\def\length{2}
\pnode(!\length 1){C}
\uput[90](C){$C$}
% other codes truncated here for simplicity.
\end{pspicture}
The above example does not work.
What is the correct way to do that?