Re: [NTG-context] ugly bug
On 6/3/2022 5:05 PM, Steffen Wolfrum via ntg-context wrote: Am 02.06.2022 um 20:13 schrieb Wolfgang Schuster : Steffen Wolfrum schrieb am 01.06.2022 um 14:03: Hi, several times I got problems with my publishing house when they noticed that the headerlines jump up and down on pages that end/begin with qoutes (i.e. smaller interlineskip), see example below: on page 1 the blackrule is about 1mm higher than on page 2. In the past I then used really laborious workarounds to get these single pages in the correct way (without jumping)… manual pagebreak, re-define layout etc. But as the pages are hard to find it would be better that the layout would be reliable consistent. How can this be solved? \defineinterlinespace[steffen][line=4.2ex] \starttext \dorecurse{2}{\samplefile{lorem}\par} \start %\setuplocalinterlinespace[line=4.2ex]% wrong header alignment \setuplocalinterlinespace[steffen]% correct header alignment \dorecurse{4}{\samplefile{lorem}\par} \stop \dorecurse{2}{\samplefile{lorem}\par} \stoptext the next upload tries to revert to the global setting in the pagebody 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] Compiling a large metapost document
On 6/1/2022 8:34 PM, Thomas A. Schmitz via ntg-context wrote: On 6/1/22 19:35, Stefan Nedeljkovic via ntg-context wrote: Sorry, i just updated the file, should now compile, but fail due to resources. Are the configuration options to context that would enable this file to be compiled? The question still stands: what do you expect us to do? Hunt for a problem through a huge file? What have you done to identify this problem? Is there a minimal example? due to a mail server crash i lost todays and last nights mail sop here s a partial reply (Just put that large mp blob in a file and call that one instead of passing through tex's tokenizer: \startMPpage input test.mp ; \stopMPpage then in order to save runtime do draw image ( draw (220.852, 127.175) ; draw (226.248, 128.606) ; draw (221.840, 129.541) ; draw (280.733, 100.927) ; draw (276.968, 83.053) ; draw (251.644, 83.879) ; ) withpen pencircle scaled 0.16875 withcolor (0.976, 0.702, 0.204) ; 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] overfull gone?
On 5/28/2022 12:43 PM, Steffen Wolfrum via ntg-context wrote: Hi, in order to easily see overfull lines I used \overfullrule30\points : this gave a clear black box in the right margin. Is this command (\version[temporary]) gone?? Please have a look at the example below: no overfull indicator ... Steffen --- \setuppapersize[A6] \setupexternalfigures[location={default}] %\version[temporary] \overfullrule30\points% < BLACK BOX? \starttext \startcolumns[n=3] % Overfull lines will have slugs in colum margins. \input linden % Underfull hboxes get no warning x \stopcolumns \stoptext i'll check it .. looks like some interference with normalization .. actually one can enable more advanced tracers: % \enabletrackers[builders.hpack.quality] % \enabletrackers[builders.hpack.overflow] 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] no update
Hi, no weekend update ... Mikael and I are working on / upgrading some math stuff (numbering) and don't want it to be too bad, as well as (new / improved) metapost stuff that we need to test first (and that also involves quite some experiments and documentation) 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] split TABLE cells
On 5/18/2022 8:07 PM, Steffen Wolfrum via ntg-context wrote: Hi, I just found an old mail from 30 May 2008: How do I split not only TABLE but cells? It was not possible then. \starttext \bTABLE[split=yes,option=stretch] \bTR \bTD \input tufte \input knuth Hello world ... \eTD \bTD \input tufte \eTD \bTD \input knuth \eTD \eTR \bTR \bTD Test \eTD \bTD Test \eTD \bTD Test \eTD \eTR \eTABLE \stoptext not possible, use tabulate instead - 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] upload
On 5/11/2022 5:46 PM, Zhichu Chen via ntg-context wrote: Thanks for the update. But I noticed that the XITS fonts were still the old ones: zhichu@large /opt/context-lmtx/tex/texmf/fonts/opentype/public/xits $ fc-query -f '%{fontversion}\n' XITS-Regular.otf | perl -E 'printf "%.3f\n", <>/65536.0' 1.200 According to https://github.com/aliftype/xits/releases the final release is version 1.302. Maybe I don't care the new changes since 1.200, but every time I compile my file, I get the warnings I don't like: mathematics > tweak > 'XITSMath-Regular', size 6pt, math size 3, version 'Version 1.200' found, version 'Version 1.302' expected mathematics > tweak > 'XITSMath-Bold', size 6pt, math size 3, version 'Version 1.109' found, version 'Version 1.302' expected Do you mind get the new ones in the next beta? i'll try but you need to check 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] upload
On 5/9/2022 5:54 PM, mf via ntg-context wrote: I'm downloading it and I see a lot of mkii files and even some Ruby files. It looks like some old material got into the update. Is everything right? hm, i'm on a different laptop now so maybe some program is not yet installed, i'll check it 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] upload
Hi, I uploaded a new version of lmtx (also because some users have to test some new metapost functionality). In the next upload metafun will use 'double' mode (and scaledfun will be the traditional one). The advantage is less dager for overflows and in the meantime running in double mode is often also faster. 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] blockligatures removing characters
On 5/9/2022 9:56 AM, Denis Maier via ntg-context wrote: Happens here as well, already on ConTeXt ver: 2022.03.12 17:56 LMTX. By the way, this even happens without special fonts: \blockligatures[Th] \definefontfeature[default:blocklig][default][liga=yes,blockligatures=yes] \setupbodyfont[myfont] \starttext \definedfont[Serif*default:blocklig] The This These are missing the `h' \stoptext I'll fix it but it's not the way to do it in lmtx where we have \startluacode local demo = { name= "demo", options = { { patterns = { fio = "f|io", }, words = [[ fioot fiots ]], }, { patterns = { fio = "t|h", }, words = [[ this that ]], }, }, } table.save("oeps-fixes.llg",demo) \stopluacode \setuplanguage[en][goodies={oeps-fixes.llg}] \setupbodyfont[ebgaramond] \starttext fiets fiots fiats fioot this that \stoptext I just added (no upload) this \startluacode local demo = { name= "demo", options = { { substitutions = { th = "t|h", Th = "T|h", st = "s|t", St = "S|t", fi = "f|i", }, }, }, } table.save("oeps-fixes.llg",demo) \stopluacode \setuplanguage[en][goodies={oeps-fixes.llg}] \setupbodyfont[ebgaramond] \starttext The This These fiets and thisthis thisfiets \stoptext ----- 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] Is there a "smart" capitalisation implementation?
On 5/8/2022 6:55 AM, Zhichu via ntg-context wrote: Hi, I am going to convince the Board of a journal to consider ConTeXt as an additional option. I want to make a module before I say anything. Right now I have this title problem. The journal requires the titles to be CAPITALISED, except for the acronyms. I'm currently using backticks`...`to wrap it and replace it with\egroup ...\WORD\bgroup{} with lpeg. This kinda works, but that's so ugly. Besides, the actual story is that I also want to add markdown as an option, so the backticks actually have meanings. I also checked thetypo-cap.luafile to get a clue. But I used to use TeX exclusively and I have to admit that it's so overwhelming for a newbie. I really like the way wherebibtextreats words enclosed in curly braces are ignored. Or are there something that's less aggressive than\WORDso the LaTeX trick works: \def\NoCaseChange#1{\noexpand\NoCaseChange{\noexpand#1}} \starttext \protected\def\casing[#1]{\groupedcommand{\setcharactercasing[#1]}{}} \protected\def\nocasing {\groupedcommand{\setcharactercasing[reset]}{}} \setuphead[chapter][textstyle=\WORD] \chapter{some \nocasing{kept} text or \casing[Word]{more} text} \stoptext - 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] Citeproc-lua
On 5/7/2022 12:33 AM, denis.ma...@unibe.ch wrote: -Ursprüngliche Nachricht- Von: ntg-context Im Auftrag von Hans Hagen via ntg-context Gesendet: Freitag, 6. Mai 2022 23:45 An: Denis Maier via ntg-context Cc: Hans Hagen Betreff: Re: [NTG-context] Citeproc-lua [...] For the record: i don't think you should write something to the tuc file that doesn't come from context itself because you can mess it up (also performaance wise). Really? But what about that stuff? Anyway, even better if the data coming from context itself can be used. A bibliography is just about (cross) referencing data. If that data comes from elsewhere it can best kept indepdendent. One can of course store some reference but why the data if it is not used in some special way. Of course you could have another file (just like a bib file is independent). One problem could be that you need to make some extra installation to make it work as we're not going to add all kind of code to the distribution (we tend to go smaller) and someone needs to maintain that moduie then because users depend in it working. Did you look into what pandoc provides? It might be easier to take that output and include it. Some kind of html? That's easy to render. Pandoc can output context as well, so we can just take that. Sure, but some parseble format might be better if one wants control over rendering. Basically we're talking about some pseudo formatted bibliography entry with some unique tag as reference. Using the whole bibliography might give problems with regards to disambiguation. In what sense? Aren't the 'tags' or id's unique? Anyway, one can - let \cite write some refe to soem file - that file gets pandoc'd to a bibliography list - that then gets included if that list is in some parsable format (like html width classes) we can easily pick up info (if needed) and do nmore So, that would work a bit like Aditya's filter module: https://github.com/adityam/filter Right? sort of Another option would be to just use pandoc's citeproc directly, as described here: https://github.com/jgm/citeproc/blob/master/man/citeproc.1.md We'd have to pass a list of citations as a JSON object to that citeproc and use the results. The results will include citations as well as the bibliography (all as JSON, content can be HTML formatted). we can handle json indeed, so hwo does such a json look like? can you make an example? 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] Citeproc-lua
On 5/6/2022 11:02 PM, Denis Maier via ntg-context wrote: I also have the impression that extending citeproc-formats.lua should be the easiest part. As an aside, I think the HTML is in there because that is needed for the test suite, but for ConTeXt we should be able to copy the LaTeX mapping and tweak a few things here and there. The LaTeX package is hard to understand, at least if you're not used to the "new" latex3 programming syntax and style. I also can only guess what that stuff does. But as you say this is rather isolated from the citeproc processing, so I guess the main task would be to come up with an equivalent ConTeXt module that writes the citations to the tuc file, calls the citeproc engine, and uses the results for the output. Right? (I.e., AFAICS, everything that lives under https://github.com/zepinglee/citeproc-lua/tree/main/citeproc should pretty much just work, while https://github.com/zepinglee/citeproc-lua/tree/main/latex must be adapted.) For the record: i don't think you should write something to the tuc file that doesn't come from context itself because you can mess it up (also performaance wise). Of course you could have another file (just like a bib file is independent). One problem could be that you need to make some extra installation to make it work as we're not going to add all kind of code to the distribution (we tend to go smaller) and someone needs to maintain that moduie then because users depend in it working. Did you look into what pandoc provides? It might be easier to take that output and include it. Some kind of html? That's easy to render. A bit like this: - Convert the whole bibliography database to html using pandoc in the preferred cs rendering. That should be fast. - Use the normal context commands for referencing a citation (the cite part is normally easy as there is not much variation in that; if needed one can cheat and also pregenerate that). That's then just some relatively small plugin mode. - When placing the bibliography, filter the right entries from that html file (easy) using info that got stored in the tuc. It is also fast. The only depdency then is pandoc but that is widely available (irr). But I would need to see an example of that kind of out first. We basically treat the (formatted) bibliography as an external resource but in some format that we can easily parse (and if needed tweak). 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] Citeproc-lua
On 5/6/2022 11:09 PM, Aditya Mahajan via ntg-context wrote: On Fri, 6 May 2022, Denis Maier via ntg-context wrote: Hi, thanks for your assessment. Indeed, that looks very promising. I've now had a chance to look at this a bit more too. Not that I understand that stuff in detail, but anyway... I also have the impression that extending citeproc-formats.lua should be the easiest part. As an aside, I think the HTML is in there because that is needed for the test suite, but for ConTeXt we should be able to copy the LaTeX mapping and tweak a few things here and there. The LaTeX package is hard to understand, at least if you're not used to the "new" latex3 programming syntax and style. I also can only guess what that stuff does. But as you say this is rather isolated from the citeproc processing, so I guess the main task would be to come up with an equivalent ConTeXt module that writes the citations to the tuc file, calls the citeproc engine, and uses the results for the output. Right? (I.e., AFAICS, everything that lives under https://github.com/zepinglee/citeproc-lua/tree/main/citeproc should pretty much just work, while https://github.com/zepinglee/citeproc-lua/tree/main/latex must be adapted.) Does citeproc-lua/biblatex support using CSL files (https://citationstyles.org/). IMO, that is currently the biggest limitation of the context bib module that only a few citation styles are supported. Developing a new citation style is relatively easy but a lot of work. Being able to use CSL will simplify things (from the point of view of the user) a lot. the main question is 'how easy is it to convertt one of these xml defs into a context rendering' ... probably somethng we can do stepwise using some external solution creates a dependency (and also maintainance issue i guess) and there is a good change for interferences (btw, in the apa one that we support the main complication is that it has many variants / border cases) 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] Citeproc-lua
On 5/6/2022 2:57 PM, Taco Hoekwater via ntg-context wrote: But: I personally do not understand how to do the integration with ConTeXt’s new biblio system. I only understand half of what ConTeXt does these days, and much less of what the LaTeX package is trying to achieve i.r.t. options. i'll have a look at the citeproc spec to see how far away it is from what we have 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] Wiki update: create a .vsix extension package for VisualStudio Code (or VSCodium)
On 5/5/2022 12:01 PM, mf via ntg-context wrote: https://wiki.contextgarden.net/VSCode Thanks! 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] process list items differently depending on position in list
On 5/2/2022 12:09 PM, Denis Maier via ntg-context wrote: But, it’d still love to hear whether there is a solution on the tex side. \processtokens {[before]} {[between]} {[after]} {[space]} {{one}{two}{three}} \def\whatever{a,b,c,d} \getcommacommandsize[\whatever] \scratchcounterone \zerocount \scratchcountertwo \commalistsize \processcommacommand[\whatever] {\advance\scratchcounterone\plusone \ifnum\scratchcounterone=\scratchcountertwo \space and\space \orelse\ifnum\scratchcounterone>\plusone ,\space \fi \commalistelement} but ... there's also: \startlines \commalistsentence[aap,noot,mies] \commalistsentence[aap,noot] \commalistsentence[aap] \commalistsentence[a,b,c] \commalistsentence[a,b,c][{ \& },{ and }] \commalistsentence[a,b,c][+,-] \stoplines which uses presets like \setuplabeltext [nl] [and-1={{, }}, and-2={{ en }}] % 1, 2 en 3 \setuplabeltext [en] [and-1={{, }}, and-2={{, }}] % 1, 2, 3 \setuplabeltext [de] [and-1={{, }}, and-2={{ und }}] % 1, 2 und 3 \setuplabeltext [hr] [and-1={{, }}, and-2={{ i }}]% 1, 2 i 3 maybe wikify - 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] \getcommacommandsize not working in lmtx
On 5/2/2022 9:37 AM, Denis Maier via ntg-context wrote: Hi, I’ve just ran into a behaviour that runs against what is shown on the wiki, https://wiki.contextgarden.net/System_Macros/Comma_Separated_Lists <https://wiki.contextgarden.net/System_Macros/Comma_Separated_Lists> Maybe a bug? More a feature as \define defines a protected macro. \starttext \define\somelist{foo,bar,baz} {\tt\meaningasis\somelist} \getcommacommandsize[\somelist] \commalistsize \defineexpandable\somelist{foo,bar,baz} {\tt\meaningasis\somelist} \getcommacommandsize[\somelist] \commalistsize \starttexdefinition protected somelist foo, bar, baz \stoptexdefinition {\tt\meaningasis\somelist} \getcommacommandsize[\somelist] \commalistsize \starttexdefinition somelist foo, bar, baz \stoptexdefinition {\tt\meaningasis\somelist} \getcommacommandsize[\somelist] \commalistsize \semiprotected\def\somelist{foo,bar,baz} \getcommacommandsize[\somelist] \commalistsize \getcommacommandsize[\semiexpanded{\somelist}] \commalistsize % also in next version: % % \starttexdefinition semiprotected somelist % foo, % bar, % baz % \stoptexdefinition % % {\tt\meaningasis\somelist} % % \getcommacommandsize[\somelist] \commalistsize % \getcommacommandsize[\semiexpanded{\somelist}] \commalistsize \stoptext The semiprotected is something lmtx and only expands when explicitly asked for (like in an \edef or so). Something that we might apply in the core some day. 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] recursion in a table
On 5/2/2022 2:30 AM, Aditya Mahajan via ntg-context wrote: \expanded{\NC \recurselevel \noexpand\NC ... } There is no need for \noexpand before \NC. Even \NR is protected. In MKIV there are some more sensitive ones like \FR but in LMTX these are defined as \noaligned which permits them being protected too (the engine's alignments scanners have some lookahead properties that cna otherwise interfere). \starttabulate[||] \NC \infofont\meaningasis \NC \NC \NR \NC \infofont\meaningasis \NR \NC \NR \NC \infofont\meaningasis \HL \NC \NR \NC \infofont\meaningasis \FL \NC \NR \stoptabulate Remind me of a more-than-a-decade-old discussion on the mailing list, summarized here: https://adityam.github.io/context-blog/post/tex-programming/ Also, \HL doesn’t work at the end, and the second line of the error message makes no sense: As you're not afraid of low level code: \starttext \starttabulate[|r|c|] \NC $T$ \NC what \NC \NR \HL \expandedloop 0 359 45 { \NC \number\currentloopiterator ˚ \NC \NC \NR } \stoptabulate \stoptext So, you can play with: \expandedloop \unexpandedloop \localcontrolledloop \quitloop \currentloopiterator \currentloopnesting \lastloopiterator if you want a challenge for a new blog post. 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] Fuzzy paragraph when exporting to XML
On 5/1/2022 12:17 AM, Aditya Mahajan via ntg-context wrote: On Sat, 30 Apr 2022, Hans Hagen via ntg-context wrote: On 4/29/2022 4:59 PM, Aditya Mahajan via ntg-context wrote: Hi, I am trying to debug a bug-report for t-vim: https://github.com/adityam/filter/issues/64 Exporting with trackers=export* gives a warning: backend > export > fuzzy paragraph: I have managed to narrow it down to the attached MWE (which does not depend on the t-vim module at all). Compiling it using $context --trackers=export\* lines gives the fuzzy paragraph warning. Any hints on how to resolve this? As you like challenges ... you can way more narrow it down ... \setupbackend[export=yes] \starttext { \forgetall % \forgeteverypar x\strut\par } \stoptext the problem is that you basically loose *all* par related tagging now so you need to bring that back, which is (of course i had to look it up) is done with for instance \forgeteverypar which forgets (as in \forgetall) but not really all Thanks! I manually tag start and end of lines anyways (using \SYNBOL ... \SYNEOL), so I can add \dotagsetparcounter in \SYNBOL and that removes the warning! dangerous ... what if you get every line cna be a par or the while can have the same par number ... these par numbers are used to determine what text belongs to a meanignful something 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] Fuzzy paragraph when exporting to XML
On 4/29/2022 4:59 PM, Aditya Mahajan via ntg-context wrote: Hi, I am trying to debug a bug-report for t-vim: https://github.com/adityam/filter/issues/64 Exporting with trackers=export* gives a warning: backend > export > fuzzy paragraph: I have managed to narrow it down to the attached MWE (which does not depend on the t-vim module at all). Compiling it using $context --trackers=export\* lines gives the fuzzy paragraph warning. Any hints on how to resolve this? As you like challenges ... you can way more narrow it down ... \setupbackend[export=yes] \starttext { \forgetall % \forgeteverypar x\strut\par } \stoptext the problem is that you basically loose *all* par related tagging now so you need to bring that back, which is (of course i had to look it up) is done with for instance \forgeteverypar which forgets (as in \forgetall) but not really all 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] Need some hints to fix my standalon installation
On 4/20/2022 7:07 PM, Christoph Hintermüller via ntg-context wrote: Hi Michael [Inline Response to message by Mikael Sundqvist via ntg-context, Mi, 2022-04-20 17:12 +0200: Answers and comments below corresponding cited paragraphs.] The strange thing with fractions seems to be due to the parameter FractionNumeratorDisplayStyleShiftUp in lm.lfg. If you always set it to 600, it seems to work also for luatex. (This will be fixed.) Another thing: Instead of using \over, I suggest that you use \frac (less surprises). Something like: \starttext \startformula a=b + 1 \stopformula \startformula a = \frac{ b + \mu }{ c } \stopformula \startformula a = \frac{\frac{ b + \mu }{ c } + e}{ d + i } \stopformula \stoptext Thank you very much for the hints. \frac didn't help either even after moving broken installation aside and doing a fresh install with sh ./first-setup.sh --modules=all --context=latest Results still similar see attached. We had to adapt the lfg file for lm (other fonts are ok) so i'll make an update. If you're in a hurry, in lm.lfg: parameters = { FractionNumeratorDisplayStyleShiftUp = 600, -- used to be a function NoLimitSupFactor = 0, NoLimitSubFactor = 900, -- AccentBaseHeight = 0, AccentBaseDepth = 50, }, can be adapted. 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 upload
On 4/20/2022 3:47 AM, śrīrāma wrote: On 4/19/22 11:53 PM Hans Hagen via ntg-context wrote: I uploaded a new lmtx. Some more adaptive magic ... I'm not sure how usefull it is but users always find ways to apply such things. I attached a test file. Hi Hans, Thanks very much for the upload and the tutorial on 'adaptive'. It seems very impressive and right away, one application which I could think of in my case is its use in denoting prosodic elements in verses (of poems). For this purpose I was using \definebar, \setupbar so far to indicate certain types of elements of verses; now I think this being far more advanced might be more applicable. if you need more control / features it can probably be provided 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] new upload
Hi, I uploaded a new lmtx. Some more adaptive magic ... I'm not sure how usefull it is but users always find ways to apply such things. I attached a test file. 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 -\starttext \setupexternalfigures [location={default,global}] \startMPdefinitions def TickTock = interim linecap := squared; save p ; path p ; p := fullsquare xysized(AdaptiveWidth,.9(AdaptiveHeight+AdaptiveDepth)) ; fill p withcolor AdaptiveColor ; draw bottomboundary (p enlarged (-AdaptiveThickness) ) withdashes (3*AdaptiveThickness) withpen pencircle scaled AdaptiveThickness withcolor white ; enddef ; \stopMPdefinitions \startsetups adaptive:test \setbox\usedadaptivebox\hbox to \usedadaptivewidth yoffset -.9\usedadaptivedepth \bgroup \hss \startMPcode TickTock ; \stopMPcode \hss \egroup \stopsetups \definecolor[adaptive:tick][.25(blue,green)] \definecolor[adaptive:tock][.75(blue,green)] \defineadaptive [tick] [setups=adaptive:test, color=adaptive:tick, foregroundcolor=white, foregroundstyle=\infofont, strut=yes] \defineadaptive [tock] [tick] [color=adaptive:tock] \dorecurse{5}{ \dostepwiserecurse{1}{150}{1}{% this~#1.##1 is~#1.##1 test~#1.##1 \ifodd##1\relax \adaptivebox[tick]{\hss tick #1.##1\hss} \else \adaptivebox[tock]{\hss tock #1.##1\hss} \fi } \blank } \startsetups adaptive:test \setbox\usedadaptivebox\hbox to \usedadaptivewidth yoffset -\usedadaptivedepth \bgroup \externalfigure [cow.pdf] [width=\usedadaptivewidth, height=\dimexpr\usedadaptiveheight+\usedadaptivedepth\relax]% \egroup \stopsetups \dorecurse{5}{ \dostepwiserecurse{1}{150}{1}{% this~#1.##1 is~#1.##1 test~#1.##1 {\adaptivebox[strut=yes,setups=adaptive:test]{}} } \blank } \page \startsetups adaptive:test \setbox\usedadaptivebox\vbox to \usedadaptivetotal \bgroup \externalfigure [cow.pdf] [width=\usedadaptivewidth, height=\usedadaptivetotal]% \egroup \stopsetups \ruledvbox to \textheight { \par \begstrut \samplefile{tufte} \endstrut \par \adaptivevbox[strut=yes,setups=adaptive:test]{\hsize\textwidth\hss} \par \begstrut \samplefile{tufte} \endstrut } \page \startsetups adaptive:test:a \setbox\usedadaptivebox\vbox to \usedadaptivetotal \bgroup \externalfigure [cow.pdf] [width=\framedmaxwidth, frame=on, height=\usedadaptivetotal]% \egroup \stopsetups \startsetups adaptive:test:b \setbox\usedadaptivebox\vbox to \usedadaptivetotal \bgroup \externalfigure [cow.pdf] [width=\usedadaptivewidth, frame=on, height=\usedadaptivetotal]% \egroup \stopsetups \showframe \framed[height=18cm,align=middle,adaptive=yes,top=,bottom=] {% \begstrut \samplefile{tufte} \endstrut \par \adaptivevbox [strut=yes,setups=adaptive:test:a] {\showstruts\strut\hsize5cm\hss}% \par \adaptivevbox [strut=yes,setups=adaptive:test:b] {\showstruts\strut\hsize5cm\hss}% \par \begstrut \samplefile{tufte} \endstrut } \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 ___
[NTG-context] new upload
Hi, I uploaded a new lmtx. Apart from a experimental intersection feature in the mp library (and metafun, more will be revealed when MS an I are okay with it) there is not that much news. I decided to turn some test code into a mechanism which is illustrated below. Adaptive boxes are hboxes that act a bit like glue which means that when we hook in e.g. a graphic it can be made to adapt. We can add some more methods if needed so maybe you see other usage. The interface is rather lightweight and the overhead is quite resonable. Hans === \starttext \startMPdefinitions def TickTock = interim linecap := squared; save p ; path p ; p := fullsquare xysized(AdaptiveWidth,.9(AdaptiveHeight+AdaptiveDepth)) ; fill p withcolor AdaptiveColor ; draw bottomboundary (p enlarged (-AdaptiveThickness) ) withdashes (3*AdaptiveThickness) withpen pencircle scaled AdaptiveThickness withcolor white ; enddef ; \stopMPdefinitions \startsetups adaptive:test \setbox\usedadaptivebox\hbox to \usedadaptivewidth yoffset -.9\usedadaptivedepth \bgroup \hss \startMPcode TickTock ; \stopMPcode \hss \egroup \stopsetups \definecolor[adaptive:tick][.25(blue,green)] \definecolor[adaptive:tock][.75(blue,green)] \defineadaptive [tick] [setups=adaptive:test, color=adaptive:tick, foregroundcolor=white, foregroundstyle=\infofont, strut=yes] \defineadaptive [tock] [tick] [color=adaptive:tock] % with postprocessing \dorecurse{5}{ \dostepwiserecurse{1}{150}{1}{% this~#1.##1 is~#1.##1 test~#1.##1 \ifodd##1\relax \adaptivebox[tick]{\hss tick #1.##1\hss} \else \adaptivebox[tock]{\hss tock #1.##1\hss} \fi } \blank } \page % without postprocessing \dorecurse{5}{ \dostepwiserecurse{1}{150}{1}{% this~#1.##1 is~#1.##1 test~#1.##1 {\showboxes\adaptivebox[strut=yes,foregroundcolor=darkred]{\hss test #1.##1\hss}} } \blank } \page % with images % a weird one \setupexternalfigures [location={default,global}] \startsetups adaptive:test \setbox\usedadaptivebox\hbox to \usedadaptivewidth yoffset -\usedadaptivedepth \bgroup \externalfigure [cow.pdf] [width=\usedadaptivewidth, height=\dimexpr\usedadaptiveheight+\usedadaptivedepth\relax]% \egroup \stopsetups \dorecurse{5}{ \dostepwiserecurse{1}{150}{1}{% this~#1.##1 is~#1.##1 test~#1.##1 {\adaptivebox[strut=yes,setups=adaptive:test]{}} } \blank } \stoptext It actually uses an already present for a while low level engine feature that we introduced as part of the math processing update: \dorecurse {1000} {test \uleaders\ruledhbox{\hss#1\hss}\hskip2em minus 1em\ } Next on the todo is to move some experimental graphic trickery related to math (matrices) into the core but the interfacing needs some thought. 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] modify kern between two glyphs
On 4/5/2022 1:45 PM, mf via ntg-context wrote: It's defined in typo-fkr.lua, but I can't understand what parameters to pass and whether it's the right macro. It looks like it's not. look at the extension examples in the test suite: you can define a kern pair positioning feature than you enable for just that font 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] mkiv
On 4/1/2022 9:19 PM, Denis Maier via ntg-context wrote: Same here... I haven't managed to run mkiv for months. Not a huge deal, but anyway. Best, Denis Von: ntg-context im Auftrag von Pablo Rodriguez via ntg-context Gesendet: Freitag, 1. April 2022 20:37:30 An: Hans Hagen via ntg-context Cc: Pablo Rodriguez Betreff: Re: [NTG-context] mkiv On 4/1/22 18:20, Hans Hagen via ntg-context wrote: [...] So, today is the day we kind of formally freeze MKIV. Just a comment on MkIV. I don’t remember exactly, but I’m afraid that "context --luatex document" hasn’t been working on my computers (either running Linux or Windows) for months now. This isn’t important for me, but just in case it may be relevant for you. If I run "context --luatex document", I get a new directory '$HOME/.texlive2021/texmf-var' created (which includes a "luatex-cache" directory inside) When I run "mtxrun --generate", all required files are generated in "$HOME/context/tex/texmf-cache/luametatex-cache". I wonder why "mtrun --generate" doesn’t generate a "luatex-cache" directory in the same directory containing "luametatex-cache". and how about context --luatex --generate BTW, the '$HOME/.texlive2021/texmf-var/luatex-cache/" directory only contains an empty 'context/d10b607aa0e9d13dde6602f491b76cbc/trees/' path. Just in case it may be relevant and many thanks for ConTeXt, Pablo ___ 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 ___ -- ----- 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] mkiv
Hi, Normally when we're in the 2022 TeXlive code freeze period, there is a snapshot release but because there hasn't been that many changes, maybe a few patches, in MKIV there is no real snapshot this year. But for the sake of consistency we can consider today's version that snapshot. It basically means that MKIV has been frozen and is even more frozen now. All new stuff goes in MKXL (aka LMTX) and I suppose that next year we let that end up in TeXlive alongside frozen MKII and MKIV. Of course bugs will be fixed as usual. So, today is the day we kind of formally freeze MKIV. 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] new upload / more math
Hi, As most of you know by now, Mikael and I are working on a math support upgrade. In order to let users keep up we uploaded a new version. We have been revisioning some of the more obscure constructs where we have no clue of usage, like pmod, bmod, bordermatrix etc, commands that we took (and reimplemented) decades ago from plain TeX or AMS TeX, assuming that these are standards. In this release, encouraged by the positive response we received from users regarding the new simplealignment construction, and in particular regarding the self-explaining sesac, we have decided to introduced some new constructs. First out is \startformula \startxıɹʇɐɯ \NC a_1 \NC b_1 \NC c_1 \NR \NC a_2 \NC b_2 \NC c_2 \NR \NC a_3 \NC b_3 \NC c_3 \NR \stopxıɹʇɐɯ \stopformula for rotation matrices. This was demanded for some advanced math courses that Mikael teaches. It might inspire users to come up with demands that suits their own obscure but nevertheless interesting math. At some point we realized that, with (also) scientific publishers (of math journals) moving to MS Word and Indesign, we operate in a rather peculiar niche and the fact that we use an upgraded and more granular math engine, made us wonder how to communicate all these new features and standards that we set. It is for that reason that from now on we will operate under the CMS umbrella. That abbreviation stands for ConTeXt Math Society. It has no funny swirly TeX logo which itself is a statement: in Unicode math script and calligraphic alphabets are so messed up that it is impossible to have a reliable and predictable rendering. We go for Dutch and Swedish simplicity in the spirit of W.N. Lansburgh: back to the times before TeX was written (1964). There will be no limits and boundaries set. (Talking math limits and boundaries: these can already go everywhere anyway, as can fences.) So, when we mention CMS, we mean serious math business, but kindergarten math is also embraced! There are no consequences for users: ConTeXt users with a proven math track record are automatically a member, but we are not too picky, everyone is welcome. We don't have honorary members but Taco (the first ConTeXt math user) and Aditya (the most experienced one) might consider themselves as such. Mikael Sundqvist is the chairman, which is a livelong appointment. (A nice side effect is that with Arthur living in Sweden too, that gives us a very strong position in the TeX landscape there.) So, today's upload is sort of special: welcome CMS (ConTeXt Math Shines), goodbye AMS (American Math Second). Of course we're open for suggestions and it being an open society all voices will be heard, but only proper (retro) math cf Lansburgh will be honored. Of course we only listen to ConTeXt users and, as that package is not supposed to be used for serious math, we don't bother about the few publishers left that still do math. Are we done? Not yet. We're in the middle of (colorful and graphic) alignment ornaments and after that we're going to expand and improve multi-line display formulas and equation numbering. It will be no coincidence that the cover of Landburghs book about math typesetting has a prominent 'AWE' embedded in a logo with a lion on top: we hope all users are in awe about what the TeX lion can do. Mikael S & Hans H - 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] Full-page Figure?
On 3/30/2022 11:41 PM, Michael Urban via ntg-context wrote: Almost there. But if I add \setuppagenumbering [alternative=doublesided] to the example, there is a blank page before the makeup page, and an unnumbered blank page after. If I add doublesided=no to the \setupmakeup options, the unnumbered blank page is not there, but there is still a blank page before. It is seemingly forcing a right-hand page for some reason I do not understand. does adding page=no help? - 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] \figuresymbol with underlying hyperlink?
On 3/29/2022 10:48 AM, Steffen Wolfrum via ntg-context wrote: Unfortunately I have to use it at a heading: and this gives an error: \starttext \define[1]\Link{\goto{\symbol[wingdings 3][barb1right]}[url(https://#1)]\autoinsertnextspace} \chapter{a\Link} text \stoptext shouldn't you pass some argument to your \Link macro? - 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] upload
Hi, Last night I uploaded a new lmtx: - fix in new strut handling - zint support improved - some more math font tweaks (mikael will enlighten *) - math alignment spacing nornmalized (mikael will explain *) - new simplealignment environmet (mikael will document *) We're now playing a bit more with combining graphics and math (educational usage) Hans * when asked - 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] \setupheadertexts for chapters with different authors
On 3/19/2022 10:18 AM, Henning Hraban Ramm via ntg-context wrote: BTW, I can’t remember when you need \structurevariable vs. \namedstructurevariable... the first is the current, the second a specific one ... so current can be subsubsubsubsubsection but with named you can still get the current chapter BTW, best write it down (your book) some place as it can come in handy ... 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] Metafun, difficulty with graphical element in the margin
On 3/18/2022 8:29 PM, Willi Egger via ntg-context wrote: Good evening! I have a dictionary where I would like to include thumb-pictures in the margin. — When I use the attached code with a single \startchapter...\stopchapter, it works. However if I add another \startchapter…\stopchapter before loading the setups for the thumb-picture metafun throws an error about not having complete information for performing a transformation. I am currently using the before last version of LMTX-ConTeXT (January 21st 2022). Could someone try to compile? works here (with the latest) 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] TeX capacity exceeded.... but....
On 3/17/2022 11:14 PM, jbf via ntg-context wrote: I'd like to understand what is happening in this particular instance: While playing with a suggestion to a recent request (re \currentlistentrynumber etc.) I suddenly got a compiling error: TeX capacity exceeded, sorry [file=2000]. I returned everything to how it was before I was trying out those suggestions, but still got the error, so I began the \stopdocument routine fairly early in the document... same problem still. Then I brought the \stopdocument well forward, immediately after the standard makeup pages and the document compiled. When I removed \stopdocument, the entire document compiled as it should. So the basic question is: what can be causing the error message? This has happened to me on two occasions with this document - it occurred once before I had even begun experimenting with the \currentlistentry options, so I do not think that the problem lies there. And when it occurred that time, I again solved it with \stopdocument routine, but further into the document. And similarly, once it compiled that far and I removed it, the whole document compiled once more. If it is too complicated an explanation for an email response, maybe just point me to a document that explains the issue. a guess ... it looks like you load the same file so you have some nesting / grouping problem; (some file loaders keep track of being loaded but you probably load before that is done) 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] zint module on LMTX
On 3/16/2022 5:37 PM, Pablo Rodriguez via ntg-context wrote: Dear list, using latest LMTX and following the steps from https://wiki.contextgarden.net/Barcodes#Zint_module, I’m afraid I don’t get any barcode either in Linux or Windows. Minimal sample: \starttext \usemodule[zint] \barcode[alternative=isbnx, text=9783865419026, width=4cm] \stoptext Error message is rather weird on Linux: optional> using library '/home/ousia/context/tex/texmf-linux- 64/bin/lib/luametatex/zint/libzint.so' zint> unknown barcode alternative 'isbnx' zint> zint> valid barcode alternatives: zint> [...] zint> isbn zint> isbnx [...] It seems that a valid barcode alternative ends up being unknown to the library. What am I missing here? Many thanks for your help, Are you sure that you have the latest zint? (from sourceforge) - 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] Force a hyphenation
On 3/16/2022 4:48 PM, Willi Egger via ntg-context wrote: Hi, at the moment I am dealing with a German text. Although I have \mainlanguage[de] in the preamble the word 'des Eiweißes' is hyphenated as 'des Eiwei-ßes'. Of course this should be 'des Eiweis-ses'. How can I make sure that ConTeXt is hyphenating this corerctly? \startexceptions[de] Eiwei{s-}{s}{ß}es \stopexceptions \mainlanguage[de] \starttext \hsize 1mm Eiweißes \stoptext 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 upload
On 3/15/2022 9:53 AM, śrīrāma wrote: On Saturday, March 12, 2022 4:46 AM Hans Hagen via ntg-context wrote: Hi, It has been a while since there was an updaste but there it is. [...] There is a rough description in the 'ontarget' document. We hope you enjoy it, at least we did (and so, as we're not finished yet). Hans Dear Hans, Thank you for the remarkable upload! Also, thanks Mikael, for your work as well! The new release coincides with the onset of warm summer months after some cold winters where I live ;) [I am a little late to this discussion since I was held up with some college assignments and work, so sorry for that... I just updated today] I have tested out most of my documents (some with many MetaFun diagrams) and all work well! I have several documents which are very mathematics-heavy and all of those work great as well. In fact, I also noticed some improvements especially with spacing around fractions and signs/other expressions around them. [I must mention that I am using Asana in most documents: it does have its quirks but it is what I have; I also use Libertinus sometimes]. Since I have many expressions with \left \right braces delimiters with large fractions (fractions of fractions, etc.) I was able to notice that the spacing is now better overall. Also I see the truth behind the remark in Asana, before the update, many more things were strange and I had to manually adjust with spaces as necessary, now those don't seem to be necessary. However, Asana continues to remain weird (at least with uppercasescript c haracters as subscripts + delimiters). I had relatively fewer issues with Libertinus and no issues with the fonts in LMTX itself. So overall, I am very happy with it (and grateful for it). I also noticed that ontarget document from the previous upload had not much in it apart from the attractive cover page. Now it has so many nice details which I look forward to studying from. We're glad that you notice the improvements! So it's worth the effort. And more is coming 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 upload
On 3/14/2022 3:05 PM, Rik Kabel via ntg-context wrote: On 2022-03-14 04:01, Hans Hagen wrote: On 3/13/2022 7:58 PM, Rik Kabel via ntg-context wrote: ... 2. How does the goodies mechanism work when the expected version differs from the found version? we check the version number in the font file (a bit of fuzzyness due to the way version numbers ar ento standardized); comparing internals would be an option but also a waste of time i think Understood, but what happens after the check? Is the goodies file used even if there is a mismatch, or is it ignored? not ignored ... more a warnign that you're on your own risk - 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 upload
On 3/13/2022 7:58 PM, Rik Kabel via ntg-context wrote: With regard to math fonts, I notice that the goodies file for Libertinus expects version 6.8 of the font, but the current version (since February 2021) is 7.040, and much work appears to have gone into the math font. the main issue with math font is in 'unfortunate' glyph dimensions and we doubt that these will change over time (as fonts are supposed to be stable); adding shapes is another matter Two questions, then: 1. Is Libertinus Math considered a "useful" math font? Mikael knows .. I never used libertinus (and am an unlike candidate; i mostly use cambria, pagella, dejavu, lucida) 2. How does the goodies mechanism work when the expected version differs from the found version? we check the version number in the font file (a bit of fuzzyness due to the way version numbers ar ento standardized); comparing internals would be an option but also a waste of time i think (I understand that keeping up with evolving fonts is somewhere between difficult and impossible.) which is why we want to freeze on versions ... an update to another version then becomes explicit; of course we can also consider having multiple instances of a font but then we also need to set up a repository I also note that the typescript for libertinus is quite old and does not reflect the semibold variants that have been available for some time. I prefer them to the bold variants, and my own typescript for libertinus does incorporate them. I am happy to share it if anyone wants it. We cannot suddenly change the 'default', but we can have additional choices in the file for semi versions (some more fonts have that). You can send your typesctipt file to Mikael and me and we can have a look. (Not sure if I should update libertinus now. Sometimes fonts change too much, like for instance ebgaramond did, and one can get rather different output.) 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 upload is DOA on my M1 Mac
On 3/12/2022 5:18 PM, Gavin wrote: Hi Mojca, I think my security settings are preventing me from using this luametatex file. When trying to update the installation, I got a window that says: “luametatex” can’t be opened because Apple cannot check it for malicious software. When I tried running mtxrun --generate, in Terminal, I got the response: zsh: permission denied: mtxrun I’m not sure how to get around this. i uploaded a new installer / uopdates with mojca's bin 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 upload is DOA on my M1 Mac
On 3/12/2022 5:18 PM, Gavin wrote: Hi Mojca, I think my security settings are preventing me from using this luametatex file. When trying to update the installation, I got a window that says: “luametatex” can’t be opened because Apple cannot check it for malicious software. When I tried running mtxrun --generate, in Terminal, I got the response: zsh: permission denied: mtxrun I’m not sure how to get around this. wasn't that discussed on the list at some point? some tricks to tell osx it's okay? maybe search the archives - 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] \asciimode and MetaPost in LMTX result in “Isolated expression”
On 3/12/2022 3:35 PM, Marco Patzer via ntg-context wrote: On Mon, 31 Jan 2022 20:02:42 +0100 Marco Patzer via ntg-context wrote: LMTX seems to have an issue with \asciimode and MetaPost: \asciimode \starttext \startMPcode fill unitsquare scaled 2cm; \stopMPcode \stoptext Results in: metafun > log > error: Isolated expression This is still an issue with today's ver: 2022.03.12 11:27 LMTX. that's because ascimode messes up some catcodes .. you can try this (in cont-new.tex): \prependtoks \setcatcodetable\ctxcatcodes \to \everyMPgraphic and then do lots of tests with and without asciimode so see if this doesn't interfere 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 upload is DOA on my M1 Mac
On 3/12/2022 3:12 PM, Gavin via ntg-context wrote: Hi List, I just installed the new upload on my M1 mac using my usual procedure, which is to update the modules and then run sh ./install.sh (details here: https://wiki.contextgarden.net/Modules#ConTeXt_LMTX, simplified method). Afterwords, a hello world context document produced no effect, not even a single entry in the console, when using TeXShop. Using the command line to run mtxrun --generate. All I got from the effort was: zsh: killed mtxrun --generate I’m not sure what that means, but it isn’t promising. I restored my previous ConTeXt installation any everything is fine again. If anyone else has the new upload working on an M1 Mac, or can confirm that it isn’t working, I’d like to hear about it. there are occasional issues with the M1 mac in the build farm (can be the vm crashing or some network issues or some osx update or ...) so maybe it relates to a recent drop out I pushed a new 'version' to force a build so you can try to pick up the right binary from https://build.contextgarden.net/#/waterfall?tags=c.luametatex and see if that one works (so run the update and then use that bin and remake the formats) .. if that fails i need to make new zips question for mojca: i see al getting compiled, even the vm on the mac but not the arm mac bin itself so is the main one listening to the master? : luametatex.darwin-arm64.moj stays inactive 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] new upload
, as we're not finished yet). 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] redefining xmlsetups inside a XML document
On 3/10/2022 4:59 PM, mf via ntg-context wrote: Hello, I'm trying to add new templates (xmlsetups) from the XML document itself. See the attached MWE. - the XML document is a simple XHTML file - in the "head" element there's a "script" element with the "type" attribute set to "text/vnd.context", whose contents are then passed to \xmlcontext - the "body" element has a "data-xmlsetups" attribute whose value should tell which xmlsetups is to be applied on the body contents (it's defined in the "script" element above) If it worked, the resulting PDF should show the body element, followed by a "Hello world!" paragraph written in red. But it does not work, because there's something I'm missing in the redefinition and application of xmlsetups. To try the MWE, type: context --environment=nested-xmlsetup.tex --forcexml nested-xmlsetup.xhtml \startxmlsetups myHtml \xmlsetsetup{#1}{p}{myHtml:p} % you're missing this \xmlsetup{#1}{xml:process} % which is % \xmlregistereddocumentsetups{#1}{#1} % \xmlmain{#1} \stopxmlsetups \startxmlsetups myHtml:p \dontleavehmode\red\xmlflush{#1}\par \stopxmlsetups ----- 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] TeXGyre Heros on Firefox
On 3/10/2022 1:44 PM, juh via ntg-context wrote: Dear all, there were some discussions on pdf viewers on the list and I know that things are not always fine. I now have a problems with the Firefox pdf viewer and TeX Gyre Heros. The font looks uneven in FF, no problems elsewhere. so a ff problem then When I scroll into the pdf to set the display to 150% or more the font shows up just fine. So it seems to be a display problems with firefox. I tried several pdf versions no change. My configuration: \definefontfamily[mainfont][serif][texgyreheros] \definefontfamily[mainfont][sans] [textgyreheros] \definefontfamily[mainfont][mono] [texgyrecursor][features=none] \definefontfamily[mainfont][math] [texgyrepagellamath] \definefallbackfamily [mainfont] [rm] [Latin Modern Math] [scale=0.925, range=0x22C0] \definefontfeature[smallcaps][script=latn, protrusion=quality, expansion=quality, smcp=yes, onum=yes, pnum=yes] \setupalign[hz,hanging] \setupitaliccorrection[global, always] Is there anything I can do? And the is another issue: To my big surprise ArialBold MT is included into the file. mtxrun --script pdf --fonts hostsharing-vereinshandbuch.pdf the arial comes from an image - 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] Few quick questions
On 3/9/2022 5:26 PM, Christoph Hintermüller via ntg-context wrote: Ok replaced everything i could find with \start* \stop* pairs which got me far down the document just the last about 4 pages. The only thing when comparing with examples for using exporter which still differs is that i use blank line in my sources. Does this implicit definition of paragraphs cause any hickups in exporter and would it be adviseable to enclose each paragraph in \startparagraph and \stopparagraph? Or should that be no issue for xmlexporter and would ensuring clean recent install be more efficient in this case. normally there is no need to mark paragraphs 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] After Compiling the Test, which usualy works perfect
On 3/8/2022 4:08 PM, Ursula Hermann via ntg-context wrote: Dear Hans, Thank you for your answer. So what should I do? probably set the your path ... then run mtxrun --generate and try again 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] What’s wrong with installation?
On 3/8/2022 3:58 PM, Henning Hraban Ramm via ntg-context wrote: Am 08.03.22 um 14:03 schrieb Hans Hagen via ntg-context: On 3/8/2022 12:55 PM, Stephen Gaito via ntg-context wrote: Hans, I am having the same problem on an XUbuntu 21.10 : hm, maybe the server has some issue ... i rebooted the machine Thank you! I can confirm it’s working again – and the current version is much faster than the previous one, because it doesn’t write so many logging/debugging messages. Now to check all my projects are working... actually, that current version is not that current ... so you could have gotten that gain more than a month ago (btw, you only got that 'temporary' enabled plenty of detail when you had many overfull boxes so you still need to check that) we are progressing with the math so i suppose that there will be an update soon, if only because users can then test if we messed up 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] After Compiling the Test, which usualy works perfect
On 3/8/2022 3:35 PM, Ursula Hermann via ntg-context wrote: Dear List, I have Windows 10, and WinEdt 10.3., actual verison. I wanted to do the test, but only I got this, after compiling: Command Line: C:\texlive\2021\bin\win32\context.exe --synctex=-1 "context-test.tex" Startup Folder: C:\Users\Hermann\Downloads\cont-tmf\tex\context\test\mkiv mtxrun | unknown script 'context.lua' or 'mtx-context.lua' did you mix texlive with the lmtx install? - 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] What’s wrong with installation?
On 3/8/2022 12:55 PM, Stephen Gaito via ntg-context wrote: Hans, I am having the same problem on an XUbuntu 21.10 : hm, maybe the server has some issue ... i rebooted the machine 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] What’s wrong with installation?
On 3/8/2022 10:06 AM, Ursula Hermann via ntg-context wrote: Dear List, I can't make the installation context-mswin.zip, too. that's 32 bit windows ... are you sure you don't need 64 bit? - 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] LMTX | (.\) at end of line causes fatal error
On 3/5/2022 9:39 PM, Richard Mahoney via ntg-context wrote: Something I've noticed for a little while now, although it may be long standing, I'm not sure. If one ends some of the lines in the input files with a full stop (.) and a back slash (\) then LMTX will fail to compile with a fatal error. The only way to recover is to go through each of the files and ensure that no line ends with (.\). Is this a bug? can there be somee invisible character after the \ ? otherwise, we need a mwe 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] No svg file output
On 3/3/2022 10:54 PM, Jan-Erik Hägglöf via ntg-context wrote: Dear list! This seems strange, what is wrong? No output from svg-file. \starttext \startMPcode picture utf1; utf1:= lmt_svg [ filename = "utfall01b.svg"]; numeric l ; l := bbwidth(utf1); numeric h ; h := bbheight(utf1); numeric scale ; scale := 3 ; draw utf1 xsized l*scale ysized h*scale; \stopMPcode \stoptext \starttext \startMPcode picture ValidName; ValidName:= lmt_svg [ filename = "utfall01b.svg"]; numeric l ; l := bbwidth(ValidName); numeric h ; h := bbheight(ValidName); numeric scale ; scale := 3 ; draw ValidName xysized (l*scale,h*scale); \stopMPcode \stoptext - 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] LMTX-latest | SciTE 5.1.6 --- 5.2.1 | Not working with tex/texmf-context/context/data/scite
On 3/3/2022 12:08 AM, Richard Mahoney via ntg-context wrote: [Gentoo] I've found that the config included with LMTX in: tex/texmf-context/context/data/scite does not work with SciTE 5.1.6+ The latest version that seems to be working is SciTE 5.1.5. Version 5.1.5 Scintilla: 5.1.4 Lexilla: 5.1.3 compiled for GTK:3.24.29 Nov 14 2021 12:15:50 Is anyone else having any issues? for long i time tried to keep up with the changes in the lpef plugin but it kept changing to i quit using it; in the zip below is a version of scite with a built in lpeg ... i have adapted teh lexers but need to have a look at them again (i now go via some scite interfaces but these sometimes have side effects i need to nail down more). http://www.pragma-ade.com/context/latest/cont-sci.zip 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] gzip.compress in ConTeXt mkiv
On 3/2/2022 12:47 AM, Marcel Fabian Krüger via ntg-context wrote: Hi, The following document \directlua{ local arch = gzip.compress"I will become much much smaller, once the overhead is compensated" local orig = gzip.decompress(arch) print(arch:len(), orig:len(), orig) } \starttext \stoptext used to work in ConTeXt mkiv and still works in ConTeXt lmtx, but for current mkiv versions it breaks with ...mtx/tex/texmf-context/tex/context/base/mkiv/util-zip.lua:610: attempt to call a nil value (upvalue 'tocardinal1') stack traceback: ...mtx/tex/texmf-context/tex/context/base/mkiv/util-zip.lua:610: in upvalue 'putcompressed' ...mtx/tex/texmf-context/tex/context/base/mkiv/util-zip.lua:662: in function 'gzip.compress' [ctxlua]:1: in main chunk i'll check it (at some point i need to split code paths a bit more i think) 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] Cyrillic alternate form in Neacademia
On 2/19/2022 4:59 PM, Stefan Nedeljkovic via ntg-context wrote: Dear list, I'm using the typeface Neacademia Text, and I'm trying to configure it to the specifics of the Serbian language. I want to replace the usual form of the lowercase cyrillic letter BE with the traditional Serbian form. I opened the font file in Font Forge and looked up the glyph info. Here is what I tried and what failed: \startluacode fonts.handlers.otf.addfeature { name = "besub", type = "substitution", data = { ["uni0431"] = "uni0431.SRB.alt" } } \stopluacode \definefontfeature[default] [mode=node,kern=yes, liga=yes,dlig=yes, calt=yes,ss03=yes, case=yes,ccmp=yes, locl=yes,script=cyrl,language=srb, besub=yes] No luck using hex codes either: \startluacode fonts.handlers.otf.addfeature { name = "besub", type = "substitution", data = { [0x1ab] = 0x3f8 } } \stopluacode"uni0431" Interestingly the single substitutions from page 175 of the fonts manual seem to work just fine. Any help is appreciated. hard to say but you enabel quite some features so probably uni0431 is already replaced .. maybe prepend = true, helps ----- 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] Disable reuse of figures
On 2/19/2022 7:30 AM, Aditya Mahajan via ntg-context wrote: Hi, This is related to a bug report for the filter module: https://github.com/adityam/filter/issues/60 Normally, when the same figure is included twice, context only includes the figure once and refers to the included figure the second time. The option `object=no` to externalfigure is supposed to prevent that, but it doesn't work. For example, consider the following example the bug-report uses graphviz as the external program, but I have changed that to context to keep things self contained) \usemodule[filter] \defineexternalfilter [graphviz] [ filter=context --purge, output=\externalfilterbasefile.pdf, readcommand=\ReadPDF, ] \def\ReadPDF#1% {\externalfigure[#1][object=no]} \starttext Circle: \startgraphviz \startMPpage draw fullcircle scaled 1cm; \stopMPpage \stopgraphviz Square: \startgraphviz \startMPpage draw fullsquare scaled 1cm; \stopMPpage \stopgraphviz \stoptext Behind the scenes, the first \startgraphviz ... \stopgraphviz environment writes the content to an external file (\jobname-temp-graphviz.tmp), runs `context --purge \jobname-temp-graphviz.tmp`, which creates `\jobname-temp-graphviz.pdf`. The `\ReadPDF` macro then includees the file (with object=no). At the next \startgraphviz .. \stopgraphviz, the same process is repeated. The `\jobname-temp-graphviz.pdf` file is overwritten and the new file should have been included. But it is not. The output contains the first image twice. I thought that object=no should have prevented the reuse. In fact, if I compile the file with luatex, I get an error message: ! error: (pdf inclusion): file has changed '12-two-outputs-temp-graphviz.pdf' mtx-context | fatal error: return code: 256 Any idea why object=no is not working? the pdf file is kept open, for various reasons: - performance - the might be different pages to fetch - analysis happens when the image is placed, inclusion happens later so you try to reopen an already open file (which has not been completely processed) 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] Suggestions for more math classes?
On 2/16/2022 3:29 PM, Gavin via ntg-context wrote: Hi Mikael, A while back you asked the list about math class ideas. Q1: Do you have any further suggestions on new classes (or comments on these)? It might be good to think about situations where you have felt that you need to insert manual spaces such as \, or \! to obtain a better result. Three things came to mind: 1) Units, where I use: \, to separate units from the number \rm to get the text font \!\cdot\! to get something like kg•m/s there is a units module (always has been, but it moved to the physics domain) 2) Digits, where I use {,} to get a thousands separator idem, there are mechanisms for that (independent of math) 3) Chemical equations, which seem to be in their own strange world right now that belongs in the chemical modules (i probably need to check prescritps and spacing there) Thanks for working on CoTeXt math! attached a teaser that abuses digit classes ... there is now (on our machines) a rather extensive mechasm for pairing classes (of any kind), inheritance, penalties, edge slack handling, native integrals (large operators), optimized linebreaks wrt math, scaled fenced stuff breaking across line (we're now ironing out some crazy symbols that no one ever bothered about but that annoy us) 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 - demo.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] Harfbuzz plugin and colors
On 2/14/2022 3:47 AM, Jairo A. del Rio via ntg-context wrote: Hi, list! I've tested the Harfbuzz plugin in ConTeXt and it works nicely for most cases. However, color doesn't seem to work. Is this intended? I know this plugin won't be supported, but I'll be fine with pointers to solve this issue. Thanks in advance. \usemodule[fonts-plugins] \definefontfeature[harf] [mode=plug, features=harfbuzz, shaper=native] %Just to test Harfbuzz is actually working \definefontfeature[devaA][harf] [language=dflt, script=deva] \definefontfeature[devaB][default] [script=deva] \definefontfeature[colored][harf] [language=dflt,script=arab, colr=yes] %doesn't do anything \startbuffer[hindi] i honestely have no clue if color will work (also because hb is in a sort of continuous flux wrt updates and so, and i tend not to update libraries without knowing why) .. as long as there is nothing needed that is handled by node mode such things should work keep in mind that this is just there because idris and i wanted to compare the output different rendering approaches (on windows one can use the uniscribe mode and uniscribe is sort of the reference so in case of doubt we try to follow that) but i haven't looked at if for years using that plugin is it's a bit of a gamble wrt what features to enable adn what heuristics kick in, but you can try at least to enable arabic \definefontfeature[colored][arabic,harf] [language=dflt,script=arab, colr=yes] %doesn't do anything however, it looks like i have to itercept a default color (doesn't relate to plugins) so i'll send you the one-line patch for that (at least in node mode that works) 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] Regular Online meeting
On 2/7/2022 10:12 PM, Gerhard Schramm via ntg-context wrote: Dear Hraban, Dear Hans I'm looking for a way to automatically rotate a graphic (DIN_A4_PDF_Pages). I try to manage technical manuals with Context. (Which is really great!) To do this, I have to import always new PDF-pages (technical sketches) , which can be in landscape or portrait format. The pages should always be displayed as large as possible on the pages of my manuals. (I have no influence on the PDF's, as they come from other departments.) Do you see a possibility here? kind regards Gerd \starttext \showframe \starttexdefinition MaxFigure #1#2 \page \getfiguredimensions[#1][page=#2]\relax \ifdim\figurewidth>\figureheight\relax \externalfigure [#1] [page=#2, frame=on, orientation=90, width=\textheight] \else \externalfigure [#1] [page=#2, frame=on, height=\textheight] \fi \page \stoptexdefinition \MaxFigure{math.pdf}{1} \MaxFigure{math.pdf}{2} \stoptext - 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] XMP metadata schema yields invalid PDF/A
On 2/4/2022 7:29 PM, Karl Pettersson via ntg-context wrote: Hi PDF/A files generated using ConTeXt fail validation with veraPDF, and the reason seems to be that the dc:description metadata is defined with the wrong type in the embedded XMP extension schema. https://tex.stackexchange.com/questions/632380/generate-pdf-a-with-context https://github.com/veraPDF/veraPDF-library/issues/1224 I can reproduce the problem using TeX Live 2021 (MkIV 2021.03.05). The definition seems to be controlled by this code. https://source.contextgarden.net/tex/context/base/mkiv/lpdf-pua.xml?search=rdf#l81 so "dc:description" is not permitted? it is mentioned in https://www.dublincore.org/specifications/dublin-core/dcmi-terms/#http://purl.org/dc/elements/1.1/description (btw it never failed before) 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] Transliteration
On 2/3/2022 10:01 PM, Mojca Miklavec wrote: On Thu, 3 Feb 2022 at 21:41, Hans Hagen wrote: I have also merged the Serbian hyphenation patterns, so there is no need to switch the language in order to have hyphenation in transliterated text. That was possible because cyrillic and latin scripts use different code points, and there are no conflicts in patterns. So I suggest merging the patterns for Serbian cyrillic and latin. I'd like to hear Arthur / Mojca on that we can of course load them both but if that is an upstream merge i'll wait for that Yes, loading both patterns at once is definitely the correct approach. That's what the rest of the TeX world already does (at least LuaTeX and XeTeX; pdfTeX not of course), see https://github.com/hyphenation/tex-hyphen/blob/master/hyph-utf8/tex/generic/hyph-utf8/loadhyph/loadhyph-sr-latn.tex We have two sets of Cyrillic patterns (and several Latin ones as well), so composing a single file was a bit of a (somewhat political) challenge. Now at least in theory the users are free to choose which of the two sets of patterns they want. I never checked what ConTeXt was doing with the Serbian patterns. Personally I would suggest taking hyph-sh-cyrl.pat.txt and hyph-sh-latn.pat.txt. we currently do this: { "sr", "hyph-sr","serbian", false, { "hyph-sr-cyrl", "hyph-sr-latn" }, }, so you suggest to replace that by the "sh" variants 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] lmtx
Hi, There haven't been updates and the reason is that we're in the middle of math and/or wrapping up on transliteration / indic (for which there is also a nice wiki page being made). Concerning math, we're progressing with some rather flexible spacing, penalty, linebreak extensions but don't want to risk that when not used it gives different results (probably not all can be completely compatible but that is a side effect of getting rid of some hard coded assumptions in the engine). One objective is to make input a bit easier and predictable, esp wrt the often needed correction spacing (\, and friends). Anyway, in addition to Mikaels request for input an while ago ... if there are 'tex math annoyances' that you think originate in the way tex expects input, and you'd like them to be taken into account, let us know. 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] Transliteration
On 2/3/2022 8:15 PM, Ivan Pešić via ntg-context wrote: Hello! I've been working on a Serbian book and I had to transliterate it from cyrillic to latin. There's been some nice improvement in transliteration, and I would like to propose a small change. One of the peculiarities that current transliteration mechanisms (both internal one and the 3rd party module from Philipp Gesang) don't process is that Љ, Њ and Џ are transliterated to Lj, Nj and Dž in normal words that start the sentence, or in names that normally start with a capital letter, but in titles written in all capitals they should be transliterated to LJ, NJ and DŽ. So, the quick solution was to update the current mapping vector and add another one (that is attached) that maps cyrillic capitals to LJ, NJ and DŽ and set the correct 30 letters used in Serbian language. It requires a bit more manual work to set the correct mapping for all capitals text, but it works. I have also merged the Serbian hyphenation patterns, so there is no need to switch the language in order to have hyphenation in transliterated text. That was possible because cyrillic and latin scripts use different code points, and there are no conflicts in patterns. So I suggest merging the patterns for Serbian cyrillic and latin. I'd like to hear Arthur / Mojca on that we can of course load them both but if that is an upstream merge i'll wait for that you can actually map multiple to multiple in the tranmsliteration tables ["foo"] = "oof" and such and there is in the next version also an exception mechanism that permits clone a transliteration and add exceptions There is another issue if one wants to use a dropcap and the rest of that first word, and several following words are to be typeset in small caps. If that first letter is Љ (or other two letters that transliterate as digraphs), then the second letter of the digraph is not typeset in small caps because it gets injected before the group that turns on small caps. For example: \placeinitial Љ{\sc уди нису знали} but this is quite a special case... you can use \settransliteration{name} locally so as part of a style specification (there is also \resettransliteration) the next upload has some more that Sreeram is currently documenting on the wiki 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] registers, how to ignore quote marks
On 1/30/2022 1:30 AM, jbf wrote: The several responses to my floundering with the register have been very helpful, though I would have to confess that I have ended up 'messing with' things (suggested by Hans re the [key]) and getting a satisfactory result in almost every case without always understanding why. But I can say that I have the 'sorting' issue resolved if it is a main entry, including if that entry is surrounded by quote marks or has one part of that entry formatted differently (e.g. italics). But I don't seem able to apply this to subentries! I cannot solve the sorting of subentries that have special features (e.g. I might have needed italics for part of a subentry, or the subentry is surrounded by quote marks). Here are my two situations (and in each case they appear out of alphabetical order in the subentry list): 1. \index{animals+‘special kinds’}: in this case ‘special kinds’ appears in the subentry list at the bottom of the list, after one that starts with 'v'. I 'messed with' this by adding keys, e.g., \index[Animals] etc. but the item disappeared from the index altogether. 2. \index{Plenary Council+{\it periti} (experts)}: in this case it is the italicised /periti/ that appears out of place, after the letter 'i' rather than after 'p'. Again I tried putting various keys but this did not help. I guess my confusion is this: I assumed that the [key] establishes the literal string which determines sort order. That seems to be the case for a main entry. How do I get it to work for a subentry? just provide an extra key: key+subkey 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] How to create multiple PDFs from one TeX file?
On 1/29/2022 3:47 PM, Joel via ntg-context wrote: I have several books in a set that have many things I'd like to have linked together, such as page references, shared indexes, shared glossaries, etc. One solution I see is putting all the files together, then using a tool like pdfjam to seperate the pages later, but I'm wondering if ConTeXt can already produce multiple files, or a split in the PDF, already? I tried this code below, as I hoped it would create two PDFs, but it only rendered everything between the first set of `\starttext` and `\stoptext`. --Joel Minimum example: \starttext This is document 1. \input knuth \stoptext \starttext This is document 2. \input knuth \stoptext context --extras select - 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] registers, how to ignore quote marks
On 1/29/2022 11:02 AM, jbf via ntg-context wrote: Thanks for this response. I'll have to work on this (but tomorrow... it's late at night for me at the moment). I can see part of what you mean: I can use, for example \index[myindex]{\it Book title} (Book Author) and get the correct result, but not sorted properly, so I have to understand how, as you say, to 'set the sort entry to the unformatted version' which is not clear to me at the moment. I'll tackle it on the morrow when I'm thinking more clearly! there is key and entry with key between [] when sorting, the key wins but because there can be duplicates the entry itself is also part of the final sort key the accumulates sort key is sanitized and after that sorting happens in several stages (these can be defined / adapted) according to language, taking numbers into account and finally using the unicode ordering ... you can fool the system by messing with the [key] it's not the easiest subsystem (but it has a long history ... as with many subsystems the principles are not much different than mkii and the code seldom changes but of course evolved) 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 upload
On 1/27/2022 7:35 PM, Aditya Mahajan via ntg-context wrote: 2. luametatex: https://aur.archlinux.org/packages/luametatex/ Just an additional warning: one should not pick up bins from the build farm unless oen knows what's happening ... the current builds are okay for Mikael and me while playing with math but therefore don't match the latest 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 / 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] Suggestions for more math classes?
On 1/27/2022 9:36 AM, Mikael Sundqvist via ntg-context wrote: Dear all, While discussing spacing in math with Hans, we have come to the conclusion that to have better control and cleaner code there might be a good idea to have more math classes than the usual ones in TeX (ord, op, bin, rel, open, close, punct, inner (and some that we need not to think about)). So far, Hans has implemented frac and rad for fractions and radicals. The fractions has been a funny construction, being put inside empty delimiters, and so surrounded by the \nulldelimiterspace (which has been set to 1.2pt, independent of font size). Now we have better control of the spacing around fractions. Hans has opened up (even in the code) for the addition of more classes. The overall aim is to have a more coherent and logical way of typing math, without manual adding of (arbitrary) spaces every now and then. For example, we have always written \int f(x)\, dx to have a thin space between the closing parenthesis and the d in integrals. There will (most likely) be a differential class. Since the d might occur in other places in a formula with integrals, one cannot just simply give the letter d the differential class, and we are currently discussing the correct way for the user to type it. If you have suggestions, please let us hear! Some further suggestions by Hans are (see below for two more) 13 imaginary 14 differential 15 exponential 16 function Q1: Do you have any further suggestions on new classes (or comments on these)? It might be good to think about situations where you have felt that you need to insert manual spaces such as \, or \! to obtain a better result. I give one contribution: I asked a colleague to look in his TeX files for manual spaces, and he came up with several \, (usually before the d in integrals) but also with \!. This \! occurred mostly in fencing situations to have the exponent come a bit closer to the closing parenthesis. \left( \frac{x}{2} \right)^{\! k+2n} I have seen this in many places before, so no originality is claimed. Two more classes that we thought of are under and over. Say that we have a\overbar{bc}d. Should the spacing between a and the \overbar{bc} and the spacing between \overbar{bc} and d always be tight? If so, these might just be ord, and no new class needed (although one could argue for adding the classes now, set them up as ord, and thus being able to configure them according to taste/need). Q2: Do you have any real examples of constructions with \overbar, \underbar, \overbrace, ... or if you have any strong opinion, please raise your voice! Here is a teaser: \starttext % in context we put digits in their own class, the next is the default: \letmathspacing \mathdigitcode \mathordinarycode \mathordinarycode \mathordinarycode \mathordinarycode % but we can adapt the inter digit spacing (\mathdigitcode == 20 in context, \mathordinarycode is one fo the traditional class codes): \setmathspacing \mathdigitcode \mathdigitcode \allmathstyles = 2mu % and also change it when needed \startTEXpage[offset=10pt] $ x = 1234 = z $\par \begingroup \setmathspacing \mathdigitcode \mathdigitcode \allmathstyles = 4mu $ x = 1234 = z $\par \endgroup $ x = 1234 = z $\par \stopTEXpage \stoptext The result is attached. So maybe Mikaels explanation above and this example will trigger demand. One of the possibilities is that users define their own classes and put characters in it. (this can be domain specific and domains is something that has been on the todo for quite a while.) For that reason we might bump the current number of classes (we have 32 classes compared to the 8 that regular tex has) to 64 (which is possible when we bring down the number of families to 64 (currently 128 compared to 256 in luatex and 16 in regular tex) which is still plenty and way more than we ever need (so if needed we can borrow bits for the math unicode range which is now limited to 0xF; it was already limited anyway). This move also makes it possible to remove some other hacks (with the usual 'a pity to throw nice code away syndrome' side effect) and can have some 'initialization of old school ascii' side effects (neglectable because we can set it up via the emacro package). For the record: the \Umathspacing primitives have been dropped but can be emulated easily (in the end it saves hundreds of primitives). 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 - math.pdf Description: Adobe PDF document ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist
Re: [NTG-context] new upload
On 1/27/2022 7:09 PM, hanneder--- via ntg-context wrote: I tried to install the latest CTX with context-minimals/standalone pkgbuild (on manjaro Linux with the manual method), but the system does not recognise the new command \definetransliteration, so I guess I need to specify that I really want the latest upload. What is the best method for this? The transliteration code is in the next upload but because we're in the middle of a massive math class refactoring we fitst need to get that right (no problem if something is messed up for a while as it's a matter of definitions but at least the engine should behave well). So ... patience needed, 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] OT world history: other measuring systems?
On 1/26/2022 10:07 PM, jbf via ntg-context wrote: Just be careful, though (writing as a native English speaker), because the word 'polymath' for English speaker is not a reference to mathematicians at all. (Greek/mathē/ means 'learning' not mathematics). Translators are well aware of the danger of homonyms, and if you go for a title like Manual for Polymathematicians, then the word is being wrongly used. There is a word 'polymath' in English, but not 'polymathematician', unless of course you make it clear that it is merely a play on words. But personally, I'd avoid that. sure, it was a a play of word, although polymathematician as all-knowing-person definitely applies to Don Knuth which brings us back to TeX 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] OT world history: other measuring systems?
On 1/26/2022 10:23 AM, Jean-Pierre Delange via ntg-context wrote: In line with what Otared writes about the measurement of distances in the context of Persia and ancient Rome, I am always very surprised to see the precision of the measurements in the evaluation of the circumference of the earth by Eratosthenes of Cyrene. What intrigues me is not really the geometry calculations involved, but the calculation of the distance between Aswan and Alexandria. There is little information on the taking of this measurement: is it Egyptian surveyors (bematists: https://en.wikipedia.org/wiki/Bematist) or the use of an instrument equivalent to a pedometer? see here: https://en.wikipedia.org/wiki/Eratosthenes Eratosthenes of Cyrene was a Greek polymath ... Ah ... that makes a great subtitle for Mikaels upcoming math manual: "A manual for polymathematicians" A polymath (Greek: πολυμαθής, polymathēs, "having learned much"; and then we can talk 'polymathematical typesetting' and such (I'm sure that Arthur can come up with a reflective historical tex-talk.) 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] OT world history: other measuring systems?
On 1/26/2022 9:41 AM, Otared Kavian via ntg-context wrote: On 26 Jan 2022, at 00:17, Hans Hagen via ntg-context wrote: […] times (clocks) were definitely different per city Regarding the issue of the absolute necessity of defining a standard time the book by Peter Galison « Einstein’s Clocks, Poincaré’s Maps » gives some interesting insight. In particular, since after the mid 19th century trains were developed while the time was not standardized, many accidents happened with hundreds of people killed. This led Henri Poincaré, Lorentz and Einstein (among other mathematcians and physicists) to th enotion of relativity… Talking time, https://en.wikipedia.org/wiki/Soviet_calendar is a good example of a failure to replace thousands of years of reality. So, maybe some measures (feet etc) will stay with us forever. (I need to look up how these old cultured talked 'temperature'.) 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] OT world history: other measuring systems?
On 1/25/2022 8:41 PM, Henning Hraban Ramm via ntg-context wrote: Am 25.01.22 um 18:45 schrieb Hans Hagen via ntg-context: On 1/25/2022 6:27 PM, Aditya Mahajan via ntg-context wrote: Some of the units, particularly for measurement of land area, are still in use as they are effectively codified in the land records. Wikipedia has some summary of the ancient and medieval systems in India. https://en.wikipedia.org/wiki/Indian_units_of_measurement the same in nl ... for instance farmers still use old measures (e.g. when selling or buying land), also because for instance lots are defined that way I don’t think that farmers (in Germany) still use them, but “Morgen” (morning) and “Tagwerk” (a day’s work) were usual measures for areas, depending on the region and the type of work (farming, viniculture, fresco painting...) a 'bunder' land is one still used and a 'mud' potatoes (taking a 'sip' of water now ... and i bet that this is not the same wverywhere) - 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] OT world history: other measuring systems?
On 1/25/2022 8:28 PM, Henning Hraban Ramm via ntg-context wrote: Ah, of course. So “normalization” to some ruler’s shoe size was already progress. I'm not that sure if shoes are really standardized (or fashion in general ... bachotex polish xxl differs from us xxl and dutch xxl and ... i think that napoleon sort of forced the netherlands to standardize times (clocks) were definitely different per city i remember reading that for instance when the car industry needed oarts and there were more suppliers needed it were the supliers who standardized measured (bolts and nuts) thinking of it: we used to have standardized batteries and film rolls (cameras) but the world definitely degraded in that area: camera and phone and laptop batteries are the new 'foot' and 'finger' 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] OT world history: other measuring systems?
On 1/25/2022 6:27 PM, Aditya Mahajan via ntg-context wrote: Some of the units, particularly for measurement of land area, are still in use as they are effectively codified in the land records. Wikipedia has some summary of the ancient and medieval systems in India. https://en.wikipedia.org/wiki/Indian_units_of_measurement the same in nl ... for instance farmers still use old measures (e.g. when selling or buying land), also because for instance lots are defined that way But it got more complicated than that (particularly for time). See, for example: https://sites.google.com/site/mathematicsmiscellany/time-measurement-in-ancient-india There is also this fascinating book which covers the non-European history of mathematics (a lot of which in ancient times was to do with units and measurements but more importantly, calculations): https://press.princeton.edu/books/paperback/9780691135267/the-crest-of-the-peacock also nice ... all gets figured out independent and multiple times over time https://www.youtube.com/watch?v=KIEJHNoSWF4=10381s - 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] Linespacing modified across document
On 1/23/2022 8:58 AM, Alexandre Christe via ntg-context wrote: Dear list, I've noticed that in my document the linespacing (verified with \the\baselineskip) is not consistent across the whole document. In the first section, it's fine (no maths). Later on, it gets increased by some amount, which tends to depend on what kind of mathematics are in between, so it's not constant. Has anyone else noticed this too? It can depend on the ht/dp ratio of the font, so maybe you need to adapt that (when setting up linespacing). 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 upload
On 1/21/2022 9:11 PM, Henning Hraban Ramm via ntg-context wrote: Am 21.01.22 um 20:28 schrieb Hans Hagen via ntg-context: so we can have fixed values too .. will be explained in due time by Mikael (in manual) as we're still experimenting with all this - initial indic transliteration support .. recent indic (font) experiences and transliteration tricks will be eplained by kauśika I’m hoping for presentations / articles! dedicated usag emanuals that can be 'articalized' but i'm sure the math will become an article anyway because of the (somewhat fundamental) extensions to the engine 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 upload
On 1/22/2022 7:06 AM, Aditya Mahajan via ntg-context wrote: On Fri, 21 Jan 2022, Hans Hagen via ntg-context wrote: - initial indic transliteration support .. recent indic (font) experiences and transliteration tricks will be eplained by kauśika I finally thought that I'd try out how typesetting Hindi works with ConTeXt, but I don't get the correct output. Input: आदित्य (See complete attached file) Output: See attached. Note that ि "vowel sign I" should be attached to द "letter da" but it is attached to य "letter ya". Do I need to enable a particular feature? Is there a font out there that supports all these scripts in one font? 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 upload
On 1/22/2022 8:21 AM, kauśika via ntg-context wrote: On Saturday, January 22, 2022 11:36:57 AM IST Aditya Mahajan via ntg-context wrote: I finally thought that I'd try out how typesetting Hindi works with ConTeXt, but I don't get the correct output. Input: आदित्य (See complete attached file) Output: See attached. Note that ि "vowel sign I" should be attached to द "letter da" but it is attached to य "letter ya". Do I need to enable a particular feature? Unfortunately some fonts don't work properly in ConTeXt. Noto Sans Devanagari is one of them. The accompanying serif font (Noto Serif Devanagari) works just fine (mostly, there are problems with that as well). In this specific case, there does not seem to be any fix (at least that I could find). I am trying to test many fonts and come up with a list of fonts which work, partially work, don't work, etc. and fixes wherever possible. Side note: we tested a lot and could find some hacks around font issues but in the end decided that adding some heuristics for (maybe whatever historic issues) makes no sense because eventually one ends up fighting heuristics. So, in the end we removed these fixing features and instead just do as announced above: tell what works and not with what fonts (and as some fonts are in development we can just wait till things work). (it is a bit of a pity that support for indic scripts is such a weird mix of font technology and engine dependent reshuffling ... probably also driven by limitations of open type at that time) 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] Engine mismatch in Windows 8.1 (32 bits)
On 1/22/2022 7:45 AM, Jairo A. del Rio via ntg-context wrote: Hi everyone! I've just installed ConTeXt on an old machine running Windows 8.1 (x86) and I've noticed the format is regenerated each time I process a file. It can be read on the log (third line): warning: engine mismatch (luv: This is LuaMetaTeX 2.09.36 <> bin: This is LuaMetaTeX 2.09.34), forcing remake grep -r '09.34' finds a coincidence in mtxrun.exe. Is anyone else facing this issue? Are mtxrun.exe and context.exe copies of luametatex.exe (or links to it)? They all should be the same. 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] new upload
Hi, Weekend uoload: - more math parameter magic (plus a real ancient bug no one noticed fix): \newdimen \mydimenA \mydimenA 10pt \newskip \myskipA \myskipA 10pt \newmuskip\mymuskipA \mymuskipA10mu \mugluespecdef\mymuskipB 10mu \inherited\Umathfracfracspacing\allmathstyles \mydimenA % dynamic \inherited\Umathfracfracspacing\allmathstyles \mymuskipA % dynamic \inherited\Umathfracfracspacing\allmathstyles \myskipA % dynamic \Umathfracfracspacing\allmathstyles\mymuskipA% frozen % \alltextstyles \allscriptstyles \allmathstyles \allsplitstyles % \resetmathstyles \starttext \startTEXpage[offset=3bp] $\displaystyle\mathfrac {x}\mathfrac {x}$\par $\textstyle \mathfrac {x}\mathfrac {x}$\par $\scriptstyle \mathfrac {x}\mathfrac {x}$\par \stopTEXpage \stoptext so we can have fixed values too .. will be explained in due time by Mikael (in manual) as we're still experimenting with all this - initial indic transliteration support .. recent indic (font) experiences and transliteration tricks will be eplained by kauśika 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] withcolor does not apply when anglestriped
On 1/21/2022 12:01 AM, Damien Thiriet via ntg-context wrote: Hello list, I noticed today that anglestriped does not take withcolor into account. Givent this MWE \starttext \startMPpage path p; p:= fullsquare scaled 20; draw p anglestriped (1,60,4) withcolor red; \stopMPpage \stoptext p is in black, while I'd expect red this will work: path p ; p:= fullsquare scaled 20; draw image ( draw p anglestriped (1,60,4) ) withcolor red; but this is way more (meta)fun: draw (fullsquare scaled 4cm) withpattern image ( draw (bottomboundary p) rotated -60 withcolor "darkblue" ; ) withpatternscale (1/10,1/10) withpen pencircle scaled 1mm ; (examples in the test suite) 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] Counter names
On 1/20/2022 2:24 PM, Joaquín Ataz López via ntg-context wrote: Good morning to all. I would like to ask where I can find information about the name of the different counters that are handled in ConTeXt, in order to manipulate them manually. I guess the number of internal ConTeXt counters will be tremendous. But I would like to know what the "most common" counters are called, for example the ones that control the different structural units (chapter, section...) or the elements of a structured list, etc. I have tried to apply \incrementcounter or \decrementcounter to some counters that also exist in TeX as, for example, chapter, section... but I don't get any result. most counters are 'protected' from messing them up and section related counters are kind of grouped anyway and have their own system other counters, like those for floats are more directly accessible \starttext \chapter{test} \setupheadnumber[chapter][+5] \placefigure{}{} \chapter{test} \placefigure{}{} \setcounter[figure][4] \placefigure{}{} \stoptext chemical combination endnote figure footnote formula graphic intermezzo itemgroup:itemize itemgroup:itemize:note linenote paragraph realpage subpage table textnote:note userpage otherw will be defined when you create instances 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] Custom Table of Contents
On 1/20/2022 3:45 PM, andrei--- via ntg-context wrote: Hi! I’m new to ConTeXt. I need to make a custom table of contents that looks like this: https://imgur.com/a/Ca3By6X <https://imgur.com/a/Ca3By6X> Each row in the table corresponds to an item that has following data to print in the table of contents: page, total number of pages which the item spans, name of the item and a custom text metadata field which is defined by the item. Each item will have its own regular table of content and own structure. So we can think of this TOC as kind of a mega table of content one level above. It needs to be fully automatic. The actual table is going to be anxtable(which I was blown away by after using LaTeX godawful tables for years, it’s soo good). After digging into the documentation (again, wow, it’s soo detailed and approachable after LaTeX), I found out that\completecontentdoesn't provide such extreme level of customization. Therefore I need reimplement at least some parts of the default content forming mechanism. After digging in the source a bit, I found something relevant: https://source.contextgarden.net/tex/context/base/mkxl/strc-lst.mklx <https://source.contextgarden.net/tex/context/base/mkxl/strc-lst.mklx>. there are some examples in the test suite ... if you look into the stc-lst files you'll see that one has access to fields and can use setups What I need is some guidance on what would be the best course of action, in particular, which API should I use and roughly how should I approach it Should I create my own counters for each item and somehow reference those manually in the TOC? How would I save additional text metadata field and the item name to show it in the TOC? The source code mentions a concept of list renderers. This sounds like the correct API to plug in, but it’s hard for me to grasp how exactly it works. The problem with tables is that they are multipass and store (unexpanded) data so it has not enough info. Attached is an example of how to circumvent this (the helpers can be found in the lua file). (You can then try to add it to the wiki so that it gets documented. The lua-context interface wrt TABLE can do the same from the lua end as in tex. There are examples of that.) 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 -\definelistalternative [whatever] [renderingsetup=whatever] \setuplist [chapter] [alternative=whatever] \startsetups whatever \framed [offset=overlay,frame=off] { \framed [width=25mm,align=flushleft,frame=off,offset=0pt] { number: \currentlistentrynumber } \framed [width=4cm,align=normal,frame=off,offset=0pt] { title: \currentlistentrytitle } \framed [width=2cm,align=flushleft,frame=off,offset=0pt] { page: \currentlistentrypagenumber } \framed [width=4cm,align=normal,frame=off,offset=0pt] { author: \structurelistuservariable{more} } } \stopsetups \starttext \starttitle[title={Tabulated Table of Contents}] \placelist[chapter] \blank[2*big] \determinelistcharacteristics[chapter] \startluacode local result = structures.lists.result context.bTABLE() for i=1,#result do local entry = result[i] inspect(entry) context.bTR() context.bTD() structures.lists.number(entry.metadata.name,i) context.eTD() context.bTD() -- context(entry.titledata.title) structures.lists.title(entry.metadata.name,i) context.eTD() context.bTD() context(entry.userdata.more) context.eTD() context.eTR() end context.eTABLE() \stopluacode \stoptitle \startchapter[title=One] [more=ONE] \samplefile{ward} \stopchapter \startchapter[title=Two] [more=TWO] \samplefile{ward} \stopchapter \startchapter[title=Three][more=THREE] \samplefile{ward} \stopchapter \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] Reset environment between MetaPost graphics?
On 1/20/2022 3:42 PM, Hans Hagen via ntg-context wrote: next upload: \resetMPinstance[metafun:1] but try to avoid this because reloading takes time 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] Reset environment between MetaPost graphics?
On 1/20/2022 3:26 PM, Aditya Mahajan via ntg-context wrote: AFAIK, there is no in-built support for this. FYEO: \starttext \startMPcode u = 123; \stopMPcode \ctxlua{metapost.reset("metafun:1")} \startMPcode u = 123; \stopMPcode \stoptext (the instance is reported on the console) 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] Reset environment between MetaPost graphics?
On 1/20/2022 2:59 PM, Vincent Hennebert via ntg-context wrote: Hi, Say I’m writing a document containing many independent MetaPost figures. I don’t want to bother with enclosing each and every graphics in a ‘begingroup...endgroup’ with the appropriate ‘save’ statement. But I don’t want variables from previous graphics to leak into following ones either. Like this: % SOF \starttext Text about some topic. \startMPcode u=1cm; draw (-u, u)--origin--(u ,u); \stopMPcode Now on to another topic. \startMPcode u=2cm; % Triggers an error: Inconsistent equation (off by 28.34645) draw (-u, u)..origin..(u ,u); \stopMPcode \stoptext % EOF Is that achievable? you could do save u; u = 1cm; or u := 1cm; or numeric u; u := 1cm; or you could use a dedicated instance (normally not needed) 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] undefined control sequence c!symbolcolor in MkIV, was new upload
On 1/19/2022 6:29 PM, Rik Kabel wrote: This is still (or perhaps once again) a problem using the latest MkIV (context --luatex). not twice a day upload for something like that -) 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] Font scaling via sa in LMTX
On 1/19/2022 6:24 PM, Rik Kabel wrote: On 2021-12-01 10:40, Hans Hagen wrote: On 11/30/2021 9:36 PM, Rik Kabel via ntg-context wrote: Hello list, It seems that font scaling to a letter is not working consistently in LMTX. This example: \definefont[TitleA][Sans sa a] \definefont[TitleAB][Sansbold sa a] \starttext {\ssa This is ssa \TitleA and this is TitleA}\par {\ssbf This is ssbf \TitleAB and this is TitleAB}\par \contextbanner \stoptext Produces different relevant output with each engine. I suppose one could use numeric values instead of defined font size letters as a work-around, but that means lack of coordination with custom sizes in \definebodyfontenvironment. fixed in the next upload (which is a bit experimental in the sense that some low level consistency renaming happened which always has the danger of disabling some feature) Hans This is still a problem using yesterday's upload. I'll check it but you anyway need SansBold (B) - 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] How to create an index that refers to multiple other books?
On 1/18/2022 2:16 PM, Joel via ntg-context wrote: I am writing a secondary textbook to be used in public schools. In my state, the textbooks must adhere to standards, such as the Common Core State Standards (CCSS). It is typical for a textbook to contain an index for teachers to check where in the textbook which standards are used. I've used the following code to create such an index, if I simply place `\learned{}` somewhere containing the standard's ID, it creates a custom index entry, and `\placelearned` displays that index. \defineregister[learned][compress=yes] \setupregister[learned][style=sansbold, textstyle=slanted, n=1, pagenumber=yes] \starttext \learned{CCSS+W.7.3} \input knuth \learned{CCSS+W.7.3} \input knuth \learned{CCSS+W.7.1} \startchapter[title=Standards] \placelearned \stopchapter \stoptext This prints an index like this: Standards c CSS W.7.1 1 W.7.3 1 My problem is my textbook also includes four separate workbooks. I need the index to show my publisher that I've covered all 300+ standards, so I need the index at the back of the textbook to also contain details of which pages in each workbook the standards are found. How can I combine the index so it refers to all books? Something like this: Standards c CSS W.7.1 T 1, Wk.1 3-8, 12, Wk.2 8-9, 60-61 W.7.3 T 1, Wk.1 3-8, 12, Wk.2 8-9, 60-61, Wk.3 1-2, 54, 70, 90, Wk.4 99, 102, 104 ...or possibly like this... Standards c CSS W.7.1 Textbook: 1 Workbook 1: 3-8, 12 Workbook 2: 8-9, 60-61 W.7.3 Textbook: 1 Workbook 1: 3-8, 12 Workbook 2: 8-9, 60-61 Workbook 3: 1-2, 54, 70, 90 Workbook 4: 99, 102, 104 Is there any way to print an index that covers pages across multiple books? in principle one can load an index but you want some prefixing ... i suppose that we can make some more native feature (some weekend challenge i guess) 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] new uplaod
Hi, a new lmtx upload - crash with bottom floats probably solved: had to do with tricky interaction between engine insert handling and callback interference (as well as some assumptions in the engine dating that relate to the fact that tex was never written to be opened up this way) - crash due to math initialization: this related to a new mechanism wrt math parameters that Mikael and I are playing with .. think of this: \newmuskip\mymuskipA \mugluespecdef\mymuskipB 0mu \inherited\Umathfracfracspacing\textstyle\mymuskipA \inherited\Umathradradspacing \textstyle\mymuskipB \startTEXpage[offset=3bp] \mymuskipA 10mu \mugluespecdef\mymuskipB 10mu $\mathfrac{x}\mathfrac{x}$\par $\mathrad {x}\mathrad {x}$\par \mymuskipA 20mu \mugluespecdef\mymuskipB 20mu $\mathfrac{x}\mathfrac{x}$\par $\mathrad {x}\mathrad {x}$\par \mymuskipA 30mu \mugluespecdef\mymuskipB 30mu $\mathfrac{x}\mathfrac{x}$\par $\mathrad {x}\mathrad {x}$\par \mymuskipA 30mu plus 10mu minus 10mu \mugluespecdef\mymuskipB 30mu plus 10mu minus 10mu $\mathfrac{x}\mathfrac{x}$\par $\mathrad {x}\mathrad {x}$\par \stopTEXpage tex has a few abstractions (thinmuskip etc) than basically postpone a setting so that they can be adapted by setting these 'special - internal in luametatex speak - mu glue registers' but is is being generalized so that we can group math (integer, dimension, glue) parameters by binding them to registers and constants ... that way we can do simple and efficient switches to different spacing ... just that you know 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] Bug in alignment with LMTX version 2022.01.15 17:32
On 1/17/2022 11:35 PM, Aditya Mahajan via ntg-context wrote: On Mon, 17 Jan 2022, Aditya Mahajan via ntg-context wrote: I confirm that this is a bug, which was not there in the version from mid Dec. Not a bug, but new interface. You need: \definemathmatrix[matrix] [align={1:right,2:left,3:left}] It is also possible to say: align={all:middle}. Combination of the two don't seem to work. basically we increment each element but a number sets the column so one can go to a specific column; empty (whatever non number will start again at zero) 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] undefined control sequence c!symbolcolor in MkIV, was new upload
On 1/15/2022 7:34 PM, Rik Kabel via ntg-context wrote: MWE: \definelabel[xx][headcolor=red] \starttext ab\xx \stoptext fails, reporting in log: tex error > tex error on line 4 in file G:/Desktop/mwe.tex: ! Undefined control sequence \c!symbolcolor \labelparameter #1->\csname \ifcsname \??labels \currentlabel :#1 \endcsname \??labels \currentlabel :#1\else \expandafter \dolabelparentparameter \csname \??labels \currentlabel :\s!parent \endcsname {#1}\fi \endcsname \useconstructionstyleandcolor ...pty \else \dousecurrentstyleparameter \fi \edef \currentcolorparameter {\labelparameter {#2} MkIV only, no problem in LMTX. replace by \c!numbercolor and remake the format - 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 upload
On 1/15/2022 3:52 PM, Alexandre Christe via ntg-context wrote: Just came across a weird behavior with the latest upload. The following doesn't print as it should \startformula 4^{2x} - 4^x - 25 = 0 \stopformula I don't think it's normal (I see the spacing to make room for anything that comes after the first character in the exposant, but it is not printed). to get an idea about default and additional spacing in tex ... \starttext \startbuffer \dontleavehmode\ruledhbox{$x^2 + x$}\par \dontleavehmode\ruledhbox{$x_2 + x$}\par \dontleavehmode\ruledhbox{$x^^2 + x$}\par \dontleavehmode\ruledhbox{$x__2 + x$}\blank \stopbuffer \startTEXpage[offset=3pt] \getbuffer \Umathspaceafterscript \textstyle0pt \Umathspacebeforescript\textstyle0pt \getbuffer \Umathextrasupspace\textstyle20pt \Umathextrasubspace\textstyle40pt \Umathextrasupprespace \textstyle10pt \Umathextrasubprespace \textstyle30pt \getbuffer \stopTEXpage \stoptext so by default there is space added to scripts (more in latin modern than in cmr btw as it is font driven) but one can argue if that makes sense at all ... this is why we might default to zero font spacing and specific super/subscript spacing instead (just as in lmtx we have prescripts and related (fake opentype) spacing) in a similar fashion there is built-in pre/post fraction spacing that makes that we cannot have tight fractions (by default) while in fact that has to be driven by proper fraction-class spacing so that's another thing that might happen: tight fractions + proper interclass spacing (because we have less memory constraints than when tex showed up we can add classes without overhead) (i bet that due to a 'tex does perfect math syndrome' these thinsg go unnoticed (not by DEK himself, just look at the chapters on finetunign math) ... some of it is also compensate for the width-of-glyph cheating that goes on in the traditional engine but that is another matter 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 upload
On 1/15/2022 4:16 PM, Fabrice Couvreur via ntg-context wrote: Hi Hans I just updated lmtx and this macro does not work although it did before. On the other hand, no problem with context. Thanks. Fabrice \protected\def\e#1{\math{{\rm e}^{#1}}\autoinsertnextspace} \starttext \startformula \e{a+b} \stopformula \stoptext if the test suite doesn't crash (i only test that) i'll upload ... it has to do with decoupling some in the engine: tex uses lots of shifting, cheating on dimensions and displacements that relate to (older) fonts and for the purpose of tracing i changed some ... so we're seeing a side effect of that for a while we already have this: \tracingmath2\tracingonline2 just to give an idea what enters tex's math machinery 5:7: > \inlinemath= 5:7: \displaystyle 5:7: \mathord 5:7: .\nucleus 5:7: ..\mathchar (fam="0,char="65) 5:7: .\superscript 5:7: ..\mathlist 5:7: ...\mathord 5:7: \nucleus 5:7: .\mathchar (fam="0,char="61) 5:7: ...\mathbin 5:7: \nucleus 5:7: .\mathchar (fam="0,char="2B) 5:7: ...\mathord 5:7: \nucleus 5:7: .\mathchar (fam="0,char="62) i'll upload a fixed version fwiw: \frac and friends are currently being redone; for that we now have a frac class (as well as rad), so \mathfrac{...} \mathrad{...} in addition to \mathord etc other new things are \beginmathgroup ... \endmathgroup that permits better local settings without messing up the spacing due to classes and we have dozens more spacing class variables ... all waiting to be used (some features are already there for more than a year but now get used in low level code, which is why we can expect some instabilities) 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 upload
On 1/15/2022 3:52 PM, Alexandre Christe via ntg-context wrote: Just came across a weird behavior with the latest upload. The following doesn't print as it should \startformula 4^{2x} - 4^x - 25 = 0 \stopformula I don't think it's normal (I see the spacing to make room for anything that comes after the first character in the exposant, but it is not printed). i'll fix it ... - 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] Changed behavior from \convertnumber{arabicdecimals}{..} as a textcommand for note
On 1/15/2022 3:03 AM, musa furber via ntg-context wrote: This week I updated ConTeXt minimals. Before then, I used the following code so that footnotes to Arabic passages would have parenthesis around them and use the digits used in Arabic texts in the Middle East (e.g. ٠١٢٣٤٥٦٧٨٩). \setupnote [arfootnote] [ headstyle={\switchtobodyfont[kitab]}, textcommand=\footnotenotenumbercommand, alternative=text, ] \define[1]\footnotenotenumbercommand{{\high{(\convertnumber{arabicdecimals}{#1})}}} Since the update, for the 123rd footnote, I now get `(123arabic)` instead of `(١٢٣)`. Elsewhere, I do get the expected output (i.e. `١٢٣٢`) when calling \convertnumber{arabicdecimals}{1232} I'm still relatively new to ConTeXt, so I'm unsure if what used really is correct, or if it was wrong and I now need to find the right way to do it. Any help would be greatly appreciated. Next time give a complete MWE with useable fonts \setupnotation [arfootnote] [numberconversion=arabicdecimals] as in: \setupbodyfont[dejavu] \definenote [arfootnote] \setupnotation [arfootnote] [numberconversion=arabicdecimals] \setupnote [arfootnote] [headstyle={\switchtobodyfont[kitab]}, textcommand=\footnotenotenumbercommand, alternative=text] \protected\def\footnotenotenumbercommand#1{\high{(#1)}} \starttext x\arfootnote{x} \stoptext The #1 passed can be anything that renderes the note so the converters sees rubish. You can see details with you add \detokenize{#1} in your macro. 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 upload
On 1/15/2022 12:33 PM, hanneder--- via ntg-context wrote: - We added indic language patterns ad well as defined the languages but labels are on the todo as are conversions; kauśika is working on Perhaps the following notes are useful. 1. The simplest way, and what I was talking about, is to write and print Sanskrit in transliteration. ānandaḥ -> ānandaḥ 2. Then we can of course write and print the same word in the usual Indian Script (Devanāgarī) आनन्दः -> आनन्दः 3. But for academic use, one wants an input in roman (e-text are usually in roman), and the option to have an output in Devanāgarī) ānandaḥ -> आनन्दः For this an option with the transliterator would be required, I guess(?) Theoretically one could write Sanskrit in many scripts -- it has been written with many Indian scripts in history --, but I am wondering about the practical value of this. For imitating historic prints it would no doubt be nice, but not urgent. I was not aware of the hyphenation patterns by Yves Codet, if they work, they would cover case 1 and 2. And I just heard from a colleague that the latest babel version is incorporating a Sanskrit option that might cover the same ground (I am not sure whether this is useful). Thanks a lot! I just have to learn more about ConTeXt to able to use it:) does the attached sort of what you want 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 -\startluacode fonts.handlers.otf.addfeature { name = "iast", type = "ligature", data = { ["ऐ"] = { "a", "i" }, ["औ"] = { "a", "u" }, ["ख"] = { "k", "h" }, ["छ"] = { "c", "h" }, ["ठ"] = { "ṭ", "h" }, ["थ"] = { "t", "h" }, ["फ"] = { "p", "h" }, ["घ"] = { "g", "h" }, ["झ"] = { "j", "h" }, ["ढ"] = { "ḍ", "h" }, ["ध"] = { "d", "h" }, ["भ"] = { "b", "h" }, } } fonts.handlers.otf.addfeature { name = "iast", type = "substitution", data = { ["a"] = "अ", ["ā"] = "आ" , ["i"] = "इ", ["ī"] = "ई", ["u"] = "उ", ["ū"] = "ऊ", ["ṛ"] = "ऋ", ["ṝ"] = "ॠ", ["ḷ"] = "ऌ", ["ḹ"] = "ॡ", ["e"] = "ए", ["o"] = "ओ", ["ṃ"] = "ं", ["ḥ"] = "ः", ["˜"] = "ँ", ["'"] = "ऽ", ["k"] = "क", ["c"] = "च", ["ṭ"] = "ट", ["t"] = "त", ["p"] = "प", ["g"] = "ग", ["j"] = "ज", ["ḍ"] = "ड", ["d"] = "द", ["b"] = "ब", ["ṅ"] = "ङ", ["ñ"] = "ञ", ["ṇ"] = "ण", ["n"] = "न", ["m"] = "म", ["h"] = "ह", ["y"] = "य", ["r"] = "र", ["l"] = "ल", ["v"] = "व", ["ś"] = "श", ["ṣ"] = "ष", ["s"] = "स", } } \stopluacode \starttext \definefontfeature[iast][devanagari-two][iast=yes] \definedfont[file:shobhika-regular.otf*iast at 18pt] vid dhātorghañā vedaśabdo niṣpadyate. vid jñāne vid vicāraṇe vidlṛ lābhe vid sattāyām ityādidhātubhyo jñānaṃ sattā lābhaśceti trayo'pyarthāḥ siddhyanti. lāb haśabdena jīvanarūpā sthitirapi prahītuṃ śakyate sattāpadena cotpattiḥ. tena ut pattiḥ sthitiścetyubhayamapi vid dhātorarthe'ntarbhavati. ghañpratyayaścāpi bhāve akartari ca kārake vidhīyate iti jñānam jñānasādhanam jñānakarma jñānādhikara ṇam sattā sattāsādhanam sattākarma sattādhikaraṇam sthiti sthitisādhanam sthi tikarma sthityadhikaraṇaścetyādi sarvaṃ vedaśabdārthatayā vyākhyātuṃ śakyate. tatra granthātmakeṣu vedeṣu śābdajñānasādhanatvameva samanvāyayanti prāyeṇa vidvāṃsaḥ. anveṣaṇaprakriyayā pariśīlyamāne tu sarvavidhajñānasādhanam jñā narūpatvam sattāsādhanatvam sattārūpatvam sthitisādhanatvam sthitirūpatvam ce tyādyapi vedaśabdārthe samanvitaṃ bhavati. \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 ___