[pstricks] define new linestyle
Marco Daniel
marco.daniel at mada-nada.de
Fri Jan 29 23:04:05 CET 2010
Hello,
today I am interested in the defining of new line styles. I want to
create a wave which can be used by ncline and so on.
The following example shows the problem
%%%%%%%%%%%%%%%%%%%
\documentclass{article}
\usepackage{pst-coil}
\usepackage{pstricks-add}
\begin{document}
\begin{pspicture}(3,3)
\cnode*(0,0){4pt}{A}\cnode*(3,3){4pt}{B}
\ncline[linestyle=dotted]{A}{B}
\end{pspicture}
\begin{pspicture}(3,3)
\cnode*(0,0){4pt}{A}\cnode*(3,3){4pt}{B}
\pszigzag(A)(B)
\end{pspicture}
\end{document}
%%%%%%%%%%%%%%%%%%%
The macro pszigzag isn't a nice wave *G*
I think the best solution ist something like this:
\ncline[linestyle=*wave*]{A}{B}
where I can define the amplitude and the frequency.
regards
Marco
More information about the PSTricks
mailing list