[pstricks] pst-circ2 Was re: Adder for pst-circ
Joel Salomon
joelcsalomon at gmail.com
Tue Dec 5 19:20:14 CET 2006
On 12/4/06, Christophe Jorssen <christophe.jorssen at free.fr> wrote:
> Try pst-circ2 and its (very beta) \DeclareNewMultipole macro (undocumented)
>
> http://christophe.jorssen.free.fr/pst-circ2/
Based on the example of the transistor, it seems that it's not easy to
share code between variants of a component. The adder I'd like to
implement has either 3 input nodes (top, left, and bottom) and one
output node (on the right), or two input nodes (t-l, t-b, or l-b) and
an output, each input able to have a label of $+$, $-$, or blank
(default). The syntax I was thinking of is
\Adder[NumOfInputs=2, Inputs=tb, Labels=b-](In1)(In2)(Out)
for a two-adder with inputs at top and bottom, the bottom quadrant
labeled with a minus, and the top quadrant unlabeled.
Can this be easily done? What would be the basic structure of this in
pst-circ2?
--Joel
More information about the PSTricks
mailing list