[NTG-context] Re: Very strange error:
Rik Kabel schrieb am 14.08.2023 um 18:42: On 8/14/2023 11:41 AM, Xavier B. wrote: After I run context (LMTX version) to my document (attached) I get this error: tex error > tex error on line 540 in file ./dev.tex: The file ended when scanning an argument. I don't know how to start... Can anyone help me? Thanks, Xavier PS: I receive this error after upgrading to MKIV to LMTX. Before with MKIV I get no errors. I suspect that LMTX is a bit more strict about parsing. You have omitted the required \par for each \head. You're correct, \head is the cause of the error and it's better to replace it with \starthead {...} ... \stophead but there are more things which can be changed to use modern syntax (in many cases part of ConTeXt since nearly a decade). A few examples: - \startexercici[]{} --> \startexercici[reference=...,title=...] - \placetable[][]{}{...} --> \startplacetable[reference=...,location=...,title=...] ... \stopplacetable - Llimones \hfill 6 --> Llimones \filler[symbol] 6 - \bigskip --> \blank[big] Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Re: Nested aligns in formulasjj
Am Montag, 14. August 2023, 13:44:44 CEST schrieb Mikael Sundqvist: > Hi, > > I do not understand what you want to have, so here is just something > weird, but probably you look for simplealign. > > \definemathsimplealign > [whatever] > > \starttext > \startformula > \startalign > \NC a = \NC (b, c) \quad \mtext{with}\NR > \NC \NC \startwhatever > \NC b \NC = something \NR > \NC c \NC = someother \NR > \stopwhatever \NR > \NC somelong = \NC bla \NR > \stopalign > \stopformula > \stoptext Thanks, this looks exactly like that what I want. However, this does not really nest aligns, but defines a new alignment group/environment (if I interpret it correctly). But after all, it is a viable workaround. Gerion signature.asc Description: This is a digitally signed message part. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Re: Nested aligns in formulasjj
Am Montag, 14. August 2023, 13:33:33 CEST schrieb Hans Hagen: > On 8/14/2023 1:16 PM, Gerion Entrup wrote: > > Hi, > > > > I try to typeset a nested align in a formula. However, the results looks > > really wrong. Here is a MWE: > > > > ``` > > \starttext > > \startformula > > \startalign > > \NC a = \NC (b, c) \quad \text{with}\NR > > \NC \NC \startalign > > \NC b \NC = something \NR > > \NC c \NC = someother \NR > > \stopalign \NR > > \NC somelong = \NC bla \NR > > \stopalign > > \stopformula > > \stoptext > > ``` > > Am I doing something wrong or are nested aligns not possible? > it will work if you configure the inner align to be tight (i delegate > that answer) > > \startformula > a = \alignhere (b, c) \quad \text{with} >\breakhere b = \text{something} >\breakhere c = \text{someother} >\breakhere > \text{somelong} = \alignhere bla > \stopformula > > might be okay for your purpose Thanks, but unfortunately not. I guess, I simplified the MWE too much. This does not align the b and c. It should become clear here: ``` \startformula a = \alignhere (b, thisislonger) \quad \text{with} \breakhere b = \text{something} \breakhere thisislonger = \text{someother} \breakhere \text{somelong} = \alignhere bla \stopformula ``` Gerion signature.asc Description: This is a digitally signed message part. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Nested aligns in formulasjj
Hi, I try to typeset a nested align in a formula. However, the results looks really wrong. Here is a MWE: ``` \starttext \startformula \startalign \NC a = \NC (b, c) \quad \text{with}\NR \NC \NC \startalign \NC b \NC = something \NR \NC c \NC = someother \NR \stopalign \NR \NC somelong = \NC bla \NR \stopalign \stopformula \stoptext ``` Am I doing something wrong or are nested aligns not possible? Best, Gerion test.pdf Description: Adobe PDF document signature.asc Description: This is a digitally signed message part. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Re: Why overbar is so big
On 8/13/2023 10:39 PM, Xavier B. wrote: Running LMTX I have an error: lualibs-os not found: lua error > lua error on line 35 in file ng-pre-informacio-document.conTeXt: token call, execute: ...nt/tex/texmf-context/tex/context/base/mkiv/l-sandbox.lua:180: module 'lualibs-os' not found: no field package.preload['lualibs-os'] no file '/usr/local/share/lua/5.4/lualibs-os.lua' no file '/usr/local/share/lua/5.4/lualibs-os/init.lua' no file '/usr/local/lib/lua/5.4/lualibs-os.lua' no file '/usr/local/lib/lua/5.4/lualibs-os/init.lua' no file './lualibs-os.lua' no file './lualibs-os/init.lua' stack traceback: [C]: in upvalue 'requiem' ...nt/tex/texmf-context/tex/context/base/mkiv/l-sandbox.lua:180: in function <...nt/tex/texmf-context/tex/context/base/mkiv/l-sandbox.lua:165> (...tail calls...) [ctxlua]:1: in main chunk 25 \subsubject{Versió} 26 27 Contínuament canvio aquest document, afegint, modificant o eliminant algunes parts seves. En aquest sentit, és una obra permanentment inacabada. Per aquest motiu convé saber quina versió del document esteu llegint. 28 29 \medskip 30 La versió d'aquest document és la {\bf 0.4.0-alfa.\currentdate[year,-, mm,-,dd]}. 31 32 \bigskip 33 Aquest document ha estat generat, \currentdate[weekday,{ },day,{ },month,{ },year] a les \currenttime, usant programari lliure (\goto{\Context}[url(http://wiki.contextgarden.net)] versió \contextversionnumber, \goto{\texenginename}[url(http://www.luatex.org)] versió \texengineversion\space i \goto{PGF/Ti{\em k}Z}[url(http://sourceforge.net/projects/pgf/)]) sota un entorn \goto{GNU/Linux}[url(https://www.linuxfoundation.org)] (\goto{Artix Linux}[url(https://artixlinux.org)]). La revisió d'aquest document és la número \goto{\directlua{ 34require "lualibs-os" 35 >> tex.sprint(math.floor(os.resultof("git log --pretty=oneline | wc -l")+1))}}[url(https://repo.or.cz/apunts-espa-matematiques.git/shortlog/HEAD)]. El conjunt de les versions s'administra amb \goto{git}[url(http://git-scm.com/)]. Teniu el codi font del document en aquest repositori: \goto{https://repo.or.cz/apunts-espa-matematiques.git}[url(https://repo.or.cz/apunts-espa-matematiques.git)]. 36 Can you give me the solution here? I have no clue what lualibs-os is so ... if it's something third party you and try. --permitloadlib and cross your fingers. Also, whenever using lua code that is not part of context keep in mind that we use lua 5.4 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 / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Re: Scaling characters without font switching in CLD
On Aug 12, 2023, 3:49 PM -0600, Hans Hagen , wrote: > you'll figure it out, right? I hope so and I'm working on it -- with your help -) > the demo shows both: x/.y scaling and 90/180/270 rotation Yes, here is what I have so far: == % % Hans' original template % \startsetups glyph:iTee % \dontleavehmode\hpack\bgroup % \setbox\scratchbox \ruledhbox \bgroup % \glyphxscale 400 % \glyphyscale 400 % \getglyphstyled{Serif}{T}% choose a font here % \egroup % \scratchheight 2.75\ht\scratchbox % \boxyoffset\scratchbox\scratchheight % \boxorientation\scratchbox\plustwo % \ht\scratchbox\scratchheight % \box\scratchbox % \egroup % \stopsetups % \definesymbol % [iTee] % [\directsetup{glyph:iTee}] % \startTEXpage [offset=1ts,width=2cm] % \ruledhbox {\tfx T \symbol{iTee}} \par % \ruledhbox {T \symbol{iTee}} \par % \ruledhbox {\tfa T \symbol{iTee}} \par % \ruledhbox {\bfd T \symbol{iTee}} % \stopTEXpage \definefontsynonym[MinionRegular][MinionPro-Regular.otf*default] \startsetups glyph:glottalhamzah \dontleavehmode\hpack\bgroup \setbox\scratchbox \ruledhbox \bgroup \glyphxscale 500 \glyphyscale 500 \getglyphstyled{MinionRegular}{c}% choose a font here \egroup \scratchheight 2.03\ht\scratchbox \boxyoffset\scratchbox\scratchheight \boxorientation\scratchbox\plustwo \ht\scratchbox\scratchheight \box\scratchbox \egroup \stopsetups \startsetups glyph:glottalayn \dontleavehmode\hpack\bgroup \setbox\scratchbox \ruledhbox \bgroup \glyphxscale 500 \glyphyscale 500 \getglyphstyled{MinionRegular}{c}% choose a font here \egroup \scratchheight 1.00\ht\scratchbox \boxyoffset\scratchbox\scratchheight % \boxorientation\scratchbox\plustwo \ht\scratchbox\scratchheight \box\scratchbox \egroup \stopsetups \definesymbol [glottalhamzah] [\directsetup{glyph:glottalhamzah}] \definesymbol [glottalayn] [\directsetup{glyph:glottalayn}] \definecolor [transparentgreen] [g=1,t=.7,a=1] \definecolor [transparentred][r=1,t=.7,a=1] \definecolor [transparentyellow] [y=1,t=.7,a=1] \startTEXpage [offset=1ts,width=2cm] \ruledhbox {\tfx c\symbol{glottalhamzah}c} \par \ruledhbox {c\symbol{glottalhamzah}c} \par \ruledhbox {\tfa c\symbol{glottalhamzah}c} \par \ruledhbox {\bfd c\symbol{glottalhamzah}c} \par \ruledhbox {\tfx c\symbol{glottalayn}c} \par \ruledhbox {c\symbol{glottalayn}c} \par \ruledhbox {\tfa c\symbol{glottalayn}c} \par \ruledhbox {\bfd c\symbol{glottalayn}c} \par \hbox{\rlap{\ruledhbox {\transparentgreen\tfx c\symbol{glottalhamzah}c}}% \hskip-.09em \ruledhbox {\transparentred c\symbol{glottalhamzah}c}} \hbox{\rlap{\ruledhbox {\transparentgreen\tfx c\symbol{glottalayn}c}}% \ruledhbox {\transparentredc\symbol{glottalayn}c}} \stopTEXpage == Note the \rlap's (see attached pdf): we see that \tfx doesn't scale the \symbol, although \tfa and higher do work. I guess fixing \tfx-symbol interaction will be part of your conversation with Wolfgang -) > well, you wented symbols so Ultimately I just want to be able to type the Unicode symbols for 02BE and 02BF -- ʾ and ʿ -- and get proper results. The overwhelming majority of hq fonts don't have them, and the few that do do them poorly, etc. (So there is no substitute for full control of these transliteration characters.) So even if we use symbols, would like to feed these setups to the CLD template you provided some days ago and feed the final result to \definefontfeature. === Best wishes Idris -- Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523 test-scaling-hans.pdf Description: test-scaling-hans.pdf ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Re: Scaling characters without font switching in CLD
On 8/12/2023 11:33 PM, Hamid,Idris wrote: On Aug 12, 2023, 2:11 PM -0600, Hans Hagen via ntg-context , wrote: impossible to reply as impossible to see what is your and mine text here Hm.. This new/modern email client (forced to update by the university) supports inline replies, and I can see the levels, but the distinctions between levels of reply appears to get lost when filtered by the ntg-context list (looking at the archives). So here it is again, with levels of reply made explicit: On Aug 12, 2023, 9:35 AM -0600, Hans Hagen , wrote: ** Caution: EXTERNAL Sender ** On 8/12/2023 4:03 PM, Hamid,Idris wrote: \tfx causes a switch to computer modern. Indeed. Something I need to discuss with Wolfgang as double checking is needed before I patch. Ah.. ok. But what if we want to scale independently of font switching? There is no need to go lua here (esp when you have not done vf magick before and i'm not going to debug code that i have little clue what it's about to do). Many thanks. Part of the context is that I have some updatable mission-critical documents that depended on \defineactivecharacter, which is apparently deprecated in LMTX. See earlier thread with that subject line. i adapted some recently but anyway active chars are a bad idea [BTW: Just this morning someone from the Persian Gulf asked for an updated version of a document whose compilation depended on \defineactivecharacter, so I need to get this working in the new regime -)] Now the templates that you provided - many, many thanks! - have what is needed to care of everything except for two characters: 02BE and 02BF. you'll figure it out, right? For one of those two remaining characters we also need scaling, for the other we also need scaling + rotation. It is not clear to me whether the scaling/rotation commands should fall under the character function, e.g., the demo shows both: x/.y scaling and 90/180/270 rotation === -- ʿ ringhalfleft local function ringhalfleft (characters,target,base,accent) === the initialize function === local function initialize(tfmdata,value) === or whether we just make a new function altogether === local function scale (ringhalfleft) -- shooting in the dark here === So the reason I said CLD is best is because we already defined all of the needed characters that way -- using your template -- except for these two, for which we need to add scaling and or rotation. The attached (linked in the previous email but attached here) gives us rotation but no scaling. - we cheat here and yuse glyph scaled (I have to provide a relative to current x/y scaling, don't use \glyphscale as that one is used by context itself - we use the style variant so that it adapts - you have to replace "Serif" with "YourFont" and map that one onto a file (YourFont YourFontBold etc) - more about these box manipulations in the low level manual Ok. Just discovered the 11 low-level manuals yesterday, not sure which one to focus on in this case -) \startsetups glyph:iTee \dontleavehmode\hpack\bgroup \setbox\scratchbox \ruledhbox \bgroup \glyphxscale 400 \glyphyscale 400 \getglyphstyled{Serif}{T}> choose a font here \egroup \scratchheight 2.75\ht\scratchbox \boxyoffset \scratchbox\scratchheight \boxorientation\scratchbox\plustwo \ht \scratchbox\scratchheight \box\scratchbox \egroup \stopsetups \definesymbol [iTee] [\directsetup{glyph:iTee}] \startTEXpage [offset=1ts,width=2cm] \ruledhbox {\tfx T \symbol{iTee}} \par \ruledhbox {T \symbol{iTee}} \par \ruledhbox {\tfa T \symbol{iTee}} \par \ruledhbox {\bfd T \symbol{iTee}} \stopTEXpage Great, will study this. The challenge (for me) will be integrating this approach into the lua definitions of the two needed characters. With \defineactivecharacter deprecated, there seems to be no way other than CLD to make and register the needed macro for \definefontfeature -- and we want to move forward with the new regime and not look back. well, you wented symbols so ... why lua then (btw, no need for squeezine as there are virtual commands for scaling; not for rotating; an alternative is to define some chars in metapost (see meta-imp-gamesymbols) which gives you plenty freedom With many thanks and much gratitude, Hans. Best wishes Idris -- Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523 ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : ht
[NTG-context] Re: Scaling characters without font switching in CLD
On Aug 12, 2023, 2:11 PM -0600, Hans Hagen via ntg-context , wrote: > impossible to reply as impossible to see what is your and mine text here Hm.. This new/modern email client (forced to update by the university) supports inline replies, and I can see the levels, but the distinctions between levels of reply appears to get lost when filtered by the ntg-context list (looking at the archives). So here it is again, with levels of reply made explicit: On Aug 12, 2023, 9:35 AM -0600, Hans Hagen , wrote: ** Caution: EXTERNAL Sender ** On 8/12/2023 4:03 PM, Hamid,Idris wrote: >> \tfx causes a switch to computer modern. > Indeed. Something I need to discuss with Wolfgang as double checking is > needed before I patch. Ah.. ok. >> But what if we want to scale independently of font switching? > There is no need to go lua here (esp when you have not done vf magick > before and i'm not going to debug code that i have little clue what it's > about to do). Many thanks. Part of the context is that I have some updatable mission-critical documents that depended on \defineactivecharacter, which is apparently deprecated in LMTX. See earlier thread with that subject line. [BTW: Just this morning someone from the Persian Gulf asked for an updated version of a document whose compilation depended on \defineactivecharacter, so I need to get this working in the new regime -)] Now the templates that you provided - many, many thanks! - have what is needed to care of everything except for two characters: 02BE and 02BF. For one of those two remaining characters we also need scaling, for the other we also need scaling + rotation. It is not clear to me whether the scaling/rotation commands should fall under the character function, e.g., === -- ʿ ringhalfleft local function ringhalfleft (characters,target,base,accent) === the initialize function === local function initialize(tfmdata,value) === or whether we just make a new function altogether === local function scale (ringhalfleft) -- shooting in the dark here === So the reason I said CLD is best is because we already defined all of the needed characters that way -- using your template -- except for these two, for which we need to add scaling and or rotation. > The attached (linked in the previous email but attached here) gives us > rotation but no scaling. > - we cheat here and yuse glyph scaled (I have to provide a relative to > current x/y scaling, don't use \glyphscale as that one is used by > context itself > - we use the style variant so that it adapts > - you have to replace "Serif" with "YourFont" and map that one onto a > file (YourFont YourFontBold etc) > - more about these box manipulations in the low level manual Ok. Just discovered the 11 low-level manuals yesterday, not sure which one to focus on in this case -) > \startsetups glyph:iTee > \dontleavehmode\hpack\bgroup > \setbox\scratchbox \ruledhbox \bgroup > \glyphxscale 400 > \glyphyscale 400 > \getglyphstyled{Serif}{T}> choose a font here > \egroup > \scratchheight 2.75\ht\scratchbox > \boxyoffset \scratchbox\scratchheight > \boxorientation\scratchbox\plustwo > \ht \scratchbox\scratchheight > \box\scratchbox > \egroup > \stopsetups > \definesymbol > [iTee] > [\directsetup{glyph:iTee}] > \startTEXpage [offset=1ts,width=2cm] > \ruledhbox {\tfx T \symbol{iTee}} \par > \ruledhbox {T \symbol{iTee}} \par > \ruledhbox {\tfa T \symbol{iTee}} \par > \ruledhbox {\bfd T \symbol{iTee}} > \stopTEXpage Great, will study this. The challenge (for me) will be integrating this approach into the lua definitions of the two needed characters. With \defineactivecharacter deprecated, there seems to be no way other than CLD to make and register the needed macro for \definefontfeature -- and we want to move forward with the new regime and not look back. With many thanks and much gratitude, Hans. Best wishes Idris -- Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523 ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Re: Scaling characters without font switching in CLD
On Aug 12, 2023, 9:35 AM -0600, Hans Hagen , wrote: ** Caution: EXTERNAL Sender ** On 8/12/2023 4:03 PM, Hamid,Idris wrote: \tfx causes a switch to computer modern. Indeed. Something I need to discuss with Wolfgang as double checking is needed before I patch. Ah.. ok. But what if we want to scale independently of font switching? There is no need to go lua here (esp when you have not done vf magick before and i'm not going to debug code that i have little clue what it's about to do). Many thanks. Part of the context is that I have some updatable mission-critical documents that depended on \defineactivecharacter, which is apparently deprecated in LMTX. See earlier thread with that subject line. [BTW: Just this morning someone from the Persian Gulf asked for an updated version of a document whose compilation depended on \defineactivecharacter, so I need to get this working in the new regime -)] Now the templates that you provided - many, many thanks! - have what is needed to care of everything except for two characters: 02BE and 02BF. For one of those two remaining characters we also need scaling, for the other we also need scaling + rotation. It is not clear to me whether the scaling/rotation commands should fall under the character function, e.g., === -- ʿ ringhalfleft local function ringhalfleft (characters,target,base,accent) === the initialize function === local function initialize(tfmdata,value) === or whether we just make a new function altogether === local function scale (ringhalfleft) -- shooting in the dark here === So the reason I said CLD is best is because we already defined all of the needed characters that way -- using your template -- except for these two, for which we need to add scaling and or rotation. The attached (linked in the previous email but attached here) gives us rotation but no scaling. - we cheat here and yuse glyph scaled (I have to provide a relative to current x/y scaling, don't use \glyphscale as that one is used by context itself - we use the style variant so that it adapts - you have to replace "Serif" with "YourFont" and map that one onto a file (YourFont YourFontBold etc) - more about these box manipulations in the low level manual Ok. Just discovered the 11 low-level manuals yesterday, not sure which one to focus on in this case -) \startsetups glyph:iTee \dontleavehmode\hpack\bgroup \setbox\scratchbox \ruledhbox \bgroup \glyphxscale 400 \glyphyscale 400 \getglyphstyled{Serif}{T}% choose a font here \egroup \scratchheight 2.75\ht\scratchbox \boxyoffset \scratchbox\scratchheight \boxorientation\scratchbox\plustwo \ht \scratchbox\scratchheight \box\scratchbox \egroup \stopsetups \definesymbol [iTee] [\directsetup{glyph:iTee}] \startTEXpage [offset=1ts,width=2cm] \ruledhbox {\tfx T \symbol{iTee}} \par \ruledhbox {T \symbol{iTee}} \par \ruledhbox {\tfa T \symbol{iTee}} \par \ruledhbox {\bfd T \symbol{iTee}} \stopTEXpage Great, will study this. The challenge (for me) will be integrating this approach into the lua definitions of the two needed characters. With \defineactivecharacter deprecated, there seems to be no way other than CLD to make and register the needed macro for \definefontfeature -- and we want to move forward with the new regime and not look back. With many thanks and much gratitude, Hans. Best wishes Idris -- Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523 transliteration--glottal-lua.pdf Description: transliteration--glottal-lua.pdf transliteration--glottal-lua.tex Description: transliteration--glottal-lua.tex ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Re: upload
Did arguments regress in 2023.08.10 02:59? $ cat u.tex \starttext Feisty arguments \stoptext $ context u.tex $ ls -la *.pdf -rw-r--r-- 1 username username 6279 Aug 10 18:28 u.pdf $ context --arguments=x=y u.tex | grep error tex error > tex error on line 13 in file : Use of \getrawparameters doesn't match its definition mtx-context | fatal error: return code: 1 This was working with the previous release. On Wed, Aug 9, 2023 at 8:43 AM Hans Hagen wrote: > Hi, > > I uploaded a new lmtx. There are some new features that wil be revealed > in the future (likely after the meeting) but here is one: > > \starttext > > \defineoverlay >[test] >[\color > [blue] > {TEST >\inframed > [foregroundcolor=red] > {xxx} >TEST}] > > \framed >[background=test, > foregroundstyle=\switchtobodyfont[small]] >{test} > > \stoptext > > From now on many commands accept (properly) nested [] inside commands > that use [] as fences (like the setup commands) where it makes sense. It > is up to the user to decide to use {} (as before) or not but it is less > error prone. > > It is now also possible to nest setups as in > > \starttext > > \startsetups one > \startsetups [three] > HERE > \stopsetups > \stopsetups > > \startsetups two > \startsetups [three] > THERE > \stopsetups > \stopsetups > > \setups[one] \setups[three] > > \setups[two] \setups[three] > > \stoptext > > As part of the ongoing improvements on math rendering we added some > classic lm/cm kerns (between upperacse and periods / commas) in the > goodie files. > > Some lowlevel manuals have been extended, explaining experimental 'named > cross macro nesting parameter referencing' and 'constrained cq. retained > assignments', but that is only relevant for those interested in > overcoming some limitations in the traditional engines. > > 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 / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > > ___ > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] upload
Hi, I uploaded a new lmtx. There are some new features that wil be revealed in the future (likely after the meeting) but here is one: \starttext \defineoverlay [test] [\color [blue] {TEST \inframed [foregroundcolor=red] {xxx} TEST}] \framed [background=test, foregroundstyle=\switchtobodyfont[small]] {test} \stoptext From now on many commands accept (properly) nested [] inside commands that use [] as fences (like the setup commands) where it makes sense. It is up to the user to decide to use {} (as before) or not but it is less error prone. It is now also possible to nest setups as in \starttext \startsetups one \startsetups [three] HERE \stopsetups \stopsetups \startsetups two \startsetups [three] THERE \stopsetups \stopsetups \setups[one] \setups[three] \setups[two] \setups[three] \stoptext As part of the ongoing improvements on math rendering we added some classic lm/cm kerns (between upperacse and periods / commas) in the goodie files. Some lowlevel manuals have been extended, explaining experimental 'named cross macro nesting parameter referencing' and 'constrained cq. retained assignments', but that is only relevant for those interested in overcoming some limitations in the traditional engines. 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 / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Re: Triaging tikz error: Cannot parse this coordinate
On 8/8/2023 7:43 PM, Hans Hagen wrote: On 8/8/2023 6:13 PM, Xavier B. wrote: After some time, I could write a minimal example with tikz with strange error: Cannot parse this coordinate. Can someone help me to find the bug? I attach the file and the log. Help very appreciate I run \starttikzpicture \foreach \p in {(6,2)} { \tracingall \startscope[shift={\p}] \draw[color=green!60, thick] (0,0) -- (1,1); \stopscope } \stoptikzpicture looks like some parsing issue, are you sure that you can assign \p to shift this way? ok, i found it but i'm not going to make it custom to fix tikz you need to use this: \normalexpanded{\noexpand\startscope[shift={\p}]} instead of \startscope[shift={\p}] this can be automated with (maybe we need a m-fixz module for that) % fix \appendtoks \let\normaltikzstartscope\startscope \def\startscope[#1]% {\normalexpanded {\noexpand\normaltikzstartscope[#1]}}% \to \everyinsidetikzpicture % end of fix but for that you need to use the attached module so that we hook it in aftert tikz sets itself up the fix you can put in your style or in a cont-loc.mkxl in a local tree 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 - %D \module %D [ file=m-tikz, %Dversion=2021.07.12, %D title=\CONTEXT\ Extra Modules, %D subtitle=TIKZ support, %D author=Hans Hagen, %D date=\currentdate, %D copyright={PRAGMA ADE \& \CONTEXT\ Development Team}] %C %C This module is part of the \CONTEXT\ macro||package and is %C therefore copyrighted by \PRAGMA. See mreadme.pdf for %C details. %D A fixed variant of the t-tikz module distributed with tikz. For practical reasons %D per 2021 we split the module for \MKIV\ and \LMTX. (Maybe some day I'll optimize %D TIKZ a bit.) %D %D All these t-* modules in the tikz distribution make no sense as we can just load %D them here which is way cleaner. There is also some mkii filename mapping going on %D that is not needed on todays systems (windows has no 8.3 limitation and on unix %D tds finally adopted a case insensitive approach.) %D Just in case someone does a hard input ... \ifdefined\pgfdefined\endinput \fi \ifdefined\pgfcoredefined\endinput \fi %D ... but normally we end up here: \startmodule[tikz] \ifdefined\pdflastxpos \else \unprotect \frozen\overloaded\protected\def\pdflastxpos{\numexpr\clf_lastxpos\relax} \frozen\overloaded\protected\def\pdflastypos{\numexpr\clf_lastypos\relax} \protect \fi \newcatcodetable \tikzcatcodes \startcatcodetable \tikzcatcodes \catcode\tabasciicode \spacecatcode \catcode\endoflineasciicode \endoflinecatcode \catcode\formfeedasciicode\endoflinecatcode \catcode\spaceasciicode \spacecatcode \catcode\endoffileasciicode \ignorecatcode \catcode\circumflexasciicode \superscriptcatcode \catcode\underscoreasciicode \subscriptcatcode \catcode\ampersandasciicode \alignmentcatcode \catcode\backslashasciicode \escapecatcode \catcode\leftbraceasciicode \begingroupcatcode \catcode\rightbraceasciicode \endgroupcatcode \catcode\dollarasciicode \mathshiftcatcode \catcode\hashasciicode\parametercatcode \catcode\commentasciicode \commentcatcode \catcode\atsignasciicode \lettercatcode \catcode\exclamationmarkasciicode \othercatcode \catcode\questionmarkasciicode\lettercatcode \catcode\tildeasciicode \activecatcode \catcode\barasciicode \othercatcode \stopcatcodetable \permanent\protected\def\starttikzinput {\pushoverloadmode \pushcatcodetable \setcatcodetable\tikzcatcodes \pushmacro\meaning \let\meaning\meaningless \autoparagraphmode\zerocount} \permanent\protected\def\stoptikzinput {\autoparagraphmode\plusone \popcatcodetable \popmacro\meaning \popoverloadmode} \permanent\protected\def\tikzinputfile#1% {\starttikzinput \input{#1}\relax \stoptikzinput} \permanent\protected\def\tikzerrormessage#1#2#3% {\writestatus{#1}{#2}} % For now we need this but we need to educate the user to wrap settings in the % wrappers. So some day the next line will go. I need to check what commands are % possible outside a picture. \overloadmode\zerocount \newtoks\everytikzpicture \newtoks\everyinsidetikzpicture % \appendtoks % \resetcharacterspacing % \to \everytikzpicture \permanent\protected\def\starttikzsettings {\pushoverloadmode \pushmacro\meaning \let\meaning\meaningless \autoparagraphmode\zerocount} \permanent\protected
[NTG-context] Re: ideas for ConTeXt stickers?
On 8/8/2023 11:19 AM, Otared Kavian wrote: On 7 Aug 2023, at 20:25, Henning Hraban Ramm wrote: […] The TeX community, mostly consisting of LaTeX users, is joking about LaTeX vs. latex all the time. At least the part of the community that meets at open source conferences and hacker camps. only by texies who don't know that they are pronounced differently and i bet the publisher of the latex companion preferred a rather boring cover over a more tantalizing one but it would have made a nice experiment i hope it's not the only joke they make about tex as there is plenty to joke about (the) tex (community) for years we used the excellent yandy(tex) dvipsone postscript backend and pretty good dviwindo viewer (that had hyperlink support, which is why we had pdf hyperlink working in a day after acrobat 1 showed up) but googling for yandy was not helpful for their marketing i guess Indeed, those old enough, would remember that the book « The Joy of TeX, a Gourmet Guide to Typesetting with the AMSTeX Macro Package » by Michael Spivak was written as a parody of « The Joy of Sex: A Gourmet Guide to Lovemaking » appeared in 1972… So, did that became a best seller then? It could explain why there are some folk always complaining about the context manuals. 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 / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Re: ideas for ConTeXt stickers?
> On 7 Aug 2023, at 20:25, Henning Hraban Ramm wrote: > […] > The TeX community, mostly consisting of LaTeX users, is joking about LaTeX > vs. latex all the time. At least the part of the community that meets at open > source conferences and hacker camps. > Indeed, those old enough, would remember that the book « The Joy of TeX, a Gourmet Guide to Typesetting with the AMSTeX Macro Package » by Michael Spivak was written as a parody of « The Joy of Sex: A Gourmet Guide to Lovemaking » appeared in 1972… ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Re: ideas for ConTeXt stickers?
Am 07.08.23 um 20:08 schrieb Hans van der Meer via ntg-context: Please phrase your reaction differently. This is absolutely not about my sense of humor. But if you have observed the news media these last few years, you may have noticed how sensitive the public opinion has become about "humor" of this kind. I am afraid it could place the Tex community (for which I care) in a less favourable light. The TeX community, mostly consisting of LaTeX users, is joking about LaTeX vs. latex all the time. At least the part of the community that meets at open source conferences and hacker camps. Looking at other stickers I guess hacker humor is often a bit crude or pubertal. I didn’t say we should print this design – Moss or maybe DANTE will. I’d like to have some interesting/funny stickers to promote ConTeXt (and MetaPost/MetaFun). And while I like the Dodo, it’s a MkII joke and I won’t stress it even more. Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Re: Bibliography cite
Dear Alan, Thanks for your response. What I need in fact is this Knuth (1984:12). I am sorry for the confusion. I will try your suggestions! Robert > Op 4 aug. 2023, om 13:57 heeft Alan Braslau het > volgende geschreven: > > Indeed, one does not need the comma, it is programmed in the style. > You can see this in the manual, on p. 43 documenting citations. > > The style is setup to put the righttext inside the parenthesis for > alternative=authoryear and outside of the year parenthesis for > alternative=authoryears. > > I looked carefully in the APA Style Guide and did not find any suggestion > that one should use Knuth (1984, p. 3). The variant (Knuth, 1984, p. 3) is > documented. > > You can make the following changes (untested) > \setupbtx [apa:cite:author:years] [right=] > \setupbtx [apa:cite:authoryears] [right={)}] > to get the other behavior. > > -- > Alan > > > On 01/08/23 01/08/23, 23:26, Robert via ntg-context wrote: >> Thank you, Alan for the suggestion. >> I tried as you said: \cite[alternative=authoryears,righttext={{, p. >> 3}}][Knuth1984]. >> Yet the result is this: Knuth (1984), , p. 3 >> If I leave out the first comma, the result is: Knuth (1984), p. 3 >> Righttext probably refers to the text outside the parentheses. >> Thank you in advance, >> Robert. >>> Op 1 aug. 2023, om 22:42 heeft Alan Braslau het >>> volgende geschreven: >>> >>> Using the APA specification: >>> >>> \usebtxdefinitions >>>[apa] >>> >>> >>> you can then >>> >>> \cite[alternative=authoryears,righttext={{, p.\nbsp 12}}] [Knuth1984] >>> mentions …. >>> >>> >>> The tricky part concerning righttext= is the double {{ }}, needed because >>> the text contains a comma. The reason for this is simple, as righttext is a >>> comma-separated list, where each entry corresponds to a cited reference, as >>> in \cite[righttext={a,b}] [ref1,ref2] >>> so a is associated with ref1 and b is associated with ref2. >>> >>> Alan >>> >>> >>> >>> On 01/08/23 01/08/23, 15:37, Robert via ntg-context wrote: >>>> Dear List members, >>>> For my academic work with context I need the following cite according to >>>> Apa standards: >>>> Knuth (1984, p. 12) mentions …. >>>> The matrix is this: >>>> AUTHOR (, p.~n). >>>> I reckon this can somehow be accomplished with the \setupbtx command. >>>> (Standard these and other variants are possible: AUTHOR () and AUTHOR >>>> , p. n.) >>>> I tried different setups: \setupbtx[apa:cite:authoryear], and >>>> \setupbtx[apa:cite:authoryears], I played with the lefttext, righttext and >>>> other options, but none of them give the desired result. >>>> Thank you for any suggestions. >>>> Regards, >>>> Robert >>>> @article{Knuth1984, >>>> author={Knuth, Donald E.}, >>>> title={Literate Programming}, >>>> journal={The Computer Journal}, Volume={27}, Number={2}, year={1984}, >>>> Pages={97--111}, >>>> } >> ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Re: Bibliography cite
Indeed, one does not need the comma, it is programmed in the style. You can see this in the manual, on p. 43 documenting citations. The style is setup to put the righttext inside the parenthesis for alternative=authoryear and outside of the year parenthesis for alternative=authoryears. I looked carefully in the APA Style Guide and did not find any suggestion that one should use Knuth (1984, p. 3). The variant (Knuth, 1984, p. 3) is documented. You can make the following changes (untested) \setupbtx [apa:cite:author:years] [right=] \setupbtx [apa:cite:authoryears] [right={)}] to get the other behavior. -- Alan On 01/08/23 01/08/23, 23:26, Robert via ntg-context wrote: Thank you, Alan for the suggestion. I tried as you said: \cite[alternative=authoryears,righttext={{, p. 3}}][Knuth1984]. Yet the result is this: Knuth (1984), , p. 3 If I leave out the first comma, the result is: Knuth (1984), p. 3 Righttext probably refers to the text outside the parentheses. Thank you in advance, Robert. Op 1 aug. 2023, om 22:42 heeft Alan Braslau het volgende geschreven: Using the APA specification: \usebtxdefinitions [apa] you can then \cite[alternative=authoryears,righttext={{, p.\nbsp 12}}] [Knuth1984] mentions …. The tricky part concerning righttext= is the double {{ }}, needed because the text contains a comma. The reason for this is simple, as righttext is a comma-separated list, where each entry corresponds to a cited reference, as in \cite[righttext={a,b}] [ref1,ref2] so a is associated with ref1 and b is associated with ref2. Alan On 01/08/23 01/08/23, 15:37, Robert via ntg-context wrote: Dear List members, For my academic work with context I need the following cite according to Apa standards: Knuth (1984, p. 12) mentions …. The matrix is this: AUTHOR (, p.~n). I reckon this can somehow be accomplished with the \setupbtx command. (Standard these and other variants are possible: AUTHOR () and AUTHOR , p. n.) I tried different setups: \setupbtx[apa:cite:authoryear], and \setupbtx[apa:cite:authoryears], I played with the lefttext, righttext and other options, but none of them give the desired result. Thank you for any suggestions. Regards, Robert @article{Knuth1984, author={Knuth, Donald E.}, title={Literate Programming}, journal={The Computer Journal}, Volume={27}, Number={2}, year={1984}, Pages={97--111}, } ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Re: Bibliography cite
Thank you, Alan for the suggestion. I tried as you said: \cite[alternative=authoryears,righttext={{, p. 3}}][Knuth1984]. Yet the result is this: Knuth (1984), , p. 3 If I leave out the first comma, the result is: Knuth (1984), p. 3 Righttext probably refers to the text outside the parentheses. Thank you in advance, Robert. > Op 1 aug. 2023, om 22:42 heeft Alan Braslau het > volgende geschreven: > > Using the APA specification: > > \usebtxdefinitions >[apa] > > > you can then > > \cite[alternative=authoryears,righttext={{, p.\nbsp 12}}] [Knuth1984] > mentions …. > > > The tricky part concerning righttext= is the double {{ }}, needed because the > text contains a comma. The reason for this is simple, as righttext is a > comma-separated list, where each entry corresponds to a cited reference, as > in \cite[righttext={a,b}] [ref1,ref2] > so a is associated with ref1 and b is associated with ref2. > > Alan > > > > On 01/08/23 01/08/23, 15:37, Robert via ntg-context wrote: >> Dear List members, >> For my academic work with context I need the following cite according to Apa >> standards: >> Knuth (1984, p. 12) mentions …. >> The matrix is this: >> AUTHOR (, p.~n). >> I reckon this can somehow be accomplished with the \setupbtx command. >> (Standard these and other variants are possible: AUTHOR () and AUTHOR >> , p. n.) >> I tried different setups: \setupbtx[apa:cite:authoryear], and >> \setupbtx[apa:cite:authoryears], I played with the lefttext, righttext and >> other options, but none of them give the desired result. >> Thank you for any suggestions. >> Regards, >> Robert >> @article{Knuth1984, >> author={Knuth, Donald E.}, >> title={Literate Programming}, >> journal={The Computer Journal}, Volume={27}, Number={2}, year={1984}, >> Pages={97--111}, >> } ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Re: Bibliography cite
Using the APA specification: \usebtxdefinitions [apa] you can then \cite[alternative=authoryears,righttext={{, p.\nbsp 12}}] [Knuth1984] mentions …. The tricky part concerning righttext= is the double {{ }}, needed because the text contains a comma. The reason for this is simple, as righttext is a comma-separated list, where each entry corresponds to a cited reference, as in \cite[righttext={a,b}] [ref1,ref2] so a is associated with ref1 and b is associated with ref2. Alan On 01/08/23 01/08/23, 15:37, Robert via ntg-context wrote: Dear List members, For my academic work with context I need the following cite according to Apa standards: Knuth (1984, p. 12) mentions …. The matrix is this: AUTHOR (, p.~n). I reckon this can somehow be accomplished with the \setupbtx command. (Standard these and other variants are possible: AUTHOR () and AUTHOR , p. n.) I tried different setups: \setupbtx[apa:cite:authoryear], and \setupbtx[apa:cite:authoryears], I played with the lefttext, righttext and other options, but none of them give the desired result. Thank you for any suggestions. Regards, Robert @article{Knuth1984, author={Knuth, Donald E.}, title={Literate Programming}, journal={The Computer Journal}, Volume={27}, Number={2}, year={1984}, Pages={97--111}, } ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Re: floatcombinations seem to not work correctly after lmtx update
Am Montag, 19. Juni 2023, 13:53:02 CEST schrieb Gerion Entrup via ntg-context: > In this minimal example everything works. However, in my real document > the subfigures have enormous space between them so just two pictures are > visible (see the attached png). I finally found the cause. I had these lines in my header: ``` \setupcaptions[minwidth=0.95\textwidth, way=bychapter, prefixsegments=chapter] ``` In the new context, this seem to apply to all captions, while in the old context, it seems to apply only to those captions that are not specified otherwise. Best Gerion signature.asc Description: This is a digitally signed message part. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Re: Link from a PDF to a reference of an embedded PDF
On Mon, 24 Jul 2023, Gerion Entrup wrote: > Hi Pablo, > > > not sure I’m getting your point right. > > Thank you for the detailed answer. > But I fear, I have not expressed myself precise enough. > The solution that you described does not directly fit to my setting. > I'll try to rephrase. Maybe it gets more clear then. I think, named > destinations could be a important part in the solution. > > I'm do not know the structure of PDFs exactly, therefore some of my > terms might be wrong. I'll name the two things from now on the following > way: > - a destination: This is a defined position within a PDF document; so > some position that a PDF viewer is able to jump to. In ConTeXt, you > can set such a position most of the time with the "reference" keyword. > In LaTeX, you use \label. > - a reference: This is a link that you can click on and cause the > PDF viewer to jump/scroll to the linked destination. In ConTeXt, you > can use \in to create a reference. In LaTeX, you use \ref. > > The situation is that I have a PDF-document (inner.pdf) that defines > several destinations and I want to embed that document with > \externalfigure into another PDF-document (outer.pdf). My question is: > Is it possible to create references within the source code of outer.pdf > that correctly set a link to a destination that is defined in inner.pdf? > Asked in another way: Is is possible that \externalfigure can extract > the (maybe named) destinations of inner.pdf and translate them in such a > way, that I can use \in within the outer document to link to them. According to https://wiki.contextgarden.net/Command/setupexternalfigure \externalfigure[][interaction=reference] should keep all the references (you can also try interaction=all). Not sure how the references get mapped internally, so that they may be linked. Aditya___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Re: Link from a PDF to a reference of an embedded PDF
Hi Pablo, > not sure I’m getting your point right. Thank you for the detailed answer. But I fear, I have not expressed myself precise enough. The solution that you described does not directly fit to my setting. I'll try to rephrase. Maybe it gets more clear then. I think, named destinations could be a important part in the solution. I'm do not know the structure of PDFs exactly, therefore some of my terms might be wrong. I'll name the two things from now on the following way: - a destination: This is a defined position within a PDF document; so some position that a PDF viewer is able to jump to. In ConTeXt, you can set such a position most of the time with the "reference" keyword. In LaTeX, you use \label. - a reference: This is a link that you can click on and cause the PDF viewer to jump/scroll to the linked destination. In ConTeXt, you can use \in to create a reference. In LaTeX, you use \ref. The situation is that I have a PDF-document (inner.pdf) that defines several destinations and I want to embed that document with \externalfigure into another PDF-document (outer.pdf). My question is: Is it possible to create references within the source code of outer.pdf that correctly set a link to a destination that is defined in inner.pdf? Asked in another way: Is is possible that \externalfigure can extract the (maybe named) destinations of inner.pdf and translate them in such a way, that I can use \in within the outer document to link to them. Gerion signature.asc Description: This is a digitally signed message part. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Link from a PDF to a reference of an embedded PDF
Hi, I found the "interaction" parameter in the documentation for setupexternalfigure/externalfigure [1]. I, however do not quite understand it. When embedding another PDF with this command, it seems to be possible to include the references of the underlying PDF. It is possible to link to them within the main context document? In [2], I found something maybe related but it requires a tuc file. Example: inner.tex: ``` \starttext \startsection[title=References, reference=sec:ref] Some text \placeformula[eq:foo] \startformula 1 + 2 = 3 \stopformula or: \startitemize[n] \item[item:bla] bla \item[item:blub] blub \stopitemize Find all references \in[sec:ref], \in[eq:foo], \in[item:bla], \in[item:blub]. \stoptext ``` outer.tex: ``` \starttext \externalfigure[inner.pdf][width=10cm, interactive=reference] Find all references \in[sec:ref], \in[eq:foo], \in[item:bla], \in[item:blub]. \stoptext ``` Can I somehow access the references of inner.tex from outer.tex? For me, it is not that relevant, that the correct number is set, but the interaction within the outer PDF should work, so clicking on the reference should scroll to the correct content. Background of my question: I normally do graphics in a separate PDFs. Some graphics consists of source code together with a graphical representation and I want to be able to link to single source code lines. Gerion [1] https://wiki.contextgarden.net/Command/setupexternalfigure [2] https://wiki.contextgarden.net/References#References_to_an_external_file signature.asc Description: This is a digitally signed message part. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] mtxrun scripts
I tried some of the mtxrun scripts: * "colors" runs into an error: $ mtxrun --script colors --table ~/texmf/colors/icc/profiles/sgray.icc lua error : function call: ...-07/tex/texmf-context/scripts/context/lua/mtx-colors.lua:56: attempt to index a nil value (global 'colors') … or what is meant with "table"? * Is there a script that lists all files involved in a ConTeXt run? Preferably filterable by "part of the distribution" / images / sources? I’d like to check if all used files are checked in my git repository to be sure the project runs elsewhere. Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Fwd: [veraPDF-users] Development Preview: PDF file checker based on the Arlington PDF Model
Dear list, it is still early development, but this tool might be extremely useful to check PDF documents. Direct link to downloads (version 1.25 doesn’t seem to be available): https://software.verapdf.org/develop/arlington/1.23 Just in case it might help, Pablo Forwarded Message Subject: [veraPDF-users] Development Preview: PDF file checker based on the Arlington PDF Model Date: Wed, 21 Jun 2023 12:35:12 +0100 Dear all, On the 30th anniversary of PDF technology, we're excited to announce the availability of the first development preview of a new veraPDF-powered application. Building on the great work done by the PDF Association supported by the Defence Advanced Research Projects Agency (DARPA), veraPDF has developed an open-source PDF checker based on the Arlington PDF Model. This application is separate from the veraPDF PDF/A and PDF/UA validator but comprises a very familiar package of GUI and command-line applications. *The Arlington PDF Model is an invaluable resource for anyone developing or testing PDF tools. *Read more about the development here. <https://openpreservation.org/news/development-preview-pdf-file-checker-based-on-the-arlington-pdf-model/> The veraPDF development team have utilised Arlington in a way that's compatible with the veraPDF architecture. The Arlington PDF Model-based checker can now analyse PDF files against the full PDF 2.0 specification, including errata, by downloading the Java-based installer (Win, MacOS, Linux, requires Java 8+ JRE installed) at veraPDF Software Downloads <https://software.verapdf.org/develop/arlington/>. Best wishes, Helena -- Helena Watson (she/her), Marketing Officer Open Preservation Foundation (OPF) <https://openpreservation.org/> Twitter <http://twitter.com/openpreserve>| GitHub <https://github.com/openpreserve/>| Mailing List <http://openpreservation.org/subscribe> Please note: I work part-time for OPF, please bear with me if I don't reply to your email right away. I may email you at a time that is convenient for me, but please don't feel the need to respond outside of your working hours. Discover the benefits of OPF membership <https://openpreservation.org/membership> ___ veraPDF Users mailing list -- us...@lists.verapdf.org To unsubscribe send an email to users-le...@lists.verapdf.org ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] floatcombinations seem to not work correctly after lmtx update
Hi, I recently updated my Context (lmtx). Unfortunately, I'm not aware of the previous version anymore. The current one is 2023.06.04 18:58. After the update one of my documents broke at floatcombinations. The relevant code is this one: ``` \useMPlibrary[dum] \setupcombinations[alternative=text] \definefloat[subfigure][local=yes] \setupcaption[subfigure][numberconversion=a, prefix=no, headseparator={)}] \setuplabeltext[subfigure=] \appendvalue{stopplacefigure}{\resetcounter[subfigure]} \starttext test sdlkf jlsdjf lksjdf \startplacefigure[title=Test] \startfloatcombination[nx=3] \startplacesubfigure[title=Test] \externalfigure[dummy][width=0.3\textwidth] \stopplacesubfigure \startplacesubfigure[title=Test] \externalfigure[dummy][width=0.3\textwidth] \stopplacesubfigure \startplacesubfigure[title=Test] \externalfigure[dummy][width=0.3\textwidth] \stopplacesubfigure \stopfloatcombination \stopplacefigure lskdjf lskjfd lksjdfljsdkjf \stoptext ``` In this minimal example everything works. However, in my real document the subfigures have enormous space between them so just two pictures are visible (see the attached png). Do you have a clue, why this happens? Otherwise, I would take the preamble of the real document and try to lower it down to have a reproducible example (but that takes a lot of time, so I wanted to ask beforehand). Best, Gerion signature.asc Description: This is a digitally signed message part. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Off topic: Does a 'free for commercial use' flared-sans font exist in the world?
On 6/18/2023 8:37 PM, Carlos via ntg-context wrote: On Sat, Jun 17, 2023 at 06:53:06PM +0200, Hans Hagen via ntg-context wrote: On 6/17/2023 2:06 AM, linguafalsa--- via ntg-context wrote: On Fri, Jun 16, 2023 at 06:35:49PM +0200, Gerben Wierda via ntg-context wrote: I know this is off topic, but I suspect this community is actually one of the best places to find an answer. It is the best community. And I tell you what. What happened is that all TeX engines have neglected fonts from the beginning. Really? When tex showed up digital font technology was pretty much in flux. And, with metafont being part of the tex ecosystem, one can argue that tex was quite innovative too. Ecosystem. I would be very careful by including an ecosystem there. Yes. Yes. The TeX ecosystem is obviously part of TeX but is not part of the ecosystem of fonts either. And what is done on ecosystems can either benefit or affect ecosystems greatly. And it's a known trait that humans have been known for having more of a flock group mentality for no apparent rationally-based reasons than just being themselves making these decisions/following instincts or whatever and not because of a particular ecosystem, or for the benefit of the latter. With ecosystemn I mean: tex, metafont, cmr fonts, all kind of tools ... evolving into more engines, more fonts, macro packages, distributions, user groups and use group journals, meetings etc And the above does not imply, bear with me here, that metafont was not innovative, but it can be argued that without TeX there is no metafont, so no room is left for errors either. So, yes, it must be innovative. It has to be. There had to be metafont because there was not much else that could provide what tex needed (at that time). Potscript and its fonts came aroudn at the same time and were rather closed technologies. But as soon possible backend drivers (also part of the tex ecosystem) kicked in. Then we got virtual fonts which enhanced tex's capabilities. I really like Optima, and what I really like about it is the 'flared style'. But I would like to move to a flared-sans font that gives me more licensing freedom. I haven't been able to find one after extensive searching. The only one who were reasonably priced (not free) were the URW Classico ones in Adobe Creative Cloud, but those can only be used in Adobe programs like InDesign (and not TeX). Licensing freedom is an oxymoron. There's no freedom in licensing. Only greed. The only extension engine that at one point had a plan in mind, or most of the bases covered in this regard was Omega. One needs morr than plans. Afaik omega was more about input processing and th efont part was mostly going beyond 8 bit fonts but i might have missed something (omega was never productin ready). Notwithstanding the intricacies/details of what may have actually happened with its short lifespan I think it's more than clear the lack of support behind it. I'm not going to delve into what exactly caused its demise or if it was simply the after effect of other projects that contributed to it. It's irrelevant. Hm, its time span was not that short ... I first heard of omega at the eurotex meeting in arnhem where also etex was discussed (and you dont'want me to cite things said there) .. in successive years there have been announcemnts etc. However, for an engine to be used it must work reliable and guiseppes 'aleph' was basically a variant of omega that also had etex on board. In fact, that was supported in context mkii (and some used it because of the input processor which i think was the more innovative thing in omega but i never dived into it, other users did) It makes no sense to discuss into all this as all teams involved in engines have published in user group journals or presented plans at meetings. Also keep in mind that we're talking frontend here; omega is dvi based so like regular tex and etex whatever it does with fonts is not really related to the engine bu tup to the backend: the engine only needs metrics (omega extended tfm into ofm for that). pdftex brought a pdf backend, xetex pipes into a dvi backend, luatex has a pdf backend built in; (nts being related to etec never took of also because it was not that useable and in the meantime pdftex had taken over); there are afaik some very useable japanese tex engines; the fact that dvi survived was due to dvipdfmx development But stand by for a second. I look forward to your quick witted answers. But hear me out Suppose that on my prior message I was referring indeed to 'mkii' and not to 'omega' And also suppose for a second that the term 'omega' is to be replaced with 'mkii' on your reply accordingly After careful observation the resemblance is quite possibly identical, isn't it? and it could also inarguably apply to the circumstances as well. Don't you think? no it isn't, its building upon hat is there: mkii -> mkiv -> mkxl (p
Re: [NTG-context] Off topic: Does a 'free for commercial use' flared-sans font exist in the world?
On Sat, Jun 17, 2023 at 06:53:06PM +0200, Hans Hagen via ntg-context wrote: > On 6/17/2023 2:06 AM, linguafalsa--- via ntg-context wrote: > > On Fri, Jun 16, 2023 at 06:35:49PM +0200, Gerben Wierda via ntg-context > > wrote: > > > I know this is off topic, but I suspect this community is actually one of > > > the best places to find an answer. > > > > > > > It is the best community. And I tell you what. > > > > What happened is that all TeX engines have neglected fonts from the > > beginning. > > Really? When tex showed up digital font technology was pretty much in flux. > And, with metafont being part of the tex ecosystem, one can argue that tex > was quite innovative too. Ecosystem. I would be very careful by including an ecosystem there. Yes. Yes. The TeX ecosystem is obviously part of TeX but is not part of the ecosystem of fonts either. And what is done on ecosystems can either benefit or affect ecosystems greatly. And it's a known trait that humans have been known for having more of a flock group mentality for no apparent rationally-based reasons than just being themselves making these decisions/following instincts or whatever and not because of a particular ecosystem, or for the benefit of the latter. And the above does not imply, bear with me here, that metafont was not innovative, but it can be argued that without TeX there is no metafont, so no room is left for errors either. So, yes, it must be innovative. It has to be. > > Potscript and its fonts came aroudn at the same time and were rather closed > technologies. But as soon possible backend drivers (also part of the tex > ecosystem) kicked in. > > Then we got virtual fonts which enhanced tex's capabilities. > > > > I really like Optima, and what I really like about it is the 'flared > > > style'. > > > > > > But I would like to move to a flared-sans font that gives me more > > > licensing freedom. I haven't been able to find one after extensive > > > searching. The only one who were reasonably priced (not free) were the > > > URW Classico ones in Adobe Creative Cloud, but those can only be used in > > > Adobe programs like InDesign (and not TeX). > > > > > > > Licensing freedom is an oxymoron. There's no freedom in licensing. > > Only greed. > > > > The only extension engine that at one point had a plan in mind, > > or most of the bases covered in this regard was Omega. > > One needs morr than plans. Afaik omega was more about input processing and > th efont part was mostly going beyond 8 bit fonts but i might have missed > something (omega was never productin ready). Notwithstanding the intricacies/details of what may have actually happened with its short lifespan I think it's more than clear the lack of support behind it. I'm not going to delve into what exactly caused its demise or if it was simply the after effect of other projects that contributed to it. It's irrelevant. But stand by for a second. I look forward to your quick witted answers. But hear me out Suppose that on my prior message I was referring indeed to 'mkii' and not to 'omega' And also suppose for a second that the term 'omega' is to be replaced with 'mkii' on your reply accordingly After careful observation the resemblance is quite possibly identical, isn't it? and it could also inarguably apply to the circumstances as well. Don't you think? I mean, it's like comparing oranges with apples, and mkii with mkiv and mkvi and so forth If you were to tell me then, that mkii for instance was not aimed as an input processing I can almos assure its falsiliability is written all over, even before the sentence is processed and thought out loud by you. Bottom line is that the production-ready part is an obvious byproduct of its short lifespan, but one cannot be making the claim (false as would have been seen later, because omega carbon footprint lasted more on books than on shelves really, not for selling out fast but rather discontinued quickly) and that its goal was solely within this input processing spectrum. Because it wasn't. Or heck or heck. Let's go even further. By making the dubious assertion that we've been built with noses to hold our eyeglasses lest these eyeglasses fall off while reading, or that we've been built with ears to hold pencils and pens in the ears while thinking and writing. For crying out loud. > > It is xetex that hooked into opentype although pdftex can actually deal with > truetype fonts to some extend. Before there was something 'opentype' we had > two competing but similar technologies. And it took a while before it was > even clear how to interpre the specification (also think about reverse > engeneering fonts and heuristics and ... bugs or features ...).
Re: [NTG-context] Off topic: Does a 'free for commercial use' flared-sans font exist in the world?
On 6/17/2023 2:06 AM, linguafalsa--- via ntg-context wrote: On Fri, Jun 16, 2023 at 06:35:49PM +0200, Gerben Wierda via ntg-context wrote: I know this is off topic, but I suspect this community is actually one of the best places to find an answer. It is the best community. And I tell you what. What happened is that all TeX engines have neglected fonts from the beginning. Really? When tex showed up digital font technology was pretty much in flux. And, with metafont being part of the tex ecosystem, one can argue that tex was quite innovative too. Potscript and its fonts came aroudn at the same time and were rather closed technologies. But as soon possible backend drivers (also part of the tex ecosystem) kicked in. Then we got virtual fonts which enhanced tex's capabilities. I really like Optima, and what I really like about it is the 'flared style'. But I would like to move to a flared-sans font that gives me more licensing freedom. I haven't been able to find one after extensive searching. The only one who were reasonably priced (not free) were the URW Classico ones in Adobe Creative Cloud, but those can only be used in Adobe programs like InDesign (and not TeX). Licensing freedom is an oxymoron. There's no freedom in licensing. Only greed. The only extension engine that at one point had a plan in mind, or most of the bases covered in this regard was Omega. One needs morr than plans. Afaik omega was more about input processing and th efont part was mostly going beyond 8 bit fonts but i might have missed something (omega was never productin ready). It is xetex that hooked into opentype although pdftex can actually deal with truetype fonts to some extend. Before there was something 'opentype' we had two competing but similar technologies. And it took a while before it was even clear how to interpre the specification (also think about reverse engeneering fonts and heuristics and ... bugs or features ...). TeX was always pretty fast in picking up new stuff (maybe users less so). When it came to commercial fonts the plan of action ahead was by including PFC data on these very same commercial fonts that would benefit primarily its opentype versions in the long run. What is PFC data? What do you have right now? Opentype fonts only. Sure. Quality can be even the same than its type1 counterpart, and at times not so much according so some folks that have bothered to go the extra length in making the most accurate comparison that's available between them two. For most fonts it's just 'more shapes' which then also leads to more ligatures, kerns etc btu that is already nice. And when fonts lack something we can always tweak them (runtime). But looking at it from a bright side/perspective, I think we're no longer facing the same pre-historic constraints of including a font as before, as long as it's not for commercial purposes, You are well aware of these non and commercial uses even before your extensive search anyway, I'm not sure what is the difference between commercial fonts and free ones as they use the same technology; with some exceptions, fonts are not that expensive (take lucida from tug, making fonts takes time after all); and for publishers it's noise on their budgets. p.s many many years ago I read and followed some publications about the aformentioned extension and just went over them recently, to have an idea what did and did not work. In regards to typefaces, its goal was unmatched, or so I think. It might be comforting to know that right from the start luatex made a lot possible wrt fonts (runtime manipulation) and was also one of the first to support variable fonts, color fonts etc (not that many care about that). And with luametatex we go even further. I found some flared-sans fonts, but not one with at least regular, italic, bold, and bold-italic. Is there really not a single flared-sans font that is really free (so also for commercial use) to use out there? I had to search the net to figure out that flare sans fonts are sans fonts with serifs For those into fonts: https://tug.org/TUGboat/tb44-1/tb136carter-romano.pdf I a very nice overview of how it went with digital fonts (and what we probably lost in getting where we are now and might loose soon). 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 / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https
Re: [NTG-context] Protect the lettrine
On Tue, Jun 13, 2023 at 08:46:59PM -0700, Thangalin via ntg-context wrote: > Thank you for taking the time to reply, linguafalsa, I appreciate it. > > The source document is written in Markdown using KeenWrite, my Markdown > editor. Inserting typesetting instructions into the document would defeat > the software's architecture, hence being untenable. After the Markdown is > transformed into XHTML, a specific theme instructs ConTeXt how to typeset > the XHTML. Never heard of it (keenwrite), but your request is indeed, valid all along. I haven't checked the code that lmtx uses but by just looking at the bare macros, it seems as if `\forgetplaceinitial` is limited in what it can and can't do. I think it's reasonable the way it was implemented but nevertheless this is something that ought to be looked at rather than ignore it or put aside for later I didn't see the video, it's distracting, but as I said, is a valid request on your part Perhaps `\setuphead` can have such of a feature in the future — that of different settings for different chapters, and if one exists now, I'm just simply unaware of, but either way, you're dealing mainly here with a table and tabskips and whatnot. It seems that there's one feature for subsubsections, written in lua, but this is entirely different Even with something as the following I just wouldn't know how to specify it to apply it concurrently for each particular chapter thereafter and dissuade it from subsequently applying it to where not otherwise. I just don't know. \setuphead[chapter][ after={\placeinitial\vbox to 1cm{\relax {K{\hskip 2pt \lower 5pt \hbox{ermit MUffins \vbox to -0.055cm {\hskip -2.8cm \raise 1pt \hbox{meet me at the second line}}}, page=no, %] \starttext \startchapter[1] \stopchapter \forgetinitial \par \startchapter[2] \input knuth \stopchapter \stoptext > > Here's a video showing how theme selection works: > > https://youtu.be/3QpX70O5S30?list=PLB-WIt1cZYLm1MMx2FBG9KWzPIoWZMKu_=14 > > I hope this explains the situation more clearly about why changing the code > between \starttext and \stoptext isn't an option, as you've done with > introducing and using a macro. > > Greets! take care Tangalin Carlos > > On Tue, Jun 13, 2023 at 7:33 PM linguafalsa--- via ntg-context < > ntg-context@ntg.nl> wrote: > > > On Tue, Jun 13, 2023 at 02:01:14PM -0700, Thangalin via ntg-context wrote: > > > Thanks Otared, > > > > > > Unfortunately, that's adding content between \starttext and \stoptext, > > > which isn't tenable in my situation. The user is writing in Markdown, > > which > > > is automatically converted to XHTML then passed to ConTeXt, and so the > > > setups need to account for this scenario without modifying the source > > > document. > > > > > > > Yeah yeah yeah, tenable. A lot of things aren't tenable. Anyhow, > > What source document are you talking about here? > > > > You're already sourcing the lines after chapter one. As a matter of > > fact, if you weren't sourcing, then you'd have zilch, nada, zero, empty, > > null, void, an space, a separation, an abstract > > > > Just define Kermit Muffins and it should be good to go > > > > > > \setupinitial[n=2] > > > > \def\KermitMuffins{\vbox{Kermit Muffins\par\hskip 1.3cm \tfd Meet me at > > the second line}} > > > > \setuphead[chapter][ > > after={\placeinitial}, > > page=no, > > ] > > > > \starttext > > \chapter{one} > > \KermitMuffins > > > > \chapter{two} > > \input knuth > > > > Meet me at the second line. > > \stoptext > > > > > > > > > Cheers! > > > > > > On Tue, Jun 13, 2023 at 1:30 AM Otared Kavian via ntg-context < > > > ntg-context@ntg.nl> wrote: > > > > > > > Hi, > > > > > > > > Adding \hfill\break to the short line solves the issue, but probably > > there > > > > is a better way to achieve the correct result. > > > > > > > > \setupinitial[n=2] > > > > > > > > \setuphead[chapter][ > > > > after={\placeinitial}, > > > > page=no, > > > > ] > > > > > > > > \starttext > > > > \chapter{one} > > > > Kermit Ruffins \hfill\break % <--- > > > > > > > > Meet me at the second line. > > > > > > > > \chapter{two} > > > > \input knuth > > > > > > > > Meet me at the second line. > > > > \stoptext > > > > > > > > > > > > > > > > > > > >
Re: [NTG-context] setuphead page=right and blank even page.
Alan Braslau schrieb am 11.06.2023 um 20:12: On 10/06/23 10/06/23, 12:42, Wolfgang Schuster via ntg-context wrote: Alan Braslau via ntg-context schrieb am 10.06.2023 um 12:28: Hello, \setuphead [part,chapter,title] [page=right] will start a part, chapter, or title on an odd page (right), inserting a "blank" even page if necessary. How can I get this blank even page to be truely blank, that is with no headers nor footers? I tried several thinks and must be missing something really simple and obvious. \setuphead [...] [page={yes,header,footer,right}] Wolfgang Thank you for this hint. It works (almost) as expected: Strangely, I had to add, explicitly, \startfrontmatter \component FrontMatterStuff \page[yes,header,footer,right] \stopfrontmatter \startbodymatter ... \stopbodymatter In order to get the frontmatter end with a totally blank page before a right Chapter 1 header. Using just the setuphead resulted in headers and footers on the "blank" left page. No problems for Chapters 2, etc. Section block force by default a page break which can produce unexpected headers/footers on the first chapter etc. You can fix this by disabling the page break at the start/end of the section block with \setupsectionblock [bodypart] [page=] Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] setuphead page=right and blank even page.
On 10/06/23 10/06/23, 12:42, Wolfgang Schuster via ntg-context wrote: Alan Braslau via ntg-context schrieb am 10.06.2023 um 12:28: Hello, \setuphead [part,chapter,title] [page=right] will start a part, chapter, or title on an odd page (right), inserting a "blank" even page if necessary. How can I get this blank even page to be truely blank, that is with no headers nor footers? I tried several thinks and must be missing something really simple and obvious. \setuphead [...] [page={yes,header,footer,right}] Wolfgang Thank you for this hint. It works (almost) as expected: Strangely, I had to add, explicitly, \startfrontmatter \component FrontMatterStuff \page[yes,header,footer,right] \stopfrontmatter \startbodymatter ... \stopbodymatter In order to get the frontmatter end with a totally blank page before a right Chapter 1 header. Using just the setuphead resulted in headers and footers on the "blank" left page. No problems for Chapters 2, etc. -- Alan ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] setuphead page=right and blank even page.
Alan Braslau via ntg-context schrieb am 10.06.2023 um 12:28: Hello, \setuphead [part,chapter,title] [page=right] will start a part, chapter, or title on an odd page (right), inserting a "blank" even page if necessary. How can I get this blank even page to be truely blank, that is with no headers nor footers? I tried several thinks and must be missing something really simple and obvious. \setuphead [...] [page={yes,header,footer,right}] Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] setuphead page=right and blank even page.
Hello, \setuphead [part,chapter,title] [page=right] will start a part, chapter, or title on an odd page (right), inserting a "blank" even page if necessary. How can I get this blank even page to be truely blank, that is with no headers nor footers? I tried several thinks and must be missing something really simple and obvious. Thank you. -- Alan ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] knuth
On Mon, Jun 05, 2023 at 03:09:02PM +0200, Alan Braslau via ntg-context wrote: > > On 04/06/23 04/06/23, 15:57, Berend de Boer via ntg-context wrote: > > > Probably some on this list already checked how well chatgpt answers > > > questions about domains one knows well and then probably noted that in > > > spite of impressive wording, one can run into quite incorrect answers. > > > > I've been using it for ConTeXt, and to be honest, it works amazingly > > well. It hallucinates sometimes, but it's such a time saver. > > Maybe someone should try asking it to write documentation/manuals? > > As a teacher, we are accustomed to seeing Google/Wikipedia/etc. > cut-and-paste nonsense; now, this nonsense appears more polished, and our > students are none the wiser. Saves them time, too! ;-) > > Who said: "the best way to economize thought is not to think at all"? > > Alan Yeah. :) that's funny. Everybody uses chatgpt with lmtx that's why everyone that uses it ends up in the mailing list asking to resolve a problem that chatgpt couldn't resolve on its own. But here is the interesting part. The questions are answered by using chatgpt too, rather than humans so nothing gets worked out in the end > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > ___ > -- If it has syntax, it isn't user friendly. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] update
Hi, This time not a functional update but a (potential) performance one. I have no clue if it matters for average usage and some was already in place anyway. I gain some .2 seconds on the 8.5 seconds for the luametatex manual (of which is < 4 sec for tex so we gain the .2 sec on that part). It all depends on usage scenarios. Hopefully there are no side effects (due to typos). 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 / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] knuth
On Fri, Jun 02, 2023 at 09:58:31AM +0200, Hans Hagen via ntg-context wrote: > On 6/2/2023 9:27 AM, BPJ wrote: > > > I wonder what Knuth would say about having ChatGPT write computer > > programs, which I think can be outright dangerous. Either you get shitty > > code which doesn't work, which is good, or you get shitty code which > > works which is bad or Really Bad. > > He's pretty clear that he leave that to others and continues with TAOCP. > > wrt you remark: to a large extend these are 'plagiarism' machines so one can > wonder about more. I suppose it also depends on how original these programs > are (or become). Not original at all. One New Years' resolution ought to be «stop feeding this whatever created by whoever» I've been trying to find a recent (just done a few months ago) interactive session I had had with ChatGPT but I'm afraid I must have dd'd the entire drive (just an honest mistake on the wrong drive at the time while aiming primarily at fixing another drive and there it went :( But every interaction with it [chatgpt], was met/replied to with a digression and paraphrasing on its part. i.e, sorry 'bout that. I will not make that mistake again. I knew right away it was just spitting out useless information. Grammatically correct but not factual. Lacking substance. I first brought up the invention of the printing press as a starting point. And I asked it, to write me up an essay with the most interesting parts I remember that the point that chatgpt was trying to make, was in that the printing press challenged the authority of the church. And I remember I had to go back and forth with it and question that very verb/use of the word challenging. If anything seemed clear to me years ago. and also now, by reading about the printing press and with the publication of the Bible and later with the Book of Psalms and the first colophon in human hitory and so forth, is that the invention of the printing press fostered the establishment of the church. But I can't recall/just don't know right now if by the time chatgpt had decided to use ‹challenging› was implying afterwards or after the establishment of the church, and the excommunications that followed and so forth. All I know is that it rewrote it with different paragraphs after I pointed it out. Very well put nevertheless. But its main argumentative conclusion was the challenging part rather than cementing/positioning/establishing/ one Then I thought, heck, let's see if chatgtt is aware of the relatively recent findings about the printing methods used by Gutenberg and so forth. But it wasn't very clear on this either. As a matter of fact it had no clue really about this for example, citing : https://www.nytimes.com/2001/01/27/arts/has-history-been-too-generous-to-gutenberg.html «Johann Gutenberg, the 15th-century German craftsman, has long been believed to be the father of modern typography. But the secretive inventor may have to share some of the paternity now. A physicist and a scholar of rare books at Princeton University who jointly used new technology to examine some of Gutenberg's texts say he may not have created the seminal process after all, a finding could rewrite the history of printing. The two scholars contend that the metal mold method of printing attributed to Gutenberg was probably invented by someone else about 20 years after Gutenberg printed his Bible. The method, which involves punching a letter into a copper matrix that is filled with lead alloy to create hundreds of identical letters, was the principal way of printing until after World War II.» «The discovery was announced on Monday by Paul Needham, the librarian of the Scheide Library, a private library housed at Princeton, and Blaise Agüera y Arcas, a 25-year-old graduate of Princeton with a degree in physics, before a standing-room-only audience at New York's Grolier Club, a club for book collectors founded in 1884.» the above link was referenced at the following link originally, which I had read before https://jikji.utah.edu/ > I don't see myself using such software, just like I don't > use all these software coding tools (ide stuff). When I acn't remember what > I'm doing, or need constant help popping up I should not code. I'm intrigued > of course, and see valid applications, but wrt programming I'm just not that > interested. I bet after a few years people get bored with the artificial > stuff (painting, music, proze, movies, whatever; just hitting buttons > doesn't make a creative person I guess), unless of course one wants to be > zombified. > > Hans > > - > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Has
Re: [NTG-context] This is rmally done by loading special math fonts into the math family slots.
On Tue, May 09, 2023 at 07:00:15PM +0200, Hans Hagen via ntg-context wrote: > > On 5/9/2023 6:24 PM, Carlos via ntg-context wrote: > > > With that being said, in that sense (not that I need it though, to be > > honest), the luatex lmtx approach is more of an instant gratification, > > whereas with latex and the metrics of the file afterwards, any math > > environment is certainly possible, while loading myriad and minion et co > > without an error > > > > I still stand for what I said earlier. That lot and their heirs already > > made their money by shoving down acroread all over. It's no secret > Normally context will fall bakc on latin modern but when you explicitly load > a font setup and that one doesn't have math fonts it will not be set up I checked the type-imp-* file. Unicode-math from latex had no issues on two different systems one running a full TeXLive and the other on e customized on-demand package installatino but that part you said in the beginning: > Normally context will fall bakc on latin modern but when you explicitly load that's simply brilliant Hans \starttypescript [minionserif] \definetypeface [minionserif][rm] [serif] [minionserif] [default] \definetypeface [minionserif][ss] [sans] [minionsans][default] % \definetypeface [minionsans][mm] [math] [minionserif] [default] > right and then you get these parameter relates messages. The minion math > font is supported when you have it installed although we're not sure if the > tweaks will work okay. I only have an old evaluation copy that I can't use > outside testing anyway, and I don't have the minion fonts that can be used > in documents (acrobat fonts are only for display) so I never use minion > anyway. > > Although every math environment is possible (after all there are not than > manyu math fonts) one always has to match them properly with serif and sans > fonts (relative scaling etc). > > When someone wants support for some commercial font, they have to buy us a > few copies with no constraints. (Normally in a project we just get them > anyway.) There are plenty of examples in the type-imp-* files that show the > way. > > 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 / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > ___ > -- Thus spake the master programmer: "When a program is being tested, it is too late to make design changes." -- Geoffrey James, "The Tao of Programming" ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] ntg-context Digest, Vol 227, Issue 15
ce_number \strc_formulas_flush_number > \dostarttagged \t!formulacontent \empty \dotagregisterformula > \c_strc_formulas_n \csname \e!stop \formulaparameter \c!alternative > \v!formula \endcsname > > > \dostoptagged \dostoptagged \nonoindentati > > > > > > \stopformula > > > > > > \startformula > > > \int_{\infty} > > > >> \stopformula > > > > > > Sorry, but I can't typeset math unless various parameters have been > set. This is > > > normally done by loading special math fonts into the math family > slots. Your font > > > set is lacking at least the parameter mentioned earlier. > > > > > > What parameter is this referring to here? > > > > Looks like you might not have the Minion math font. Did you buy it? > > Oh. That's what the math slot refers to then! I didn't buy it. I've been > shoved > acroread before without asking and I had the whole set sans math > > thanks Mikael > > > > /Mikael > > > ___ > > If your question is of interest to others as well, please add an entry > to the Wiki! > > > > maillist : ntg-context@ntg.nl / > https://www.ntg.nl/mailman/listinfo/ntg-context > > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > > archive : https://bitbucket.org/phg/context-mirror/commits/ > > wiki : https://contextgarden.net > > > ___ > > -- > If I'd known computer science was going to be like this, I'd never have > given up being a rock 'n' roll star. > -- G. Hirst > -- next part -- > A non-text attachment was scrubbed... > Name: Screenshot_2023-05-09_10-58-23.png > Type: image/png > Size: 36671 bytes > Desc: not available > URL: < > http://mailman.ntg.nl/pipermail/ntg-context/attachments/20230509/ae4d7f93/attachment.png > > > > -- > > Subject: Digest Footer > > > ___ > 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://tex.aanhet.net > archive : https://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___ > > > -- > > End of ntg-context Digest, Vol 227, Issue 15 > > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] new units
On 5/7/2023 11:10 AM, Henning Hraban Ramm via ntg-context wrote: Am 04.05.23 um 10:01 schrieb Hans Hagen via ntg-context: Hi, We now officially have three new units. These were officially introducd at the 2023 BachoTeX meeting in a presentation where the chair of the four person strong team also did the final live callibration (using the edithorial callibration instrument made for that purpose). An upcoming article in TB will explain the details of the process and also a careful mathematical annalysis of how we reached the right value with a high precission. The actual implementation is the most boring part. Hi Hans, can I have the article also for CGJ, please? I didn’t understand all details, and I guess some spelling errors are intentional – was there a Calli? Does “precission” refer to anything? And what’s the abbreviation for Theodores? the theodore is only used in reporting an overflow so no real unit (just like feet is no unit in tex but used in the message) an article is chicken-egg ... it goes into the tugboat (already checked and prepared, read peer reviewed) but it is no big deal if the ctx journal takes it afterwards (plenty of time) and then the cg members are also informed (it will go in the distribution anyway but normally i wait till after publication) concerning precission, indeed there was a real beautiful handcrafted measuring device but as with much research one could sort of predict the median outcome esp after the main sample was made beforehand by carefully checking some resources; it was nice to see how most attendents properties fit the bill (Alan will be pleased to know that actually the Thumb was the starting point which happens to be close to an inch and the oid Dutch measure is Duim.) Hans ps. For those unfamiliar with the tex community, when we talk 'research' and such, keep in mind that most tex related research is kind of bogus, wishful thinking, sounding serious, etc. and that most 'projects' are just 'activities by enthousiatic users' In the end it's all about esthetics which is more about feeling and intuition and pretty much driven by user demsnds. In a similar fashion most 'tex conferences' are more user meetings. ps. So 'I didn’t understand all details' is quite okay because the idea was to put you on the wrong foot (or theodore). It helps when you knwo the people involved, does 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 / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] new units
Am 04.05.23 um 10:01 schrieb Hans Hagen via ntg-context: Hi, We now officially have three new units. These were officially introducd at the 2023 BachoTeX meeting in a presentation where the chair of the four person strong team also did the final live callibration (using the edithorial callibration instrument made for that purpose). An upcoming article in TB will explain the details of the process and also a careful mathematical annalysis of how we reached the right value with a high precission. The actual implementation is the most boring part. Hi Hans, can I have the article also for CGJ, please? I didn’t understand all details, and I guess some spelling errors are intentional – was there a Calli? Does “precission” refer to anything? And what’s the abbreviation for Theodores? Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] new units
The whole point of the so-called "imperial" units is to be based on fractions, not decimal. May I suggest that we use \sqrt2 as the basis of our fractions, so as to push the limits of calculation and precision (that are handled well in the new lmtx engine). Also, on this day of coronation, post-Brexit, I believe that the ConTeXt community should get behind the promotion of obscure Imperial units, relegating the metric system to scientists who have no choice but to adhere to the Système International. Alan (who could not participate in the discussions of the committee of four) On Thu, 4 May 2023 10:01:25 +0200 Hans Hagen via ntg-context wrote: > Hi, > > We now officially have three new units. These were officially > introducd at the 2023 BachoTeX meeting in a presentation where the > chair of the four person strong team also did the final live > callibration (using the edithorial callibration instrument made for > that purpose). An upcoming article in TB will explain the details of > the process and also a careful mathematical annalysis of how we > reached the right value with a high precission. The actual > implementation is the most boring part. > > \starttext > > \startTEXpage[offset=1ts] > Hello World! > > \the\dimexpr 1ts > > \the\dimexpr 1es > > \the\dimexpr 1eu > > \eufactor20 > > \the\dimexpr 1eu > \stopTEXpage > > \stoptext > > The es (Edith) unit replaces the inch, and the ts (Tove) is one > tenths of than (just like we have cm and mm). The eu (European Unit) > is an adaptive one that defaults to 10 ts == 1es and can be > multiplied by setting the \eufactor (default 10) which makes it > possible to define layouts that easilly scale to different output > media (important for the mobile phone / table generation). > > This means that MWE that use inches will likely no longer be > considered valid and probably will be dealt with slower (or just > ignored). > > These units can be used in the current upload. In a next upload the > "19 feet max" message that tex issues when reaching a maximum will be > adapted to a more realistic variant. (Actually, because tex has no > foot unit, we could as well replace that with a more impressive > little feet unit but we forgot to measure the smallest foot present > which i guess was about 3 es so the limit is then some 75 bare > theodores.) > > Hans ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] upload
On Fri, 5 May 2023, Hans Hagen via ntg-context wrote: > Hi, > > I uploaded a version that provides > > mtxrun --script install-tikz > > that when run in the tex root (.../tex) will fetch some tikz stuff from ctan > and puts is in texmf-modules. After installing it wipes the files that make no > sense (or can interfere or might be harmful) but I didn't check that > extensively. Finally it remakes the file dastabase. I don't know if more needs > to be installed. It assumes curl to be present (as library or binary). It's a > rather stupid script but (I guess) good enough for what it is supposed to do. Works fine at my end. I also adapted the arch AUR package to use the install-tikz option (earlier I was installing these packages by wget as part of the installation process). > I can add more (like other modules) in which case it will be renamed. Would it make sense to add a similar script to install context modules from modules.contextgarden.net? Thanks, Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] tikz + lmtx
On 5/4/2023 11:12 PM, Aditya Mahajan via ntg-context wrote: Does that mean that these will be now included as part of the lmtx install? no, i'm not going to bloat that one, but there will be a mtxrun --script install-tikz Not being a tikz user I have no preferences but we can add some test files to the test suite if needed. It may be good to add some basic files (e.g., the ones that I sent to you off-list) so that we may know if these packages break again. yes, i already added thse 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 / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] tikz + lmtx
On Thu, 4 May 2023, Hans Hagen via ntg-context wrote: > On 4/28/2023 6:08 AM, Aditya Mahajan via ntg-context wrote: > > Hi all, > > > > For a few months now, all features of tikz have not been working with LMTX. > > After help from Hans and a bit of trial and error, I think that figured out > > what was going wrong with the catcodes in m-tikz: Since the texcatcodes are > > different from what tikz expects, the catcodes have to be set inside > > \starttikzpicture (in addition to before the loading of tikz files, which > > was already being done). > > > > I am attaching the working m-tikz.mkxl file. > > > > I have tested this on my course notes, which make extensive use of simple > > tikz block diagrams and pgfplots graphs. Perhaps others who were having > > issues with tikz could test if this fixes everything and, if so, we can add > > this to the distribution. > So, what is needed from tikz? > > "graphics/pgf/base/pgf.tds.zip", > "graphics/pgf/contrib/pgfplots.tds.zip", > "graphics/pgf/contrib/circuitikz.tds.zip", > > Is there more that should be installed as reasonable basic set? I believe that these are the most popular ones. > I made a script that does fetch/installs it (and also wipes latex / plain > /useless stuff afterwards including some shell etc scripts as we don't want > those either - security risk etc -). Does that mean that these will be now included as part of the lmtx install? > Not being a tikz user I have no preferences but we can add some test files to > the test suite if needed. It may be good to add some basic files (e.g., the ones that I sent to you off-list) so that we may know if these packages break again. Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] OBSD 7.3 binary locally compiled… what next?
Hi, I upgraded today my OBSD to 7.3 and… realized too late that texlive binaries were on the compile farm, but not the lmtx ones. That was the opportunity to learn self-install, though. I compiled the binary, but I am stuck with the next step What I did: - rm -rf /usr/local/context/* (now I suspect I should have first updated my 7.2 installation and then, after upgrading to 7.3, compiled the binaries…) - download https://www.pragma-ade.nl/context/latest/cont-tmf.zip - unpacked it into /usr/local/context (unzip cont-tmf.zip -d /usr/local/context/) - cd /usr/local/context/source/luametatex - ./build.sh --native Compilation succeeded, looks like the binary lies in /usr/local/context/source/luametatex/build/native/luametatex What's the next step? There was this message: == tex trees resources like public fonts : tex/texmf/ the context macro package: tex/texmf-context/ the luametatex binary: tex/texmf-native/bin/... optional third party modules : tex/texmf-context/ fonts installed by the user : tex/texmf-fonts/fonts/data/ styles made by the user : tex/texmf-projects/tex/context/user/ binaries: tex/texmf-/bin/luametatex : the compiled binary (some 2-3MB) tex/texmf-/bin/mtxrun : copy of or link to luametatex tex/texmf-/bin/context: copy of or link to luametatex tex/texmf-/bin/mtxrun.lua : copy of tex/texmf-context/scripts/context/lua/mtxrun.lua tex/texmf-/bin/context.lua: copy of tex/texmf-context/scripts/context/lua/context.lua commands: mtxrun --generate : create file database mtxrun --script fonts --reload: create font database mtxrun --autogenerate context ... : run tex file (e.g. from editor) https://www.pragma-ade.nl/context/latest/cont-tmf.zip The tex/texmf/ folder does not exist yet. Does this mean I have to create that part of the tree by hand (which means should I have unpacked the zip at /usr/local/context/tex/texmf rather than /usr/local/context)?I’d bet copying anything(copying mtxrun from /usr/local/context/scripts/context/stubs/unix/mtxrun ? Should I run install.sh – which I not did, assuming maybe wrongly that it would fail, and if so, which options? Thank you for your time, Damien ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] new units
Hi, We now officially have three new units. These were officially introducd at the 2023 BachoTeX meeting in a presentation where the chair of the four person strong team also did the final live callibration (using the edithorial callibration instrument made for that purpose). An upcoming article in TB will explain the details of the process and also a careful mathematical annalysis of how we reached the right value with a high precission. The actual implementation is the most boring part. \starttext \startTEXpage[offset=1ts] Hello World! \the\dimexpr 1ts \the\dimexpr 1es \the\dimexpr 1eu \eufactor20 \the\dimexpr 1eu \stopTEXpage \stoptext The es (Edith) unit replaces the inch, and the ts (Tove) is one tenths of than (just like we have cm and mm). The eu (European Unit) is an adaptive one that defaults to 10 ts == 1es and can be multiplied by setting the \eufactor (default 10) which makes it possible to define layouts that easilly scale to different output media (important for the mobile phone / table generation). This means that MWE that use inches will likely no longer be considered valid and probably will be dealt with slower (or just ignored). These units can be used in the current upload. In a next upload the "19 feet max" message that tex issues when reaching a maximum will be adapted to a more realistic variant. (Actually, because tex has no foot unit, we could as well replace that with a more impressive little feet unit but we forgot to measure the smallest foot present which i guess was about 3 es so the limit is then some 75 bare theodores.) 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 / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] how access to \namedstructurevariable [next / previous]
Got a solution, but it looks like "not a proper way to do it" Is it recommanded to work directly with lua tables like these : - structures.sections.current().references - fonts.current().specification === \def\CheckC% {\startluacode local numero = structures.sections.current() if numero == nil then numero = 1 else numero = structures.sections.current().references.listindex + 1 end context.page() context("inbetween : "..structures.lists.collected[numero].titledata.title) context.page() \stopluacode} \setuphead [section] [color=darkred,style=\tfc,inbetween={\mono{\CheckC}}] \setuphead [subsection] [inbetween=] \starttext \startsection[title=Section A] Text of section A. \startsubsection[title=SubSection A.A] Text of subsection A.A \stopsubsection \stopsection \startsection[title=Section B] Text of section B. \startsubsection[title=SubSection A.A] Text of subsection A.A \stopsubsection \stopsection \stoptext Le 29/04/2023 à 18:07, Garulfo a écrit : Hi all, I would like to use the title and the number of a section twice : - first with a specific layout (with makeup) - second, as usual, as part of the page flow. like in : http://www.pragma-ade.nl/general/manuals/cont-enp.pdf#page=23 looking at the source code (http://context.aanhet.net/svn/manuals/context/layo-00.tex), I understood that it was achieved with : \setuphead [\v!chapter] [\c!command=\PlaatsHoofdstuk, \c!page=\v!yes, \c!before=, \c!inbetween=\PlaatsHoofdstukIndex, %\c!incrementnumber=cont-\currentlanguage, \c!header=\v!nomarking, \c!textstyle=\bfd, \c!numberstyle=\bfe] and \def\PlaatsHoofdstukIndex % todo: lucida {%\startnotmode[*\v!frontpart] \page[\v!right] \setupbackgrounds[\v!paper][\c!background=\v!color] \startmakeup[\v!standard] \raggedleft \doifsomething{\currentheadnumber} {\hfill\expanded{\processMPheadnumber{\currentheadnumber}}} \vfill \hfill\expanded{\processMPheadtext{\currentheadtext}} \stopmakeup \setupbackgrounds[\v!paper][\c!background=] }%\stopnotmode} But currently, I can not reproduce it : - \currentheadtex return empty - \namedstructurevariable{section}{title} only report the update title once the title is actually typesetted Is there a way to access \namedstructurevariable with [next] or [previous] like options ? Here is a test trying to reproduce cont-enp.pdf example === \def\CheckA{{\mono\currentheadtext}} \def\CheckB{{\mono\namedstructurevariable{section}{title}}\page} \setuphead [section] [before={before : \CheckA - \CheckB}, inbetween={inbetween: \CheckA - \CheckB}, after={after: \CheckA - \CheckB}, beforesection={beforesection: \CheckA - \CheckB}, insidesection={insidesection: \CheckA - \CheckB}, aftersection={aftersection: \CheckA - \CheckB}, color=darkred, style=\tfc, ] \starttext \startsection[title=Section A] Text of section A. \stopsection \startsection[title=Section B] Text of section B. \stopsection \stoptext === Thanks for your help Garulfo ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] how access to \namedstructurevariable [next / previous]
Hi all, I would like to use the title and the number of a section twice : - first with a specific layout (with makeup) - second, as usual, as part of the page flow. like in : http://www.pragma-ade.nl/general/manuals/cont-enp.pdf#page=23 looking at the source code (http://context.aanhet.net/svn/manuals/context/layo-00.tex), I understood that it was achieved with : \setuphead [\v!chapter] [\c!command=\PlaatsHoofdstuk, \c!page=\v!yes, \c!before=, \c!inbetween=\PlaatsHoofdstukIndex, %\c!incrementnumber=cont-\currentlanguage, \c!header=\v!nomarking, \c!textstyle=\bfd, \c!numberstyle=\bfe] and \def\PlaatsHoofdstukIndex % todo: lucida {%\startnotmode[*\v!frontpart] \page[\v!right] \setupbackgrounds[\v!paper][\c!background=\v!color] \startmakeup[\v!standard] \raggedleft \doifsomething{\currentheadnumber} {\hfill\expanded{\processMPheadnumber{\currentheadnumber}}} \vfill \hfill\expanded{\processMPheadtext{\currentheadtext}} \stopmakeup \setupbackgrounds[\v!paper][\c!background=] }%\stopnotmode} But currently, I can not reproduce it : - \currentheadtex return empty - \namedstructurevariable{section}{title} only report the update title once the title is actually typesetted Is there a way to access \namedstructurevariable with [next] or [previous] like options ? Here is a test trying to reproduce cont-enp.pdf example === \def\CheckA{{\mono\currentheadtext}} \def\CheckB{{\mono\namedstructurevariable{section}{title}}\page} \setuphead [section] [before={before : \CheckA - \CheckB}, inbetween={inbetween: \CheckA - \CheckB}, after={after: \CheckA - \CheckB}, beforesection={beforesection: \CheckA - \CheckB}, insidesection={insidesection: \CheckA - \CheckB}, aftersection={aftersection: \CheckA - \CheckB}, color=darkred, style=\tfc, ] \starttext \startsection[title=Section A] Text of section A. \stopsection \startsection[title=Section B] Text of section B. \stopsection \stoptext === Thanks for your help Garulfo ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] tikz + lmtx
On Fri, 28 Apr 2023, Floris van Manen via ntg-context wrote: > > > On 28/04/2023 16:25, Aditya Mahajan via ntg-context wrote: > > These are already part of the distribution. Just one caveat: you need to use > > > > \usemodule[tikz] > > \usemodule[pgfplots] > > > when running the example from contextgarden: > https://wiki.contextgarden.net/Pgfplot > > \setupcolors[state=start] > \usemodule[tikz] > \usemodule[pgfplots] > \starttext > \starttikzpicture > \startaxis[ > xmin=0,xmax=300, > title=http://cryogenics.nist.gov/, > xlabel=$T$ (K), > ylabel=$(L-L_{293})/L_{293}$, > legend style={at={(0.95,0.05)},anchor=south east}, > width=16cm ] > \addplot[mark=none,color=red] plot file {sapphire.dat}; > \addlegendentry{sapphire} > \addplot[mark=none,color=green] plot file {Be.dat}; > \addlegendentry{Be} > \addplot[mark=none,color=blue] plot file {BeCu.dat}; > \addlegendentry{BeCu} > \addplot[mark=none,color=cyan] plot file {SS304.dat}; > \addlegendentry{SS304} > \addplot[mark=none,color=magenta] plot file {Al6061-T6.dat}; > \addlegendentry{Al6061-T6} > \addplot[mark=none,color=orange] plot file {nylon.dat}; > \addlegendentry{nylon} > \stopaxis > \stoptikzpicture > \stoptext Is it possible to create a standalone test that does not depend on a bunch of datafiles that need to be downloaded? Thanks, Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] tikz + lmtx
On 28/04/2023 16:25, Aditya Mahajan via ntg-context wrote: These are already part of the distribution. Just one caveat: you need to use \usemodule[tikz] \usemodule[pgfplots] when running the example from contextgarden: https://wiki.contextgarden.net/Pgfplot \setupcolors[state=start] \usemodule[tikz] \usemodule[pgfplots] \starttext \starttikzpicture \startaxis[ xmin=0,xmax=300, title=http://cryogenics.nist.gov/, xlabel=$T$ (K), ylabel=$(L-L_{293})/L_{293}$, legend style={at={(0.95,0.05)},anchor=south east}, width=16cm ] \addplot[mark=none,color=red] plot file {sapphire.dat}; \addlegendentry{sapphire} \addplot[mark=none,color=green] plot file {Be.dat}; \addlegendentry{Be} \addplot[mark=none,color=blue] plot file {BeCu.dat}; \addlegendentry{BeCu} \addplot[mark=none,color=cyan] plot file {SS304.dat}; \addlegendentry{SS304} \addplot[mark=none,color=magenta] plot file {Al6061-T6.dat}; \addlegendentry{Al6061-T6} \addplot[mark=none,color=orange] plot file {nylon.dat}; \addlegendentry{nylon} \stopaxis \stoptikzpicture \stoptext i get a fatal error: resolvers | globbing | confusing filename, name: 'CHANGELOG', lower: 'changelog', already: 'ChangeLog' resolvers | formats | executing runner 'run luametatex format': /home/vm/context/tex/texmf-linux-64/bin/luametatex --jobname="./context 24.tex" --socket --shell-escape --fmt=/home/vm/luametatex-cache/context/formats/luametatex/cont-en.fmt --lua=/home/vm/luametatex-cache/context/formats/luametatex/cont-en.lui --c:currentrun=1 --c:fulljobname="./context 24.tex" --c:input="./context 24.tex" --c:kindofrun=1 --c:maxnofruns=9 --c:purgeall --c:texmfbinpath="/home/vm/context/tex/texmf-linux-64/bin" resolvers > globbing > confusing filename, name: 'CHANGELOG', lower: 'changelog', already: 'ChangeLog' system > system > ConTeXt ver: 2023.04.27 17:04 LMTX fmt: 2023.4.28 int: english/english system > system > 'cont-new.mkxl' loaded open source > level 1, order 1, name '/home/vm/context/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl' system > beware: some patches loaded from cont-new.mkiv close source> level 1, order 1, name '/home/vm/context/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl' system > files > jobname './context 24', input './context 24.tex', result './context 24' fonts > latin modern fonts are not preloaded languages > language 'en' is active open source > level 1, order 2, name './context 24.tex' colors > 'rgb' color space is supported colors > 'cmyk' color space is supported modules > 'tikz' is loaded open source > level 2, order 3, name '/home/vm/context/tex/texmf-context/tex/context/modules/mkxl/m-tikz.mkxl' open source > level 3, order 4, name 'pgfutil-common.tex' open source > level 4, order 5, name 'pgfutil-common-lists.tex' close source> level 4, order 5, name 'pgfutil-common-lists.tex' close source> level 3, order 5, name 'pgfutil-common.tex' open source > level 3, order 6, name 'pgfutil-context.def' close source> level 3, order 6, name 'pgfutil-context.def' open source > level 3, order 7, name 'pgfrcs.code.tex' close source> level 3, order 7, name 'pgfrcs.code.tex' open source > level 3, order 8, name 'pgfsys.code.tex' open source > level 4, order 9, name 'pgfkeys.code.tex' open source > level 5, order 10, name 'pgfkeysfiltered.code.tex' close source> level 5, order 10, name 'pgfkeysfiltered.code.tex' close source> level 4, order 10, name 'pgfkeys.code.tex' open source > level 4, order 11, name 'pgf.cfg' close source> level 4, order 11, name 'pgf.cfg' Driver file for pgf: pgfsys-pdftex.def open source > level 4, order 12, name 'pgfsys-pdftex.def' open source > level 5, order 13, name 'pgfsys-common-pdf.def' close source> level 5, order 13, name 'pgfsys-common-pdf.def' close source> level 4, order 13, name 'pgfsys-pdftex.def' open source > level 4, order 14, name 'context.tex' setup > error in line 12, namespace 'fontinstanceready', instance 'D', key 'no,' open source > level 5, order 15, name '/home/vm/context/tex/texmf-context/tex/context/fonts/mkiv/type-imp-plex.mkiv' open source > level 6, order 16, name '/home/vm/context/tex/texmf-context/tex/context/fonts/mkiv/type-imp-texgyre.mkiv' close source> level 6, order 16, name '/home/vm/context/tex/texmf-context/tex/context/fonts/mkiv/type-imp-texgyre.mkiv' close source> level 5, order 16, name '/home/vm/context/tex/texmf-context/tex/context/fonts/mkiv/type-imp-plex.mkiv' fonts > checking > char 2 (U+00032) in font '' with id 0: missing fonts > checking > char 4 (U+00034) in font '' with id 0: missing fonts
Re: [NTG-context] tikz + lmtx
On Fri, 28 Apr 2023, Gavin wrote: > Hi fellow Tik-Z users, > > Tik-Z, including circuitikz, is working for me after adding two files from > Hans to a slightly older version of ConTeXt (ver: 2023.02.07 19:06 LMTX fmt: > 2023.3.14). I do not know if these files are of any use with the current > versions, but I am quoting a list email from January (including the files) > just in case it helps anyone with the present problems. > > Gavin These are already part of the distribution. Just one caveat: you need to use \usemodule[tikz] \usemodule[pgfplots] Directly loading \usemodule[pgfplots] will not work as the t-pgfplots module explicitly loads t-tikz, which does not work with LMTX. Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] LuaMetaTeX doesn't find files when symlinked
Max & Hans: I installed the stand-alone ConTeXt installation just today. It seems like I have my $PATH set correctly now. I have been editing ConTeXt and running it within TeXstudio. I had set up a "user command" to execute arara on LaTeX and ConTeXt files when I did NOT have the "standalone" version installed. It still works correctly. Today, I created a separate "user command" within TeXstudio, and it points to "/usr/local/ConTeXt_Standalone/context-linux-64/bin/mtxrun" This command generates the same log output as the example at https://gitlab.com/islandoftex/images/texlive/-/issues/30. If I understand this correctly, my OLD user command within TeXstudio is still finding the TeXlive version of ConTeXt, and that TeXlive version does have the symlinks mentioned by Max (and BTW, I did NOT create those, they are part of the default TeXlive installation process!). This is because my OLD "arara" command has the path to the March 13 version of TeXlive 2023 version (installed from ISO image, with some updates using tlmgr already installed). Lynx On 2023-04-27 21:00, Max Chernoff via ntg-context wrote: > Hi Hans, > > With the LuaMetaTeX-based ConTeXt wrapper, it's not generally possible > to run ConTeXt from a symlinked binary in another directory. This shows > up if someone makes symlinks in "/usr/bin" so that they can avoid adding > anything to their $PATH. > > If you make run a symlink to the LuaMetaTeX-based ConTeXt wrapper, it > looks for texmfcnf.lua relative to the symlink location, not the symlink > target. With the old LuaTeX/kpse-based wrapper, the script would look > for texmfcnf.lua relative to the symlink target. > > I know that my description above is terrible, so here's a demo: > > $ bin=$(mtxrun --expand-var TEXMFOS | head -1)/* > $ cd $(mktemp -d) > $ ln -s $bin/luatex $bin/luametatex $bin/context $bin/context.lua $bin/mtxrun > $bin/mtxrun.lua . > $ ./context --nofile > $ ./context --luatex --nofile > > Running the above commands used to work with the old LuaTeX/kpse-based > wrapper, but it doesn't work any more. I was able to ""fix"" this by > adding the lines > > if os.selfpath then > environment.ownbin = lfs.symlinktarget(os.selfpath .. io.fileseparator .. > os.selfname) > environment.ownpath = environment.ownbin:match("^.*" .. io.fileseparator) > else > environment.ownpath = kpse.new("luatex"):var_value("SELFAUTOLOC") > environment.ownbin = environment.ownpath .. io.fileseparator .. (arg[-2] or > arg[-1] or arg[0] or "luatex"):match("[^" .. io.fileseparator .. "]*$") > end > > to mtxrun.lua, right below the line > > package.loaded["data-ini"] = package.loaded["data-ini"] or true > > but this is obviously not a very good fix. > > There are some threads with more details at: > > https://tug.org/pipermail/tex-live/2023-March/049028.html > https://gitlab.com/islandoftex/images/texlive/-/issues/30 > > Those links only discuss TL, but I get the same issue if I make a symlink > to the standalone ConTeXt files. > > Thanks, > -- Max > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > __ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] tikz + lmtx
Hi all, For a few months now, all features of tikz have not been working with LMTX. After help from Hans and a bit of trial and error, I think that figured out what was going wrong with the catcodes in m-tikz: Since the texcatcodes are different from what tikz expects, the catcodes have to be set inside \starttikzpicture (in addition to before the loading of tikz files, which was already being done). I am attaching the working m-tikz.mkxl file. I have tested this on my course notes, which make extensive use of simple tikz block diagrams and pgfplots graphs. Perhaps others who were having issues with tikz could test if this fixes everything and, if so, we can add this to the distribution. Aditya%D \module %D [ file=m-tikz, %Dversion=2021.07.12, %D title=\CONTEXT\ Extra Modules, %D subtitle=TIKZ support, %D author=Hans Hagen, %D date=\currentdate, %D copyright={PRAGMA ADE \& \CONTEXT\ Development Team}] %C %C This module is part of the \CONTEXT\ macro||package and is %C therefore copyrighted by \PRAGMA. See mreadme.pdf for %C details. %D A fixed variant of the t-tikz module distributed with tikz. For practical reasons %D per 2021 we split the module for \MKIV\ and \LMTX. (Maybe some day I'll optimize %D TIKZ a bit.) %D %D All these t-* modules in the tikz distribution make no sense as we can just load %D them here which is way cleaner. There is also some mkii filename mapping going on %D that is not needed on todays systems (windows has no 8.3 limitation and on unix %D tds finally adopted a case insensitive approach.) %D Just in case someone does a hard input ... \ifdefined\pgfdefined\endinput \fi \ifdefined\pgfcoredefined\endinput \fi %D ... but normally we end up here: \startmodule[tikz] \ifdefined\pdflastxpos \else \unprotect \frozen\overloaded\protected\def\pdflastxpos{\numexpr\clf_lastxpos\relax} \frozen\overloaded\protected\def\pdflastypos{\numexpr\clf_lastypos\relax} \protect \fi \newcatcodetable \tikzcatcodes \startcatcodetable \tikzcatcodes \catcode\tabasciicode \spacecatcode \catcode\endoflineasciicode \endoflinecatcode \catcode\formfeedasciicode\endoflinecatcode \catcode\spaceasciicode \spacecatcode \catcode\endoffileasciicode \ignorecatcode \catcode\circumflexasciicode \superscriptcatcode \catcode\underscoreasciicode \subscriptcatcode \catcode\ampersandasciicode \alignmentcatcode \catcode\backslashasciicode \escapecatcode \catcode\leftbraceasciicode \begingroupcatcode \catcode\rightbraceasciicode \endgroupcatcode \catcode\dollarasciicode \mathshiftcatcode \catcode\hashasciicode\parametercatcode \catcode\commentasciicode \commentcatcode \catcode\atsignasciicode \lettercatcode \catcode\exclamationmarkasciicode \othercatcode \catcode\questionmarkasciicode\lettercatcode \catcode\tildeasciicode \activecatcode \catcode\barasciicode \othercatcode \stopcatcodetable \permanent\protected\def\starttikzinput {\pushoverloadmode \pushcatcodetable \setcatcodetable\tikzcatcodes \pushmacro\meaning \let\meaning\meaningless \autoparagraphmode\zerocount} \permanent\protected\def\stoptikzinput {\autoparagraphmode\plusone \popcatcodetable \popmacro\meaning \popoverloadmode} \permanent\protected\def\tikzinputfile#1% {\starttikzinput \input{#1}\relax \stoptikzinput} \permanent\protected\def\tikzerrormessage#1#2#3% {\writestatus{#1}{#2}} % For now we need this but we need to educate the user to wrap settings in the % wrappers. So some day the next line will go. I need to check what commands are % possible outside a picture. \overloadmode\zerocount \newtoks\everytikzpicture % \appendtoks % \resetcharacterspacing % \to \everytikzpicture \permanent\protected\def\starttikzsettings {\pushoverloadmode \pushmacro\meaning \let\meaning\meaningless \autoparagraphmode\zerocount} \permanent\protected\def\stoptikzsettings {\autoparagraphmode\plusone \popmacro\meaning \popoverloadmode} \permanent\protected\def\starttikzpicture {\dontleavehmode \hcontainer\bgroup \setcatcodetable\tikzcatcodes \the\everytikzpicture \autoparagraphmode\zerocount \pushmacro\meaning \let\meaning\meaningless % \pushoverloadmode \ifdefined\PackageError\else \let\PackageError\tikzerrormessage \fi \tikzpicture} \permanent\protected\def\stoptikzpicture {\endtikzpicture % \popoverloadmode \popmacro\meaning \egroup} \let\pgfdefined\relax \let\pgfcoredefined\relax \tikzinputfile{pgfutil-common.tex} \tikzinputfile{pgfutil-context.def} \tikzinputfile{pgfrcs.code.tex} \tikzinputfile{pgfsys.code.tex} \tikzinputfile{pgfkeys.code.tex} \tikzinputfile{pgfsyssoftpath.code.tex} \tikzinputfile{pgfsysprotocol.code.tex} \tikzinput
Re: [NTG-context] update
On 4/27/2023 7:11 AM, Max Chernoff via ntg-context wrote: Hi Lynx, Aditya, New to conTeXt, have not performed a specific update prior to this. My conTeXt installation is part of TeXlive-2023 (under Linux OS). Will the updates to ConTeXt be handled by tlmgr ? No. Usually, texlive updates context once a year. This is correct in general, but this specific update *will* end up in TL2023 due to the engine changes that Hans mentioned. It's not in TL yet, but we're actively working on it, so it should show up within a week or so (hopefully). Correction: Luigi and I are still discussing how to make it work because there is some init order issue and we want to be sure that context (and its scripts) keep working. It would be sort of weird if context (where luatex originates) would stop working as expected. Keep in mind that luatex is also a lua engine. and I assume that the texlive team also has some tests to perform (apart from getting all platforms updated which for some is more work, like apple signing). The issue (disabling socket by default) is not that pressing as socket has been with us for right fromn the start) and security wise there are plenty ways tex can mess up your system if someone wants. 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 / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] update
On 4/27/2023 2:50 AM, lynx--- via ntg-context wrote: Re: performing update(s) New to conTeXt, have not performed a specific update prior to this. My conTeXt installation is part of TeXlive-2023 (under Linux OS). Will the updates to ConTeXt be handled by tlmgr ? Basically tex live is the yearly snapshot. I actually dont' know the rules for updating texlive but there are definitely updates. But as much relates there (like engines shared between macro packages) it can be that only macros get updated and not engines (also relates to multiple platforms) so fundamental changes to luatex as engine .. hard to predict. But you can just install the lmtx installation alongside (it's small compared to tex live) and have the best of both worlds. The lmtx installation also has mkiv. It also comes with the fonts that match what we expect in context (as fonts get updated or changed). 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 / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] update
Hi Lynx, Aditya, > > New to conTeXt, have not performed a specific update prior to this. > > > > My conTeXt installation is part of TeXlive-2023 (under Linux OS). Will > > the updates to ConTeXt be handled by tlmgr ? > > No. Usually, texlive updates context once a year. This is correct in general, but this specific update *will* end up in TL2023 due to the engine changes that Hans mentioned. It's not in TL yet, but we're actively working on it, so it should show up within a week or so (hopefully). Thanks, -- Max ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] update
On Wed, 26 Apr 2023, lynx--- via ntg-context wrote: > Re: performing update(s) > > New to conTeXt, have not performed a specific update prior to this. > > My conTeXt installation is part of TeXlive-2023 (under Linux OS). Will > the updates to ConTeXt be handled by tlmgr ? No. Usually, texlive updates context once a year. Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] update
Re: performing update(s) New to conTeXt, have not performed a specific update prior to this. My conTeXt installation is part of TeXlive-2023 (under Linux OS). Will the updates to ConTeXt be handled by tlmgr ? Thanks, On 2023-04-26 14:55, Hans Hagen via ntg-context wrote: > Hi, > > I uploaded a new version with some new features discussed at the end of this > mail. > > - A next version of luatex will break context (format making etc) but the > change is unavoidable because of other macro package demands wrt security > (context does that differently). The low level start up command > has been adapted so unless you update indepdently thinsg should work ok. Of > course this has no consequences for lmtx. > > - I've done a bit of callback cleanup (like getting rid of some mkiv luatex > left-overs). It should have no effect on regular usage. > > - There again a few improvements wrt math (this time dealing with accents > artifacts in some fonts). We check all the free math fonts for potential > issues and then try to fix it (read: deal with it). It's a lot of work but > we're getting there. > > - A few reported buglets have been fixed. > > - The biggest addition is however a new number model. In metapost one can now > use 'posit' (positfun instance) as number mode which will use (currently 32 > bit but at some point 64 bit) posit unums. It's also bit of a playground > because 32 bit posits are not more accurate than 64 bit doubles. It anyhow > exposed some potential issues that we'll look into. > > - There's also a (again currently 32 bit) posit library at the Lua end as > playground. > > - However, 32 bit posits come in handy at the tex end because they pack > better accuracy in 32 bits than floats and it makes it possible to have > native floats, so we have: > > \newfloat (uses \floatdef, register like \dimendef is used in \newdimen) > > \newposit (uses \positdef, like \dimensiondef etc) > > \floatexpr (like \numexpr) > > \iffloat (like \ifnum) (also \ifabsfloat and i'll add the others too) > > Actually it adds an extra range of registers so it bumps memory usage a bit. > I'm considering lowering the number of registers (currently 64K per category) > because after all, if 64K is not enough then we can as well stick to 32K or > 16K (for some even less). There's always Lua for unlimited storage of > quantities. > > So, > > \newfloat\fooA > > \scratchdimen=123.456pt\relax[\type{dim:} > \the\scratchdimen==123.456pt]\par > \fooA=123.456\relax [\type{pos:} \the\fooA ==123.456] \par > \fooA=\scratchdimen\relax[\type{pos:} \the\fooA ==123.456] \par > \scratchdimen=\fooA\relax[\type{dim:} > \the\scratchdimen==123.456pt]\par > \scratchdimen\dimexpr\fooA+10pt\relax[\type{dim:} > \the\scratchdimen==133.456pt]\par > > produces > > [dim: 123.456pt==123.456pt] > [pos: 123.45600128173828==123.456] > [pos: 123.45599365234375==123.456] > [dim: 123.456pt==123.456pt] > [dim: 133.456pt==133.456pt] > > As you can see dimens will get mapped onto floats not as integers (scaled > points) but in pt units. Counts stay numbers. I need to handle glue too (not > yet done). > > In the future I might use this for fractions but there might be some rough > ends so for now it's experimental. > > Hans > > - > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | www.pragma-ade.nl [1] | www.pragma-pod.nl [2] > - > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > ___ Links: -- [1] http://www.pragma-ade.nl [2] http://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 / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Idea for a shared repository.
Am 25.04.23 um 17:13 schrieb Aditya Mahajan via ntg-context: On Tue, 25 Apr 2023, Pawel Urbanski via ntg-context wrote: What about creating a repository called: 'templates' or 'resources' - we can figure out the exact name later. Why not use the wiki for such documents? For fonts, there is already a wiki page collecting typescripts: https://wiki.contextgarden.net/Typescripts_examples There are also a collection of templates which are already on the wiki: https://wiki.contextgarden.net/Category:Sample_documents It is not about duplicating the Context garden site but to collect code in a place where we could gradually fix possible errors or introduce improvements. This can be done on the wiki as well. I agree that it makes most sense to keep examples and (font) setups in the wiki. Projects with several files, like modules, should have their own (git) repositories. (The scripts at modules.contextgarden.net can pull releases directly from a repository.) I think it’s better to have (and manage) your own account somewhere and link to it from the wiki than to use the “official” account for stuff that is not part of ConTeXt proper. My stuff is at https://codeberg.org/fiee/; some of that would also make (more) sense in the wiki. Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Kaktovik numerals
On 4/19/2023 10:45 PM, Willi Egger via ntg-context wrote: Hello Gavin, thank you so much for your input. — Indeed you are right. Please find attached the corrected version. Willi On 19 Apr 2023, at 20:58, Gavin via ntg-context wrote: Hi Willi, What fun! I think I found a couple math items to correct. 1) The second line of the tables at the top of page 2 should be: 1000' 100, 10, 1; 8000, 400, 20, 1 2) For the year conversion: 2023 = 5x20^2 + 1x20 + 3. (Your 0 should be my 1). This will give a three digit Kaktovik numeral. You have 4 digit Kaktovik numerals for 2023, with both a 0 and a 1. je kunt direct dat nummer converteren maar blijkbaar gaf ik de verkeerde volgorde uit: \useMPlibrary[kaktovik] % de officiele manier \definefontfeature [default] [default] [metapost=kaktovik] \setupbodyfont[dejavu] \starttext 2023 \kaktoviknumerals{5}\kaktoviknumerals{1}\kaktoviknumerals{3} \kaktoviknumerals{2023} % deze split dus voor je, order fixed \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 - %D \module %D [ file=meta-imp-kaktovik, %Dversion=2023.04.18, %D title=\METAPOST\ Graphics, %D subtitle=Kaktovik Numbers, %D author=Hans Hagen, %D date=\currentdate, %D copyright={PRAGMA ADE \& \CONTEXT\ Development Team}] %C %C This module is part of the \CONTEXT\ macro||package and is %C therefore copyrighted by \PRAGMA. See mreadme.pdf for %C details. %D Just a quick hack for Hraban (after a post on the mailing list). \startMPcalculation{simplefun} path kaktovik_glyphs[] ; def InitializeKaktovik = save p, d, u ; pair p[] ; numeric d ; d := .1 ; numeric u ; u := .15 ; % d := getparameterdefault "mpsfont" "d" .10 ; % u := getparameterdefault "mpsfont" "u" .15 ; p[0] := (0,1) ; p[1] := (1,0) ; p[2] := (2,1 - d) ; p[3] := (3,0) ; p[4] := (4,1 - 2d) ; p[5] := (4,1 + u) ; p[6] := (0,1 + 2u) ; p[7] := (4,1 + 4u) ; kaktovik_glyphs[0] := (1,1) { right } .. { left } (2,1/2) { left } .. { right } (3,1); for i= 1 upto 4 : kaktovik_glyphs[i] := p[0] for j=1 upto i : -- p[j] endfor ; endfor ; kaktovik_glyphs[ 5] := p[5] -- p[0] ;for i= 6 upto 9 : kaktovik_glyphs[i] := p[5] -- kaktovik_glyphs[i-5] ; endfor ; kaktovik_glyphs[10] := p[6] -- kaktovik_glyphs[ 5] ; for i=11 upto 14 : kaktovik_glyphs[i] := p[6] -- kaktovik_glyphs[i-5] ; endfor ; kaktovik_glyphs[15] := p[7] -- kaktovik_glyphs[10] ; for i=16 upto 19 : kaktovik_glyphs[i] := p[7] -- kaktovik_glyphs[i-5] ; endfor ; enddef ; vardef Kaktovik(expr i) = draw image ( draw kaktovik_glyphs[i] xscaled (10/20 -1/20) yscaled (25/20 -2/20) withpen (pencircle xscaled 1/20 yscaled 5/20) rotated -(2*20) % withpen (pencircle xscaled 1/40 yscaled 5/40) rotated -(2*20) % withpen (pencircle xscaled 2.5/40 yscaled 5/40) rotated -(2*20) ; ) shifted (2/20,2/20) enddef ; lmt_registerglyphs [ name = "kaktovik", units= 2, usecolor = true, width= 2, height = 2, depth= 0, preamble = "InitializeKaktovik" ] ; for i=0 upto 19 : lmt_registerglyph [ category = "kaktovik", unicode = 119488 + i, % "0x1D2C0" code = "Kaktovik(" & decimal i & ")" ] ; endfor ; \stopMPcalculation \startluacode interfaces.implement { name = "kaktoviknumerals", arguments = "integer", actions = function(n) local digits = { } local count = 1 while true do digits[count] = utf.char(0x1D2C0 + (n % 20)) n = n // 20 if n == 0 then break; end count = count + 1 end table.reverse(digits) context("%t",digits) end } \stopluacode \unprotect \permanent\def\kaktoviknumerals#1{\clf_kaktoviknumerals\numexpr#1\relax} \defineconversion [kaktoviknumerals] [\kaktoviknumerals] \defineconversion [K][\kaktoviknumerals] \definefontfeature [kaktovik] [metapost=kaktovik] \protect \continueifinputfile{meta-imp-kaktovik.mkxl} \definefontfeature [default] [default] [metapost=kaktovik] % [metapost={category=kaktovik,u
Re: [NTG-context] xmlsetentity on the fly?
After some experiments I am now fairly convinced that the entities are substituted BEFORE the typesettting actually starts. And thus changing the entity on the fly will have no effect. Is there a flag that can be set in order to delay the substitution until the actual moment of typesetting that part of the input? I examined files lxml-ent.lua and lxml-tex.lua but could not find how to this. dr. Hans van der Meer > On 17 Apr 2023, at 18:11, Hans van der Meer via ntg-context > wrote: > > I tried > \directlua{xml.registerentity("DATE","NEWDATE")} > > but neither does effect a change in the entity. > > Why is that entry not set in the Lua-table entities? (file xml-ent.lua) has > as that function: > > function xml.registerentity(key,value) > entities[key] = value > if trace_entities then > report_xml("registering entity %a as %a",key,value) > end > end > > >> On 17 Apr 2023, at 12:32, Hans van der Meer wrote: >> >> I would like to change an entity 'on the fly'. Example >> >> \def\DATE{THEDATE}\expanded{\xmlsetentity{DATE}{\DATE}} >> >> \startxmlsetups typ:event >> >> \def\DATE{NEWDATE}\expanded{\xmlsetentity{DATE}{\DATE}} >> >> Using within the . >> >> \stopxmlsetups >> >> However, using inside an always results in THEDATE and never >> in NEWDATE. >> >> How can I change the value of the entity inside the xmlsetups? >> > > dr. Hans van der Meer > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Kaktovik numerals
On 4/18/2023 10:57 AM, Henning Hraban Ramm via ntg-context wrote: I just came across this thread about the base-20 system of the Inuit people and the numerals invented for it in the 1990s: https://mathstodon.xyz/@johncarlosbaez/110215432175491555 This makes simple calculations just beautiful. interesting ... quick hack attached 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 - meta-imp-kaktovik.pdf Description: Adobe PDF document %D \module %D [ file=meta-imp-kaktovik, %Dversion=2023.04.18, %D title=\METAPOST\ Graphics, %D subtitle=Kaktovik Numbers, %D author=Hans Hagen, %D date=\currentdate, %D copyright={PRAGMA ADE \& \CONTEXT\ Development Team}] %C %C This module is part of the \CONTEXT\ macro||package and is %C therefore copyrighted by \PRAGMA. See mreadme.pdf for %C details. %D Just a quick hack for Hraban (after a post on the mailing list). \startMPcalculation{simplefun} path kaktovik_glyphs[] ; def InitializeKaktovik = save p, d, u ; pair p[] ; numeric d ; d := .1 ; numeric u ; u := .15 ; % d := getparameterdefault "mpsfont" "d" .10 ; % u := getparameterdefault "mpsfont" "u" .15 ; p[0] := (0,1) ; p[1] := (1,0) ; p[2] := (2,1 - d) ; p[3] := (3,0) ; p[4] := (4,1 - 2d) ; p[5] := (4,1 + u) ; p[6] := (0,1 + 2u) ; p[7] := (4,1 + 4u) ; kaktovik_glyphs[0] := (1,1) { right } .. { left } (2,1/2) { left } .. { right } (3,1); for i= 1 upto 4 : kaktovik_glyphs[i] := p[0] for j=1 upto i : -- p[j] endfor ; endfor ; kaktovik_glyphs[ 5] := p[5] -- p[0] ;for i= 6 upto 9 : kaktovik_glyphs[i] := p[5] -- kaktovik_glyphs[i-5] ; endfor ; kaktovik_glyphs[10] := p[6] -- kaktovik_glyphs[ 5] ; for i=11 upto 14 : kaktovik_glyphs[i] := p[6] -- kaktovik_glyphs[i-5] ; endfor ; kaktovik_glyphs[15] := p[7] -- kaktovik_glyphs[10] ; for i=16 upto 19 : kaktovik_glyphs[i] := p[7] -- kaktovik_glyphs[i-5] ; endfor ; enddef ; vardef Kaktovik(expr i) = draw image ( draw kaktovik_glyphs[i] xscaled (10/20 -1/20) yscaled (25/20 -2/20) withpen (pencircle xscaled 1/20 yscaled 5/20) rotated -(2*20) % withpen (pencircle xscaled 1/40 yscaled 5/40) rotated -(2*20) % withpen (pencircle xscaled 2.5/40 yscaled 5/40) rotated -(2*20) ; ) shifted (2/20,2/20) enddef ; lmt_registerglyphs [ name = "kaktovik", units= 2, usecolor = true, width= 2, height = 2, depth= 0, preamble = "InitializeKaktovik" ] ; for i=0 upto 19 : lmt_registerglyph [ category = "kaktovik", unicode = 119488 + i, % "0x1D2C0" code = "Kaktovik(" & decimal i & ")" ] ; endfor ; \stopMPcalculation \startluacode interfaces.implement { name = "kaktoviknumerals", arguments = "integer", actions = function(n) local digits = { } local count = 1 while true do digits[count] = utf.char(0x1D2C0 + (n % 20)) n = n // 20 if n == 0 then break; end count = count + 1 end context("%t",digits) end } \stopluacode \unprotect \permanent\def\kaktoviknumerals#1{\clf_kaktoviknumerals\numexpr#1\relax} \defineconversion [kaktoviknumerals] [\kaktoviknumerals] \defineconversion [K][\kaktoviknumerals] \definefontfeature [kaktovik] [metapost=kaktovik] \protect \continueifinputfile{meta-imp-kaktovik.mkxl} \definefontfeature [default] [default] [metapost=kaktovik] % [metapost={category=kaktovik,u=.25,d=.20,x=}] \setupbodyfont[dejavu] % \nopdfcompression \startTEXpage[offset=1ts,width=3es] \start \showglyphs KAKTOVIK \dostepwiserecurse{0}{19}{1}{\kaktoviknumerals{#1}\space } \stop kaktovik \start \red\glyphxscale 700 \dostepwiserecurse{0}{19}{1}{\kaktoviknumerals{#1}\space } \stop \startitemize[packed,K][color=orange,stopper=] \startitem first \stopitem \startitem second \stopitem \startitem third \stopitem \stopitemize KAKTOVIK \start \red \kaktoviknumerals{2023} -- \green\kaktoviknumerals{4}-- \blue \kaktovikn
Re: [NTG-context] Software upgrade for ntg and contextgarden server 6 April
On Sat, Apr 15, 2023 at 10:57:15AM +0200, Hans Hagen via ntg-context wrote: > On 4/15/2023 3:23 AM, Carlos via ntg-context wrote: > > > thank you Taco, Hans, and Aditya, Mikael, et > > > > Hans, I was just curious about your git strategy and wanted to ask you > > about something. > > I have no strategy. I see it as just an offline repository and archive. It's a strategy. It may not be the fanciest but you wrote earlier: >it's sort of the original git archive and our backup plan. > > > https://github.com/contextgarden/context ‹backup plan› has the same meaning there than a master plan (no pun intended with git) hence the association with a strategy. But when I wrote ‹strategy› it was not written with the intention to convey a message of exhaustive calculations to get or divise the plan of plans. NO. Rather more like what the definition says about it a plan of action or policy designed to achieve a major or overall aim. what is the backup plan of git as an archive but just a backup strategy. > > The luametatex repos sort of resembles what I have on my machine but even > then I always use intermediate 'compare before merge' steps that predate > git. Git (or svn) is nice for seeing changes but I admit that I never > roll-back using git. When I have to integrate something in e.g. luametatex > that comes from git I always diff (winmerge) and "manually merge". So much > for stragety: not that fancy. I agree > > The context updates are assembled from a completely different dev structure > (think also of temporary files, runtime files for manuals etc that don't > belong in something git) and turning that modus operandi into something git > would make my way of doing things pretty inefficient, so unless very little > changes etc happen i won't change that. > But it's good for the memory Hans. It's good for us. Studies on humans have revealed that learning or adapting to new methods might prove beneficial in the long run. > All the git magic is maintained by Mojca and occassionally we discuss how to > move on (we have some pending install-from-git stuff but that might take a > while before being promoted). > > I'm not really interested in al the additional stuff like chats, pull > requests, keeping track of comments in git, all these (for me useless) > statistics. I don't want to end up in an endless 'check this or that' noose, > so for me email and communicating (could be visual) with some involved does > it well; more fun too. I agree with you there. But who said anything about messages, chats, and the interactive social gitclub as gitlab, github and its ilk have suddenly become part of > > For some other projects git(hub|lab) is a communication method, basically an > on-line storage. > > > Did you guys ever consider having a cgit interface and hosting it. > > > > A bunch of projects have done it > > > > heck. Even git, which is where everything solely depends on in the end, is > > running it. > > > > https://git.kernel.org/pub/scm/git/git.git/ > > > > https://git.zx2c4.com/cgit/about/ > There is not much to gain with adding yet another interface to what we have > now. It only works if one or more people commit (no git pun intended) > themselves long-term to it which relates to ie beging used. > It's just an interface much more simpler than what the git archive backup interface currently in use presumably undergoes. Git is sort of big as-is and that's not even counting all its remote helpers by which all those places depend on (gitlab, github, bitbucket), which makes it even bigger. I've just seen that interface in a few projects and thought it was nice that the devs have somehow implemented it. > (Keep in mind that it's all volunteer work.) > > 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 / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net >
Re: [NTG-context] Using project-local fonts
On 2023-04-13 11:28, Kalouguine Andre via ntg-context wrote: Hi, i'm not familiar with that approach so can't see what interferes The most important change is that I can't update it and I can't put stuff in the system directory nor the user one. So I only have access to the project folder, it has to be self-contained. \definefontfamily [ebgaramond] [serif] [ebgaramond] [features=eb-garamond-normal] Apologies, my fault, I forgot a part of my email. I don't want the c-t and s-t ligatures (supposed to be in `hlig`). But I do want the T-h ligature which is supposed to be in `dlig`. So as far as I understand, TeXlive comes with an old version of EB Garamond in which all of them are in `dlig`. Hence my question about self-contained projects with fonts. Best regards, Andre Andre (and list), EB Garamond is hopelessly broken with respect to hlig and dlig, and has been for quite a while. I reported the problem (https://github.com/octaviopardo/EBGaramond12/issues/20) over five years ago, and the maintainer (if there is one) has done nothing. See also #4 in that issues list (https://github.com/octaviopardo/EBGaramond12/issues/4). There are a couple of forks, but there is no established reference implementation that I can see. The Google Fonts implementation is similarly challenged, perhaps worse. -- Rik ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Using project-local fonts
On 4/13/2023 5:28 PM, Kalouguine Andre via ntg-context wrote: Hi, i'm not familiar with that approach so can't see what interferes The most important change is that I can't update it and I can't put stuff in the system directory nor the user one. So I only have access to the project folder, it has to be self-contained. \definefontfamily [ebgaramond] [serif] [ebgaramond] [features=eb-garamond-normal] Apologies, my fault, I forgot a part of my email. I don't want the c-t and s-t ligatures (supposed to be in `hlig`). But I do want the T-h ligature which is supposed to be in `dlig`. So as far as I understand, TeXlive comes with an old version of EB Garamond in which all of them are in `dlig`. Hence my question about self-contained projects with fonts. You can put the font in the local directory but i have no clue how that works with your setup because in the end the font cache is used and does a user have a local one? YOu can maybe rename the font,. put it in the work directory and make a typescript that refers to that one. 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 / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Using project-local fonts
Hi, > i'm not familiar with that approach so can't see what interferes The most important change is that I can't update it and I can't put stuff in the system directory nor the user one. So I only have access to the project folder, it has to be self-contained. > \definefontfamily [ebgaramond] [serif] [ebgaramond] > [features=eb-garamond-normal] Apologies, my fault, I forgot a part of my email. I don't want the c-t and s-t ligatures (supposed to be in `hlig`). But I do want the T-h ligature which is supposed to be in `dlig`. So as far as I understand, TeXlive comes with an old version of EB Garamond in which all of them are in `dlig`. Hence my question about self-contained projects with fonts. Best regards, Andre___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] /usr/bin/env texlua no such file or directory; ~/context/tex is not a valid TEXROOT path; no file plain.tex
On Tue, Apr 11, 2023 at 12:20:32PM +0200, Hans Hagen via ntg-context wrote: > On 4/11/2023 12:00 PM, Carlos via ntg-context wrote: > > > and belongs to TeX Live? > > well, i suppose there is a non-empty copy in texlive but an empty one can go > indeed > > > > > Here we go! Back to point A where we were at before > > > as alan pointed out: just install with the lmtx installer in a path > > > separate > > > from tex live, set the path and you're done; don't try to mix texlive > > > with a > > > adapted of standalone, texlive has its own context package and updates > > > etc; > > > keep them separated > > > > alright. That's fine. That's what I thought. > > > > So copy over the mtxrun binary on texmf-linux-64/bin to context and call it > > a > > day? > as long as the five mentioned files are there (and best hand mtxrun, context > and luametatex the same so use links) ... luametatex is the engine as well > as stub runner (runs the luatex file in the same path with the same name and > suffix lua) > thank you for the clarification. I was going over path to make sure that anything under /opt/texlive/2022/bin/x86_64-linux/ returns no binaries from there But where is actually luametatex under the standalone sources > - > 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 / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > ___ > -- As soon as we started programming, we found to our surprise that it wasn't as easy to get programs right as we had thought. Debugging had to be discovered. I can remember the exact instant when I realized that a large part of my life from then on was going to be spent in finding mistakes in my own programs. -- Maurice Wilkes, designer of EDSAC, on programming, 1949 ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] /usr/bin/env texlua no such file or directory; ~/context/tex is not a valid TEXROOT path; no file plain.tex
On 4/11/2023 1:58 AM, Carlos via ntg-context wrote: I'm just following some of the standalone installation instructions as per the wiki alongside a TeX Live installation, but there are a few things that don't add up or I can't seem to add them up :). first, while I was trying to mtxrun --generate it returned /usr/bin/env texlua no such file or directory So I thought heck, perhaps by creating a symbolic link we'll call it a day, but that wasn't enough, nope. That # line will go away or change because per 2023 we assume that the script is run by luametatex and we're in a sort of transition This is is circa 21st century ladies and gentlemen! And tex survived more that 4 decades so ... it operates in an eco system (tds, installations) ... todays fashion is not yesterdays and tomorrows so I thought, alright, since there seems ot be a a problem with texlua, let's also add it to path somehow. i'm not sure what you installed but the stand alone installer installs luametatex / luatex and therefore has luametatex mtxrun -> luametatex context -> luametatex mtxrun.lua context.lua in the same path (the links are stubs, not uncommon in the tex world where they are also used to launch macro packages like latex) it can't be more portable and simple than that, is efficient and works ok unless one wants some different setup, and spend time on that So with that out of the way, we'll move on to the next step and change to a directory and try to call out mtxrun --generate again It returns: > ... But this is the catch. I don't have texmfcnf.lua anymore . Not on the TeX Live installation anyway if that might've ever materialize as a question maybe that was not copied? the fact that we need a configuration and file database is also pretty much the way a tex installation works (with allits resources) If I were to invoke an mtxrun --script cache --erase Of course and going solely by the above the part whenever it says resolvers | resolving | looking for regular 'texmfcnf.lua' on given path '/home/ce/context/bin/texmf/web2c' from specification 'selfautoloc:/texmf/web2c' wont' find it anywhere because that dir does not exist. should be there with the installer; if one just installs the 'zip' it has to come from elsewhere (like texlive, where actually most lives in texmf-dist) and one has to copy a configuration file to there But remember that earlier, adding bin to path was necessary to avoid /usr/bin/env texlua no such file or directory message But even now while trying to find plain.tex I've come to the conclusion that it needs it or else fails altogether The problem is that I don't have plain.tex though. As a matter of fact the TeX Live installation I currently have, plain tex is nowhere to be seen, heck, not even latex but only a handful set of fmtutil fmtuitl-sys mktexfmt and updmap updmap-sys and the whole remainder of kpathsea but then again this in practice would not even be needed if at all. indeed, context doesn't rely on fmtutil etc In other words, only the TeX Live infrastructure needed which shouldn't be a problem, right? But itis: a problem that is. Besides. The reason I mentioned it is only to serve reference material , but that's it. to recap, mtxrun looks for a texmfcnf.lua (which I don't have) and also for a plain.tex which I don't have either, and also presumably for a contextcnf.lua (which I have) but the script concept is not so smart, and finishes off with a final note that says warning: no lua configuration files found. No shit Sherlock! Of course it can't find it, because it doesn't exist, resolvers | resolving | looking for fallback 'contextcnf.lua' on given path '/home/ce/texmf/web2c' from specification 'home:texmf/web2c' But at this point and without sugar coating it, the standalone installation of context proves to be a chore more problematic than waiting to install over 5gb of TeX Live alone. hm, worked for quite a while for users; and did you try oen from https://www.pragma-ade.com/install.htm The only thing that the installation instructions got right from the start was the part about running the script with all modules. I'll probably… and eventually will try to install the whole TeX Live. But going solely by what the current TeX Live on my machine looks like, , with just the infrastcucture, while anything mtx was dropped like a hot potato really, it's a predicament... not sure what you mean here .. mtxrun was not dropped, tl 2313 just moved on to lmtx which is even less demanding (unless one starts moveing files around in the tex infrastruture and then expects stuff to keep working) -- Systems programmers are the high priests of a low cult. -- R.S. Barton dunno, don't know any of them -- Real computer scientists don't write code. They occasionally tinker with `programming systems', but those are so high level that they hardly count (and rarely count accurately; precision is for app
Re: [NTG-context] /usr/bin/env texlua no such file or directory; ~/context/tex is not a valid TEXROOT path; no file plain.tex
On Mon, Apr 10, 2023 at 08:51:58PM -0400, Aditya Mahajan via ntg-context wrote: > On Mon, 10 Apr 2023, Carlos via ntg-context wrote: > > > I'm just following some of the standalone installation instructions > > as per the wiki alongside a TeX Live installation, but there are a > > few things that don't add up or I can't seem to add them up :). > > > > first, while I was trying to mtxrun --generate it returned > > > > /usr/bin/env texlua no such file or directory > > > > So I thought heck, perhaps by creating a symbolic link we'll call it > > a day, but that wasn't enough, nope. > > > > This is is circa 21st century ladies and gentlemen! > > > > so I thought, alright, since there seems ot be a a problem with texlua, > > let's also add it to path somehow. > > Did you source the `setuptex` script, which sets the correct path. > > > So with that out of the way, we'll move on to the next step and change > > to a directory and try to call out mtxrun --generate again > > > > It returns: > > > > mtxrun --generate resolvers | resolving | variable 'SELFAUTOLOC' > > set to '/home/ce/context/bin' resolvers | resolving | variable > > This appears to be the wrong mtxrun binary. You should include the PATH > variable listed as part of the installation. It should point to > `/home/ce/context/texmf-linux-64/bin` or something similar. with texmfcnf.lua and the contextbinary from just hte TeX Live infrastructure there is an interesting conflict with the same ol' same ol' anyhow [2/2, 00:02/02:56] install: context [92021k] running mktexlsr ... done running mktexlsr. running mtxrun --generate ... done running mtxrun --generate. running context --luatex --generate ... done running context --luatex --generate. running updmap-sys ... done running updmap-sys. then context mtxrun | unknown script 'mtx-context.lua' or 'mtx-mtx-context.lua' context --luatex --generate mtxrun | unknown script 'mtx-context.lua' or 'mtx-mtx-context.lua' same as with context --generate mtxrun | unknown script 'mtx-context.lua' or 'mtx-mtx-context.lua' so it's an either or. texmfcnf.lua in place mtxrun would definitely go through but breaks context calls, while without it, a context call is just ostracized to a context --generate --luatex mtx-context | redirect luametatex -> luatex: luatex --luaonly "/opt/texlive/2023/bin/x86_64-linux/mtxrun.lua" --generate --redirected but that's not what I had in mind. mtxrun --script cache --erase mtxrun | unknown script 'cache.lua' or 'mtx-cache.lua' -- Real Programmers think better when playing Adventure or Rogue. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] /usr/bin/env texlua no such file or directory; ~/context/tex is not a valid TEXROOT path; no file plain.tex
On Mon, Apr 10, 2023 at 08:51:58PM -0400, Aditya Mahajan via ntg-context wrote: > On Mon, 10 Apr 2023, Carlos via ntg-context wrote: > > > I'm just following some of the standalone installation instructions > > as per the wiki alongside a TeX Live installation, but there are a > > few things that don't add up or I can't seem to add them up :). > > > > first, while I was trying to mtxrun --generate it returned > > > > /usr/bin/env texlua no such file or directory > > > > So I thought heck, perhaps by creating a symbolic link we'll call it > > a day, but that wasn't enough, nope. > > > > This is is circa 21st century ladies and gentlemen! > > > > so I thought, alright, since there seems ot be a a problem with texlua, > > let's also add it to path somehow. > > Did you source the `setuptex` script, which sets the correct path. > > > So with that out of the way, we'll move on to the next step and change > > to a directory and try to call out mtxrun --generate again > > > > It returns: > > > > mtxrun --generate resolvers | resolving | variable 'SELFAUTOLOC' > > set to '/home/ce/context/bin' resolvers | resolving | variable > > This appears to be the wrong mtxrun binary. You should include the PATH > variable listed as part of the installation. It should point to > `/home/ce/context/texmf-linux-64/bin` or something similar. > > Aditya Is there any rationale not to have texmfcnf.lua alongside context.cnf and contextcnf.lua under web2c with the current standalone installation? Because on TeX Live infrastructure alone, I have my doubts that that file will be somehow generated magically. would it? Of course I could probably scrounge it off somewhere but it's also besides the point On the current installation of a standalone relying solely on what tewmf/webc holds is… well. > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > ___ > -- Time sharing: The use of many people by the computer. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] /usr/bin/env texlua no such file or directory; ~/context/tex is not a valid TEXROOT path; no file plain.tex
On Mon, Apr 10, 2023 at 08:51:58PM -0400, Aditya Mahajan via ntg-context wrote: > On Mon, 10 Apr 2023, Carlos via ntg-context wrote: > > > I'm just following some of the standalone installation instructions > > as per the wiki alongside a TeX Live installation, but there are a > > few things that don't add up or I can't seem to add them up :). > > > > first, while I was trying to mtxrun --generate it returned > > > > /usr/bin/env texlua no such file or directory > > > > So I thought heck, perhaps by creating a symbolic link we'll call it > > a day, but that wasn't enough, nope. > > > > This is is circa 21st century ladies and gentlemen! > > > > so I thought, alright, since there seems ot be a a problem with texlua, > > let's also add it to path somehow. > > Did you source the `setuptex` script, which sets the correct path. Of course I sourced it and complains about plain.tex > > > So with that out of the way, we'll move on to the next step and change > > to a directory and try to call out mtxrun --generate again > > > > It returns: > > > > mtxrun --generate resolvers | resolving | variable 'SELFAUTOLOC' > > set to '/home/ce/context/bin' resolvers | resolving | variable > > This appears to be the wrong mtxrun binary. You should include the PATH > variable listed as part of the installation. It should point to > `/home/ce/context/texmf-linux-64/bin` or something similar. binaries. Let's start over for the simple reason that texmfcnf.lua does not exist. Not through a TeX Live infrastructure only installation anyway. let's run ./install --modules=all and it rightly reports that mtx-update | updating mtxrun for linux-64: rsync -tgo --chmod=a+x '/home/ce/context-install/tex/texmf-context/scripts/context/lua/mtxrun.lua' '/home/ce/context-install/tex/texmf-linux-64/bin/mtxrun' mtx-update | run, rsync -tgo --chmod=a+x '/home/ce/context-install/tex/texmf-context/scripts/context/lua/mtxrun.lua' '/home/ce/context-install/tex/texmf-linux-64/bin/mtxrun' rsync: [Receiver] change_dir#3 "/home/ce/context-install/tex/texmf-linux-64/bin" failed: No such file or directory (2) rsync error: errors selecting input/output files, dirs (code 3) at main.c(827) [Receiver=3.2.7] resolvers | tds | no 'texmf-linux-64' under tree '/home/ce/context-install/tex' Now. Let's add the directories, correct? If you were to look at the following resolvers | resolving | using configuration specification 'home:texmf/web2c;{selfautoloc:,selfautoloc:/share/texmf-local/web2c,selfautoloc:/share/texmf-dist/web2c,selfautoloc:/share/texmf/web2c,selfautoloc:/texmf-local/web2c,selfautoloc:/texmf-dist/web2c,selfautoloc:/texmf/web2c,selfautodir:,selfautodir:/share/texmf-local/web2c,selfautodir:/share/texmf-dist/web2c,selfautodir:/share/texmf/web2c,selfautodir:/texmf-local/web2c,selfautodir:/texmf-dist/web2c,selfautodir:/texmf/web2c,$SELFAUTOGRANDPARENT/texmf-local/web2c,selfautoparent:,selfautoparent:/share/texmf-local/web2c,selfautoparent:/share/texmf-dist/web2c,selfautoparent:/share/texmf/web2c,selfautoparent:/texmf-local/web2c,selfautoparent:/texmf-dist/web2c,selfautoparent:/texmf/web2c}' resolvers | resolving | resolvers | resolving | looking for regular 'texmfcnf.lua' on given path '/home/ce/texmf/web2c' from specification 'home:texmf/web2c' resolvers | resolving | looking for regular 'texmfcnf.lua' on weird path '/home/ce/context-install/tex/texmf-linux-64/bin' from specification 'selfautoloc:' you'd notice that is looking over and over for a texmfcnf.lua But where is my texmfcnf.lua? Would you know? :) Because I don't. The only instance of a texmfcnf.lua dates back to a prepackaged installation that is no longer there anyway it points to a prepackaged texlive which I'm not using and not planning to. and what I have under TEXMFHOME which doesn't amount to much anyway , or what's important for the current issue is amiga-pl.tcx cp8bit.tcx il2-t1.tcxmktex.opt tcvn-t5.tcx cp1250cs.tcx empty.tcxkam-cs.tcxmktexdir texmf.cnf cp1250pl.tcx fmtutil-hdr.cnf kam-t1.tcxmktexdir.opt updmap-hdr.cfg cp1250t1.tcx fmtutil.cnf macce-pl.tcx mktexnam updmap.cfg cp227.tcx il1-t1.tcx macce-t1.tcx mktexnam.opt viscii-t5.tcx cp852-cs.tcx il2-cs.tcx maz-pl.tcxmktexupd cp852-pl.tcx il2-pl.tcx mktex.cnf natural.tcx which as you fully know, it doesn't help What is TeX Live infrastructure doing is the question It's besides the point to call out ./tlmgr install context here because mtx is no longer there anyway for what's worth Welcome to TeX Live! See ../texlive/2023/index.html for links to documentation. The TeX Live web site (https://tug.org/texlive/) contains any updates and corrections. TeX Live is a joint project
Re: [NTG-context] /usr/bin/env texlua no such file or directory; ~/context/tex is not a valid TEXROOT path; no file plain.tex
On Mon, 10 Apr 2023, Carlos via ntg-context wrote: > I'm just following some of the standalone installation instructions > as per the wiki alongside a TeX Live installation, but there are a > few things that don't add up or I can't seem to add them up :). > > first, while I was trying to mtxrun --generate it returned > > /usr/bin/env texlua no such file or directory > > So I thought heck, perhaps by creating a symbolic link we'll call it > a day, but that wasn't enough, nope. > > This is is circa 21st century ladies and gentlemen! > > so I thought, alright, since there seems ot be a a problem with texlua, > let's also add it to path somehow. Did you source the `setuptex` script, which sets the correct path. > So with that out of the way, we'll move on to the next step and change > to a directory and try to call out mtxrun --generate again > > It returns: > > mtxrun --generate resolvers | resolving | variable 'SELFAUTOLOC' > set to '/home/ce/context/bin' resolvers | resolving | variable This appears to be the wrong mtxrun binary. You should include the PATH variable listed as part of the installation. It should point to `/home/ce/context/texmf-linux-64/bin` or something similar. Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] /usr/bin/env texlua no such file or directory; ~/context/tex is not a valid TEXROOT path; no file plain.tex
/texmf-dist/web2c' from specification 'selfautoloc:/texmf-dist/web2c' resolvers | resolving | looking for fallback 'contextcnf.lua' on given path '/home/ce/context/bin/texmf/web2c' from specification 'selfautoloc:/texmf/web2c' resolvers | resolving | looking for fallback 'contextcnf.lua' on weird path '/home/ce/context' from specification 'selfautodir:' resolvers | resolving | looking for fallback 'contextcnf.lua' on given path '/home/ce/context/share/texmf-local/web2c' from specification 'selfautodir:/share/texmf-local/web2c' resolvers | resolving | looking for fallback 'contextcnf.lua' on given path '/home/ce/context/share/texmf-dist/web2c' from specification 'selfautodir:/share/texmf-dist/web2c' resolvers | resolving | looking for fallback 'contextcnf.lua' on given path '/home/ce/context/share/texmf/web2c' from specification 'selfautodir:/share/texmf/web2c' resolvers | resolving | looking for fallback 'contextcnf.lua' on given path '/home/ce/context/texmf-local/web2c' from specification 'selfautodir:/texmf-local/web2c' resolvers | resolving | looking for fallback 'contextcnf.lua' on given path '/home/ce/context/texmf-dist/web2c' from specification 'selfautodir:/texmf-dist/web2c' resolvers | resolving | looking for fallback 'contextcnf.lua' on given path '/home/ce/context/texmf/web2c' from specification 'selfautodir:/texmf/web2c' resolvers | resolving | looking for fallback 'contextcnf.lua' on given path '$SELFAUTOGRANDPARENT/texmf-local/web2c' from specification '$SELFAUTOGRANDPARENT/texmf-local/web2c' resolvers | resolving | looking for fallback 'contextcnf.lua' on weird path '/home/ce' from specification 'selfautoparent:' resolvers | resolving | looking for fallback 'contextcnf.lua' on given path '/home/ce/share/texmf-local/web2c' from specification 'selfautoparent:/share/texmf-local/web2c' resolvers | resolving | looking for fallback 'contextcnf.lua' on given path '/home/ce/share/texmf-dist/web2c' from specification 'selfautoparent:/share/texmf-dist/web2c' resolvers | resolving | looking for fallback 'contextcnf.lua' on given path '/home/ce/share/texmf/web2c' from specification 'selfautoparent:/share/texmf/web2c' resolvers | resolving | looking for fallback 'contextcnf.lua' on given path '/home/ce/texmf-local/web2c' from specification 'selfautoparent:/texmf-local/web2c' resolvers | resolving | looking for fallback 'contextcnf.lua' on given path '/home/ce/texmf-dist/web2c' from specification 'selfautoparent:/texmf-dist/web2c' resolvers | resolving | looking for fallback 'contextcnf.lua' on given path '/home/ce/texmf/web2c' from specification 'selfautoparent:/texmf/web2c' resolvers | resolving | resolvers | resolving | warning: no lua configuration files found resolvers | resolving | no texmf paths are defined (using TEXMF) resolvers | resolving | mtxrun | the resolver databases are not present or outdated resolvers | resolving | using suffix based filetype 'scripts' resolvers | resolving | remembering file 'mtx-cache.lua' using hash 'lua::mtx-cache.lua' resolvers | resolving | using suffix based filetype 'scripts' resolvers | resolving | remembering file 'mtx-caches.lua' using hash 'lua::mtx-caches.lua' resolvers | resolving | remembered file 'mtx-cache.lua' resolvers | resolving | using suffix based filetype 'scripts' resolvers | resolving | remembering file 'mtx-t-cache.lua' using hash 'lua::mtx-t-cache.lua' resolvers | resolving | using suffix based filetype 'scripts' resolvers | resolving | remembering file 'mtx-t-caches.lua' using hash 'lua::mtx-t-caches.lua' resolvers | resolving | remembered file 'mtx-t-cache.lua' resolvers | resolving | using suffix based filetype 'scripts' resolvers | resolving | remembering file 'cache.lua' using hash 'lua::cache.lua' mtxrun | unknown script 'cache.lua' or 'mtx-cache.lua' Of course and going solely by the above the part whenever it says resolvers | resolving | looking for regular 'texmfcnf.lua' on given path '/home/ce/context/bin/texmf/web2c' from specification 'selfautoloc:/texmf/web2c' wont' find it anywhere because that dir does not exist. But remember that earlier, adding bin to path was necessary to avoid /usr/bin/env texlua no such file or directory message But even now while trying to find plain.tex I've come to the conclusion that it needs it or else fails altogether The problem is that I don't have plain.tex though. As a matter of fact the TeX Live installation I currently have, plain tex is nowhere to be seen, heck, not even latex but only a handful set of fmtutil fmtuitl-sys mktexfmt and updmap updmap-sys and the whole remainder of kpathsea but then again this in practice would not even be needed if at all. In other words, only the TeX Live infrastructure needed which shouldn't be a problem, right? But itis: a problem that is. Besides
[NTG-context] Trial to use LibreOffice Calc (+ python) to build ConTeXt customized environnements files
[features=default] \definefontsynonym [HandwritingItalic] [name:snellroundhandltstdscr] [features=default] \definefontsynonym [HandwritingBold] [name:snellroundhandltstdscr] [features=default] \definefontsynonym [HandwritingBoldItalic] [name:snellroundhandltstdscr] [features=default] \stoptypescript \starttypescript [calligraphy] [myfont] \setups[font:fallback:calligraphy] \definefontsynonym [Calligraphy] [name:sabonltstdroman] [features=default] \definefontsynonym [CalligraphyItalic] [name:sabonltstditalic] [features=default] \definefontsynonym [CalligraphyBold] [name:sabonltstdbold] [features=default] \definefontsynonym [CalligraphyBoldItalic] [name:sabonltstdbolditalic] [features=default] \stoptypescript \starttypescript[myfont] \definetypeface [myfont] [rm] [serif] [myfont] [default] \definetypeface [myfont] [ss] [sans][myfont] [default] \definetypeface [myfont] [tt] [mono][myfont] [default] \definetypeface [myfont] [mm] [math][myfont] [default] \definetypeface [myfont] [hm] [handwriting] [myfont] [default] \definetypeface [myfont] [cg] [calligraphy] [myfont] [default] \stoptypescript \setuptolerance[strict] \setupalign[hz] \setupalign[hanging] \setupalign[lesshyphenated] \setupalign[verytolerant] \setupalign[stretch] \setupwhitespace [big] \setupbodyfont[myfont,ss,12pt] \definecolor [MaCouleur0] [h=340.0,s=0.85,v=0.1,a=1.0,t=1.0] \definecolor [MaCouleur1] [h=210.0,s=0.9,v=0.5,a=1.0,t=1.0] \definecolor [MaCouleur2] [h=210.0,s=0.8,v=0.6,a=1.0,t=1.0] \definecolor [MaCouleur3] [h=210.0,s=0.7,v=0.7,a=1.0,t=1.0] \definecolor [MaCouleur4] [h=210.0,s=0.6,v=0.8,a=1.0,t=1.0] \definecolor [MaCouleur5] [h=210.0,s=0.5,v=0.9,a=1.0,t=1.0] \definecolor [MaCouleur6] [h=30.0,s=0.9,v=0.5,a=1.0,t=1.0] \definecolor [MaCouleur7] [h=30.0,s=0.8,v=0.6,a=1.0,t=1.0] \definecolor [MaCouleur8] [h=30.0,s=0.7,v=0.7,a=1.0,t=1.0] \definecolor [MaCouleur9] [h=30.0,s=0.6,v=0.8,a=1.0,t=1.0] \definecolor [MaCouleur10][h=30.0,s=0.5,v=0.9,a=1.0,t=1.0] \definecolor [MaCouleur11][h=120.0,s=0.3,v=1.0,a=1.0,t=1.0] \definecolor [MaCouleur12][h=200.0,s=0.3,v=1.0,a=1.0,t=1.0] \definecolor [MaCouleur13][h=200.0,s=0.9,v=0.9,a=1.0,t=1.0] \definecolor [MaCouleur14][h=120.0,s=0.9,v=0.9,a=1.0,t=1.0] \definecolor [MaCouleur15][h=200.0,s=0.9,v=0.9,a=1.0,t=1.0] \definecolor [CouleurPrincipale] [MaCouleur0] \definecolor [Couleur1] [MaCouleur1] \definecolor [Couleur2] [MaCouleur2] \definecolor [Couleur3] [MaCouleur3] \definecolor [Couleur4] [MaCouleur4] \definecolor [Couleur5] [MaCouleur5] \definecolor [CouleurContraste1] [MaCouleur6] \definecolor [CouleurContraste2] [MaCouleur7] \definecolor [CouleurContraste3] [MaCouleur8] \definecolor [CouleurContraste4] [MaCouleur9] \definecolor [CouleurContraste5] [MaCouleur10] \definecolor [CouleurFond1] [MaCouleur11] \definecolor [CouleurFond2] [MaCouleur12] \definecolor [CouleurURL] [MaCouleur13] \definecolor [CouleurType][MaCouleur14] \definecolor [CouleurLiens] [MaCouleur15] \setupcolors [ textcolor=CouleurPrincipale, ] \setuphead [part] [ style=\bfd, textcolor=Couleur1, numbercolor=CouleurContraste1, bodypartlabel=Part, placehead=yes, page=left, header=high, align=flushleft, alternative=middle, before={\strut\godown[4cm]}, ] \setuphead [chapter] [ style=\bfc, textcolor=Couleur2, numbercolor=CouleurContraste2, sectionsegments=1:2, page=yes, align=flushleft, ] \setuphead [title] [ ] \setuphead [section] [ style=\bfb, textcolor=Couleur3, numbercolor=CouleurContraste3, sectionsegments=1:3, page=yes, align=flushleft, ] \setuphead [subject] [ ] \setuphead [subsection] [ style=\bfa, textcolor=Couleur4, numbercolor=CouleurContraste4, sectionsegments=1:4, align=flushleft, ] \setuphead [subsubject] [ ] \setuphead [subsubsection] [ style=\bf, textcolor=Couleur5, numbercolor=CouleurContraste5, sectionsegments=1:5, align=flushleft, ] \setuphead [subsubsubject] [ ] \setuphead [subsubsubsection] [ textcolor=CouleurContraste3, numbercolor=CouleurContraste3, ] ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] PDF 2.0 standard documents now free
Am Thu, 6 Apr 2023 09:02:10 +0200 schrieb Hans Hagen via ntg-context: >> You can put in arbitrary data and then download. >> I don’t think it will become any more free. >> >> indeed, but then: why don't we put them on the wiki site / another >> free site ? > >> Any legal restrictions ? Yes, the copy I got has in the footer Sold by the PDF Association to Ulrike Fischer | April 5, 2023 | Single user only, copying and networking prohibited. I wouldn't distribute it for the same reason I wouldn't distribute pdf copies of the TeXbook. > What happens when the sponsors withdraw? What should happen? I bought a copy at a very good price (0€) and now own it. If the sponsorship ends and the price goes up to 200 CHF again nothing changes for me. > What is there are updates (unlikely anyway). Amendments to ISO document typically have to be buyed too, e.g. amendment 1 (which is part of the bundled offered by pdfa) normally costs 17 CHF. Personally I think that the PDF Association made a very good job here (they worked hard on it), I'm quite grateful for it and I hope that there will more of these offers (personally I would like to get pdf/A-4 and the upcomming pdf/UA-2). -- Ulrike Fischer http://www.troubleshooting-tex.de/ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Problems with building texlive/context from its sources
Dear developers, I am/become one of the texlive mantainers on flathub a more or less recent and new approach for establishing a linux packaging format. The flatpak packages are usually build from source and so is the texlive package. You can find it under https://github.com/flathub/org.freedesktop.Sdk.Extension.texlive/tree/branch/22.08 . The file https://github.com/flathub/org.freedesktop.Sdk.Extension.texlive/blob/branch/22.08/org.freedesktop.Sdk.Extension.texlive.yml is the build manifest which lists the files and commands/additional steps needed for the build process. The current build of texlive works well with pdflatex/lualatex/xelatex but with the context part I have some problems. Therefore, I would appreciate any help with the following questions: 1) Is context included in the texlive-20230313* tarballs or do I have to download it in an extra step? 2) If context is included in the texlive-20230313* tarballs, do I have to additionally download luametatex or is luametatex a part of context? 3) If luametatex is via context in the texlive-20230313* tarballs, how do I build it? Sorry for those (perhaps obvious) questions but I have to admit that I find the texlive building process quite confusing. Also, I could not find any installation guide that covers the scenario of building context within a texlive 2023 installation from its sources on linux. Thanks in advance and regards Jakob ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Chinese labels in lang-txt.lua
Hi Hans, There are some inaccurate labels for Chinese in lang-txt.lua. Could you please apply the following patches to it? - --- lang-txt.lua 2023-04-03 11:10:00.267720005 +0800 +++ new-lang-txt.lua 2023-04-03 11:03:24.645426080 +0800 @@ -1192,7 +1192,7 @@ ["ar"]="ملحق ", ["be"]="Апендыцыт", ["ca"]="Apèndix ", -["cn"]="附录", +["cn"]="附录 ", ["cs"]="Příloha ", ["da"]="Bilag ", ["de"]="Anhang ", @@ -1473,7 +1473,7 @@ ["be"]="Глава ", ["bg"]="Eпизод ", ["ca"]="Capítol ", -["cn"]={ "第", "章" }, +["cn"]={ "第 ", " 章" }, ["cs"]="Kapitola ", ["da"]="", ["de"]="Kapitel ", @@ -1774,7 +1774,7 @@ ["be"]="Малюнак", ["bg"]="Фигура", ["ca"]="Figura ", -["cn"]="图", +["cn"]="图 ", ["cs"]="Obrázek ", ["da"]="Figur ", ["de"]="Abbildung ", @@ -1925,7 +1925,7 @@ ["be"]="Графіка ", ["bg"]="Графичен ", ["ca"]="Gràfica ", -["cn"]="插图", +["cn"]="插图 ", ["cs"]="Graf ", ["da"]="Grafik ", ["de"]="Grafik ", @@ -2058,7 +2058,7 @@ ["be"]="Інтэрмецца ", ["bg"]="Интермецо ", ["ca"]="Intermedi ", -["cn"]="퉣", +["cn"]="间奏 ", ["cs"]="Intermezzo ", ["da"]="Intermezzo ", ["de"]="Intermezzo ", @@ -2395,7 +2395,7 @@ ["be"]="радок ", ["bg"]="ред ", ["ca"]="línia ", -["cn"]="行", +["cn"]="行 ", ["cs"]="řádek ", ["da"]="linie ", ["de"]="Zeile ", @@ -2441,7 +2441,7 @@ ["be"]="радкi ", ["bg"]="редове ", ["ca"]="línies ", -["cn"]="行", +["cn"]="行 ", ["cs"]="řádky ", ["da"]="linier ", ["de"]="Zeilen ", @@ -3002,7 +3002,7 @@ ["be"]="Частка ", ["bg"]="Частка ", ["ca"]="Part ", -["cn"]={ "第", "部分" }, +["cn"]={ "第 ", " 部分" }, ["cs"]="Část ", ["da"]="Del ", ["de"]="Teil ", @@ -3130,7 +3130,7 @@ ["ar"]="فصل ", ["bg"]="Cекция ", ["ca"]="Secció ", -["cn"]={ "第", "节" }, +["cn"]={ "第 ", " 节" }, ["cs"]="Sekce ", ["da"]="", ["de"]="Abschnitt ", @@ -3513,7 +3513,7 @@ ["be"]="Табліца ", ["bg"]="Таблица ", ["ca"]="Taula ", -["cn"]="表", +["cn"]="表 ", ["cs"]="Tabulka ", ["da"]="Tabel ", ["de"]="Tabelle ", @@ -3863,7 +3863,7 @@ ["ar"]="الأشكال", ["be"]="Спіс ілюстрацый", ["ca"]="Figures", -["cn"]="图形", +["cn"]="图", ["cs"]="Seznam obrázků", ["da"]="Figurer", ["de"]="Abbildungen", @@ -4046,7 +4046,7 @@ ["be"]="Лагатыпы", ["bg"]="Логотипи", ["ca"]="Logotips", -["cn"]="徽贬", +["cn"]="徽标", ["cs"]="Loga", ["da"]="Logoer", ["de"]="Logos", --- -- Best regards, Li Yanrui ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] update / punctuation / math
Here in Colorado, we need $\widecowboyhat$. Of course, care should be taken so that it typeset properly in right-to-left as well. Alan On Sat, 1 Apr 2023 10:27:41 +0200 Hans Hagen via ntg-context wrote: > Hi, > > There have been some mails about punctuation spacing and a fix was > added to the engine that related to that. As tests showed it to be > okay so we made an update. It took a bit longer than normal because > we were in the middle of some other math stuff: additional fonts and > extensibles. > > Daniel Flipo maintains a few math fonts (like concrete, xcharter, > erewhon, kp, euler) and the last few weeks more extensive support for > extensibles was added and concrete became quite nice too, so these > fonts make a nice benchmark. As they are part of the lmtx install and > we made sure to support them. > > In the process we adapted our 2023 roadmap of which part is attached > (we included an example end then decided to show of concrete). > > When we go through the process of 'upgrading' we noticed some > interesting names for symbols and 'constructs'. Quite some come from > plain and/or amsmath (in the past taco and aditya did some porting to > context) and we're not always sure if something is really used (or > even what it was intended for) so if you notice something weird or > missing, let us know. Examples are welcome too. It might also be that > something can go away because it's obsolete or never needed (so far > we could resist te kick-out-symbole-name temptation when it comes to > symbol names that we think no sane user can remember or imagine to be > there). > > When often add extra tests to the test suite (math subsection). > > Hans & Mikael > > ps. Alan and I are still messing around with some cross referencing. > That code is still experimental and can have issues that we're > looking at but hard to nail down (huge complex cross-referencing > documents). More about that later. > > == > > We added the tex of the pdf below > > == extract from roadmap == > > \usemodule[article-basic,abbreviations-logos] > > \setupbodyfont[concrete] > > \starttext > > \startsubject[title=Math in \CONTEXT\ roadmap] > > \startitemize[n] > > \startitem > After playing with math support for more than a year, we have > come to the > conclusion that it is time to move on. We have already discarded > italic correction and now are replacing rules with extensibles. Much > was already in > place (and applied) but experiences with type one antykwas made > us review > some \OPENTYPE\ fonts. Not using rules makes some of them look > better. The > effect is subtle and probably not \AMS\ compliant, but we think > that it will > work out well for simple math like fractions of decimal numbers. > Consequently, we have added to our shrinking to-do list the > burden to investigate whether we can remove those obsolete code paths > from the engine. > After all, who needs italic correction, who prefers ugly rules > to beautiful > glyphs, and who understands all these font parameters? > Furthermore, after all > these years, we don't expect \OPENTYPE\ font and \UNICODE\ math > technologies > to improve much; we don't know if \MICROSOFT\ is developing > their technology > further at all. Therefore, we are confident that what we are > doing is the way > it should have been done when math was upgraded. Hopefully users > will notice > the improvements. > \stopitem > > \startitem > Math also means physics and units (that topic was brought up > recently on the > list by Gavin). Therefore, because we're in cleanup mode, we > decided to eliminate some more. With \ISO\ now in place for a long > time, we are going to > ignore the existence of the inch as unit from now on. The unit > will probably > remain in the engine for nostalgic reasons, but it will no be > accepted in > MWE. Instead, we will provide some more modern, culturally > correct, kid-friendly units that we will use in examples, manuals and > such. Because > the four-person strong team dealing with this wants to avoid > making mistakes, > we will go through a careful and scientifically sound process of > calibration > first, using a selected tex savvy audience. We expect these new > units to be > stable a month from now. Believe it or not, in the process of > documenting all > this, we found a buglet in the new math dimension spacing, so it > has already > paid off. Expect to hear more in a month or so, and enjoy your > inches as long > as you
Re: [NTG-context] update / punctuation / math
Cute, as always today :-) Willi > On 1 Apr 2023, at 10:27, Hans Hagen via ntg-context > wrote: > > Hi, > > There have been some mails about punctuation spacing and a fix was added to > the engine that related to that. As tests showed it to be okay so we made an > update. It took a bit longer than normal because we were in the middle of > some other math stuff: additional fonts and extensibles. > > Daniel Flipo maintains a few math fonts (like concrete, xcharter, erewhon, > kp, euler) and the last few weeks more extensive support for extensibles was > added and concrete became quite nice too, so these fonts make a nice > benchmark. As they are part of the lmtx install and we made sure to support > them. > > In the process we adapted our 2023 roadmap of which part is attached (we > included an example end then decided to show of concrete). > > When we go through the process of 'upgrading' we noticed some interesting > names for symbols and 'constructs'. Quite some come from plain and/or amsmath > (in the past taco and aditya did some porting to context) and we're not > always sure if something is really used (or even what it was intended for) so > if you notice something weird or missing, let us know. Examples are welcome > too. It might also be that something can go away because it's obsolete or > never needed (so far we could resist te kick-out-symbole-name temptation when > it comes to symbol names that we think no sane user can remember or imagine > to be there). > > When often add extra tests to the test suite (math subsection). > > Hans & Mikael > > ps. Alan and I are still messing around with some cross referencing. That > code is still experimental and can have issues that we're looking at but hard > to nail down (huge complex cross-referencing documents). More about that > later. > > == > > We added the tex of the pdf below > > == extract from roadmap == > > \usemodule[article-basic,abbreviations-logos] > > \setupbodyfont[concrete] > > \starttext > > \startsubject[title=Math in \CONTEXT\ roadmap] > > \startitemize[n] > > \startitem >After playing with math support for more than a year, we have come to the >conclusion that it is time to move on. We have already discarded italic >correction and now are replacing rules with extensibles. Much was already > in >place (and applied) but experiences with type one antykwas made us review >some \OPENTYPE\ fonts. Not using rules makes some of them look better. The >effect is subtle and probably not \AMS\ compliant, but we think that it > will >work out well for simple math like fractions of decimal numbers. >Consequently, we have added to our shrinking to-do list the burden to >investigate whether we can remove those obsolete code paths from the > engine. >After all, who needs italic correction, who prefers ugly rules to beautiful >glyphs, and who understands all these font parameters? Furthermore, after > all >these years, we don't expect \OPENTYPE\ font and \UNICODE\ math > technologies >to improve much; we don't know if \MICROSOFT\ is developing their > technology >further at all. Therefore, we are confident that what we are doing is the > way >it should have been done when math was upgraded. Hopefully users will > notice >the improvements. > \stopitem > > \startitem >Math also means physics and units (that topic was brought up recently on > the >list by Gavin). Therefore, because we're in cleanup mode, we decided to >eliminate some more. With \ISO\ now in place for a long time, we are going > to >ignore the existence of the inch as unit from now on. The unit will > probably >remain in the engine for nostalgic reasons, but it will no be accepted in >MWE. Instead, we will provide some more modern, culturally correct, >kid-friendly units that we will use in examples, manuals and such. Because >the four-person strong team dealing with this wants to avoid making > mistakes, >we will go through a careful and scientifically sound process of > calibration >first, using a selected tex savvy audience. We expect these new units to be >stable a month from now. Believe it or not, in the process of documenting > all >this, we found a buglet in the new math dimension spacing, so it has > already >paid off. Expect to hear more in a month or so, and enjoy your inches as > long >as you still can. In case you wonder how this relates to math other than >mentioned: the math subsystem has 'mu' as adaptive unit, and that inspired > is >
[NTG-context] update / punctuation / math
Hi, There have been some mails about punctuation spacing and a fix was added to the engine that related to that. As tests showed it to be okay so we made an update. It took a bit longer than normal because we were in the middle of some other math stuff: additional fonts and extensibles. Daniel Flipo maintains a few math fonts (like concrete, xcharter, erewhon, kp, euler) and the last few weeks more extensive support for extensibles was added and concrete became quite nice too, so these fonts make a nice benchmark. As they are part of the lmtx install and we made sure to support them. In the process we adapted our 2023 roadmap of which part is attached (we included an example end then decided to show of concrete). When we go through the process of 'upgrading' we noticed some interesting names for symbols and 'constructs'. Quite some come from plain and/or amsmath (in the past taco and aditya did some porting to context) and we're not always sure if something is really used (or even what it was intended for) so if you notice something weird or missing, let us know. Examples are welcome too. It might also be that something can go away because it's obsolete or never needed (so far we could resist te kick-out-symbole-name temptation when it comes to symbol names that we think no sane user can remember or imagine to be there). When often add extra tests to the test suite (math subsection). Hans & Mikael ps. Alan and I are still messing around with some cross referencing. That code is still experimental and can have issues that we're looking at but hard to nail down (huge complex cross-referencing documents). More about that later. == We added the tex of the pdf below == extract from roadmap == \usemodule[article-basic,abbreviations-logos] \setupbodyfont[concrete] \starttext \startsubject[title=Math in \CONTEXT\ roadmap] \startitemize[n] \startitem After playing with math support for more than a year, we have come to the conclusion that it is time to move on. We have already discarded italic correction and now are replacing rules with extensibles. Much was already in place (and applied) but experiences with type one antykwas made us review some \OPENTYPE\ fonts. Not using rules makes some of them look better. The effect is subtle and probably not \AMS\ compliant, but we think that it will work out well for simple math like fractions of decimal numbers. Consequently, we have added to our shrinking to-do list the burden to investigate whether we can remove those obsolete code paths from the engine. After all, who needs italic correction, who prefers ugly rules to beautiful glyphs, and who understands all these font parameters? Furthermore, after all these years, we don't expect \OPENTYPE\ font and \UNICODE\ math technologies to improve much; we don't know if \MICROSOFT\ is developing their technology further at all. Therefore, we are confident that what we are doing is the way it should have been done when math was upgraded. Hopefully users will notice the improvements. \stopitem \startitem Math also means physics and units (that topic was brought up recently on the list by Gavin). Therefore, because we're in cleanup mode, we decided to eliminate some more. With \ISO\ now in place for a long time, we are going to ignore the existence of the inch as unit from now on. The unit will probably remain in the engine for nostalgic reasons, but it will no be accepted in MWE. Instead, we will provide some more modern, culturally correct, kid-friendly units that we will use in examples, manuals and such. Because the four-person strong team dealing with this wants to avoid making mistakes, we will go through a careful and scientifically sound process of calibration first, using a selected tex savvy audience. We expect these new units to be stable a month from now. Believe it or not, in the process of documenting all this, we found a buglet in the new math dimension spacing, so it has already paid off. Expect to hear more in a month or so, and enjoy your inches as long as you still can. In case you wonder how this relates to math other than mentioned: the math subsystem has 'mu' as adaptive unit, and that inspired is to come up with one for text (in addition to two new more or less fixed units). \stopitem \startitem The math family model is a fundamental concept in \TEX\ but we think we can do without. First of all, \OPENTYPE\ math fonts have (design) script and scriptscript sizes built in, so for that we have one family. Second, only full bold (heavy) makes sense as companion for regular math which is something that in practice we can support otherwise. So, this makes us consider dropping families altogether which then provides (mem) space for
Re: [NTG-context] registered function call [1160]:...live/2023/texmf-dist/tex/context/base/mkiv/l-sandbox.lua:87: cannot open /.: Permission denied - Alpine Linux
On Fri, Mar 31, 2023 at 04:40:27PM +0200, Hans Hagen via ntg-context wrote: > On 3/31/2023 1:40 PM, Carlos via ntg-context wrote: > > > > so why not use lucida math fonts? > > > > I have. But only with a couple of math fonts. I don't have all these fonts. > > It really pays off to buy the official lucida opentype package. I'll do that eventually. > > > mkiv lua stats > loaded fonts: 3 files: lucidanewmathitalic.ttf, > > lucidanewmathsymbol.ttf, lucidabrightregular.otf > > mkiv lua stats > font engine: otf 3.133, afm 1.513, tfm 1.000, 6 > > instances, 3 shared in backend, 1 common vectors, 2 common hashes, load > > time 16.733 seconds > > I never heard of these math ones. Did you get these from yandytex (no longer > around) or TUG (the official distributer of lucida opentype math)? Anyway, > as we fine tune math fonts for sure you get suboptimal results (or even > wrong output). Mikael and I put quite a bit of care into lucida opentype > math. > > > I do agree with you in that that loading time is perhaps unacceptable but… > > ... > > You ought to specify that must be only after subsequent callbacks. I just > > tried it with a one liner file of \setupbodyfont[lucida] and (looking > > around in disbelief) it took a whooping ahem > > fonts > names > skipped files: 164 > > fonts > names > duplicate files : 164 > > fonts > names > total scan time : 16.487 seconds > > I have no clue, unless that relates to your font path including some home > dir which gets scanned every time for whatever reason and that has tens of > thousands of files. I can process the 350+ page luametatex manual twice in > these 16 seconds and that one loads quite some (also math) fonts and my > laptop is not a fancy 2023 one > > > before it produced even error messages. > > > > beating me for 2 seconds. Great. And then it restricted my freedom by saying > > > > «Sorry, but I can't typeset math unless various parameters have been set. > > This is > > normally done by loading special math fonts into the math family slots. > > Your font > > set is lacking at least the parameter mentioned earlier.» > > that's pretty clear: you don't load a math font at all, maybe some text font > pretending it is math > > > Sorry, but sorry doesn't cut it here. > > it does: no proper math font found so reason to complain > > > I guess it must have been referring to \strc_formulas_place_number > > \strc_formulas_flush_number \dostarttagged \t!formulacontent \empty > > \dotagregisterformula \c_strc_formulas_n \csname \e!stop \formulaparameter > > \c!alternative \v!formula \endcsname > > dunno, that's numbering, not math > > > Okay. So I tried another file. This time around with only > > > > \setupbodyfont[lucida] > > > > \starttext > > $ test $ > > \stoptext > > > > and then the output message was «Somewhere in the math formula just ended, > > you used the stated character from an > > undefined font family. For example, plain TeX doesn't allow \it or \sl in > > subscripts. Proceed, and I'll try to forget that I needed that character.» > > > > There's not even a fallback to cmr or any other font. > > sure, why should it, you want lucida so better quit with an error than > kicking in some font; actually cmr math fonts have been obsoleted for way > over a decade by latin modern math fonts in 32 bit font engines I was actually thinking to ask you about that, and by falling back to cmr math font that perhaps would expedite loading time along the way. Thank you for the info on that last sentence. I didn't know. > > > There was not even a personalized touch in the output. That message sounds > > like one of these new GPT-chat features. Dry. When I read that «Proceed, > > and I'll try to forget it…» part the first thing I thought was: yeah, I'll > > proceed by removing that file altogether and you'll forget it for sure . > > that message is part of 'reference tex the program' for over 40 years so if > chatgpt would come up with it, it would do so by having parsed plenty of tex > sources instead of inventing it (and when it comes to answering tex related > questions chargpt is pretty unreliable, but that's another topic) > > > But instaed I looked at it and though to myself «how much has changed?!» In > > plain TeX (I have forgotten it a bit) but I can still type > > > \par > > > $test$ > > > \end > > > > and it'll produce a dvi file in return. > > a lot has changed: opentyp
Re: [NTG-context] registered function call [1160]:...live/2023/texmf-dist/tex/context/base/mkiv/l-sandbox.lua:87: cannot open /.: Permission denied - Alpine Linux
On 3/31/2023 1:40 PM, Carlos via ntg-context wrote: so why not use lucida math fonts? I have. But only with a couple of math fonts. I don't have all these fonts. It really pays off to buy the official lucida opentype package. mkiv lua stats > loaded fonts: 3 files: lucidanewmathitalic.ttf, lucidanewmathsymbol.ttf, lucidabrightregular.otf mkiv lua stats > font engine: otf 3.133, afm 1.513, tfm 1.000, 6 instances, 3 shared in backend, 1 common vectors, 2 common hashes, load time 16.733 seconds I never heard of these math ones. Did you get these from yandytex (no longer around) or TUG (the official distributer of lucida opentype math)? Anyway, as we fine tune math fonts for sure you get suboptimal results (or even wrong output). Mikael and I put quite a bit of care into lucida opentype math. I do agree with you in that that loading time is perhaps unacceptable but… > ... You ought to specify that must be only after subsequent callbacks. I just tried it with a one liner file of \setupbodyfont[lucida] and (looking around in disbelief) it took a whooping ahem fonts > names > skipped files: 164 fonts > names > duplicate files : 164 fonts > names > total scan time : 16.487 seconds I have no clue, unless that relates to your font path including some home dir which gets scanned every time for whatever reason and that has tens of thousands of files. I can process the 350+ page luametatex manual twice in these 16 seconds and that one loads quite some (also math) fonts and my laptop is not a fancy 2023 one before it produced even error messages. beating me for 2 seconds. Great. And then it restricted my freedom by saying «Sorry, but I can't typeset math unless various parameters have been set. This is normally done by loading special math fonts into the math family slots. Your font set is lacking at least the parameter mentioned earlier.» that's pretty clear: you don't load a math font at all, maybe some text font pretending it is math Sorry, but sorry doesn't cut it here. it does: no proper math font found so reason to complain I guess it must have been referring to \strc_formulas_place_number \strc_formulas_flush_number \dostarttagged \t!formulacontent \empty \dotagregisterformula \c_strc_formulas_n \csname \e!stop \formulaparameter \c!alternative \v!formula \endcsname dunno, that's numbering, not math Okay. So I tried another file. This time around with only \setupbodyfont[lucida] \starttext $ test $ \stoptext and then the output message was «Somewhere in the math formula just ended, you used the stated character from an undefined font family. For example, plain TeX doesn't allow \it or \sl in subscripts. Proceed, and I'll try to forget that I needed that character.» There's not even a fallback to cmr or any other font. sure, why should it, you want lucida so better quit with an error than kicking in some font; actually cmr math fonts have been obsoleted for way over a decade by latin modern math fonts in 32 bit font engines There was not even a personalized touch in the output. That message sounds like one of these new GPT-chat features. Dry. When I read that «Proceed, and I'll try to forget it…» part the first thing I thought was: yeah, I'll proceed by removing that file altogether and you'll forget it for sure . that message is part of 'reference tex the program' for over 40 years so if chatgpt would come up with it, it would do so by having parsed plenty of tex sources instead of inventing it (and when it comes to answering tex related questions chargpt is pretty unreliable, but that's another topic) But instaed I looked at it and though to myself «how much has changed?!» In plain TeX (I have forgotten it a bit) but I can still type > \par > $test$ > \end and it'll produce a dvi file in return. a lot has changed: opentype math, unicode, more demands but indeed there is nothing against using plain tex with cmr and dvi fonts if that suits well; and plain tex will always be faster than context (or latex) just like pdftex with 8 bit fonts is faster than luatex with 32 bit fonts (with luametatex sitting in between wrt performance) anyway, i bet that if you want to use lucida with plain you also have to do some work and it will complain as loud as luametatex when th efont parameters are not set 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 / htt
Re: [NTG-context] registered function call [1160]:...live/2023/texmf-dist/tex/context/base/mkiv/l-sandbox.lua:87: cannot open /.: Permission denied - Alpine Linux
t restricted my freedom by saying «Sorry, but I can't typeset math unless various parameters have been set. This is normally done by loading special math fonts into the math family slots. Your font set is lacking at least the parameter mentioned earlier.» Sorry, but sorry doesn't cut it here. I guess it must have been referring to \strc_formulas_place_number \strc_formulas_flush_number \dostarttagged \t!formulacontent \empty \dotagregisterformula \c_strc_formulas_n \csname \e!stop \formulaparameter \c!alternative \v!formula \endcsname Okay. So I tried another file. This time around with only \setupbodyfont[lucida] \starttext $ test $ \stoptext and then the output message was «Somewhere in the math formula just ended, you used the stated character from an undefined font family. For example, plain TeX doesn't allow \it or \sl in subscripts. Proceed, and I'll try to forget that I needed that character.» There's not even a fallback to cmr or any other font. There was not even a personalized touch in the output. That message sounds like one of these new GPT-chat features. Dry. When I read that «Proceed, and I'll try to forget it…» part the first thing I thought was: yeah, I'll proceed by removing that file altogether and you'll forget it for sure . But instaed I looked at it and though to myself «how much has changed?!» In plain TeX (I have forgotten it a bit) but I can still type > \par > $test$ > \end and it'll produce a dvi file in return. > > (so 100 times less load time here) > > 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 / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > ___ -- New systems generate new problems. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Numbering of figures after defining a new float
Thank you Alan, I tried many different things but as Wolfgang pointed out I had a mistake in the float definition! Kind regards WIlli > On 31 Mar 2023, at 00:08, Alan Braslau via ntg-context > wrote: > > Have you tried: > > \setuplist [figure] [partnumber=no] > > ... > > \placelistoffigures [criterium=part] > > > > Alan > > > On Thu, 30 Mar 2023 17:09:15 +0200 > Willi Egger via ntg-context wrote: > >> Hello everybody, >> >> >> I am still working on the previously mentioned project, consisting >> out of different parts. There are about 25 chapters in each part and >> most of the chapters contain figures. When using the predefined >> figure environment, then all figures in the figure-list are placed >> correctly though at each part the numbering restarts. >> >> Now I tried to implement for each part its own float environment, >> which enables me to produce a figure-list per part with subtitels. >> How ever in the newly defined floats there is no continuous numbering >> i.e. chapternumber.serialnumber. Instead each float get the chapter >> number only. >> >> How to get the numbering right? >> >> Kind regards >> Willi >> >> The following example shows what happens: >> >> \useMPlibrary[dum] >> >> \definefloat[Afigure][Afigures][figures] >> \definefloat[Bfigure][Bfigures][figures] >> >> \setuphead >> [part] >> [placehead=yes, >> page=yes] >> >> \setuphead >> [chapter] >> [page=no] >> >> \starttext >> >> \starttitle[title=List of figures] >> \startsubject[title=Figures (predefined figureenvironment)] >>\placelistoffigures >> \stopsubject >> >> \startsubject[title=Figures A] >> \placelistofAfigures >> \stopsubject >> >> \startsubject[title=Figures B] >>\placelistofBfigures >> \stopsubject >> \stoptitle >> >> \startpart[title=Part ONE] >> \startchapter[title={Chapter one in part one}] %les21 >> >> \startplaceAfigure >> [location=left, >> reference=fig:dumA, >> title={Dummy A}] >> {\externalfigure[dummy][width=0.6\textwidth]} >> \stopplaceAfigure >> >> \startplacefigure >> [location=left, >> reference=fig:dumB, >> title={Dummy B}] >> {\externalfigure[dummy][width=0.6\textwidth]} >> \stopplacefigure >> >> \startsection[title=Section A] >> >> \startplaceAfigure >> [location=left, >> reference=fig:dumC, >> title={Dummy C}] >> {\externalfigure[dummy][width=0.6\textwidth]} >> \stopplaceAfigure >> >> \stopsection >> \stopchapter >> \stoppart >> >> \startpart[title=Part TWO] >> \startchapter[title=Chapter one in part two] >> >> \startplaceBfigure >> [location=left, >> reference=fig:dumD, >> title={Dummy D}] >> {\externalfigure[dummy][width=0.6\textwidth]} >> \stopplaceBfigure >> \stopchapter >> \stoppart >> \stoptext > > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Numbering of figures after defining a new float
Have you tried: \setuplist [figure] [partnumber=no] ... \placelistoffigures [criterium=part] Alan On Thu, 30 Mar 2023 17:09:15 +0200 Willi Egger via ntg-context wrote: > Hello everybody, > > > I am still working on the previously mentioned project, consisting > out of different parts. There are about 25 chapters in each part and > most of the chapters contain figures. When using the predefined > figure environment, then all figures in the figure-list are placed > correctly though at each part the numbering restarts. > > Now I tried to implement for each part its own float environment, > which enables me to produce a figure-list per part with subtitels. > How ever in the newly defined floats there is no continuous numbering > i.e. chapternumber.serialnumber. Instead each float get the chapter > number only. > > How to get the numbering right? > > Kind regards > Willi > > The following example shows what happens: > > \useMPlibrary[dum] > > \definefloat[Afigure][Afigures][figures] > \definefloat[Bfigure][Bfigures][figures] > > \setuphead > [part] > [placehead=yes, >page=yes] > > \setuphead > [chapter] > [page=no] > > \starttext > > \starttitle[title=List of figures] > \startsubject[title=Figures (predefined figureenvironment)] > \placelistoffigures > \stopsubject > > \startsubject[title=Figures A] > \placelistofAfigures > \stopsubject > > \startsubject[title=Figures B] > \placelistofBfigures > \stopsubject > \stoptitle > > \startpart[title=Part ONE] > \startchapter[title={Chapter one in part one}] %les21 > > \startplaceAfigure > [location=left, >reference=fig:dumA, >title={Dummy A}] > {\externalfigure[dummy][width=0.6\textwidth]} > \stopplaceAfigure > > \startplacefigure > [location=left, >reference=fig:dumB, >title={Dummy B}] > {\externalfigure[dummy][width=0.6\textwidth]} > \stopplacefigure > > \startsection[title=Section A] > > \startplaceAfigure > [location=left, >reference=fig:dumC, >title={Dummy C}] > {\externalfigure[dummy][width=0.6\textwidth]} > \stopplaceAfigure > > \stopsection > \stopchapter > \stoppart > > \startpart[title=Part TWO] > \startchapter[title=Chapter one in part two] > > \startplaceBfigure > [location=left, >reference=fig:dumD, >title={Dummy D}] > {\externalfigure[dummy][width=0.6\textwidth]} > \stopplaceBfigure > \stopchapter > \stoppart > \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Numbering of figures after defining a new float
Willi Egger via ntg-context schrieb am 30.03.2023 um 17:09: Hello everybody, I am still working on the previously mentioned project, consisting out of different parts. There are about 25 chapters in each part and most of the chapters contain figures. When using the predefined figure environment, then all figures in the figure-list are placed correctly though at each part the numbering restarts. Now I tried to implement for each part its own float environment, which enables me to produce a figure-list per part with subtitels. How ever in the newly defined floats there is no continuous numbering i.e. chapternumber.serialnumber. Instead each float get the chapter number only. How to get the numbering right? Kind regards Willi The following example shows what happens: \useMPlibrary[dum] \definefloat[Afigure][Afigures][figures] \definefloat[Bfigure][Bfigures][figures] The name of the existing float instance is figure (without s). \definefloat[Afigure][Afigures][figure] \definefloat[Bfigure][Bfigures][figure] Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Numbering of figures after defining a new float
Hi Hraban, thanks for your answer, however this is not precisely what I am talking about. If you have 3 figures in chapter 1, you want them to be numbered as 1.1 , 1.2 , 1.3. However with floats defined with \definefloat[Afigure][Afigures][figure] they all get solely the chapter number: 1. Kind regards Willi > On 30 Mar 2023, at 18:01, Henning Hraban Ramm via ntg-context > wrote: > > Am 30.03.23 um 17:09 schrieb Willi Egger via ntg-context: >> I am still working on the previously mentioned project, consisting out of >> different parts. There are about 25 chapters in each part and most of the >> chapters contain figures. When using the predefined figure environment, then >> all figures in the figure-list are placed correctly though at each part the >> numbering restarts. >> Now I tried to implement for each part its own float environment, which >> enables me to produce a figure-list per part with subtitels. How ever in the >> newly defined floats there is no continuous numbering i.e. >> chapternumber.serialnumber. Instead each float get the chapter number only. >> How to get the numbering right? > > You can define the resetting of numbering with > \setupcaption[Afigure][way=bytext|bypart|bychapter]. > > For the list, \placelist[Afigure][criterium=chapter] (or local?) should work. > > HTH, > Hraban > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Numbering of figures after defining a new float
Am 30.03.23 um 17:09 schrieb Willi Egger via ntg-context: I am still working on the previously mentioned project, consisting out of different parts. There are about 25 chapters in each part and most of the chapters contain figures. When using the predefined figure environment, then all figures in the figure-list are placed correctly though at each part the numbering restarts. Now I tried to implement for each part its own float environment, which enables me to produce a figure-list per part with subtitels. How ever in the newly defined floats there is no continuous numbering i.e. chapternumber.serialnumber. Instead each float get the chapter number only. How to get the numbering right? You can define the resetting of numbering with \setupcaption[Afigure][way=bytext|bypart|bychapter]. For the list, \placelist[Afigure][criterium=chapter] (or local?) should work. HTH, Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Numbering of figures after defining a new float
Hello everybody, I am still working on the previously mentioned project, consisting out of different parts. There are about 25 chapters in each part and most of the chapters contain figures. When using the predefined figure environment, then all figures in the figure-list are placed correctly though at each part the numbering restarts. Now I tried to implement for each part its own float environment, which enables me to produce a figure-list per part with subtitels. How ever in the newly defined floats there is no continuous numbering i.e. chapternumber.serialnumber. Instead each float get the chapter number only. How to get the numbering right? Kind regards Willi The following example shows what happens: \useMPlibrary[dum] \definefloat[Afigure][Afigures][figures] \definefloat[Bfigure][Bfigures][figures] \setuphead [part] [placehead=yes, page=yes] \setuphead [chapter] [page=no] \starttext \starttitle[title=List of figures] \startsubject[title=Figures (predefined figureenvironment)] \placelistoffigures \stopsubject \startsubject[title=Figures A] \placelistofAfigures \stopsubject \startsubject[title=Figures B] \placelistofBfigures \stopsubject \stoptitle \startpart[title=Part ONE] \startchapter[title={Chapter one in part one}] %les21 \startplaceAfigure [location=left, reference=fig:dumA, title={Dummy A}] {\externalfigure[dummy][width=0.6\textwidth]} \stopplaceAfigure \startplacefigure [location=left, reference=fig:dumB, title={Dummy B}] {\externalfigure[dummy][width=0.6\textwidth]} \stopplacefigure \startsection[title=Section A] \startplaceAfigure [location=left, reference=fig:dumC, title={Dummy C}] {\externalfigure[dummy][width=0.6\textwidth]} \stopplaceAfigure \stopsection \stopchapter \stoppart \startpart[title=Part TWO] \startchapter[title=Chapter one in part two] \startplaceBfigure [location=left, reference=fig:dumD, title={Dummy D}] {\externalfigure[dummy][width=0.6\textwidth]} \stopplaceBfigure \stopchapter \stoppart \stoptext test.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 / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] How to prefix the list of figures with part number?
Hello again, My project has different parts. Each part contains a whole list of figures. At the beginning of the book I would like to place a list of all figures. Hoever they should be prefixed with the part number. I can not figure out how to achieve this. May be someone can hint me… Cheers Willi \setuplist[figures][pageprefixsegments=part:chapter] % Pageprefix? \setuphead[part][placehead=yes] \starttext \startpart[title=part one] \starttitle[title=Contents] \placelist[part,chapter][criterium=all] \startsubject[title=Figures] \placelistoffigures[criterium=all] \stopsubject \stoptitle \startchapter[title=Mychapter] \input knuth \startsubject[title=Subject will be in TOC] \writetolist[chapter]{1}{I am in TOC!} \input ward \startplacefigure [location=middle, title=Cow 1] {\externalfigure[cow][width=7cm]} \stopplacefigure \stopsubject \stopchapter \stoppart \startpart[title=Part two] \startchapter[title=Myotherchapter] \startplacefigure [location=middle, title=Cow 2] {\externalfigure[cow][width=7cm]} \stopplacefigure \stopchapter \stoppart \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] natural table oddities
Working on the documentation for “natural tables” I stumbled upon a few oddities/problems. I’d like to know if there are misunderstandings on my part or if the behavior is intentional. BTW enattab.pdf is missing in the LMTX distribution. ## Options * before/after/inbetween values don’t appear anywhere. * spaceinbetween should insert between rows, but nothing happens. * splitoffset doesn’t seem to change anything. * What’s samepage for? ## Addressing cells * It’s not possible to address single cells with \setupTABLE, or is it? * There’s \setupTABLE[header], but not "footer" (or "section"); since we have TABLEhead and TABLEfoot, IMO "head" and "foot" would make sense. * Row 1 is the first row of TABLEbody. I couldn’t find how to address the first line of TABLEbody. * Is it possible, and how, to use odd/even only for the body? * If I format a column, e.g. \setupTABLE[c][-1][color=red], body and foot are formatted, but not the same column in header. (I found out, if I use TD instead of TH in the header, it works.) * I don’t understand the addressing options "start" and "one". ## Formatting * maxwidth doesn’t seem to have an effect, neither on the whole table nor on a column. * textwidth works only for the whole table. * width gets stretched if option=stretch; i.e. you can’t fix the width of single cells or columns. ## Page breaking * What’s the difference between [split=repeat] and [split=yes,header=repeat], i.e. which sense makes the header option)? * Is there an option to repeat the footer (as the last line of each page)? (I’d imagine to use it in an invoice or similar calculation for a subtotal – that would imply some more magic…) Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Did dotless i disappear ?
Hi Pablo, Hans, Wolfgang, Indeed, thanks to you I see that in ConTeXt there exist plenty of solutions for the problem I reported. That’s really impressive ! Best regards : Otared > On 13 Mar 2023, at 20:19, Hans Hagen via ntg-context > wrote: > > On 3/13/2023 4:28 PM, Otared Kavian via ntg-context wrote: >> Hi Hans, >> I just noticed that the dotless i « \i » is not anymore recognized in >> ConTeXt. Of course one can nowadays find other ways to have it typeset, but >> in old documents which are included as inputs one has to correct this >> manually (for instance in French « connaître » was typed as « conn\^{\i}tre >> »). >> Here is an example. >> \starttext >> Bío Bío (works fine…) >> B\'{\i}o B\'{\i}o % this gives an error >> \stoptext > I'll add checking for the \i too. It's all part of a parser. Think > > \chr {e acute} > \chr {i circumflex} > \^{i} \^i \^{\i} > \^{a} \"{a} > \withcircumflex{a} > \withdiaeresis{a} > > a bit messy code due to reuse of all kin dof mechanisms. > > 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 / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > ___ Otared Kavian e-mail: ota...@gmail.com Phone: +33 6 88 26 70 95 ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Did dotless i disappear ?
On 3/13/2023 4:28 PM, Otared Kavian via ntg-context wrote: Hi Hans, I just noticed that the dotless i « \i » is not anymore recognized in ConTeXt. Of course one can nowadays find other ways to have it typeset, but in old documents which are included as inputs one has to correct this manually (for instance in French « connaître » was typed as « conn\^{\i}tre »). Here is an example. \starttext Bío Bío (works fine…) B\'{\i}o B\'{\i}o % this gives an error \stoptext I'll add checking for the \i too. It's all part of a parser. Think \chr {e acute} \chr {i circumflex} \^{i} \^i \^{\i} \^{a} \"{a} \withcircumflex{a} \withdiaeresis{a} a bit messy code due to reuse of all kin dof mechanisms. 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 / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] regular online meet-up
Reminder: This is in a few hours. For my part I’d like to know what was in the latest updates and maybe discuss the page breaking in floats (possible with tables, how about text background boxes – didn’t try yet, just curious). Hraban Am 04.03.23 um 18:42 schrieb Henning Hraban Ramm via ntg-context: You’re invited to join on Wednesday, March 8th, 15:00 CET (UTC+1) at https://lecture.senfcall.de/hen-rbr-rku-oke (same, but shorter: https://v34h.de/ctxmtg) ConTeXt users of all levels are welcome! Next meeting will be on April 12th. (Same blurb as every time:) [Howto] * No special software installation required; most modern browsers should work (WebRTC required). * Open the above URL, accept the privacy statement, * enter your name, * click "join" (or "start" if you’re the first), * click "with microphone", allow your browser to access it, check the audio. * Your microphone is muted if you join. Activate microphone and/or camera with the buttons at the bottom. * Minimize the default presentation with the "screen" button, bottom right. * If you’d like to share your screen or upload a file, you can make yourself the presenter: Click on your user name, change the setting, then you’ll see the "screen sharing" button beside the camera button; also there’s now "manage presentations" behind the "plus" button. Beware there is only one presenter at a time, so don’t kill someone else’s presentation. [Technical hints] * Sound is usually better if you use a headset (less noise for everyone). * Connection problems are mostly due to low bandwidth or high latency on your side, e.g. with mobile connections. * If audio/video doesn’t work for you, you can still use the text chat. * Screen sharing needs a lot of bandwidth. * BigBlueButton documentation applies: https://bigbluebutton.org/teachers/tutorials/ [Netiquette] * Please use a name that we recognize from here. Some feel uncomfortable with anonymous lurkers. * Mute your microphone while you’re not talking. * It’s nice to show your face at least when you join. * If there are connection problems, stop camera sharing. * The room is set to “everyone’s a moderator“, I trust you... See you, Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Typeset multiple pictures not in a strict matrix (\startfloatcombination)
Hi, I'm trying to typeset several pictures as a floatcombination but not in the form of strict cells of a matrix. Here is some ASCII art to demonstrate the positions of the pictures: --- | | | | --- a) Some caption - | | | | | | | | | | | | - b) fooc) foo Figure 1.1: Foo Bar I tried to typeset it with this code (based on https://tex.stackexchange.com/a/502903): \useMPlibrary[dum] \setupcombinations[alternative=text] \definefloat[subfigure][local=yes] \setupcaption[subfigure][numberconversion=a] \setuplabeltext[subfigure=] \appendvalue{stopplacefigure}{\resetcounter[subfigure]} \starttext \startplacefigure[title=Test] \startfloatcombination[nx=1, ny=2] \startplacesubfigure[title=Test] \externalfigure[dummy][width=4cm,height=1cm] \stopplacesubfigure \startfloatcombination[nx=2, ny=1] \startplacesubfigure[title=Test] \externalfigure[dummy][width=4cm,height=1cm] \stopplacesubfigure \startplacesubfigure[title=Test] \externalfigure[dummy][width=4cm,height=1cm] \stopplacesubfigure \stopfloatcombination \stopfloatcombination \stopplacefigure \stoptext However, this does not work (the pictures are all in one row). Do you have some advice? Gerion signature.asc Description: This is a digitally signed message part. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Description together with itemize, luametatex
Am Montag, 6. März 2023, 14:34:28 CET schrieb Aditya Mahajan via ntg-context: > On Mon, 6 Mar 2023, Gerion Entrup via ntg-context wrote: > > > Hi, > > > > I'm trying to use a description environment in conjunction with an > > itemize with the latest luametatex. Is this supposed to work? > > > > Here is an MWE: > > ``` > > \definedescription[desc][headstyle=bold] > > > > \starttext > > Foo > > > > \desc{Some title} Some text > > \startitemize > > \item Some item > > \stopitemize > > > > \stoptext > > Use \startdesc ... \stopdesc > > \definedescription[desc][headstyle=bold] > > \starttext > Foo > > \startdesc[title={Some title}] > Some text > \startitemize > \item Some item > \stopitemize > \stopdesc > > \stoptext That worked. Thank you! signature.asc Description: This is a digitally signed message part. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Visual highlighted text with title, mix of enumeration and framedtext
Hi, I want to typeset a "Good to know" section that is visually highlighted and can spawn across multiple pages. In LaTeX this would be possible with the mdframed package. See the attached screenshot for an example how it might look like (it is copied out of page 4: Definition: Inhomogeneous linear of the mdframed documentation: http://mirrors.ctan.org/macros/latex/contrib/mdframed/mdframed.pdf) I have searched in the wiki and found \defineenumeration: This is near of that what I need. However I explicitly does not need an enumeration (so no number or counter). Also I am not sure if I can set a background and so on. The other possibility is \defineframedtext. For example this goes much in the direction that I want: \definecolor[gbackground][s=0.98] \defineframedtext[gtk][frame=on, offset=5pt, background=color, width=0.95\textwidth, backgroundcolor=gbackground] However, there does not seem a possibility to define a title and it seems to not work on multiple pages. Is there a mix of an enumeration and framedtext that can produce something like in the attached picture? Best, Gerion signature.asc Description: This is a digitally signed message part. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Description together with itemize, luametatex
Hi, I'm trying to use a description environment in conjunction with an itemize with the latest luametatex. Is this supposed to work? Here is an MWE: ``` \definedescription[desc][headstyle=bold] \starttext Foo \desc{Some title} Some text \startitemize \item Some item \stopitemize \stoptext ``` This currently fails with: ``` resolvers | formats | executing runner 'run luametatex format': /home/gerion/context/tex/texmf-linux-64/bin/luametatex --jobname="./test.tex" --fmt=/home/gerion/context/tex/texmf-cache/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.fmt --lua=/home/gerion/context/tex/texmf-cache/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.lui --c:currentrun=1 --c:fulljobname="./test.tex" --c:input="./test.tex" --c:kindofrun=1 --c:maxnofruns=9 --c:texmfbinpath="/home/gerion/context/tex/texmf-linux-64/bin" system > system > ConTeXt ver: 2023.02.23 21:26 LMTX fmt: 2023.3.4 int: english/english system > system > 'cont-new.mkxl' loaded open source > level 1, order 1, name '/home/gerion/context/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl' system > beware: some patches loaded from cont-new.mkiv close source> level 1, order 1, name '/home/gerion/context/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl' system > files > jobname './test', input './test.tex', result './test' fonts > latin modern fonts are not preloaded languages > language 'en' is active open source > level 1, order 2, name './test.tex' fonts > preloading latin modern fonts (second stage) fonts > 'fallback modern rm 12pt' is loaded lua error > lua error on line 8 in file ./test.tex: registered function call [809]: ...ext/tex/texmf-context/tex/context/base/mkiv/strc-num.lua:448: attempt to index a nil value (local 'd') stack traceback: ...ext/tex/texmf-context/tex/context/base/mkiv/strc-num.lua:448: in function <...ext/tex/texmf-context/tex/context/base/mkiv/strc-num.lua:442> (...tail calls...) 1 \definedescription[desc][headstyle=bold] 2 3 \starttext 4 Foo 5 6 \desc{Some title} Some text 7 \startitemize 8 >> \item Some item 9 \stopitemize 10 11 \stoptext 12 mtx-context | fatal error: return code: 1 ``` Best, Gerion signature.asc Description: This is a digitally signed message part. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Float control
Hi Denis, > The floats where jumping around, appearing in a different order than > in the source file Tables and figures can appear in different orders than each other, and a top float could appear at the top of the page that it is mentioned, but if you ever see Figure 2 before Figure 1 or a float appearing before it is placed in the source (with the exception of the top issue), then you've probably found a bug. > some positioning keys had not the intended effect (e.g. top) I've had mixed results with some of the positioning keys too, but "top" should generally work okay. If you're using columns, weird stuff can sometimes happen with top/bottom floats, but you should still be able to make them work. You can also try adding \setupfloat[ntop=100] at the start of you're document. I've had that fix an otherwise- unexplainable bug once. > I know, TeX's float positioning algorithm should be rather reliable > and stable Not as much as you would expect. The TeX page breaking algorithm is greedy, single-pass, and dependant on every page prior, so you can get some pretty chaotic results in pathological situations. "Typical" documents don't usually have any issues, but you can (even accidentally) make a document that gives some really weird results. > Anyway, I'd like to learn more about the whole float issue. Is there anything > particular I could read to learn more about the whole thing? The only float documentation for ConTeXt that I'm aware of is a short section in It's in the Details https://www.pragma-ade.nl/general/manuals/details.pdf#%5B%7B%22num%22%3A39%2C%22gen%22%3A0%7D%2C%7B%22name%22%3A%22Fit%22%7D%5D and another short section in the old Reference Manual http://pmrb.free.fr/contextref.pdf#aut%3A957 There's also the Wiki page https://wiki.contextgarden.net/Floating_Objects and the source code https://source.contextgarden.net/tex/context/base/mkxl/strc-flt.mklx I haven't been able to find anything that really goes into the details though. (If there's something that I'm missing here, please let me know! I've been looking for awhile now) > Maybe I'm missing out on something fundamental... At the TeX level, floats are known as \insert's/insertions. The end of Chapter 15 in The TeXbook goes into detail here. TeX By Topic also has a good description in Chapter 29 https://texdoc.org/serve/texbytopic/0#chapter.29 Then there's also Low Level TeX which documents the changes in LMTX https://www.pragma-ade.com/general/manuals/lowlevel-inserts.pdf Inserts are (in my opinion) the most complicated part of TeX. Even at an engine level, they aren't that well documented. When writing the footnote code for lua-widow-control, I had to read through "TeX the program" since some of the details weren't documented anywhere else. And as Peter mentioned, if you post a specific example someone will probably come along and help. -- Max ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___