[pstricks] \psdot, fillstyle none

Herbert Voss LaTeX at zedat.fu-berlin.de
Wed Nov 16 15:49:14 CET 2005


Hendri Adriaens wrote:
> Hi,
> 
> how do I define dot styles that do not have a fill color at all (like
> `fillstyle=none'). See below my start. The defs now contain the defs
> of psds at o and psds at square respectively from pstricks.tex.


\documentclass{article}
\usepackage{pstricks}
\makeatletter
\@namedef{psds at ocircle}{ \pst at gdot{ 0 0 DS 0 360 arc stroke }}
\@namedef{psds at osquare}{%
   \pst at gdot{
     DS .886 mul /r ED
     r r moveto r r neg L r neg r neg L r neg r L
     closepath stroke }}
\makeatother
\begin{document}

\pagecolor{red}
\psdot*[linecolor=blue,dotstyle=ocircle,dotsize=40pt](0,0)
\psdot*[linecolor=blue,dotstyle=osquare,dotsize=40pt](3,0)

\end{document}


Herbert





More information about the PSTricks mailing list