Re: [NTG-context] Which version of MkIV should we use?
On 10/26/2020 12:09 AM, Rik Kabel wrote: Hello all, I have noticed some differences between the MkIV installed as part of LMTX and the MkIV installed via first-setup. Which should be used going forward when one wants to use MkIV? (One difference: \contextkind is defined in file context.mkiv installed via first-setup. It is not defined in the file of the same name installed as part of LMTX. Another, more significant difference, is loading modules.) mkiv works with luatex, lmtx needs luametatex currently the functionality is mostly the same but further development happens in lmtx so, if mkiv works for you, just keep using it .. you can try your document with lmtx and normally that should work ok there is a distinction between - core functionality (seldom changes) - tricky things (migh tbe done better in lmtx) - more radical new things hard to do in regular tex (will be in lmtx only) the luametatex engine is more advanced than luatex (which we cannot change any more in fundamental ways as it's also used outside context) but with luametatex we can do (maybe) crazy things; the luametatex enfine has all kind of improvements in the rendening, adds functionality that makes implementations somewhat cleaner, is faster and uses less memory, redesigns/organizes some internals (e.g. get rid of the sometimes fuzzy accumulated engine mix), adds more interfaces in lua, is self contained, etc ... see presentation(s) last ctx meeting. currently i'm applying some of the more drastic new thing: more advance macro argument parsing options, several levels of (macro) protection, etc which actually might lead to issues (simple to deal with as most are interface related, not functionality) so ... you can use mkiv and/or snapshot the current lmtx and/or try the latest greatest when it showsup 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] Which version of MkIV should we use?
On 10/26/2020 04:37, Hans Hagen wrote: On 10/26/2020 12:09 AM, Rik Kabel wrote: Hello all, I have noticed some differences between the MkIV installed as part of LMTX and the MkIV installed via first-setup. Which should be used going forward when one wants to use MkIV? (One difference: \contextkind is defined in file context.mkiv installed via first-setup. It is not defined in the file of the same name installed as part of LMTX. Another, more significant difference, is loading modules.) mkiv works with luatex, lmtx needs luametatex currently the functionality is mostly the same but further development happens in lmtx so, if mkiv works for you, just keep using it .. you can try your document with lmtx and normally that should work ok there is a distinction between - core functionality (seldom changes) - tricky things (migh tbe done better in lmtx) - more radical new things hard to do in regular tex (will be in lmtx only) the luametatex engine is more advanced than luatex (which we cannot change any more in fundamental ways as it's also used outside context) but with luametatex we can do (maybe) crazy things; the luametatex enfine has all kind of improvements in the rendening, adds functionality that makes implementations somewhat cleaner, is faster and uses less memory, redesigns/organizes some internals (e.g. get rid of the sometimes fuzzy accumulated engine mix), adds more interfaces in lua, is self contained, etc ... see presentation(s) last ctx meeting. currently i'm applying some of the more drastic new thing: more advance macro argument parsing options, several levels of (macro) protection, etc which actually might lead to issues (simple to deal with as most are interface related, not functionality) so ... you can use mkiv and/or snapshot the current lmtx and/or try the latest greatest when it showsup 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 - Hans, Let me rephrase the question. With the following example: \starttext \contextkind \stoptext The standalone installation returns a document containing "beta" and context --luatex with the LMTX installation complains of an undefined control sequence. The file context.mkiv differs between the two installations. If the two are expected to differ, I am asking which is the reliable version. You had stated in an earlier email that the --luatex option provided to an LMTX installation will produce an MkIV result, but that does not seem to still be the case. -- Rik ___ 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] marvosym on the wiki
Hi, Someone asked me a question about marvosym In LaTeX (I just pointed him to the documentation), but then I checked the wiki and noticed that the wiki page is showing latin modern for \showfont[fmvr8x] https://wiki.contextgarden.net/Symbols/mvs What would be the correct syntax for the wiki nowadays? Thank you, 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 ___
Re: [NTG-context] marvosym on the wiki
As for Martin Vogel's symbols, using \showfont[marvosym.ttf] instead seems to display the right symbols (PDF attached). I'm not sure whether or not it will work in the Wiki. Regards, Jairo :) El lun., 26 de oct. de 2020 a la(s) 10:16, Mojca Miklavec ( mojca.miklavec.li...@gmail.com) escribió: > Hi, > > Someone asked me a question about marvosym In LaTeX (I just pointed > him to the documentation), but then I checked the wiki and noticed > that the wiki page is showing latin modern for > \showfont[fmvr8x] > > https://wiki.contextgarden.net/Symbols/mvs > > What would be the correct syntax for the wiki nowadays? > > Thank you, > 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 > > ___ > mvs.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 ___
Re: [NTG-context] marvosym on the wiki
Dear Jairo, On Mon, 26 Oct 2020 at 16:33, Jairo A. del Rio wrote: > > As for Martin Vogel's symbols, using > > \showfont[marvosym.ttf] > > instead seems to display the right symbols (PDF attached). I'm not sure > whether or not it will work in the Wiki. Thank you very much for the hint. Wolfgang already changed it on the wiki, thanks a lot to him as well. 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] MkIV and LMTX difference in comma list expansion
Hello list, Another difference, perhaps the result of my lack of knowledge, but a difference. The following example produces different results for the fourth sequence, with the index being passed one item under MkIV and two items under LMTX. (The code is stripped out of a much more complex bit to show the issue.) % macros=mkvi \starttexdefinition unexpanded startBlockQuotation \dosingleempty\dostartBlockQuotation \stoptexdefinition \starttexdefinition dostartBlockQuotation [#SETUPS] \getrawparameters[BlockQuotation] [index=,#SETUPS] \expandafter\processcommalist \expandafter[\BlockQuotationindex]\doIndexIt{} \stoptexdefinition \starttexdefinition stopBlockQuotation \stoptexdefinition \starttexdefinition doIndexIt #INDEXTERM indexer sees #INDEXTERM\ \index{#INDEXTERM} \stoptexdefinition \starttext \startBlockQuotation[index=aaa] \startparagraph 1 \quad when indexing aaa. \stopparagraph \stopBlockQuotation \startBlockQuotation[index={aab}] \startparagraph 2 \quad when indexing \{aab\}. \stopparagraph \stopBlockQuotation \startBlockQuotation[index={aac, aad}] \startparagraph 3 \quad when indexing \{aac, aad\}. \stopparagraph \stopBlockQuotation \startBlockQuotation[index={{aae, aaf}}] \startparagraph 4 \quad when indexing \{\{aae, aaf\}\}. \stopparagraph \stopBlockQuotation \startBlockQuotation[index={{{aag, aah}}}] \startparagraph 5 \quad when indexing \{\{\{aag, aah\}\}\}. \stopparagraph \stopBlockQuotation \startBlockQuotation[index={{aai, aaj},{aak, aal}}] \startparagraph 6 \quad when indexing \{\{aai, aaj\},\{aak, aal\}\}. \stopparagraph \stopBlockQuotation \startBlockQuotation[index={{{aam, aan}},{{aao, aap}}}] \startparagraph 7 \quad when indexing \{\{\{aam, aan\}\},\{\{aao, aap\}\}\}. \stopparagraph \stopBlockQuotation \placeindex \stoptext Did I misuse the comma list processing, or is this a bug? -- Rik ___ 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] MkIV and LMTX difference in comma list expansion
Rik Kabel schrieb am 26.10.2020 um 17:34: Hello list, Another difference, perhaps the result of my lack of knowledge, but a difference. The following example produces different results for the fourth sequence, with the index being passed one item under MkIV and two items under LMTX. (The code is stripped out of a much more complex bit to show the issue.) [...] Did I misuse the comma list processing, or is this a bug? Probably something we missed when the comma list processor was rewritten. In the example below the braces are stripped when there is only a single element (first and second list). \def\CommalistEntry#1{\ruledhbox{\strut#1}} \starttext \dontleavehmode\processcommalist[{aaa}]\CommalistEntry \dontleavehmode\processcommalist[{aaa,bbb}]\CommalistEntry \dontleavehmode\processcommalist[{ccc,ddd},{eee,fff}]\CommalistEntry \stoptext 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] xtable row number trouble
On Sun, Oct 25, 2020 at 09:26:06PM +0100, Wolfgang Schuster wrote: > Oleg schrieb am 25.10.2020 um 14:51: > > Hi, all. > > > > I try to place a row number into the first column of my table. > > I tried: > > > > \definecounter[rownum][way=bytext,prefix=no] > > \setcounter[rownum][0] > > > > \starttext > > \startxtable > > \startxrow > > \startxcell > > \incrementcounter[rownum] > > \rawcounter[rownum] > > \stopxcell > > \stopxrow > > \startxrow > > \startxcell > > \incrementcounter[rownum] > > \rawcounter[rownum] > > \stopxcell > > \stopxrow > > \startxrow > > \startxcell > > \incrementcounter[rownum] > > \rawcounter[rownum] > > \stopxcell > > \stopxrow > > \stopxtable > > > > And got: > > > > 7 > > 8 > > 9 > > > > If i place \setcounter[rownum][0] right after \startxtable, then i got: > > > > 1 > > 2 > > 3 > > > > Is this normal? > > Yes, to fix it use > > \startxcell >\doifelsemode{*trialtypesetting} > {0} > {\incrementcounter[rownum]% > \convertedcounter[rownum]} > \stopxcell It seems that reseting once at table start is simpler, isn't it :-)? What is the difference between \rawcounter and \convertedcounter? \rawcounter give me the plain number as i want. What's about \newcount&\advance variant? Why it not work? -- Олег Неманов (Oleg Nemanov) ___ 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] Fw: statistical charts (was: Changing the colors of Charts in luametafun)
Hi Jan, Thank you for noticing! Probably the fastest way to fix this would be making the dots more dense. We will add a parameter for that in the near future (it is also possible to add it directly to the code). Best, Tamara -- Forwarded message -- > From: "Jan U. Hasecke" > To: ntg-context@ntg.nl > Cc: > Bcc: > Date: Mon, 19 Oct 2020 20:16:16 +0200 > Subject: [NTG-context] statistical charts (was: Changing the colors of > Charts in luametafun) > > Hi all, > > I play around with the charts module by Tamara Kocurová & Adriana > Kašparová. Great work! I really like it. > > https://akela.mendelu.cz/~thala/statcharts/ > > There is one very nitpicking thing. The dots of the grid are not always > in a regularly fixed distance as the attached screenshot shows. > > I am not sure if this can be solved with a customized configuration. > > Ciao! > juh > > > > ___ > 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 > > ___ > > ___ 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] xtable row number trouble
Oleg schrieb am 26.10.2020 um 21:03: On Sun, Oct 25, 2020 at 09:26:06PM +0100, Wolfgang Schuster wrote: Oleg schrieb am 25.10.2020 um 14:51: Hi, all. I try to place a row number into the first column of my table. I tried: \definecounter[rownum][way=bytext,prefix=no] \setcounter[rownum][0] \starttext \startxtable \startxrow \startxcell \incrementcounter[rownum] \rawcounter[rownum] \stopxcell \stopxrow \startxrow \startxcell \incrementcounter[rownum] \rawcounter[rownum] \stopxcell \stopxrow \startxrow \startxcell \incrementcounter[rownum] \rawcounter[rownum] \stopxcell \stopxrow \stopxtable And got: 7 8 9 If i place \setcounter[rownum][0] right after \startxtable, then i got: 1 2 3 Is this normal? Yes, to fix it use \startxcell \doifelsemode{*trialtypesetting} {0} {\incrementcounter[rownum]% \convertedcounter[rownum]} \stopxcell It seems that reseting once at table start is simpler, isn't it :-)? Try your method with natural table or tabulate and it won't work anymore. What is the difference between \rawcounter and \convertedcounter? \rawcounter give me the plain number as i want. In this case there is no difference but I suggest to use \rawcounter only when you need the value of the counter, e.g. counter>... or counter=... With \convertedcounter you have always the option to change the style of the value, e.g. number conversion, prefixes etc. What's about \newcount&\advance variant? Why it not work? Short answer: expansion You're using advance in a place where it is just ignored, there are ways to get rid of these limitations with Luametatex but it's better to use \incrementcounter. 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 ___