[NTG-context] Bug in lmtx with \Bbb is back…
Hi Hans, The issue with \Bbb is back again with the beta version 2019.08.18 22:27: lmtx uses math italic roman instead. Again here is an example: %%% begin bug-Bbb.tex \starttext Let $\beta \in {\Bbb R}$ and $k \in {\Bbb Z}$. For $z\in{\Bbb C}^*$ we define $f(z) := z^k +\beta$. \stoptext %%% end bug-Bbb.tex Best regards: OK > On 10 Aug 2019, at 13:53, Otared Kavian wrote: > > Hi Hans, > > Thanks a lot for having fixed the issue in the latest beta, version > 2019.08.09 19:59 … > > Best regards: OK > >> On 9 Aug 2019, at 14:48, Otared Kavian wrote: >> >> Hi Hans, >> >> It seems that there is a bug in the handling of Blackboard Bold, in the >> latest lmtx (version 2019.08.02 19:40). The following gives the attached PDF >> file. >> However the same file typesets correctly in the latest mkiv beta. >> >> Thanks for your attention: OK >> >> \starttext >> >> The set of integers is denoted ${\Bbb N}$. >> >> \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] Bug in lmtx with \Bbb is back…
On 8/19/2019 9:21 AM, Otared Kavian wrote: Hi Hans, The issue with \Bbb is back again with the beta version 2019.08.18 22:27: lmtx uses math italic roman instead. Again here is an example: %%% begin bug-Bbb.tex \starttext Let $\beta \in {\Bbb R}$ and $k \in {\Bbb Z}$. For $z\in{\Bbb C}^*$ we define $f(z) := z^k +\beta$. \stoptext %%% end bug-Bbb.tex ok, fixed in next ... - 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 ___
[NTG-context] \setupcolumnsetlines does not work again
I thought I understood the mechanism, but I found another instance where \setupcolumnsetlines does not give the desired result: %%% \definecolumnset[Two][n=2] \starttext Test %\page \setupcolumnsetlines[Two][1][1][9] \startcolumnset[Two] \input knuth \stopcolumnset \setupcolumnsetlines[Two][1][1][9] \startcolumnset[Two] \input knuth \stopcolumnset \stoptext %%% This setup gives indeed a balanced first page and an unbalanced second page. But if the fourth line (\page) is uncommented, the second output page is unbalanced and the third page is balanced. So the mechanism is therefore more complicated than > only if the first columnset extends to more than one page > the next \setupcolumnsetlines will work properly. What is the extended rule? If this intended behaviour, what is the reason behind it? Sytse > Op 17 augustus 2019 om 23:54 schreef Sytse Knypstra : > > > Wolfgang wrote: > > The settings for the second columnset work when the first columnset goes > > over of two or more pages. > > Thank you, now I understand the mechanism: only if the first columnset > extends to more than one page, the next \setupcolumnsetlines will work > properly. Is this a bug or a feature? If it is a feature, what is the idea > behind it? > > Sytse ___ 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] experiment
Hi, I've attached a document that I made last week. It's (currently) an lmtx only feature. In acrobat, the 'marked' areas (some tracing option) are the hyperlink. I have no clue how useful this is, maybe for maps or some educational setting. I had it on my agenda to play with it anyway. I don't think that viewers other than acrobat support it (even if it's already quite old pdf stuff; they should anyway fall back on the rectangle) but who knows ... I only tested sumatra (the okular that I have doesn't even seem to handle the links at all). It's not really efficient in bytes because it's (I think) meant for another usage. As with more features in the pdf format I think it might have started as some hack, but it's documented so ... 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 - mptest-007.pdf Description: Adobe PDF document ___ 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] LaTeX's itemsep in ConTeXt?
Hi all, Is there a counterpart in ConTeXt to LaTeX’s itemsep? Regards Jon ___ 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] LaTeX's itemsep in ConTeXt?
Jon Wong schrieb am 19.08.2019 um 16:59: Hi all, Is there a counterpart in ConTeXt to LaTeX’s itemsep? \setupitemize[each][inbetween=...] % inbetween={\blank[medium]} Wolfgang ___ 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] LaTeX's itemsep in ConTeXt?
On 8/19/2019 4:59 PM, Jon Wong wrote: Is there a counterpart in ConTeXt to LaTeX’s itemsep? It depends on what itemsep does. 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 ___
[NTG-context] Italic corrections?
Hi all, Will this work? \usetypescript[pagella] \setupbodyfont[pagella,12pt] \definefontfeature [itlc=yes] This {\em will} work? Regards Jon ___ 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] metafun 2
Thanks a lot for the new features. In my system this code don’t work. macOS Mojave This is LuaMetaTeX, Version 2.00.0 open source > level 1, order 1, name 'cont-yes.mkiv' system > system > ConTeXt ver: 2019.08.17 12:16 MKIV beta fmt: 2019.8.19 int: English/English \startMPcode{doublefun} draw lmt_function [ xmin = 0, xmax = 10, xstep = .05, ymin = -2, ymax = 2, xticks = "bottom", xsmall = 80, xlarge = 20, yticks = "left", ysmall = 40, ylarge = 4, code = "1.5 * math.cosd(240 * math.sqrt(x))", xlabels = "yes", ylabels = "yes", ycaption = "\strut\tfd \rotate[rotation=90]{vertical}", xcaption = "\strut\tfd horizontal", pointsymbol = "dot", pointsize = 4, pointcolor = "orange", sx = 2mm, sy = 4mm, linewidth = .025mm, offset = .1mm, ] xsized 8cm ; \stopMPcode The output error: loading metafun, including plain.mp version 1.004 for metafun iv and xl pages > flushing realpage 9, userpage 8, subpage 9 metapost log> ! Missing ':' has been inserted. metapost log> metapost log>addto metapost log> draw->addto metapost log> .currentpicture.if.picture(EXPR0):also(EXPR0)else:doublepath(EXPR… ___ 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] Fwd: metafun 2
On Wed, Aug 14, 2019 at 5:37 PM Hans Hagen wrote: > On 8/14/2019 4:58 PM, Mikael P. Sundqvist wrote: > > > 1) 3d support. This is of course a very big request, but it would also > > be useful for many people. > > yes ... Alan and I are thinking of some (not that we came far yet) > Please keep us updated! :) > > 2) About graphing, it would be nice to be able to do contour polots and > > density plots. I know I asked for contour plots some time ago, and there > > were some examples, but I don't think there was ever some built in > > support for it. Maybe that can be done "easy" with help of lua? I guess > > there exist good algorithms. > > spec needed ... as 'code' can be any function it's mostly a matter of > what to pipe back to mp > I'm not sure what kind of spec you need. What I have in mind (others could complete) is in particular a way to plot the set of (x,y) such that f(x,y)=0 for some given function f and some rectangle in x and y. I made some plots with Mathematica http://www.maths.lth.se/matematiklth/personal/mickep/Contour.pdf (too big for the list) The first plot shows a difficulty with a contour plot, namely intersections. In the second one I added points, and it looks better. In the third plot I have not specified that the expression should be equal to 0. Then Mathematica plots the curves f(x,y)=C for various values of C. In the background it adds a density plot (i.e. a mesh with different colours for different values of the function. In the fourth plot, the regionplot, the pairs (x,y) for which f(x,y)<0 are marked. This is also very useful. In the fifth plot there is only the densityplot, with different colors for different values of f. I don't know how difficult it is to implement this kind of graphics. Also, it could be useful to be able to input the equation f(x,y)=0 and to receive the curves as MetaPost paths. It seems that one can do contour plots with the help of lua if that is something that helps ( http://franko.github.io/graph-toolkit/contour.html). Anything would be better than nothing, and I'm more than happy to test. > > > 3) (small) The possibility to have arrows in coordinate axes. I have not > > had the possibility to test the new features today, and maybe this is > > already built in (drawarrow?), but I mention it since I did not see it > > in the pdf. > > no, but that is rather trivial to add > Good! > > > Again, it is very nice that you work on extending MetaPost/MetaFun > further!! > wel, mp is ... fun (and these extension are somewhat challenging) > > Hans > Fun, indeed! /Mikael ___ 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] Italic corrections?
Jon Wong schrieb am 19.08.2019 um 19:50: Hi all, Will this work? \usetypescript[pagella] \setupbodyfont[pagella,12pt] \definefontfeature [itlc=yes] This {\em will} work? No, because have to change the font feature before you load the font. When you use \em to get a italic text this is enough: \definefontfeature [default] [default] [itlc=yes] \setupbodyfont [pagella,12pt] \starttext This {\it will} work? \stoptext but to get additional space after italic text when you use the \it command you have to add \setupitaliccorecction to your setups: \definefontfeature [default] [default] [itlc=yes] \setupbodyfont [pagella,12pt] \setupitaliccorrection [text] \starttext This {\it will} work? \stoptext For more details about the options for the \setupitaliccorrection command take a look into fonts-mkiv.pdf. Wolfgang ___ 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] LMTX: Space in file names
Hi Hans, I noticed that the lmtx beta from 2019.08.18 22:27 does not anymore accept spaces in file names, while the mkiv version does accept it. I am aware that putting a space in a file name is a very bad habit, but I am convincing some people who were used to use MS Word in order for them to use ConTeXt, and these people have many files with names containing spaces such as « correction problème 1.tex » (and in fact this is how I noticed this new behavior of lmtx: when typesetting such a file, lmtx looks for « correction.tex »). That is why I think if lmtx could continue to accept spaces in file names that would be very convenient. Do you think this would be possible? Best regards: OK ___ 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] Use Visual studio code
Hello Is it possible to use VScode as IDE for ConTeXt ? -- Eric Détrez Informatique Lycée Faidherbe, Lille Documents de cours en pdf : eric-detrez.fr ___ 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] LMTX: Space in file names
On 8/19/2019 11:07 PM, Otared Kavian wrote: Hi Hans, I noticed that the lmtx beta from 2019.08.18 22:27 does not anymore accept spaces in file names, while the mkiv version does accept it. I am aware that putting a space in a file name is a very bad habit, but I am convincing some people who were used to use MS Word in order for them to use ConTeXt, and these people have many files with names containing spaces such as « correction problème 1.tex » (and in fact this is how I noticed this new behavior of lmtx: when typesetting such a file, lmtx looks for « correction.tex »). That is why I think if lmtx could continue to accept spaces in file names that would be very convenient. Do you think this would be possible? In which situations? Afaik there is no different code wrr files. 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] Use Visual studio code
On 8/19/2019 10:08 PM, Eric Détrez wrote: Is it possible to use VScode as IDE for ConTeXt ? It depends on how you define ide ... one problem is that it's not really possible to easy define keybindings for running, help etc per filetype yet (as in scite etc) and messing with this server model is not on my agenda. 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 ___