[NTG-context] "pragma-ade.com" is now a domain parking page
When I go to: https://www.pragma-ade.com/ I get a page that says: pragma-ade.com expired on 06/28/2016 and is pending renewal or deletion. followed by some advertisements. Both a link archiver https://archive.today/jUOox and an SSL/TLS certificate checker https://www.ssllabs.com/ssltest/analyze.html?d=www.pragma-ade.com show the same results, so I'm pretty sure that this isn't just an issue with my connection. Both "https://www.pragma-ade.nl/"; and "https://www.pragma-pod.nl/"; still work as expected. Here's the output of a few debugging commands: $ whois pragma-ade.com Domain Name: PRAGMA-ADE.COM Registry Domain ID: 30119007_DOMAIN_COM-VRSN Registrar WHOIS Server: whois.networksolutions.com Registrar URL: http://networksolutions.com Updated Date: 2022-06-30T10:41:12Z Creation Date: 2000-06-28T10:41:39Z Registry Expiry Date: 2023-06-28T10:41:39Z Registrar: Network Solutions, LLC Registrar IANA ID: 2 Registrar Abuse Contact Email: ab...@web.com Registrar Abuse Contact Phone: +1.8003337680 Domain Status: clientTransferProhibited https://icann.org/epp#clientTransferProhibited Name Server: NS1.PENDINGRENEWALDELETION.COM Name Server: NS2.PENDINGRENEWALDELETION.COM DNSSEC: unsigned URL of the ICANN Whois Inaccuracy Complaint Form: https://www.icann.org/wicf/ >>> Last update of whois database: 2022-07-01T05:34:25Z <<< $ dig www.pragma-ade.com @1.1.1.1 ; <<>> DiG 9.16.1-Ubuntu <<>> www.pragma-ade.com @1.1.1.1 ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 33675 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1 ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 1232 ;; QUESTION SECTION: ;www.pragma-ade.com.IN A ;; ANSWER SECTION: www.pragma-ade.com. 7200IN A 208.91.197.132 ;; Query time: 90 msec ;; SERVER: 1.1.1.1#53(1.1.1.1) ;; WHEN: Thu Jun 30 23:34:00 MDT 2022 ;; MSG SIZE rcvd: 63 $ whois 208.91.197.132 NetRange: 208.91.196.0 - 208.91.197.255 CIDR: 208.91.196.0/23 NetName:CONFLUENCE-NETWORK-INC NetHandle: NET-208-91-196-0-1 Parent: NET208 (NET-208-0-0-0-0) NetType:Direct Allocation OriginAS: AS40034 Organization: Confluence Networks Inc (CN) RegDate:2011-04-15 Updated:2015-11-23 Ref:https://rdap.arin.net/registry/ip/208.91.196.0 OrgName:Confluence Networks Inc OrgId: CN Address:3rd Floor, J & C Building, P.O. Box 362 City: Road Town StateProv: Tortola PostalCode: VG1110 Country:VG RegDate:2011-04-07 Updated:2017-03-29 Ref:https://rdap.arin.net/registry/entity/CN $ whois pragma-ade.nl Domain name: pragma-ade.nl Status: active Reseller: Soverin BV Vijzelstraat 68 1017HL Amsterdam Netherlands Registrar: Metaregistrar B.V. Zuidelijk Halfrond 1 2801DD Gouda Netherlands Abuse Contact: +31.858885692 ab...@metaregistrar.com Creation Date: 1999-02-10 Updated Date: 2021-11-23 DNSSEC: yes Domain nameservers: ns0.soverin.net ns1.soverin.net ns2.soverin.net ns3.soverin.net Record maintained by: NL Domain Registry $ dig www.pragma-ade.nl @1.1.1.1 ; <<>> DiG 9.16.1-Ubuntu <<>> www.pragma-ade.nl @1.1.1.1 ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 7089 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1 ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 1232 ;; QUESTION SECTION: ;www.pragma-ade.nl. IN A ;; ANSWER SECTION: www.pragma-ade.nl. 300 IN A 213.125.29.165 ;; Query time: 730 msec ;; SERVER: 1.1.1.1#53(1.1.1.1) ;; WHEN: Thu Jun 30 23:55:28 MDT 2022 ;; MSG SIZE rcvd: 62 $ whois 213.125.29.165 inetnum:213.125.29.160 - 213.125.29.167 netname:PRAGMA descr: Pragma descr: Hasselt descr: This space is statically assigned. country:NL admin-c:HH6275-RIPE tech-c: ZBTB1-RIPE status: ASSIGNED PA mnt-by: ZIGGO-AUTOREG1 created:2015-11-18T13:16:01Z last-modified: 2015-11-18T13:16:01Z source: RIPE role: VODAFONEZIGGO IP AUTHORITY address:Kabelweg 51 address:1014BA Amsterdam address:The Netherlands phone: +3188717 admin-c:ZIPA1-RIPE tech-c: MB5261-RIPE tech-c: BH4773-RIPE
[NTG-context] Tagging corrupts URLs in bibliographies
Enabling PDF tagging corrupts the URLs displayed in bibliographies. MWE: \setuptagging[state=start] \usebtxdataset[mkiv-publications.bib] \usebtxdefinitions[apa] % \usebtxdefinitions[chicago] \starttext \nocite[article, advancedonline] \placelistofpublications \stoptext I think that APA and Chicago are the only styles that display URLs in the bibliography, but there may be others that I'm missing. There's a patch at the end that seems to fix things for me, although there's likely a better solution. -- Max --- texmf-context/tex/context/base/mkiv/publ-ini.old2022-06-30 14:54:35.422262400 -0600 +++ texmf-context/tex/context/base/mkiv/publ-ini.mkiv 2022-06-30 15:06:28.975132000 -0600 @@ -399,6 +399,7 @@ % This fails when we check field values: \let\btxrawfield\btxfield +\let\btxrawflush\btxflush \def\btxfield #1{\dostarttagged\t!pubfld{#1}\clf_btxfield {\currentbtxdataset}{\currentbtxtag}{#1}\dostoptagged} \def\btxdetail #1{\dostarttagged\t!pubfld{#1}\clf_btxdetail{\currentbtxdataset}{\currentbtxtag}{#1}\dostoptagged} --- texmf-context/tex/context/base/mkxl/publ-ini.old2022-06-30 15:05:36.018821900 -0600 +++ texmf-context/tex/context/base/mkxl/publ-ini.mkxl 2022-06-30 15:06:22.220074900 -0600 @@ -399,6 +399,7 @@ \aliased\let\btxsetup\fastsetup \permanent\def\btxrawfield #1{\clf_btxfield {\currentbtxdataset}{\currentbtxtag}{#1}} +\permanent\def\btxrawflush #1{\clf_btxflush {\currentbtxdataset}{\currentbtxtag}{#1}} \permanent\def\btxfield #1{\dostarttagged\t!pubfld{#1}\clf_btxfield {\currentbtxdataset}{\currentbtxtag}{#1}\dostoptagged} \permanent\def\btxdetail #1{\dostarttagged\t!pubfld{#1}\clf_btxdetail{\currentbtxdataset}{\currentbtxtag}{#1}\dostoptagged} --- texmf-context/tex/context/base/mkiv/publ-imp-apa.old2022-06-30 14:56:18.210565000 -0600 +++ texmf-context/tex/context/base/mkiv/publ-imp-apa.mkvi 2022-06-30 14:56:40.611212000 -0600 @@ -1263,12 +1263,12 @@ \setbreakpoints[doi] \ifconditional\btxinteractive \goto { -\hyphenatedurl{\btxflush{url}} +\hyphenatedurl{\btxrawflush{url}} } [ -url(\btxflush{url}) +url(\btxrawflush{url}) ] \else -\hyphenatedurl{\btxflush{url}} +\hyphenatedurl{\btxrawflush{url}} \fi \endgroup \stoptexdefinition @@ -1280,12 +1280,12 @@ \setbreakpoints[doi] \ifconditional\btxinteractive \goto { -\hyphenatedurl{doi:\btxflush{doi}} +\hyphenatedurl{doi:\btxrawflush{doi}} } [ -url(http://dx.doi.org/\btxflush{doi}) +url(http://dx.doi.org/\btxrawflush{doi}) ] \else -\hyphenatedurl{doi:\btxflush{doi}} +\hyphenatedurl{doi:\btxrawflush{doi}} \fi \endgroup \stoptexdefinition --- texmf-context/tex/context/base/mkiv/publ-imp-chicago.old2022-06-30 14:59:53.31010 -0600 +++ texmf-context/tex/context/base/mkiv/publ-imp-chicago.mkvi 2022-06-30 15:00:39.497438200 -0600 @@ -1258,12 +1258,12 @@ \setbreakpoints[doi] \ifconditional\btxinteractive \goto { -\hyphenatedurl{\btxflush{url}} +\hyphenatedurl{\btxrawflush{url}} } [ -url(\btxflush{url}) +url(\btxrawflush{url}) ] \else -\hyphenatedurl{\btxflush{url}} +\hyphenatedurl{\btxrawflush{url}} \fi \endgroup \stoptexdefinition @@ -1275,12 +1275,12 @@ \setbreakpoints[doi] \ifconditional\btxinteractive \goto { -\hyphenatedurl{doi:\btxflush{doi}} +\hyphenatedurl{doi:\btxrawflush{doi}} } [ -url(http://dx.doi.org/\btxflush{doi}) +url(http://dx.doi.org/\btxrawflush{doi}) ] \else -\hyphenatedurl{doi:\btxflush{doi}} +\hyphenatedurl{doi:\btxrawflush{doi}} \fi \endgroup \stoptexdefinition ___ 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] Odd behaviour with Plex typescript
just preload it, as in: \usebodyfont[modern] \setupbodyfont[plex] \setuphead [section] [style={\switchtobodyfont[modern]}] \starttext \section{A} A \stoptext That seems to have fixed it. Thanks! -- Max ___ 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] \setextrafontkerns can cause an infinite loop
On 6/30/2022 11:16 AM, Max Chernoff via ntg-context wrote: Sometimes using \setextrafontkerns can cause an infinite loop. Example 1: \setextrafontkerns[max] \starttext l\it l \stoptext Example 2: \setupbodyfont[libertinus] \setextrafontkerns[max] \starttext x\ss x \stoptext Both of these examples cause ConTeXt to get stuck until it runs out of memory. This happens in both MkIV and MkXL. This patch seems to fix the issue (although it may break other things...): --- texmf-context/tex/context/base/mkiv/typo-fkr.old 2022-06-30 03:05:17.702804200 -0600 +++ texmf-context/tex/context/base/mkiv/typo-fkr.lua 2022-06-30 03:05:22.286858200 -0600 @@ -57,6 +57,7 @@ end if kern ~= 0 then head, current = insertbefore(head,current,new_kern(kern)) + current = getnext(current) end lastdata = data else @@ -69,6 +70,7 @@ local kern = getkernpair(lastdata,lastchar,char) if kern ~= 0 then head, current = insertbefore(head,current,new_kern(kern)) + current = getnext(current) end end lastchar = char just head = insertbefore(head,current,new_kern(kern)) will do - 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] Odd behaviour with Plex typescript
On 6/30/2022 10:36 AM, Max Chernoff via ntg-context wrote: If you load the Plex typescript, a spurious space is added on the first switch to another font, messing up any alignment. This doesn't happen with any other fonts; only with Plex. MWE: \setuphead[section][style={\switchtobodyfont[modern]}] \setupbodyfont[plex] \starttext \section{A} A \stoptext I was able to fix this by removing the space immediately before the "%" on line 136 of "type-imp-plex.mkiv", changing it from this (original): \definefontfeature[plexwideneddefault][default][extend=\luaexpr{1/0.85}] % An odd floating point number to correct monospace. to this (fixed): \definefontfeature[plexwideneddefault][default][extend=\luaexpr{1/0.85}]% An odd floating point number to correct monospace. I'm pretty sure that TeX is ignoring spaces at this point, so I have no idea why this issue exists or why the fix works. when you trigger modern it will also process a typescript and that can itself have spaces introduced just preload it, as in: \usebodyfont[modern] \setupbodyfont[plex] \setuphead [section] [style={\switchtobodyfont[modern]}] \starttext \section{A} A \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] Auto width and height on table cells
On 6/30/22 18:10, Angel M Alganza via ntg-context wrote: > [...] > No, you aren't, and it almost does it, except when the fixed width > column is other than the first one, I'm afraid. Hi Ángel, there might be a way to get it, as long as you don’t define height directly, such as in: \starttext \showframe \startbuffer row\currentxtablerow--col\currentxtablecolumn \stopbuffer \startbuffer[table] \startxtable[option={stretch, height}, align={lohi, middle}] \startxrow \dorecurse{5} {\startxcell[width=.115\textwidth]\inlinebuffer\stopxcell} \startxcell\inlinebuffer\stopxcell \stopxrow \startxrow \dorecurse{5} {\startxcell\inlinebuffer\stopxcell} \startxcell[offset=1em]\input zapf\stopxcell \stopxrow \dorecurse{5} {\startxrow \dorecurse{6} {\startxcell\inlinebuffer\stopxcell} \stopxrow} \stopxtable \stopbuffer \getbuffer[table] \page \setuppapersize[A3, landscape] \getbuffer[table] \stoptext Again, just in case it helps, 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 ___
Re: [NTG-context] Auto width and height on table cells
Hi Pablo, On Thu, Jun 30, 2022 at 04:15:10PM +0200, Pablo Rodriguez via ntg-context wrote: I’m not sure whether I’m totally missing your point, but I think this is a way that might achieve what you want: No, you aren't, and it almost does it, except when the fixed width column is other than the first one, I'm afraid. ¡Muchas gracias! Ángel ___ 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] Graded Transparency in MetaFun
Hi all I'm trying to create graded transparency over an area similar to the effect produced using lmt_shade, where one colour goes to another colour over a continuum, but with graded transparency we would go from say 0 to 1 transparency, for a single colour. See the MWE below. I have tried this by creating a loop which draws a linear path, yshifted the thickness of the pen, with transparency calculated for each step over the a predetermined height on the page. I have also tried a similar way for a circular path but in this case the path is repeatedly drawn scaled in a loop. The MWE below works OK but when I zoom into the graded transparency areas lines begin to appear which would suggest that their is a better way to do what I want. This is borne out if you zoom into a lmt-shade area, one colour smoothly becomes another colour. I've put examples of this in the MWE. I'm guessing the way lmt_shade areas are drawn is the way to go. Is this likely to be easy to code for what I want to do? Best Wishes Keith McKay %%%MWE%% \setuppapersize[A4,portrait] \usecolors[crayola] \starttext \startMPpage %page 1 StartPage; numeric maxTransp;% Must be between 0 and 1 numeric opHeight; % Opaque area height on page path t; string p[]; p[5] = "RadicalRed"; p[10] = "LemonYellow"; p[15] = "MiddleGreen"; p[20] = "CadetBlue"; p[25] = "white"; maxTransp := 1; opHeight := 2.5; %cm for k= 5, 10, 15, 20, 25: draw lmt_text [ text = "opaque", color = "black", style = "bold", anchor = "lft", position = (-1mm,2mm), ] xsized .95TextWidth ysized 7cm shifted(22cm,(k - 2)*cm); t := (1cm, k*cm) -- (20cm, k*cm); %Square opaque area draw t withpen pensquare scaled .25pt withcolor p[k] withtransparency("normal",maxTransp); for i = 0 step 0.25until (opHeight*72/2.54): r := (i/(opHeight*72/2.54))*maxTransp; %calculate transparency draw t yshifted (-i-.25)*pt withpen pensquare scaled .25pt withcolor p[k] withtransparency("normal",(maxTransp-r)); draw t yshifted (i+.25)*pt withpen pensquare scaled .25pt withcolor p[k] withtransparency("normal",(maxTransp-r)); endfor; endfor; draw lmt_shade [ path = fullsquare xyscaled(19cm,2cm), direction = "up", alternative = "linear", colors = { "red", "blue" }, ] shifted(10.5cm,1.5cm); StopPage; \stopMPpage \page \startMPpage %page 2 StartPage; numeric maxTransp;% Must be between 0 and 1 numeric opHeight; % Opaque area height path t, u; string p[]; p[5] = "RadicalRed"; p[10] = "LemonYellow"; p[15] = "MiddleGreen"; p[20] = "CadetBlue"; p[25] = "white"; maxTransp := 1; opHeight := 2.5; %centimeters opHeightpt := (opHeight /2.54)*72.27; draw lmt_text [ text = "\rotate{opaque}", color = "black", style = "bold", anchor = "lft", position = (-1mm,2mm), ] xsized .25TextHeight shifted(12cm,10cm); for k= 5, 10, 15, 20, 25: t := (1cm, k*cm)--(20cm, k*cm) ; %Square opaque area draw t withpen pensquare scaled .25pt withcolor p[k] withtransparency("normal",maxTransp); for i = 0 step 0.25 until opHeightpt: r := (i/(opHeight*72.27/2.54))*maxTransp; draw t yshifted (i+0.25)*pt withpen pensquare scaled 0.25pt withcolor p[k] withtransparency("normal",(maxTransp-r)); draw t yshifted (-i-0.25)*pt withpen pensquare scaled .25pt withcolor p[k] withtransparency("normal",(maxTransp-r)); endfor; endfor; draw lmt_shade [ path = fullsquare xyscaled(19cm,2cm), direction = "up", alternative = "linear", colors = { "red", "blue" }, ] shifted(10.5cm,1.5cm) ; StopPage; \stopMPpage \page \startMPpage %page 3 StartPage; draw lmt_text [ text = "opaque", color = "black", style = "bold", anchor = "lft", position = (-1mm,2mm), ] xsized .95TextWidth ysized 7cm shifted(22cm,13cm); draw lmt_text [ text = "opaque", color = "black", style = "bold", anchor = "lft", position = (-1mm,2mm), ] xsized .95TextWidth ysized 7cm shifted(22cm,3cm); path t, u; t := (11cm, 15cm) -- (20cm, 15cm); %Square opaque area u := fullcircle scaled 5cm shifted (5cm,16cm); %Circular opaque area for j = (5*72.27/2.54) step -0.25 until 1: r := (j/(5*72.27/2.54)) *0.5; s := -r + 0.5; draw fullcircle scaled (j*pt) shifted (5cm,16cm) withpen pencircle scaled 0.25pt withcolor ("RadicalRed") withtransparency ("normal",s); endfor; fill fullcircle scaled .25pt shifted (5cm,16cm) withpen pencircle scaled 0.25pt withcolor ("RadicalRed") withtransparency ("normal",s); for i = 0.0001 step 0.25 until (10*72.27/2.54): r := (i/(10*72.27/2.54)); draw t yshifted -i*pt withpen pensquare scaled 0.25pt withcolor ("SpringGreen") withtransparency ("lighten",(1-r)); draw t yshifted i*pt withpen pensquare scaled 0.25pt withcolor ("RadicalRed") withtransparency ("lighten",(1-r)); endfor; draw lmt_shade [ path = fullcircle scaled 5cm, alternative = "circular", colors = { "red", "blue" }, ] shifted(5cm
Re: [NTG-context] Auto width and height on table cells
On 6/30/22 09:46, Angel M Alganza via ntg-context wrote: > [...] > How about the auto row height? That'd be the only thing I'm missing. Hi Ángel, I’m not sure whether I’m totally missing your point, but I think this is a way that might achieve what you want: \starttext \showframe \startbuffer row\currentxtablerow--col\currentxtablecolumn \stopbuffer \startbuffer[table] \startxtable[option={stretch, height}, align={lohi, middle}] \startxrow \startxcell[width=3cm, option=fixed]\inlinebuffer\stopxcell \dorecurse{5} {\startxcell\inlinebuffer\stopxcell} \stopxrow \startxrow \startxcell[height=3cm, option=fixed]\inlinebuffer\stopxcell \dorecurse{5} {\startxcell\inlinebuffer\stopxcell} \stopxrow \dorecurse{5} {\startxrow \dorecurse{6} {\startxcell\inlinebuffer\stopxcell} \stopxrow} \stopxtable \stopbuffer \getbuffer[table] \page \setuppapersize[A3, landscape] \getbuffer[table] \stoptext Just in case it helps, 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 ___
Re: [NTG-context] Multiline text in mathmode
Thank you! On Thu, 2022-06-30 at 07:58 +0200, Hans Hagen via ntg-context wrote: > On 6/30/2022 7:13 AM, Aditya Mahajan via ntg-context wrote: > > On Thu, 30 Jun 2022, Johann Birnick via ntg-context wrote: > > > > > I guess you will update to LMTX..? Unfortunately I use MkIV, because of > > > other > > > math bugs in LMTX. Do you know any (can be ugly) way of doing this without > > > the > > > new stuff? > > > > You could just use a framed. > > > > \define[1]\multilinetext{\vcenter{\framed[align=middle,frame=off]{#1}}} > > > > \startTEXpage[offset=2mm] > > \startformula > > \left\{ \multilinetext{Quaternion algebra over $\rationals$ \\ up to > > isomorphisms} \right\} > > \stopformula > > \stopTEXpage > indeed, the lmtx definiton sis similar: > > \permanent\tolerant\protected\def\mparagraph[#1]#*#:#2% > {\vcenter class \mathconstructcode \bgroup > \framed > [\c!offset=\v!overlay, > \c!frame=\v!overlay, > \c!align=\v!middle, > #1]{#2}% > \egroup} > > 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 > __ > _ ___ 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] Auto width and height on table cells
Hi again, On Thu, Jun 30, 2022 at 12:12:07PM +0200, Henning Hraban Ramm via ntg-context wrote: I can stay with “natural tables” (and “tabulate” for easy cases), but the auto-stretching of rows or whole tables _is_ missing. I'm going back, too, I think. Unfortunately, this is a situation like in LaTeX: We have a choice of table “packages”, but none of them covers my most common use cases. Same here. ___ 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] Auto width and height on table cells
Am 30.06.22 um 09:36 schrieb Hans Hagen via ntg-context: On 6/30/2022 9:22 AM, Angel M Alganza via ntg-context wrote: They’re also tedious, because you can’t setup rows/columns in advance (like \setupTABLE) – or did that change? I'm afraid you're right. You're joking right? SInce when can one not set up something in some context subsystem? Why would I make a table mechanism with no presets? Yes, presets are nice, and I appreciate the better performance, but if I can setup stuff like striped tables or some other “advanced” formatting without explicite settings within the table, I prefer that. I can stay with “natural tables” (and “tabulate” for easy cases), but the auto-stretching of rows or whole tables _is_ missing. Unfortunately, this is a situation like in LaTeX: We have a choice of table “packages”, but none of them covers my most common use cases. Hraban ___ 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] \setextrafontkerns can cause an infinite loop
Sometimes using \setextrafontkerns can cause an infinite loop. Example 1: \setextrafontkerns[max] \starttext l\it l \stoptext Example 2: \setupbodyfont[libertinus] \setextrafontkerns[max] \starttext x\ss x \stoptext Both of these examples cause ConTeXt to get stuck until it runs out of memory. This happens in both MkIV and MkXL. This patch seems to fix the issue (although it may break other things...): --- texmf-context/tex/context/base/mkiv/typo-fkr.old2022-06-30 03:05:17.702804200 -0600 +++ texmf-context/tex/context/base/mkiv/typo-fkr.lua2022-06-30 03:05:22.286858200 -0600 @@ -57,6 +57,7 @@ end if kern ~= 0 then head, current = insertbefore(head,current,new_kern(kern)) +current = getnext(current) end lastdata = data else @@ -69,6 +70,7 @@ local kern = getkernpair(lastdata,lastchar,char) if kern ~= 0 then head, current = insertbefore(head,current,new_kern(kern)) +current = getnext(current) end end lastchar = char -- Max ___ 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] Auto width and height on table cells
Hi again, Hans, On Thu, Jun 30, 2022 at 10:26:58AM +0200, Hans Hagen via ntg-context wrote: How about the auto row height? That'd be the only thing I'm missing. we don't have it for the vertical direction ... you can remind me later this year (to see if it is doable) Ah, OK. Thank you! :-) Cheers, Ángel ___ 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] Odd behaviour with Plex typescript
If you load the Plex typescript, a spurious space is added on the first switch to another font, messing up any alignment. This doesn't happen with any other fonts; only with Plex. MWE: \setuphead[section][style={\switchtobodyfont[modern]}] \setupbodyfont[plex] \starttext \section{A} A \stoptext I was able to fix this by removing the space immediately before the "%" on line 136 of "type-imp-plex.mkiv", changing it from this (original): \definefontfeature[plexwideneddefault][default][extend=\luaexpr{1/0.85}] % An odd floating point number to correct monospace. to this (fixed): \definefontfeature[plexwideneddefault][default][extend=\luaexpr{1/0.85}]% An odd floating point number to correct monospace. I'm pretty sure that TeX is ignoring spaces at this point, so I have no idea why this issue exists or why the fix works. -- Max ___ 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] Auto width and height on table cells
On 6/30/2022 9:46 AM, Angel M Alganza via ntg-context wrote: On Thu, Jun 30, 2022 at 09:36:07AM +0200, Hans Hagen via ntg-context wrote: You're joking right? SInce when can one not set up something in some context subsystem? Why would I make a table mechanism with no presets? I see! :-) It's just more symbolic than in natural tables (which is better performance wise). I'm pretty sure it's mentioned in some manual. I didn't see it in the wiki and I thought it didn't exist. How about the auto row height? That'd be the only thing I'm missing. we don't have it for the vertical direction ... you can remind me later this year (to see if it is doable) 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] Auto width and height on table cells
On Thu, Jun 30, 2022 at 09:36:07AM +0200, Hans Hagen via ntg-context wrote: You're joking right? SInce when can one not set up something in some context subsystem? Why would I make a table mechanism with no presets? I see! :-) It's just more symbolic than in natural tables (which is better performance wise). I'm pretty sure it's mentioned in some manual. I didn't see it in the wiki and I thought it didn't exist. How about the auto row height? That'd be the only thing I'm missing. Thanks so much. Ángel ___ 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] Auto width and height on table cells
On 6/30/2022 9:22 AM, Angel M Alganza via ntg-context wrote: Hi Henning, On Thu, Jun 30, 2022 at 09:02:28AM +0200, Henning Hraban Ramm via ntg-context wrote: They’re also tedious, because you can’t setup rows/columns in advance (like \setupTABLE) – or did that change? I'm afraid you're right. You're joking right? SInce when can one not set up something in some context subsystem? Why would I make a table mechanism with no presets? \starttext \setupxtable[suffix][align=middle,foregroundcolor=red] \setupxtable[blabla][foregroundstyle=slanted] \setupxtable[crap] [foregroundcolor=blue] \setupxtable[bold] [crap][foregroundstyle=bold] \startxtable[frame=off] \startxtablehead \startxrow[bold] \startxcell[suffix] a 0 \stopxcell \startxcell[blabla] a 1 \stopxcell \startxcell a 2 \stopxcell \stopxrow \stopxtablehead \startxtablebody \startxrow \startxcell[suffix][ny=2] a 1 \stopxcell \startxcell b 1 \stopxcell \startxcell c 1 \stopxcell \stopxrow \startxrow \startxcell b 2 \stopxcell \startxcell c 2 \stopxcell \stopxrow \startxrow \startxcell[suffix] a 3 \stopxcell \startxcell b 3 \stopxcell \startxcell c 3 \stopxcell \stopxrow \startxrow \startxcell[suffix] a 4 \stopxcell \startxcell b 4 \stopxcell \startxcell c 4 \stopxcell \stopxrow \startxrow \startxcell[suffix] a 5 \stopxcell \startxcell b 5 \stopxcell \startxcell c 5 \stopxcell \stopxrow \stopxtablebody \stopxtable \stoptext It's just more symbolic than in natural tables (which is better performance wise). I'm pretty sure it's mentioned in some manual. 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] Auto width and height on table cells
Hi Henning, On Thu, Jun 30, 2022 at 09:02:28AM +0200, Henning Hraban Ramm via ntg-context wrote: They’re also tedious, because you can’t setup rows/columns in advance (like \setupTABLE) – or did that change? I'm afraid you're right. Cheers, Ángel ___ 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] Auto width and height on table cells
Am 30.06.22 um 08:40 schrieb Angel M Alganza via ntg-context: Hello, Hans, On Thu, Jun 30, 2022 at 08:16:53AM +0200, Hans Hagen via ntg-context wrote: \startxtable[option=stretch] \startxrow \startxcell[width=3cm,option=fixed] one \stopxcell Thank you very much, that does part of the trick (the column width). Is there a way to do the same for the row height, please? I never looked at xtables, since the wiki says they're used for tables that need to span several pages, which I don't need. They’re also tedious, because you can’t setup rows/columns in advance (like \setupTABLE) – or did that change? Hraban ___ 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 ___