[NTG-context] img.scan in lmtx?
Hi, I use the lua function img.scan{filename}, but in lmtx I get "attempt to index a nil value (global 'img')", so I guess this got renamed or moved? HR ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] new lmtx beta
On 1/26/2020 7:40 PM, Mojca Miklavec wrote: Dear Hans, On Sun, 26 Jan 2020 at 19:39, Hans Hagen wrote: I uploaded a new beta (mostly lmtx). Thanks a lot. What about musl binaries? Yes, i need to do that (assuming that you're confident that they work) .. thanks for reminding me. 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 / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] new lmtx beta
Dear Hans, On Sun, 26 Jan 2020 at 19:39, Hans Hagen wrote: > > I uploaded a new beta (mostly lmtx). Thanks a lot. What about musl binaries? Mojca ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] new lmtx beta
Hi, I uploaded a new beta (mostly lmtx). Challenged by Mojca we managed to get native compilation under mswindows working in visual studio (and soon the compile farm will do several windows compilation variants) so future installation can have either native binaries or crosscompiles (they have comparable performance with the native ones being a bit smaller). The current upload still has crosscompiled binaries. 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 / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] A question about whatever (Metapost)
What error are you getting? (perhaps you need "save carre,p,a,b,c,d,N,P,M ;") A perpendicular line is also the line "rotated 90" (about the intersection point). Alan On Sun, 26 Jan 2020 00:09:38 +0100 Fabrice Couvreur wrote: > Hi, > The point M is such that the line (CM) is perpendicular to the line (NP). > I do not understand the error of this code. > Thank you > Fabrice > > \usecolors[xwi] > \starttext > \startMPcode > path carre, p; > carre = unitsquare scaled 138; > > pair a, b, c, d, N, P, M; > a = point 0 of carre; > b = point 1 of carre; > c = point 2 of carre; > d = point 3 of carre; > > p = b -- d; > N = whatever[a,d]; > P = whatever[a,b]; > M = whatever[b,d]; > (M - c) dotprod (P - N) = 0; > > draw M -- c; > > draw p withcolor \MPcolor{navy}; > draw carre withcolor \MPcolor{firebrick}; > > label.lft("$A$", point 0 of carre); > label.lrt("$B$", point 1 of carre); > label.urt("$C$", point 2 of carre); > label.ulft("$D$", point 3 of carre); > \stopMPcode > \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] line numbering within frame
On 25.01.20 19:17, Wolfgang Schuster wrote: Before I give the answer to the question we have to go back to a few TeX/ConTeXt basics. Wolfgang, thank you for this careful and helpful reply. It really made me understand what is going on here. At the same time, I also feel a bit more incompetent now because linenumbering behaves in unexpected ways: you can set some values (like the starting number) with the simple \startlinenumbering command but not all values. And there's this strange difference between luatex and luametatex... Without this mailing list, I'd be really lost. So thanks again, and I'm waiting for the official fix! Thomas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] columnset issues
Another set of columnset issues: columnset areas (1) In the columnsets manual, there’s a type key or a second optional parameter to \definecolumnsetarea that’s actually missing (commented code in page-cst.mkiv). The manual doesn’t explain the setup keys; I assume x/nx is in columns, y/ny is in lines, while x/y is the start and nx/ny the size. (2) Since float placement doesn’t work like I need it (must make another MWE to better nail it), I thought I’d try columnset areas for the placement of ads: \usemodule[visual] \useMPlibrary[dum] \definecolor[fakerulecolor][gray] \setuplayout[ grid=yes, ] \showframe[text] \showgrid \definecolumnset[Two][ n=2, page=no, ] \definecolumnsetarea[AdSpace][ x=1,y=20, nx=1,ny=20, state=stop ] \starttext \startcolumnset[Two] \fakewords{20}{30} \setupcolumnsetareatext[AdSpace]{\externalfigure[MyAd][width=\textwidth,height=0.45\textheight]} \setupcolumnsetarea[AdSpace][state=start] \fakewords{200}{200} \stopcolumnset \stoptext The "AdSpace" should cover the lower left quarter of the page, y=20 should start it in line 20, and ny=20 should make it 20 lines high, right? But "MyAd" appears always at the place where I put \setupcolumnsetareatext. Is this an error on my side, or is the code just incomplete/buggy/not ready? Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] margintext and floats in the margin
Hi, Is it possible to put some short notes in the margin, together with a float? Below is an example, which puts the float on top of the text in the margin. The option « stack=yes » works fine for the margintext when there is no float, but it does not seems to be an option which puts the figure and margintext in a sort of stack. Thanks for any advice: Otared K. % begin margintext-float.tex \setuppapersize[A4][A4] \setuplayout[ width=120mm, leftmargin=25mm,rightmargin=50mm] \setupmargindata[margintext] [align=raggedright, stack=yes, location=outer, style={\rm}] \showframe \startbuffer[sine] numeric u ; u = 5mm ; draw function (1,"x","1.5*sin(x)",0,710/113,.01) scaled u withcolor transparent(1,.5,darkblue) withpen pencircle scaled 2pt ; \stopbuffer \starttext This is some text.\margintext{This is a remark in the margin.} This is some more text.\margintext{This text is also in the margin.} \startplacefigure[location=outermargin,number=no] \scale[width=\rightmarginwidth]{\processMPbuffer[sine]} \stopplacefigure \stoptext % end margintext-float.tex ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___