[pstricks] Linewidth as postscript parameter

Poul Riis poul.riis at skolekom.dk
Mon Sep 21 18:38:53 CEST 2015


Is it possible to define the linewidth as a postscript parameter,
something like the following (which does not work)?

Poul Riis


\documentclass[a4paper,12pt]{article}
\usepackage[x11names]{xcolor}
\usepackage{pstricks-add}

\begin{document}
\begin{pspicture}[bgcolor=Cornsilk1](-5,-5)(5,5)
\pstVerb{/lw 0.2 def}
\psline[linewidth=lw](-4,-4)(4,4)%Does not work
%\psline[linewidth=0.2](-4,-4)(4,4)%Works
\end{pspicture}
\end{document}

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20150921/667edc0d/attachment.html>


More information about the PSTricks mailing list