Dear Wolfgang,

Thank you for your code.

I copied  and run it. And, I got an “undefined control sequence”, 
I commented out 
 %\useMPlibrary[logicsymbols]

And replace it by 

\usemodule[meta-imp-logicsymbols.mkxl] .

Then it draw a nice picture.

I’ll try more.

Thanks again.

Best regards,

Dalyoung




> Am 01.02.2026 um 15:33 schrieb Jeong Dal via ntg-context:
>> Dear Wolfgang,
>> Thank you for your clear explanation.
>> It will help me to figure out how to locate the connecting points.
>> It may not be easy for me, but I’ll try.
> 
> \useMPlibrary[logicsymbols]
> 
> \startMPpage[offset=.25ex]
> 
> u := BodyFontSize ;
> 
> drawoptions(withpen pencircle scaled 1) ;
> 
> draw (0, .25u) -- (u, .25u) withcolor "red" ;
> draw (0,-.25u) -- (u,-.25u) withcolor "green" ;
> 
> draw textext("\lNAND") xysized (2u,u) shifted (2u,0) withcolor "orange" ;
> 
> draw (3u,0) -- (4u,0) withcolor "blue" ;
> 
> \stopMPpage
> 
>> In that case, I may try another way.
>> Drawing logic gates by borrowing the  Hans’ code and using them as pictures 
>> not fonts in the MetaFun.
>> I am not sure that it is a better way.
> 
> This seems to be the better way to include the gates in the graphic.
> 
> 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
> ___________________________________________________________________________________

___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to