# [pstricks] problems drawing block diagram

Herbert Voss LaTeX at zedat.fu-berlin.de
Tue Jan 16 21:09:46 CET 2007

Patrick Pucholt schrieb:
>
> Only one question left: in the given second example (with offset) the
> ncline does not originate exactly in the vertex of INT-block and is
> not horizontal like it should be. Could this be a problem with
> linewidth? How do I avoid this?
use the lower left as a reference point for \rnode.
Then it is easy to shift the connection line.

\rput{0}(9.6,0){%
\rnode[lb]{ws}{\pspicture(1.8,0.8)%
\pspolygon(0,0)(1.4,0)(1.8,.4)(1.4,.8)(0,.8) \rput{0}(.8,.4){INT}
\psline(.15,.8)(.15,1.2) \uput[0](.15,1.2){\small $0$}
\endpspicture}
}
\rput{0}(13,.1){%
\rnode[lb]{qws}{\pspicture(1.6,0.8)%
\psframe(0,0)(1.6,.8) \rput{0}(.8,.4){MUL}
\endpspicture}
}
\ncline[offsetA=0.35,offsetB=0.3]{ws}{qws}%
\nbput[npos=.5]{\sf ws}
\naput[npos=.3]{$\omega_s$}