* Mathematical MetaFun Mania @ 2022-12-15 3:20 Gavin via ntg-context 2022-12-15 10:36 ` Hans Hagen via ntg-context 0 siblings, 1 reply; 12+ messages in thread From: Gavin via ntg-context @ 2022-12-15 3:20 UTC (permalink / raw) To: mailing list for ConTeXt users; +Cc: Gavin [-- Attachment #1: Type: text/plain, Size: 2764 bytes --] Hello MetaFun Math Lovers, I am using MetaFun to attach diagrams to formulas. Both the physics and the typesetting are going great! I attached a sample below, to give a taste of what I am trying to do. This page of actual calculations has examples of almost everything I need. It’s a lot, but it is all working. Right now the interface is terrible, but effective. Thanks to Hans and Mikael for many helpful hints! I am still using \hpos and \setMPpositiongraphic, because I haven't figured out how to pass information from \mathboxanchored and \connectboxanchors to my MetaPost code. Here is the code for the connectors: \startMPpositiongraphic{mypos:contract} path pa, pb, pab ; numeric na, nb ; string ta, tb, hand, product ; ta := mpvars("from") ; tb := mpvars("to") ; stemshiftfrom := (EmWidth/8)*mpvarn("startstem") ; stemshiftto := (EmWidth/8)*mpvarn("stopstem") ; hand := mpvars("hand") ; product := mpvars("product") ; delta := mpvard("distance") ; na := positionpage(ta) ; % page number of a nb := positionpage(tb) ; % page number of b pa := positionbox(ta) ; % box of a pb := positionbox(tb) ; % box of b if hand = "right" : z1 = 0.5[llcorner pa,lrcorner pa] shifted (stemshiftfrom, -ExHeight/4) ; z2 = 0.5[llcorner pb,lrcorner pb] shifted (stemshiftto, -ExHeight/4) ; y3 = min(y1,y2) - ExHeight/2 -delta; else : z1 = 0.5[ulcorner pa,urcorner pa] shifted (stemshiftfrom, ExHeight/4) ; z2 = 0.5[ulcorner pb,urcorner pb] shifted (stemshiftto, ExHeight/4) ; y3 = max(y1,y2) + ExHeight/2 +delta; fi ; if na = nb : % Check that positions are on the same page pickup pencircle scaled 0.6pt ; if product = "sym" : draw z1 -- (x1,y3+ExHeight/2) ; draw z2 -- (x2,y3+ExHeight/2) ; pickup pencircle scaled 1.2pt ; draw (x1-EmWidth/8,y3) -- (x2+EmWidth/8,y3) ; else : pab := z1 -- (x1,y3) -- (x2,y3) -- z2{down} ; draw pab ; fi ; positioninregion ; fi ; \stopMPpositiongraphic A connector command might look something like this: \setMPpositiongraphic{X-1}{mypos:contract}{to=X-2,product=sym,startstem=-2,stopstem=2,distance=0.5ex} All of the key=value pairs in the last argument of \setMPpositiongraphic pop right up in my MetaPost code with mpvar(“key”). I haven’t been able to follow this with \mathboxanchored and \connectboxanchors. My two questions are: 1) Can I use \setMPpositiongraphic with \mathboxanchored? That would allow me to go straight to my MetaPost code without the \connectboxanchors interface 2) Can I tell \connectboxanchors to use my MetaPost code and pass key=value pairs like I do with \setMPpositiongraphic? Thanks for any hints! Gavin [-- Attachment #2: hposQuestion.pdf --] [-- Type: application/pdf, Size: 23616 bytes --] [-- Attachment #3: Type: text/plain, Size: 1 bytes --] [-- Attachment #4: Type: text/plain, Size: 496 bytes --] ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Mathematical MetaFun Mania 2022-12-15 3:20 Mathematical MetaFun Mania Gavin via ntg-context @ 2022-12-15 10:36 ` Hans Hagen via ntg-context 2022-12-15 16:15 ` Gavin via ntg-context 0 siblings, 1 reply; 12+ messages in thread From: Hans Hagen via ntg-context @ 2022-12-15 10:36 UTC (permalink / raw) To: Gavin via ntg-context; +Cc: Hans Hagen [-- Attachment #1: Type: text/plain, Size: 3260 bytes --] On 12/15/2022 4:20 AM, Gavin via ntg-context wrote: > Hello MetaFun Math Lovers, > > I am using MetaFun to attach diagrams to formulas. Both the physics and the typesetting are going great! I attached a sample below, to give a taste of what I am trying to do. This page of actual calculations has examples of almost everything I need. It’s a lot, but it is all working. Right now the interface is terrible, but effective. Thanks to Hans and Mikael for many helpful hints! > > I am still using \hpos and \setMPpositiongraphic, because I haven't figured out how to pass information from \mathboxanchored and \connectboxanchors to my MetaPost code. Here is the code for the connectors: > > \startMPpositiongraphic{mypos:contract} > path pa, pb, pab ; numeric na, nb ; string ta, tb, hand, product ; > ta := mpvars("from") ; > tb := mpvars("to") ; > stemshiftfrom := (EmWidth/8)*mpvarn("startstem") ; > stemshiftto := (EmWidth/8)*mpvarn("stopstem") ; > hand := mpvars("hand") ; > product := mpvars("product") ; > delta := mpvard("distance") ; > na := positionpage(ta) ; % page number of a > nb := positionpage(tb) ; % page number of b > pa := positionbox(ta) ; % box of a > pb := positionbox(tb) ; % box of b > if hand = "right" : > z1 = 0.5[llcorner pa,lrcorner pa] shifted (stemshiftfrom, -ExHeight/4) ; > z2 = 0.5[llcorner pb,lrcorner pb] shifted (stemshiftto, -ExHeight/4) ; > y3 = min(y1,y2) - ExHeight/2 -delta; > else : > z1 = 0.5[ulcorner pa,urcorner pa] shifted (stemshiftfrom, ExHeight/4) ; > z2 = 0.5[ulcorner pb,urcorner pb] shifted (stemshiftto, ExHeight/4) ; > y3 = max(y1,y2) + ExHeight/2 +delta; > fi ; > if na = nb : % Check that positions are on the same page > pickup pencircle scaled 0.6pt ; > if product = "sym" : > draw z1 -- (x1,y3+ExHeight/2) ; > draw z2 -- (x2,y3+ExHeight/2) ; > pickup pencircle scaled 1.2pt ; > draw (x1-EmWidth/8,y3) -- (x2+EmWidth/8,y3) ; > else : > pab := z1 -- (x1,y3) -- (x2,y3) -- z2{down} ; > draw pab ; > fi ; > positioninregion ; > fi ; > \stopMPpositiongraphic > > A connector command might look something like this: > > \setMPpositiongraphic{X-1}{mypos:contract}{to=X-2,product=sym,startstem=-2,stopstem=2,distance=0.5ex} > > All of the key=value pairs in the last argument of \setMPpositiongraphic pop right up in my MetaPost code with mpvar(“key”). I haven’t been able to follow this with \mathboxanchored and \connectboxanchors. My two questions are: > > 1) Can I use \setMPpositiongraphic with \mathboxanchored? That would allow me to go straight to my MetaPost code without the \connectboxanchors interface > > 2) Can I tell \connectboxanchors to use my MetaPost code and pass key=value pairs like I do with \setMPpositiongraphic? see attached ... the 'cross pages' feature is in the upcoming ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl ----------------------------------------------------------------- [-- Attachment #2: anchors-002.tex --] [-- Type: text/plain, Size: 3017 bytes --] \continuewhenlmtxmode \usemodule[article-basic] \starttext \startboxanchoring[+] \connectboxanchors[top] [top] [distance=1ex,arrow=no] {c1}{c2} \connectboxanchors[bottom] [bottom] [distance=1ex,arrow=no] {c2}{c3} \startformula \mathboxanchored[nucleus]{c1}{e}_{\alpha} \mathboxanchored[nucleus]{c2}{e}^{\mu} \mathboxanchored[nucleus]{c3}{e}_{\dot{\beta}} = \frac{1}{\sqrt{2}} \sigma_{\alpha,\dot{\beta}}^{\mu} \stopformula \stopboxanchoring \startboxanchoring[+] \connectboxanchors[top] [top] [distance=1ex,arrow=no] {c1}{c2} \connectboxanchors[bottom] [bottom] [distance=1ex,arrow=no] {c2}{c3} \startformula \mathboxanchored[nucleus]{c1}{e}_{\alpha} \mathboxanchored[nucleus]{c2}{e}^{\mu} \mathboxanchored[nucleus]{c3}{e}_{\dot{\beta}} = \frac{1}{\sqrt{2}} \sigma_{\alpha,\dot{\beta}}^{\mu} \stopformula \stopboxanchoring \startboxanchoring[+] \connectboxanchors[top] [top] [distance=1ex,arrow=yes,page=yes] {c1}{c2} \connectboxanchors[bottom] [bottom] [distance=1ex,arrow=yes,page=yes] {c2}{c3} \startformula \mathboxanchored[nucleus]{c1}{e}_{\alpha} \mathboxanchored[nucleus]{c2}{e}^{\mu} e _{\dot{\beta}} = \frac{1}{\sqrt{2}} \sigma_{\alpha,\dot{\beta}}^{\mu} \stopformula \page \startformula e _{\alpha} e ^{\mu} \mathboxanchored[nucleus]{c3}{e}_{\dot{\beta}} = \frac{1}{\sqrt{2}} \sigma_{\alpha,\dot{\beta}}^{\mu} \stopformula \stopboxanchoring \startMPpositiongraphic{mypos:boxanchor:top} begingroup ; save f, t, p ; pair f, t ; path p ; f := positionxy(mpvars("from")) ; t := positionxy(mpvars("to")) ; p := f { up } .. t ; drawarrow p withpen pencircle scaled mpvard "rulethickness" withcolor mpvars "linecolor" ; % historically different names positioninregion ; endgroup ; \stopMPpositiongraphic \startMPpositiongraphic{mypos:boxanchor:bottom} begingroup ; save f, t, p ; pair f, t ; path p ; f := positionxy(mpvars("from")) ; t := positionxy(mpvars("to")) ; p := f { down } .. t ; drawarrow p withpen pencircle scaled mpvard "rulethickness" withcolor mpvars "linecolor" ; % historically different names positioninregion ; endgroup ; \stopMPpositiongraphic \startboxanchoring[+] \connectboxanchors[top] [top] [distance=1ex,rulethickness=1pt,rulecolor=darkgreen,mp=mypos:boxanchor:top] {c1}{c2} \connectboxanchors[bottom] [bottom] [distance=1ex,rulethickness=1pt,rulecolor=darkred, mp=mypos:boxanchor:bottom] {c2}{c3} \startformula \mathboxanchored[nucleus]{c1}{e}_{\alpha} \mathboxanchored[nucleus]{c2}{e}^{\mu} \mathboxanchored[nucleus]{c3}{e}_{\dot{\beta}} = \frac{1}{\sqrt{2}} \sigma_{\alpha,\dot{\beta}}^{\mu} \stopformula \stopboxanchoring \stoptext [-- Attachment #3: anchors-002.pdf --] [-- Type: application/pdf, Size: 10666 bytes --] [-- Attachment #4: Type: text/plain, Size: 496 bytes --] ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Mathematical MetaFun Mania 2022-12-15 10:36 ` Hans Hagen via ntg-context @ 2022-12-15 16:15 ` Gavin via ntg-context 2022-12-15 17:21 ` Hans Hagen via ntg-context 0 siblings, 1 reply; 12+ messages in thread From: Gavin via ntg-context @ 2022-12-15 16:15 UTC (permalink / raw) To: mailing list for ConTeXt users; +Cc: Gavin [-- Attachment #1: Type: text/plain, Size: 952 bytes --] Hi Hans and List, >> 2) Can I tell \connectboxanchors to use my MetaPost code and pass key=value pairs like I do with \setMPpositiongraphic? > see attached ... the 'cross pages' feature is in the upcoming This indeed passes key=value pairs, but I cannot get it to pass mine. Is there some intermediate step? Your example has a key=value pair in \connectboxanchors and which is accessed in the MetaPost code. The pair, and MetaPost code are: rulethickness=1pt mpvard “rulethickness" However, if I change the pair and MPcode to (see attached example for full code) myrulethickness=1pt mpvard “myrulethickness" it doesn’t work. Similarly, you have a pair and MPcode that don’t match. rulecolor=darkgreen mpvars "linecolor" This may be a historical fluke, but it suggests that there is some intermediate translation that I am missing. Any way I can name and pass by own key=value pairs? Thanks! Gavin [-- Attachment #2: mpvarQuestion.tex --] [-- Type: application/octet-stream, Size: 1522 bytes --] % !TEX useAlternatePath % !TEX useConTeXtSyncParser \continuewhenlmtxmode \usemodule[article-basic] \starttext \startMPpositiongraphic{mypos:boxanchor:top} begingroup ; save f, t, p ; pair f, t ; path p ; f := positionxy(mpvars("from")) ; t := positionxy(mpvars("to")) ; p := f { up } .. t ; drawarrow p withpen pencircle scaled mpvard "rulethickness" withcolor mpvars "linecolor" ; % historically different names positioninregion ; endgroup ; \stopMPpositiongraphic \startMPpositiongraphic{mypos:boxanchor:bottom} begingroup ; save f, t, p ; pair f, t ; path p ; f := positionxy(mpvars("from")) ; t := positionxy(mpvars("to")) ; p := f { down } .. t ; drawarrow p withpen pencircle scaled mpvard "myrulethickness" withcolor mpvars "linecolor" ; % historically different names positioninregion ; endgroup ; \stopMPpositiongraphic \startboxanchoring[+] \connectboxanchors[top] [top] [distance=1ex,rulethickness=1pt,rulecolor=darkgreen,mp=mypos:boxanchor:top] {c1}{c2} \connectboxanchors[bottom] [bottom] [distance=1ex,myrulethickness=1pt,rulecolor=darkred, mp=mypos:boxanchor:bottom] {c2}{c3} \startformula \mathboxanchored[nucleus]{c1}{e}_{\alpha} \mathboxanchored[nucleus]{c2}{e}^{\mu} \mathboxanchored[nucleus]{c3}{e}_{\dot{\beta}} = \frac{1}{\sqrt{2}} \sigma_{\alpha\dot{\beta}}^{\mu} \stopformula \stopboxanchoring \stoptext [-- Attachment #3: Type: text/plain, Size: 496 bytes --] ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Mathematical MetaFun Mania 2022-12-15 16:15 ` Gavin via ntg-context @ 2022-12-15 17:21 ` Hans Hagen via ntg-context 2022-12-15 21:54 ` Otared Kavian via ntg-context 0 siblings, 1 reply; 12+ messages in thread From: Hans Hagen via ntg-context @ 2022-12-15 17:21 UTC (permalink / raw) To: Gavin, mailing list for ConTeXt users; +Cc: Hans Hagen On 12/15/2022 5:15 PM, Gavin wrote: > Hi Hans and List, > >>> 2) Can I tell \connectboxanchors to use my MetaPost code and pass key=value pairs like I do with \setMPpositiongraphic? >> see attached ... the 'cross pages' feature is in the upcoming > > This indeed passes key=value pairs, but I cannot get it to pass mine. Is there some intermediate step? Your example has a key=value pair in \connectboxanchors and which is accessed in the MetaPost code. The pair, and MetaPost code are: > > rulethickness=1pt > mpvard “rulethickness" > > However, if I change the pair and MPcode to (see attached example for full code) > > myrulethickness=1pt > mpvard “myrulethickness" > > it doesn’t work. Similarly, you have a pair and MPcode that don’t match. > > rulecolor=darkgreen > mpvars "linecolor" > > This may be a historical fluke, but it suggests that there is some intermediate translation that I am missing. Any way I can name and pass by own key=value pairs? I updated lmtx so you can test it again. Hans ps. For the adventurous some bonus experiment in the engine: \def\ccc#1#2#3#4#5#6#7#8#9#A#B#C#D#E#F% {\def\ddd{#A-#D-#E/#F-#4-#1}% #A-#D-#E/#F-#4-#1+\ddd} so, upto 15 arguments: [[\ccc123456789abcdef]] (not that we need it in the context core, so more a gimmick for users and it fits the much is already hex approach) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Mathematical MetaFun Mania 2022-12-15 17:21 ` Hans Hagen via ntg-context @ 2022-12-15 21:54 ` Otared Kavian via ntg-context 2022-12-16 16:42 ` Hans Hagen via ntg-context 2022-12-16 16:55 ` Hans Hagen via ntg-context 0 siblings, 2 replies; 12+ messages in thread From: Otared Kavian via ntg-context @ 2022-12-15 21:54 UTC (permalink / raw) To: mailing list for ConTeXt users; +Cc: Otared Kavian Hi Hans, Thanks for the new release and the nice anchoring features. I played a little bit with these, and noticed some issues: in the following example, linking the bottom bounds of the integral signs is fine (as long as numbers are put there), but for the upper bounds, the \infty and \pi/2 are not accepted (nor is any letter or greek symbol), but if one replaces \infty and \pi/2 with numbers, then the link between the upper bounds is shown. (In this example the links are invading the text, but probably this is due to the fact that I just copied the Metapost snippet you sent to Gavin). Best regards: Otared % begin anchoring-integrals.tex \starttext \startMPpositiongraphic{mypos:boxanchor:top} begingroup ; save f, t, p ; pair f, t ; path p ; f := positionxy(mpvars("from")) ; t := positionxy(mpvars("to")) ; p := f { up } .. t ; drawarrow p withpen pencircle scaled mpvard "rulethickness" withcolor mpvars "linecolor" ; % historically different names positioninregion ; endgroup ; \stopMPpositiongraphic \startMPpositiongraphic{mypos:boxanchor:bottom} begingroup ; save f, t, p ; pair f, t ; path p ; f := positionxy(mpvars("from")) ; t := positionxy(mpvars("to")) ; p := f { down } .. t ; drawarrow p withpen pencircle scaled mpvard "myrulethickness" withcolor mpvars "linecolor" ; % historically different names positioninregion ; endgroup ; \stopMPpositiongraphic \input thuan.tex \startboxanchoring[+] \connectboxanchors[top][top] [distance=1ex, rulethickness=1pt, rulecolor=darkgreen, mp=mypos:boxanchor:top]{b1}{b3} \connectboxanchors[bottom][bottom] [distance=1ex, myrulethickness=1pt, rulecolor=darkred, mp=mypos:boxanchor:bottom]{b2}{b4} \startformula \int_{\mathboxanchored[nucleus]{b2}0}^{\mathboxanchored[nucleus]{b1}\infty} \frac{\dd x}{1 + x^2} = \int_{\mathboxanchored[nucleus]{b4}0}^{\mathboxanchored[nucleus]{b3}\pi/2}(1 + \tan(\theta)^2)\frac{\dd \theta}{1 + \tan(\theta)^2} = \frac{\pi}{2} \stopformula \input thuan.tex \stopboxanchoring \stoptext % end anchoring-integrals > On 15 Dec 2022, at 18:21, Hans Hagen via ntg-context <ntg-context@ntg.nl> wrote: > > On 12/15/2022 5:15 PM, Gavin wrote: >> Hi Hans and List, >>>> 2) Can I tell \connectboxanchors to use my MetaPost code and pass key=value pairs like I do with \setMPpositiongraphic? >>> see attached ... the 'cross pages' feature is in the upcoming >> This indeed passes key=value pairs, but I cannot get it to pass mine. Is there some intermediate step? Your example has a key=value pair in \connectboxanchors and which is accessed in the MetaPost code. The pair, and MetaPost code are: >> rulethickness=1pt >> mpvard “rulethickness" >> However, if I change the pair and MPcode to (see attached example for full code) >> myrulethickness=1pt >> mpvard “myrulethickness" >> it doesn’t work. Similarly, you have a pair and MPcode that don’t match. >> rulecolor=darkgreen >> mpvars "linecolor" >> This may be a historical fluke, but it suggests that there is some intermediate translation that I am missing. Any way I can name and pass by own key=value pairs? > I updated lmtx so you can test it again. > > Hans > > ps. For the adventurous some bonus experiment in the engine: > > \def\ccc#1#2#3#4#5#6#7#8#9#A#B#C#D#E#F% > {\def\ddd{#A-#D-#E/#F-#4-#1}% > #A-#D-#E/#F-#4-#1+\ddd} > > so, upto 15 arguments: > > [[\ccc123456789abcdef]] > > (not that we need it in the context core, so more a gimmick for users and it fits the much is already hex approach) > > Hans > > ----------------------------------------------------------------- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl > ----------------------------------------------------------------- > > ___________________________________________________________________________________ > If your question is of interest to others as well, please add an entry to the Wiki! > > maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > ___________________________________________________________________________________ Otared Kavian e-mail: otared@gmail.com Phone: +33 6 88 26 70 95 ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Mathematical MetaFun Mania 2022-12-15 21:54 ` Otared Kavian via ntg-context @ 2022-12-16 16:42 ` Hans Hagen via ntg-context 2022-12-16 16:55 ` Hans Hagen via ntg-context 1 sibling, 0 replies; 12+ messages in thread From: Hans Hagen via ntg-context @ 2022-12-16 16:42 UTC (permalink / raw) To: Otared Kavian via ntg-context; +Cc: Hans Hagen On 12/15/2022 10:54 PM, Otared Kavian via ntg-context wrote: > Hi Hans, > > Thanks for the new release and the nice anchoring features. > > I played a little bit with these, and noticed some issues: in the following example, linking the bottom bounds of the integral signs is fine (as long as numbers are put there), but for the upper bounds, the \infty and \pi/2 are not accepted (nor is any letter or greek symbol), but if one replaces \infty and \pi/2 with numbers, then the link between the upper bounds is shown. (In this example the links are invading the text, but probably this is due to the fact that I just copied the Metapost snippet you sent to Gavin). temp solution: \setmathoptions\mathordinarycode\numexpr \noitaliccorrectionclassoptioncode +\checkkernpairclassoptioncode % +\flattenclassoptioncode \relax something MS and i need to discuss probably (read: if this old school tex math feature is still needed in context) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Mathematical MetaFun Mania 2022-12-15 21:54 ` Otared Kavian via ntg-context 2022-12-16 16:42 ` Hans Hagen via ntg-context @ 2022-12-16 16:55 ` Hans Hagen via ntg-context 2022-12-18 11:03 ` Alexandre Christe via ntg-context 1 sibling, 1 reply; 12+ messages in thread From: Hans Hagen via ntg-context @ 2022-12-16 16:55 UTC (permalink / raw) To: Otared Kavian via ntg-context; +Cc: Hans Hagen On 12/15/2022 10:54 PM, Otared Kavian via ntg-context wrote: > Hi Hans, > > Thanks for the new release and the nice anchoring features. > > I played a little bit with these, and noticed some issues: in the following example, linking the bottom bounds of the integral signs is fine (as long as numbers are put there), but for the upper bounds, the \infty and \pi/2 are not accepted (nor is any letter or greek symbol), but if one replaces \infty and \pi/2 with numbers, then the link between the upper bounds is shown. (In this example the links are invading the text, but probably this is due to the fact that I just copied the Metapost snippet you sent to Gavin). you can pick up a binary with a safeguard from https://build.contextgarden.net/#/waterfall?tags=c.luametatex (or compile one yourself from work) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Mathematical MetaFun Mania 2022-12-16 16:55 ` Hans Hagen via ntg-context @ 2022-12-18 11:03 ` Alexandre Christe via ntg-context 2022-12-21 14:05 ` Gavin via ntg-context 0 siblings, 1 reply; 12+ messages in thread From: Alexandre Christe via ntg-context @ 2022-12-18 11:03 UTC (permalink / raw) To: mailing list for ConTeXt users; +Cc: Alexandre Christe [-- Attachment #1.1: Type: text/plain, Size: 2031 bytes --] Hi Hans, On osx-64 I'm not getting a single connector printed when compiling anchor-002.tex. I've attached the log in case. Am I doing something wrong on my end? Le ven. 16 déc. 2022 à 17:56, Hans Hagen via ntg-context <ntg-context@ntg.nl> a écrit : > On 12/15/2022 10:54 PM, Otared Kavian via ntg-context wrote: > > Hi Hans, > > > > Thanks for the new release and the nice anchoring features. > > > > I played a little bit with these, and noticed some issues: in the > following example, linking the bottom bounds of the integral signs is fine > (as long as numbers are put there), but for the upper bounds, the \infty > and \pi/2 are not accepted (nor is any letter or greek symbol), but if one > replaces \infty and \pi/2 with numbers, then the link between the upper > bounds is shown. (In this example the links are invading the text, but > probably this is due to the fact that I just copied the Metapost snippet > you sent to Gavin). > you can pick up a binary with a safeguard from > > https://build.contextgarden.net/#/waterfall?tags=c.luametatex > > (or compile one yourself from work) > > Hans > > > ----------------------------------------------------------------- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl > ----------------------------------------------------------------- > > > ___________________________________________________________________________________ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > > ___________________________________________________________________________________ > [-- Attachment #1.2: Type: text/html, Size: 3182 bytes --] [-- Attachment #2: anchor.log --] [-- Type: application/octet-stream, Size: 22976 bytes --] system > system > ConTeXt ver: 2022.12.15 18:12 LMTX fmt: 2022.12.18 int: english/english system > system > 'cont-new.mkxl' loaded open source > level 1, order 1, name '/Users/aleks/context-osx-64/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl' system > beware: some patches loaded from cont-new.mkiv close source > level 1, order 1, name '/Users/aleks/context-osx-64/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl' system > files > jobname '/Users/aleks/Desktop/Test Context/anchor', input '/Users/aleks/Desktop/Test Context/anchor.tex', result '/Users/aleks/Desktop/Test Context/anchor' fonts > latin modern fonts are not preloaded languages > language 'en' is active open source > level 1, order 2, name '/Users/aleks/Desktop/Test Context/anchor.tex' modules > 'article-basic' is loaded open source > level 2, order 3, name '/Users/aleks/context-osx-64/tex/texmf-context/tex/context/modules/mkiv/s-article-basic.mkiv' open source > level 3, order 4, name '/Users/aleks/context-osx-64/tex/texmf-context/tex/context/fonts/mkiv/type-imp-dejavu.mkiv' close source > level 3, order 4, name '/Users/aleks/context-osx-64/tex/texmf-context/tex/context/fonts/mkiv/type-imp-dejavu.mkiv' close source > level 2, order 4, name '/Users/aleks/context-osx-64/tex/texmf-context/tex/context/modules/mkiv/s-article-basic.mkiv' metapost > initializing instance 'metafun:1' using format 'metafun' and method 'double' metapost > loading 'metafun' as '/Users/aleks/context-osx-64/tex/texmf-context/metapost/context/base/mpxl/metafun.mpxl' using method 'double' metapost > initializing number mode 'double' metapost > trace > This is MPLIB for LuaMetaTeX, version 3.14, running in double mode. metapost > trace > metapost > trace > loading metafun for lmtx, including the plain 1.004 base definitions metapost > trace > metafun > log > metafun > log > error: Not implemented: length(unknown path) metafun > log > metapost > trace > <error> unknown path p metapost > trace > <to be read again> of metapost > trace > <macro> arrowpath -> <expr> -> begingroup((EXPR2)cutafter.makepath(pencircle.scaled(if.ahvariant>0:(1-ahdimple)*fi2ahlength*cosd(ahangle/2))shifted.point.length(EXPR2)of(EXPR2)))endgroup metapost > trace > <to be read again> withpen metapost > trace > <argument> withpen pencircle scaled mpvard ( "rulethickness" ) withcolor mpvars ( "linecolor" ) metapost > trace > <macro> mfun_draw_arrow_path -> <text> -> if.autoarrows:set_ahlength((TEXT0));fi.draw.arrowpath.mfun_arrow_path(TEXT0);fillup.arrowhead.mfun_arrow_path(TEXT0);endgroup; metapost > trace > <to be read again> ; metapost > trace > <macro> anch_box_arrows_draw -> -> begingroup;save.f,t,p,alternative,delta,dashtype,edge,arrow,ff,tt,spanpages,spanfirst,spanlast,skip;pair.f,t,ff,tt;path.p;string.alternative,arrow;boolean.spanpages,spanfirst,spanlast,skip;dashtype:=mpvarn("dashtype");delta:=mpvard("distance");alternative:=mpvars("alternative");arrow:=mpvars("arrow");spanpages:=false;spanfirst:=true;spanlast:=true;skip:=false;if.positionx(mpvars("rightedge"))>0:if.alternative="left":edge:=positionx(mpvars("leftedge"));f:=(edge,positiony(mpvars("from")));t:=(edge,positiony(mpvars("to")));p:=(f--(f.xshifted-delta)--(t.xshifted-delta)--t);draw.thetextext.lft(mpvars("text"),(point0.5along.p)xshifted-ExHeight);elseif.alternative="right":edge:=positionx(mpvars("rightedge"));f:=(edge,positiony(mpvars("from")));t:=(edge,positiony(mpvars("to")));p:=(f--(f.xshifted.delta)--(t.xshifted.delta)--t);draw.thetextext.rt(mpvars("text"),(point0.5along.p)xshifted.ExHeight);elseif.alternative="middle":p:=f--t;draw.thetextext.rt(mpvars("text"),(point0.5along.p)xshifted.ExHeight);fi;else:f:=positionxy(mpvars("from"));t:=positionxy(mpvars("to"));spanpages:=getpospage(mpvars("to"))>getpospage(mpvars("from"));if.spanpages:if.getpospage(mpvars("from"))=RealPageNumber:t:=(getposwidth(getposregion(mpvars("from"))),ypart.f);spanlast:=false;elseif.getpospage(mpvars("to"))=RealPageNumber:f:=(getposx(getposregion(mpvars("to"))),ypart.t);spanfirst:=false;fi;fi.skip:=(not.spanpages)and((mpvars("span"))="yes");if.skip:elseif.alternative="bottom":ff:=(xpart.f,min(ypart.f,ypart.t));tt:=(xpart.t,ypart.ff);p:=(if.spanfirst:f--fi(ff.yshifted-delta)--(tt.yshifted-delta)if.spanlast:--t.fi);draw.thetextext.bot(mpvars("text"),(point0.5along.p)yshifted-0.25ExHeight);elseif.alternative="top":ff:=(xpart.f,max(ypart.f,ypart.t));tt:=(xpart.t,ypart.ff);p:=(if.spanfirst:f--fi(ff.yshifted.delta)--(tt.yshifted.delta)if.spanlast:--t.fi);draw.thetextext.top(mpvars("text"),(point0.5along.p)yshifted0.25ExHeight);elseif.alternative="left":ff:=(min(xpart.f,xpart.t),ypart.f);tt:=(xpart.ff,ypart.t);p:=(f--(ff.xshifted-delta)--(tt.xshifted-delta)--t);draw.thetextext.lft(mpvars("text"),(point0.5along.p)xshifted-ExHeight);elseif.alternative="right":ff:=(max(xpart.f,xpart.t),ypart.f);tt:=(xpart.ff,ypart.t);p:=(f--(ff.xshifted.delta)--(tt.xshifted.delta)--t);draw.thetextext.rt(mpvars("text"),(point0.5along.p)xshifted.ExHeight);elseif.alternative="middle":p:=f--t;draw.thetextext.rt(mpvars("text"),(point0.5along.p)xshifted.ExHeight);fi;fi;if.not.skip:if.arrow="no":draw.elseif.arrow=="reverse":drawarrow.reverse.elseif.arrow=="both":drawdblarrow.else:drawarrow.fi.p.if.dashtype==1:withdashes0.5ExHeight.fi.withpen.pencircle.scaled.mpvard("rulethickness")withcolor.mpvars("linecolor");positioninregion;fi;endgroup; metafun > log > metafun > log > I'm afraid I don't know how to apply that operation to that particular type. Continue, and I'll simply return the argument (shown above) as the result of the operation. metafun > log > metapost > trace > <direct> anch_box_arrows_draw ; ; metapost > trace > backend > xmp > using file '/Users/aleks/context-osx-64/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml' pages > flushing realpage 1, userpage 1, subpage 1 close source > level 1, order 4, name '/Users/aleks/Desktop/Test Context/anchor.tex' system > start used files system > text: anchor system > stop used files system > start used files system > 1: filename=publ-imp-default.lua filetype=scripts foundname=/Users/aleks/context-osx-64/tex/texmf-context/tex/context/base/mkiv/publ-imp-default.lua fullname=/Users/aleks/context-osx-64/tex/texmf-context/tex/context/base/mkiv/publ-imp-default.lua usedmethod=database system > 2: filename=cont-new.mkxl filetype=tex foundname=/Users/aleks/context-osx-64/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl fullname=/Users/aleks/context-osx-64/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl usedmethod=database system > 3: filename=lang-exc.lua filetype=scripts foundname=/Users/aleks/context-osx-64/tex/texmf-context/tex/context/base/mkiv/lang-exc.lua fullname=/Users/aleks/context-osx-64/tex/texmf-context/tex/context/base/mkiv/lang-exc.lua usedmethod=database system > 4: filename=lang-us.lua filetype=scripts foundname=/Users/aleks/context-osx-64/tex/texmf-context/tex/context/patterns/mkiv/lang-us.lua fullname=/Users/aleks/context-osx-64/tex/texmf-context/tex/context/patterns/mkiv/lang-us.lua usedmethod=database system > 5: filename=/Users/aleks/Desktop/Test Context/anchor.tex format=tex foundname=/Users/aleks/Desktop/Test Context/anchor.tex fullname=/Users/aleks/Desktop/Test Context/anchor.tex usedmethod=direct system > 6: filename=s-article-basic.mkiv filetype=tex foundname=/Users/aleks/context-osx-64/tex/texmf-context/tex/context/modules/mkiv/s-article-basic.mkiv fullname=/Users/aleks/context-osx-64/tex/texmf-context/tex/context/modules/mkiv/s-article-basic.mkiv usedmethod=database system > 7: filename=type-imp-dejavu.mkiv filetype=tex foundname=/Users/aleks/context-osx-64/tex/texmf-context/tex/context/fonts/mkiv/type-imp-dejavu.mkiv fullname=/Users/aleks/context-osx-64/tex/texmf-context/tex/context/fonts/mkiv/type-imp-dejavu.mkiv usedmethod=database system > 8: filename=dejavu-math.lfg filetype=tex foundname=/Users/aleks/context-osx-64/tex/texmf-context/tex/context/fonts/mkiv/dejavu-math.lfg fullname=/Users/aleks/context-osx-64/tex/texmf-context/tex/context/fonts/mkiv/dejavu-math.lfg usedmethod=database system > 9: filename=common-math.lfg filetype=tex foundname=/Users/aleks/context-osx-64/tex/texmf-context/tex/context/fonts/mkiv/common-math.lfg fullname=/Users/aleks/context-osx-64/tex/texmf-context/tex/context/fonts/mkiv/common-math.lfg usedmethod=database system > 10: filename=DejaVuSerif.ttf filetype=ttf format=ttf foundname=/Users/aleks/context-osx-64/tex/texmf/fonts/data/public/dejavu/DejaVuSerif.ttf fullname=/Users/aleks/context-osx-64/tex/texmf/fonts/data/public/dejavu/DejaVuSerif.ttf usedmethod=database system > 11: filename=texgyredejavu-math filetype=otf format=otf foundname=/Users/aleks/context-osx-64/tex/texmf/fonts/data/gust/tex-gyre/dejavu/texgyredejavu-math.otf fullname=/Users/aleks/context-osx-64/tex/texmf/fonts/data/gust/tex-gyre/dejavu/texgyredejavu-math.otf usedmethod=database system > 12: filename=metafun.mpxl filetype=mp foundname=/Users/aleks/context-osx-64/tex/texmf-context/metapost/context/base/mpxl/metafun.mpxl fullname=/Users/aleks/context-osx-64/tex/texmf-context/metapost/context/base/mpxl/metafun.mpxl usedmethod=database system > 13: filename=mp-base.mpxl filetype=mp foundname=/Users/aleks/context-osx-64/tex/texmf-context/metapost/context/base/mpxl/mp-base.mpxl fullname=/Users/aleks/context-osx-64/tex/texmf-context/metapost/context/base/mpxl/mp-base.mpxl usedmethod=database system > 14: filename=mp-tool.mpxl filetype=mp foundname=/Users/aleks/context-osx-64/tex/texmf-context/metapost/context/base/mpxl/mp-tool.mpxl fullname=/Users/aleks/context-osx-64/tex/texmf-context/metapost/context/base/mpxl/mp-tool.mpxl usedmethod=database system > 15: filename=mp-luas.mpxl filetype=mp foundname=/Users/aleks/context-osx-64/tex/texmf-context/metapost/context/base/mpxl/mp-luas.mpxl fullname=/Users/aleks/context-osx-64/tex/texmf-context/metapost/context/base/mpxl/mp-luas.mpxl usedmethod=database system > 16: filename=mp-mlib.mpxl filetype=mp foundname=/Users/aleks/context-osx-64/tex/texmf-context/metapost/context/base/mpxl/mp-mlib.mpxl fullname=/Users/aleks/context-osx-64/tex/texmf-context/metapost/context/base/mpxl/mp-mlib.mpxl usedmethod=database system > 17: filename=mp-math.mpxl filetype=mp foundname=/Users/aleks/context-osx-64/tex/texmf-context/metapost/context/base/mpxl/mp-math.mpxl fullname=/Users/aleks/context-osx-64/tex/texmf-context/metapost/context/base/mpxl/mp-math.mpxl usedmethod=database system > 18: filename=mp-cont.mpxl filetype=mp foundname=/Users/aleks/context-osx-64/tex/texmf-context/metapost/context/base/mpxl/mp-cont.mpxl fullname=/Users/aleks/context-osx-64/tex/texmf-context/metapost/context/base/mpxl/mp-cont.mpxl usedmethod=database system > 19: filename=mp-page.mpxl filetype=mp foundname=/Users/aleks/context-osx-64/tex/texmf-context/metapost/context/base/mpxl/mp-page.mpxl fullname=/Users/aleks/context-osx-64/tex/texmf-context/metapost/context/base/mpxl/mp-page.mpxl usedmethod=database system > 20: filename=mp-butt.mpxl filetype=mp foundname=/Users/aleks/context-osx-64/tex/texmf-context/metapost/context/base/mpxl/mp-butt.mpxl fullname=/Users/aleks/context-osx-64/tex/texmf-context/metapost/context/base/mpxl/mp-butt.mpxl usedmethod=database system > 21: filename=mp-shap.mpxl filetype=mp foundname=/Users/aleks/context-osx-64/tex/texmf-context/metapost/context/base/mpxl/mp-shap.mpxl fullname=/Users/aleks/context-osx-64/tex/texmf-context/metapost/context/base/mpxl/mp-shap.mpxl usedmethod=database system > 22: filename=mp-grph.mpxl filetype=mp foundname=/Users/aleks/context-osx-64/tex/texmf-context/metapost/context/base/mpxl/mp-grph.mpxl fullname=/Users/aleks/context-osx-64/tex/texmf-context/metapost/context/base/mpxl/mp-grph.mpxl usedmethod=database system > 23: filename=mp-grid.mpxl filetype=mp foundname=/Users/aleks/context-osx-64/tex/texmf-context/metapost/context/base/mpxl/mp-grid.mpxl fullname=/Users/aleks/context-osx-64/tex/texmf-context/metapost/context/base/mpxl/mp-grid.mpxl usedmethod=database system > 24: filename=mp-form.mpxl filetype=mp foundname=/Users/aleks/context-osx-64/tex/texmf-context/metapost/context/base/mpxl/mp-form.mpxl fullname=/Users/aleks/context-osx-64/tex/texmf-context/metapost/context/base/mpxl/mp-form.mpxl usedmethod=database system > 25: filename=mp-figs.mpxl filetype=mp foundname=/Users/aleks/context-osx-64/tex/texmf-context/metapost/context/base/mpxl/mp-figs.mpxl fullname=/Users/aleks/context-osx-64/tex/texmf-context/metapost/context/base/mpxl/mp-figs.mpxl usedmethod=database system > 26: filename=mp-func.mpxl filetype=mp foundname=/Users/aleks/context-osx-64/tex/texmf-context/metapost/context/base/mpxl/mp-func.mpxl fullname=/Users/aleks/context-osx-64/tex/texmf-context/metapost/context/base/mpxl/mp-func.mpxl usedmethod=database system > 27: filename=mp-node.mpxl filetype=mp foundname=/Users/aleks/context-osx-64/tex/texmf-context/metapost/context/base/mpxl/mp-node.mpxl fullname=/Users/aleks/context-osx-64/tex/texmf-context/metapost/context/base/mpxl/mp-node.mpxl usedmethod=database system > 28: filename=mp-apos.mpxl filetype=mp foundname=/Users/aleks/context-osx-64/tex/texmf-context/metapost/context/base/mpxl/mp-apos.mpxl fullname=/Users/aleks/context-osx-64/tex/texmf-context/metapost/context/base/mpxl/mp-apos.mpxl usedmethod=database system > 29: filename=mp-abck.mpxl filetype=mp foundname=/Users/aleks/context-osx-64/tex/texmf-context/metapost/context/base/mpxl/mp-abck.mpxl fullname=/Users/aleks/context-osx-64/tex/texmf-context/metapost/context/base/mpxl/mp-abck.mpxl usedmethod=database system > 30: filename=mp-asnc.mpxl filetype=mp foundname=/Users/aleks/context-osx-64/tex/texmf-context/metapost/context/base/mpxl/mp-asnc.mpxl fullname=/Users/aleks/context-osx-64/tex/texmf-context/metapost/context/base/mpxl/mp-asnc.mpxl usedmethod=database system > 31: filename=mp-blob.mpxl filetype=mp foundname=/Users/aleks/context-osx-64/tex/texmf-context/metapost/context/base/mpxl/mp-blob.mpxl fullname=/Users/aleks/context-osx-64/tex/texmf-context/metapost/context/base/mpxl/mp-blob.mpxl usedmethod=database system > 32: filename=mp-lmtx.mpxl filetype=mp foundname=/Users/aleks/context-osx-64/tex/texmf-context/metapost/context/base/mpxl/mp-lmtx.mpxl fullname=/Users/aleks/context-osx-64/tex/texmf-context/metapost/context/base/mpxl/mp-lmtx.mpxl usedmethod=database system > 33: filename=mp-text.mpxl filetype=mp foundname=/Users/aleks/context-osx-64/tex/texmf-context/metapost/context/base/mpxl/mp-text.mpxl fullname=/Users/aleks/context-osx-64/tex/texmf-context/metapost/context/base/mpxl/mp-text.mpxl usedmethod=database system > 34: filename=lpdf-pdx.xml filetype=tex foundname=/Users/aleks/context-osx-64/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml fullname=/Users/aleks/context-osx-64/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml usedmethod=database system > stop used files system > start commandline options system > autopdf="true" system > currentrun="1" system > fulljobname="/Users/aleks/Desktop/Test Context/anchor.tex" system > input="/Users/aleks/Desktop/Test Context/anchor.tex" system > kindofrun="1" system > maxnofruns="9" system > texmfbinpath="/Users/aleks/context-osx-64/tex/texmf-osx-64/bin" system > stop commandline options system > start commandline files system > 1: /Users/aleks/Desktop/Test Context/anchor.tex system > stop commandline files modules > start used modules modules > loaded : *-article-basic modules > stop used modules system > system > status after finishing run system > system > ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- system > string pool hash lookup node token buffer input file nest parameter save font language mark insert system > ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- system > max 2097152 100000000 2097152 2097152 100000000 10000000 100000000 100000 2000 10000 100000 500000 100000 10000 10000 500 system > min 150000 10000000 150000 150000 2000000 1000000 1000000 10000 500 1000 20000 100000 250 250 50 10 system > set 500000 10000000 250000 250000 50000000 10000000 10000000 100000 2000 10000 100000 500000 100000 250 250 250 system > stp 100000 1000000 100000 100000 500000 250000 1000000 10000 250 1000 10000 10000 250 250 50 25 system > system > mem 150000 930651 150000 2000000 1000000 1000000 10000 500 1000 20000 10000 5997736 96 1200 320 system > all 2400000 930651 2400000 18000000 8000000 1000000 320000 16000 72000 80000 160000 5997736 96 28800 10240 system > system > ini 2144477 893982 0 47309 0 517608 0 system > ptr 49019 9685 49003 556024 0 0 0 0 0 0 7 0 0 7 system > top 49020 740852 131074 12692 560711 337 47 7 20 53 643 250 250 50 10 system > ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- system > system > current input type : initial system > system > approximate memory : 42760515 (40 MB) system > system > expansion depth : min: 10000, max: 1000000, set: 10000, top: 6 system > system > luabytecode registers : 1007 system > luabytecode bytes : 16128 (0 MB) system > luastate bytes now : 74927245 (71 MB) system > luastate bytes max : 74927245 (71 MB) system > system > file callbacks : 308 system > saved callbacks : 267 system > direct callbacks : 2 system > function callbacks : 1360 system > value callbacks : 2 system > message callbacks : 0 system > bytecode callbacks : 613 system > system > mp instances : 1 system > mp estimated memory : 4048392 (3 MB) system > mp file callbacks : 13630 system > mp text callbacks : 0 system > mp script callbacks : 396 system > mp log callbacks : 1230 system > system > total callbacks : 2552 system > mp total callbacks : 15257 system > backend callbacks : 0 system > mkiv lua stats > used config file: selfautoparent:/texmf/web2c/texmfcnf.lua mkiv lua stats > used cache path: /Users/aleks/context-osx-64/tex/texmf-cache/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e mkiv lua stats > resource resolver: loadtime 0.005 seconds, 0 scans with scantime 0.000 seconds, 0 shared scans, 34 found files, scanned paths: <none> mkiv lua stats > stored bytecode data: 507 modules (0.222 sec), 106 tables (0.012 sec), 613 chunks (0.235 sec) mkiv lua stats > traced context: maxstack: 1656, freed: 1, unreachable: 1655 mkiv lua stats > cleaned up reserved nodes: 72 nodes, 8 lists of 434 mkiv lua stats > node memory usage: 12 attribute, 1 glue, 79 gluespec, 3 kern, 647 mathspec, 2 penalty, 2 temp, 24 whatsit mkiv lua stats > node list callback tasks: 13 unique task lists, 10 instances (re)created, 94 calls mkiv lua stats > used backend: pdf mkiv lua stats > jobdata time: 0.009 seconds saving, 0.000 seconds loading mkiv lua stats > callbacks: file: 308, saved: 267, direct: 2, function: 1360, value: 2, message: 0, bytecode: 613, late 0, total: 2552 (2552 per page) mkiv lua stats > randomizer: resumed with value 0.9602325140043 mkiv lua stats > loaded tex modules: 1 requested, all found (*-article-basic) mkiv lua stats > loaded patterns: en::1, load time: 0.000 mkiv lua stats > loaded fonts: 2 files: texgyredejavu-math.otf, dejavuserif.ttf mkiv lua stats > font engine: otf 3.131, afm 1.513, tfm 1.000, 7 instances, 3 shared in backend, 3 common vectors, 0 common hashes, load time 0.258 seconds mkiv lua stats > metapost: 0.001 seconds, loading: 0.026, execution: 0.001, n: 8, average: 0.003, instances: 1, luacalls: 15257 (file: 13630, text: 0, script: 396, log: 1230), memory: 3.861 M mkiv lua stats > math tweaking time: 0.092 seconds, 12 math goodie tables mkiv lua stats > font embedding time: 0.005 seconds, 2 fonts mkiv lua stats > result saved in file: /Users/aleks/Desktop/Test Context/anchor.pdf, compresslevel 1, objectcompresslevel 3 mkiv lua stats > positions: 19 collected, 0 deltas, 2 shared partials, 1 partial entries mkiv lua stats > used platform: osx-64, type: unix, binary subtree: texmf-osx-64 mkiv lua stats > used engine: luametatex version: 2.1004, functionality level: 20221214, format id: 679, compiler: clang mkiv lua stats > tex properties: 740852 hash slots used of 2097152, 49003 control sequences, approximate memory usage: 40 MB mkiv lua stats > lua properties: engine: lua 5.4, used memory: 74 MB, ctx: 71 MB, max: 71 MB, symbol mask: utf (τεχ) mkiv lua stats > runtime: 0.606 seconds, 1 processed pages, 1 shipped pages, 1.649 pages/second [-- Attachment #3: Type: text/plain, Size: 496 bytes --] ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Mathematical MetaFun Mania 2022-12-18 11:03 ` Alexandre Christe via ntg-context @ 2022-12-21 14:05 ` Gavin via ntg-context 2022-12-21 14:29 ` Sans Math fonts, for example Computer Modern Bright Oliver Sieber via ntg-context 2022-12-21 16:00 ` Mathematical MetaFun Mania Hans Hagen via ntg-context 0 siblings, 2 replies; 12+ messages in thread From: Gavin via ntg-context @ 2022-12-21 14:05 UTC (permalink / raw) To: mailing list for ConTeXt users; +Cc: Gavin Hi Alexandre and Hans, I also get no connectors drawn when I typeset Hans’s example file, anchors-002, using, ConTeXt ver: 2022.12.15 18:12 LMTX fmt: 2022.12.21, on my M1 Mac. Same error regarding anch_box_arrows_draw. The file works fine with ConTeXt ver: 2022.12.07 20:24 LMTX fmt: 2022.12.7, except for the new cross page feature. Gavin > On Dec 18, 2022, at 4:03 AM, Alexandre Christe via ntg-context <ntg-context@ntg.nl> wrote: > > Hi Hans, > > On osx-64 I'm not getting a single connector printed when compiling anchor-002.tex. I've attached the log in case. Am I doing something wrong on my end? > > Le ven. 16 déc. 2022 à 17:56, Hans Hagen via ntg-context <ntg-context@ntg.nl> a écrit : > On 12/15/2022 10:54 PM, Otared Kavian via ntg-context wrote: > > Hi Hans, > > > > Thanks for the new release and the nice anchoring features. > > > > I played a little bit with these, and noticed some issues: in the following example, linking the bottom bounds of the integral signs is fine (as long as numbers are put there), but for the upper bounds, the \infty and \pi/2 are not accepted (nor is any letter or greek symbol), but if one replaces \infty and \pi/2 with numbers, then the link between the upper bounds is shown. (In this example the links are invading the text, but probably this is due to the fact that I just copied the Metapost snippet you sent to Gavin). > you can pick up a binary with a safeguard from > > https://build.contextgarden.net/#/waterfall?tags=c.luametatex > > (or compile one yourself from work) > > Hans > > > ----------------------------------------------------------------- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl > ----------------------------------------------------------------- > > ___________________________________________________________________________________ > If your question is of interest to others as well, please add an entry to the Wiki! > > maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > ___________________________________________________________________________________ > <anchor.log>___________________________________________________________________________________ > If your question is of interest to others as well, please add an entry to the Wiki! > > maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > ___________________________________________________________________________________ ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 12+ messages in thread
* Sans Math fonts, for example Computer Modern Bright 2022-12-21 14:05 ` Gavin via ntg-context @ 2022-12-21 14:29 ` Oliver Sieber via ntg-context 2022-12-21 14:41 ` Mikael Sundqvist via ntg-context 2022-12-21 16:00 ` Mathematical MetaFun Mania Hans Hagen via ntg-context 1 sibling, 1 reply; 12+ messages in thread From: Oliver Sieber via ntg-context @ 2022-12-21 14:29 UTC (permalink / raw) To: mailing list for ConTeXt users; +Cc: Oliver Sieber Hi there I am particularly looking for a sans serif font for math and text. I am asking, since I spent a lot of time on this subject. I used Fira Math, but it is extremely buggy and in my opinion to bold and the different font weights are definitely in beta status. Is it possible to use the Computer Modern Bright font from LaTex? Best regards Oli ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Sans Math fonts, for example Computer Modern Bright 2022-12-21 14:29 ` Sans Math fonts, for example Computer Modern Bright Oliver Sieber via ntg-context @ 2022-12-21 14:41 ` Mikael Sundqvist via ntg-context 0 siblings, 0 replies; 12+ messages in thread From: Mikael Sundqvist via ntg-context @ 2022-12-21 14:41 UTC (permalink / raw) To: mailing list for ConTeXt users; +Cc: Mikael Sundqvist [-- Attachment #1.1: Type: text/plain, Size: 1176 bytes --] Hi, Not by the computer, but you can try \setupbodyfont[kpfonts-sans,ss] I do not think we have tested it so much, so don't hesitate to come with suggestions on how to improve. Best, Mikael Den ons 21 dec. 2022 15:38Oliver Sieber via ntg-context <ntg-context@ntg.nl> skrev: > Hi there > > I am particularly looking for a sans serif font for math and text. I am > asking, since I spent a lot of time on this subject. I used Fira Math, but > it is extremely buggy and in my opinion to bold and the different font > weights are definitely in beta status. > > Is it possible to use the Computer Modern Bright font from LaTex? > > Best regards > > Oli > > ___________________________________________________________________________________ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > > ___________________________________________________________________________________ > [-- Attachment #1.2: Type: text/html, Size: 2261 bytes --] [-- Attachment #2: Type: text/plain, Size: 496 bytes --] ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Mathematical MetaFun Mania 2022-12-21 14:05 ` Gavin via ntg-context 2022-12-21 14:29 ` Sans Math fonts, for example Computer Modern Bright Oliver Sieber via ntg-context @ 2022-12-21 16:00 ` Hans Hagen via ntg-context 1 sibling, 0 replies; 12+ messages in thread From: Hans Hagen via ntg-context @ 2022-12-21 16:00 UTC (permalink / raw) To: Gavin via ntg-context; +Cc: Hans Hagen On 12/21/2022 3:05 PM, Gavin via ntg-context wrote: > Hi Alexandre and Hans, > > I also get no connectors drawn when I typeset Hans’s example file, anchors-002, using, ConTeXt ver: 2022.12.15 18:12 LMTX fmt: 2022.12.21, on my M1 Mac. Same error regarding anch_box_arrows_draw. > > The file works fine with ConTeXt ver: 2022.12.07 20:24 LMTX fmt: 2022.12.7, except for the new cross page feature. fixed in next upload ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2022-12-21 16:00 UTC | newest] Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2022-12-15 3:20 Mathematical MetaFun Mania Gavin via ntg-context 2022-12-15 10:36 ` Hans Hagen via ntg-context 2022-12-15 16:15 ` Gavin via ntg-context 2022-12-15 17:21 ` Hans Hagen via ntg-context 2022-12-15 21:54 ` Otared Kavian via ntg-context 2022-12-16 16:42 ` Hans Hagen via ntg-context 2022-12-16 16:55 ` Hans Hagen via ntg-context 2022-12-18 11:03 ` Alexandre Christe via ntg-context 2022-12-21 14:05 ` Gavin via ntg-context 2022-12-21 14:29 ` Sans Math fonts, for example Computer Modern Bright Oliver Sieber via ntg-context 2022-12-21 14:41 ` Mikael Sundqvist via ntg-context 2022-12-21 16:00 ` Mathematical MetaFun Mania Hans Hagen via ntg-context
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).