[OS X TeX] Pstricks & pscustom & psbezier problem

Luis Sequeira lfsequeira at fc.ul.pt
Fri Aug 31 11:36:11 CEST 2007


> On Aug 30, 2007, at 5:04 PM, zdenek wrote:
>
>
>> Hi,
>>
>> I use to draw my pic jpicedt application. It's great. My pictures
>> is drawing ok in linux but not  in mac osx not.
>>
>> this is minimal code :
>> \documentclass{article}
>> \usepackage{pstricks}
>>
>> \begin{document}
>> \pscustom{%
>>   \psline(5,1)(12,1)
>>   \psbezier(12,-1)(2,-3)(1.8,-1)(0.9,2)
>> }
>> \end{document}
>>
>> If is comment  \pscustom command, works well. But with pscustom
>> command, pstricks add line. Why?
>>
>> my version is pstricks 1.15.
>>
>
>
> I get exactly the same result under Mac OS and Ubuntu (both with
> TeXLive 2007), but indeed a different result with Mandriva's teTeX.
> So the difference is in TeX distributions, not Linux vs. Mac OS.
>
> PSTricks v1.14c <2006/04/29>     (Mandriva)
>
> PSTricks v1.15  <2006/12/22>     (Ubuntu and Mac OS)
>
>
> Best,
>
> Axel
>



 From my reading of the pstricks manual, I believe the mentioned  
behavior is to be expected.
\pscustom creates a path and so when you add disconnected parts it,  
well, connects them.

I found that you can obtain the desired result by first ensuring that  
the straight line is actually drawn (using \stroke) and the clearing  
the path using \newpath:

\documentclass{article}
\usepackage{pstricks}

\begin{document}
\pscustom{%
    \psline(5,1)(12,1)
    \stroke
    \newpath
    \psbezier(12,-1)(2,-3)(1.8,-1)(0.9,2)
}
\end{document}


Luis Sequeira



>

------------------------- Helpful Info -------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
List Reminders & Etiquette: http://www.esm.psu.edu/mac-tex/list/





More information about the macostex-archives mailing list