[pstricks] Linewidth as postscript parameter

Herbert Voss Herbert.Voss at FU-Berlin.DE
Mon Sep 21 19:25:05 CEST 2015


Poul Riis schrieb:
> 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=!lw](-4,-4)(4,4)%Does not work


PS values are possible with a preceeding !


Herbert



More information about the PSTricks mailing list