Am 01.02.2026 um 13:02 schrieb Jeong Dal via ntg-context:
Dear Hans,
Thank you for the quick update.
The modified version is very nice and easy to use.(though \Gate{F800}
and \Gate{F801} should be changed at line 135)
I am trying to use these symbols to draw the circuit.
I am able to arrange the gates using “label” in MetaFun. But I don’t
know how to connect them.
To do that, I need to know the exact position of input and output of gates.
Question:
What is the unit of drawing gates in the module? You use “draw (0,1)—
(-1,1);” to draw an input. Is there a default unit to say like that?
I can see “unit = 4” only in the whole module. By changing the unit, the
size of font is changed. Since I am just an user, I cannot find a way of
locating the position.
Is there a way to calculate the real position of inputs and outputs?
Each symbol has a height of 1/2 fontsize and a width of 1 fontsize.
When you a single coneection (e.g. not gate) the vertical location is at
1/4 fontsize, when you have two connections (e.g. and gate) the lower
one is at 1/8 fontsize and the upper is at 3/8 fontsize.
Be aware the vertical positions change when you include the symbol in
metapost because the symbol is centered and the connections move down.
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] /
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________