[pstricks] conceptual question for pst-optexp

Christoph Bersch usenet at bersch.net
Wed Jun 18 13:13:13 CEST 2008


Herbert Voss schrieb:
> Christoph schrieb:
>  > Referring to this and to simplify the access to these nodes I want to
>  > define a macro that connects two components:
>  >
>  > \optBeam{compname1}{compname2}
>  >
>  > This is no problem, but I was thinking that it would be nice to allow
>  > using a node or coordinate pair instead of one compname:
>  >
>  > \optBeam{(0,1)}{compname2}
>  > or
>  > \optBeam{compname1}{(4,4)}
>  >
>  > would then connect a node with a component. How can I implement such a
>  > macro. My TeX knowledge is still somewhat limited, so I need some help
>  > on how to do this best :-)
> 
> this is way how pst-node works. Look for \ncline as an example.
> With SpecialCoor all types are checked.

Hmm, the following small example does not work. It compiles but it does 
not draw the line

\listfiles
\documentclass{article}
\usepackage{pst-node}
\SpecialCoor
\begin{document}
\begin{pspicture}(2,2)
\ncline{0,0}{1,1}
\end{pspicture}
\end{document}

The files I use are the most recent ones:

  *File List*
  article.cls    2005/09/16 v1.4f Standard LaTeX document class
   size10.clo    2005/09/16 v1.4f Standard LaTeX file (size option)
pst-node.sty    2006/01/01 package wrapper for pst-node.tex
pstricks.sty    2008/01/24 v0.37 LaTeX wrapper for `PSTricks' (RN,HV)
pstricks.tex    2008/06/17 v1.24 `PSTricks' (tvz)
   xcolor.sty    2005/12/21 v2.09 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)
pst-node.tex    2000/11/09 97 patch 11 `pst-node' (tvz)
  ***********

Do you know what is going wrong there?

Thank you,
Christoph



More information about the PSTricks mailing list