[pstricks] Stupid question about pst-circ
Herbert Voss
Herbert.Voss at FU-Berlin.DE
Mon Jul 4 23:15:35 CEST 2011
Am 04.07.2011 21:09, schrieb Serge Varjabedian:
>
> Is it possible with pst-circ to do this
>
> \begin{pspicture}(-1,0)(5,5)
> \psset{logicType=nor, logicLabelstyle=\normalsize,%
> logicWidth=1, logicHeight=1.5, dotsize=0.15}
> \logic(1.5,0){nor1}
> \logic(1.5,3){nor2}
> \psline(nor2Q)(4,0|nor2Q)
> \uput[0](4,0|nor2Q){$Q$}
> \psline(nor1Q)(4,0|nor1Q)
> \uput[0](4,0|nor1Q){$\overline{Q}$}
> \psline{*-}(3.50,0|nor2Q)(3.5,2.5)(1.5,2.5)
> (0.5,1.75)(0.5,0|nor12)(nor12)
> \psline{*-}(3.50,0|nor1Q)(3.5,2)(1.5,2)
> (0.5,2.5)(0.5,0|nor21)(nor21)
> \psline(0,0|nor11)(nor11)\uput[180](0,0|nor11){R}
> \psline(0,0|nor22)(nor22)\uput[180](0,0|nor22){S}
> \end{pspicture}
>
> but with logicor instead of logic, when i replace logic with logicor the
> result is awful.
with the pst-circ from
http://texnik.dante.de/tex/generic/pst-circ/
you can use it this way:
\documentclass{scrartcl}
\usepackage{pst-circ}
\begin{document}
\begin{pspicture}(-1,0)(5,5)
\psset{logicType=nor, logicLabelstyle=\normalsize,%
logicWidth=1, logicHeight=1.5, dotsize=0.15}
\logicor(1.5,0){nor1}
\logicor(1.5,3){nor2}
\psline{*-}(5.5,0|nor2O)(5.5,2.75)(1.5,2.75)
(1,2)(1,0|nor1A)(nor1A)
\psline{*-}(5.50,0|nor1O)(5.5,2.25)(1.5,2.25)
(1,2.75)(1,0|nor2B)(nor2B)
\psline(0,0|nor1B)(nor1B)\uput[180](0,0|nor1B){R}
\psline(0,0|nor2A)(nor2A)\uput[180](0,0|nor2A){S}
\end{pspicture}
\end{document}
all other elements are not supported you have to draw
the lines by yourselve.
Herbert
More information about the PSTricks
mailing list