[pstricks] dashed lines stopped working?
hh
texdienst at gmail.com
Mon Oct 10 14:33:05 CEST 2011
There is another possibility:
1. pstricks.pro was not changed with the addition of ptricks-add
2. But the psset{...} command is old (pstricks) and should work on a
normal pstricks version:
\usepackage{pstricks}
Try it on your short sample.
The dfifference: if you have more than one psset{...}, you should keep
them in brackets
{
\psset{...}
\psline(..)(..)
}
to avoid improper use (where not wanted)
That is the main effect of the new style command - it saves the brackets.
hh
2011/10/10, hh <texdienst at gmail.com>:
> I would guess that the newpsstyle does not work with your version.
> pstricks-add is known that they try new things,
> but also delete them if they have better ideas.
>
> Try instead
> psset{linecolor=black,linestyle=dashed,dash=5pt 4pt}
>
> and put it in the line just above the psline command.
>
> hh
>
> 2011/10/10, Brandon Kuczenski <brandon at 301south.net>:
>> Sorry to trouble the list with a stupid debugging question, but I need
>> some help. The following very simple file fails with a stack underflow
>> on
>> my up-to-date TeXlive 2011 system. The file builds normally if I change
>> linestyle to solid. Any help?
>>
>> File:
>>
>> \documentclass{article}
>> \usepackage{pstricks-add}
>>
>> \listfiles
>> \begin{document}
>> \begin{pspicture}(0,0)(12,8)
>>
>> \newpsstyle{lane}{linecolor=black,linestyle=dashed,dash=5pt 4pt}
>>
>> \rput(6,4){%
>>
>> \pnode(-2,0){pLL}
>> \pnode(2,0){pLR}
>> \psline[style=lane](pLL)(pLR)
>> }
>> \end{pspicture}
>> \end{document}
>>
>>
>> Error:
>> Error: /stackunderflow in --exch--
>> Operand stack:
>> y1
>> Execution stack:
>> %interp_exit .runexec2 --nostringval-- --nostringval--
>> --nostringval-- 2 %stopped_push --nostringval-- --nostringval--
>> --nostringval-- false 1 %stopped_push 1878 1 3 %oparray_pop
>> 1877 1 3 %oparray_pop 1861 1 3 %oparray_pop 1755 1 3
>> %oparray_pop --nostringval-- %errorexec_pop .runexec2
>> --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push
>> --nostringval-- --nostringval-- --nostringval--
>> Dictionary stack:
>> --dict:1159/1684(ro)(G)-- --dict:0/20(G)-- --dict:115/200(L)--
>> --dict:180/300(L)-- --dict:38/200(L)-- --dict:109/200(L)--
>> Current allocation mode is local
>> Last OS error: 2
>> Current file position is 169119
>> GPL Ghostscript 8.71: Unrecoverable error, exit code 1
>>
>>
>>
>> Listfiles output:
>> *File List*
>> article.cls 2007/10/19 v1.4h Standard LaTeX document class
>> size10.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
>> pstricks-add.sty 2010/02/11 v. 0.14 package wrapper for
>> pstricks-add.tex (hv
>> )
>> pstricks.sty 2011/04/23 v0.50 LaTeX wrapper for `PSTricks' (RN,HV)
>> ifpdf.sty 2011/01/30 v2.3 Provides the ifpdf switch (HO)
>> ifluatex.sty 2010/03/01 v1.3 Provides the ifluatex switch (HO)
>> pstricks.tex 2011/04/23 v2.20 `PSTricks' (tvz,hv)
>> pst-xkey.tex 2005/11/25 v1.6 PSTricks specialization of xkeyval (HA)
>> xkeyval.sty 2008/08/13 v2.6a package option processing (HA)
>> xkeyval.tex 2008/08/13 v2.6a key=value parser (HA)
>> pst-fp.tex 2011/04/23 v2.20 `PST-fp' (hv)
>> xcolor.sty 2007/01/21 v2.11 LaTeX color extensions (UK)
>> color.cfg 2007/01/18 v1.5 color configuration of teTeX/TeXLive
>> dvips.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
>> pstricks-add.tex 2011/02/02 v3.51 `PSTricks-add' (hv)
>> ***********
>>
>> _______________________________________________
>> PSTricks mailing list
>> PSTricks at tug.org
>> http://tug.org/mailman/listinfo/pstricks
>> archive: http://www.tug.org/pipermail/pstricks/
>>
>
More information about the PSTricks
mailing list