[NTG-context] Re: What could possibly be wrong with 'P'?
Thanks for this. I can understand now where the problem lies, and sorry about the minimal example, but I had hoped that the three items I gave (the metadata info, the \setupheadertexts and the error message) was in fact a minimal example. I should have placed the \setupheadertexts immediately after the \startdocument, I guess. But just the same, grateful for your patience and clarity. Julian On 10/9/24 13:25, Wolfgang Schuster wrote: jbf schrieb am 10.09.2024 um 02:36: Here is a really odd one that I have a simple workaround for, but for the life of me I cannot work out why this is happening. Is 'p' (or 'P') some sort of restricted letter in certain circumstances? Here is the issue: \startdocument [metadata:author={Author name}, metadata:title={Psalms}] 1. This is *not* a complete minimal working example. 2. The following example works (with and without \setupinteraction) here with the latest version. \setupinteraction[state=start] \startdocument [metadata:author={Author name}, metadata:title={Psalms}] Psalms. \stopdocument And I get an error. Document will not compile. Any other initial letter than 'p' (in Psalms) does not produce the error. So if I do something like: \startdocument [metadata:author={Janet Dawson}, metadata:title={~Psalms}] Then I no longer get the problem. Which just seems to confirm the fact that it is the initial letter 'p' that is the problem. I can also change the spelling of 'psalms' (anything really, asalms, xsalms) and there is no problem, but of course that would be silly. I have never had this issue before, so while it looks like 'p' is the problem (it can hardly be the Psalms!), it is possibly something else, but what, I would not know. If it helps, I am calling in that metadata:title in the header in the usual way, e.g.: \setupheadertexts [ ] [{\getmarking[chapter]\hskip1em \pagenumber}] [] [ {\pagenumber \hskip1em \documentvariable{metadata:title}}] But that should not be a problem. The \hskip is a problem because the commands is looking for additional parameters and when it encounters the "p" at the beginning of metadata:title it assumes you set the plus parameter. To prevent the error either add a \relax after the dimension (i.e. \hskip1em\relax) or use \quad which inserts a horizontal space of 1em. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: What could possibly be wrong with 'P'?
jbf schrieb am 10.09.2024 um 02:36: Here is a really odd one that I have a simple workaround for, but for the life of me I cannot work out why this is happening. Is 'p' (or 'P') some sort of restricted letter in certain circumstances? Here is the issue: \startdocument [metadata:author={Author name}, metadata:title={Psalms}] 1. This is *not* a complete minimal working example. 2. The following example works (with and without \setupinteraction) here with the latest version. \setupinteraction[state=start] \startdocument [metadata:author={Author name}, metadata:title={Psalms}] Psalms. \stopdocument And I get an error. Document will not compile. Any other initial letter than 'p' (in Psalms) does not produce the error. So if I do something like: \startdocument [metadata:author={Janet Dawson}, metadata:title={~Psalms}] Then I no longer get the problem. Which just seems to confirm the fact that it is the initial letter 'p' that is the problem. I can also change the spelling of 'psalms' (anything really, asalms, xsalms) and there is no problem, but of course that would be silly. I have never had this issue before, so while it looks like 'p' is the problem (it can hardly be the Psalms!), it is possibly something else, but what, I would not know. If it helps, I am calling in that metadata:title in the header in the usual way, e.g.: \setupheadertexts [ ] [{\getmarking[chapter]\hskip1em \pagenumber}] [] [ {\pagenumber \hskip1em \documentvariable{metadata:title}}] But that should not be a problem. The \hskip is a problem because the commands is looking for additional parameters and when it encounters the "p" at the beginning of metadata:title it assumes you set the plus parameter. To prevent the error either add a \relax after the dimension (i.e. \hskip1em\relax) or use \quad which inserts a horizontal space of 1em. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] What could possibly be wrong with 'P'?
Here is a really odd one that I have a simple workaround for, but for the life of me I cannot work out why this is happening. Is 'p' (or 'P') some sort of restricted letter in certain circumstances? Here is the issue: \startdocument [metadata:author={Author name}, metadata:title={Psalms}] And I get an error. Document will not compile. Any other initial letter than 'p' (in Psalms) does not produce the error. So if I do something like: \startdocument [metadata:author={Janet Dawson}, metadata:title={~Psalms}] Then I no longer get the problem. Which just seems to confirm the fact that it is the initial letter 'p' that is the problem. I can also change the spelling of 'psalms' (anything really, asalms, xsalms) and there is no problem, but of course that would be silly. I have never had this issue before, so while it looks like 'p' is the problem (it can hardly be the Psalms!), it is possibly something else, but what, I would not know. If it helps, I am calling in that metadata:title in the header in the usual way, e.g.: \setupheadertexts [ ] [{\getmarking[chapter]\hskip1em \pagenumber}] [] [ {\pagenumber \hskip1em \documentvariable{metadata:title}}] But that should not be a problem. Below is the error log, but it refers to line 346, which happens to be \stopfrontmatter so does not seem relevant. However, it is my previous experience that sometimes this is telling me that the error is somewhere in the frontmatter, not necessarily on that final line. return { ["errortype"]=0, ["filename"]="./test.tex", ["lastcontext"]="\n \n Ps\n alms\n \n {\\pagenumber \\hskip 1em \\documentvariable {metadata:title}\n }\n \\secondoftwoarguments \n #-#1->#1\n \\page_layouts_process_element_single \n ...content {\\detokenize {#1}}\\ifcsname \\??layouttextspecial \\m_page_layouts_element_content \\endcsname \\lastnamedcs \\else \\doifelsemarking \\m_page_layouts_element_content {\\getmarking [\\m_page_layouts_element_content ][\\v!first ]}{#1}\n \\fi \n \\page_layouts_process_element_indeed \n ...andcolor #1#2\\begincsname \\??layouttextstrut \\layoutelementparameter \\c!strut \\endcsname \\ignorecrlf \\edef \\p_width {\\layoutelementparameter #3}\\ifempty \\p_width \\else \\expandafter \\page_layouts_process_element_limited \\fi \\p_text \n \\endgroup \n \\currentlayoutelement \n ...h \\bgroup \\page_layouts_place_extra_text_left \\hss \\egroup \\kern -\\makeupwidth \\fi \\else \\hbox to \\makeupwidth \\bgroup \\page_layouts_place_extra_text_left \\page_layouts_process_element_indeed \\c!leftstyle \\c!leftcolor \\c!leftwidth \n \\hss \\egroup ...\n ...\n\n \n \\stopfrontmatter\n\n", ["lastluaerror"]="", ["lasttexerror"]="Valid keyword expected, likely 'plus'", ["lasttexhelp"]="You started a keyword but it seems to be an invalid one. The first character(s)\nmight give you a clue. You might want to quit unwanted lookahead with \\relax.", ["linenumber"]=346, ["offset"]=10, ["skiplinenumber"]=346, Version no. is 20220825 LMTX but that should not be a problem either. I have used it consistently for other titles. Julian ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: (ConTeXt LMTX) How do I fix the centering and setting up width in xtables?
Felix schrieb am 01.09.2024 um 20:54: https://pastebin.com/TQdzmxeP I am trying to make a resume in ConTeXt (to see how well my skills have gotten, I am still quite a beginner) and Iw as able to produce what is in Pastebin. Though, I am having trouble with the table that goes over the big sized text that would be my name. It has an email, a phone number, and an address but they are all aligned very weirdly. I want them to be centered. Though, the phone number has some sort of problem with alignment, and I don;t know fi the other ones are causing it or are also aligned wrong. I also wanted to make this code: \startxcell[topframe=on,bottomframe=on,align=flushright] Ability to communicate strongly and effectively, being a reliable team member, supporting a team whenever needed, and the desire to help everyone \stopxcell has it so that it doesn't take up so much horizontal space (Ideally it is taking up 1/3 of the width I am allowing for since there are three rows in total) , but when I add width={some value} into the square brackets, it will add a blank line after all the text, and this is not what I want. You have to add "option=fixed" to the cell with the width setting. begin example \starttext \startxtable[option=stretch] \startxrow \startxcell text text \stopxcell \startxcell[width=8cm] \samplefile{ward} \stopxcell \stopxrow \stopxtable \startxtable[option=stretch] \startxrow \startxcell text text \stopxcell \startxcell[option=fixed,width=8cm] \samplefile{ward} \stopxcell \stopxrow \stopxtable \stoptext end example Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: (ConTeXt LMTX) How do I fix the centering and setting up width in xtables?
Felix schrieb am 01.09.2024 um 20:54: https://pastebin.com/TQdzmxeP I am trying to make a resume in ConTeXt (to see how well my skills have gotten, I am still quite a beginner) and Iw as able to produce what is in Pastebin. Your next lesson is to learn how to create a minimal example which contains only the necessary information needed to show the problem. Though, I am having trouble with the table that goes over the big sized text that would be my name. It has an email, a phone number, and an address but they are all aligned very weirdly. I want them to be centered. Though, the phone number has some sort of problem with alignment, and I don;t know fi the other ones are causing it or are also aligned wrong. I also wanted to make this code: \startxcell[topframe=on,bottomframe=on,align=flushright] Ability to communicate strongly and effectively, being a reliable team member, supporting a team whenever needed, and the desire to help everyone \stopxcell has it so that it doesn't take up so much horizontal space (Ideally it is taking up 1/3 of the width I am allowing for since there are three rows in total) , but when I add width={some value} into the square brackets, it will add a blank line after all the text, and this is not what I want. is there a way to fix what I am experiencing? I would also not mind if I could be told how to improve my code, whether it be by adding startxrowgroup, startxcellgroup, or head and footer sections., or other options. Thank you for reading. Your problem the usage of "option=stretch" to add filler space in the table cells. To calculate the space which is added in each cell context takes the widest text in each column to calculate the current width of the table and when table is narrower then the page it distributes the reaming spaces equally to all rows. This results in a different width for each row but another problem in your case is that context takes the long text in the first row (even though it spans three column) as value to compute the reaming space in the table. The fix for your case is to set a fixed width for all three column which ensures the text in the second column is centered. You can also simplify your setup by moving all settings at the start of the table and the only local change is needed for the merged cells. begin example \starttext % width=.33tw \startxtable[frame=off,topframe=on,bottomframe=on,width=.33tw,align=middle] \startxrow \startxcell[nx=3] contact information \stopxcell \stopxrow \startxrow \startxcell email \stopxcell \startxcell phone \stopxcell \startxcell address \stopxcell \stopxrow \stopxtable % option=stretch \startxtable[frame=off,topframe=on,bottomframe=on,option=stretch,align=middle] \startxrow \startxcell[nx=3] contact information \stopxcell \stopxrow \startxrow \startxcell email \stopxcell \startxcell phone \stopxcell \startxcell address \stopxcell \stopxrow \stopxtable \stoptext end example Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] (ConTeXt LMTX) How do I fix the centering and setting up width in xtables?
https://pastebin.com/TQdzmxeP I am trying to make a resume in ConTeXt (to see how well my skills have gotten, I am still quite a beginner) and Iw as able to produce what is in Pastebin. Though, I am having trouble with the table that goes over the big sized text that would be my name. It has an email, a phone number, and an address but they are all aligned very weirdly. I want them to be centered. Though, the phone number has some sort of problem with alignment, and I don;t know fi the other ones are causing it or are also aligned wrong. I also wanted to make this code: \startxcell[topframe=on,bottomframe=on,align=flushright] Ability to communicate strongly and effectively, being a reliable team member, supporting a team whenever needed, and the desire to help everyone \stopxcell has it so that it doesn't take up so much horizontal space (Ideally it is taking up 1/3 of the width I am allowing for since there are three rows in total) , but when I add width={some value} into the square brackets, it will add a blank line after all the text, and this is not what I want. is there a way to fix what I am experiencing? I would also not mind if I could be told how to improve my code, whether it be by adding startxrowgroup, startxcellgroup, or head and footer sections., or other options. Thank you for reading. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Has anyone packages the ConTeXt standalone distributon for nixpkgs/NixOS?
Thanks Bruce. For now I'm just using ConTeXt from TeXLive, which is packaged and is recent enough. I guess some sort of FHSEnv in nix, and then running the install script and patchelf might be enough? Best, Mica August 25, 2024 at 5:09 AM, "Bruce Horrocks" wrote: > > > > > On 15 Aug 2024, at 18:31, Mica via ntg-context wrote: > > > > > > > > Hello, > > > > > > > > I'm wondering if anyone has packaged the ConTeXt standalone for > > nixpkgs/NixOS and if yes, can you share your derivation? > > > > > > > > Thanks! > > > > Hi Mica, > > Short answer: no. > > Longer answer: I’ve not myself previously compiled the various components > that go into ConTeXt so producing a package definition is going to be a lot > of work from scratch. If you have a specific target machine in mind (e.g. an > x64) then producing a simple nix-shell that mimics a manual install of the > pre-built binary might be simpler. > > Also, ConTeXt changes frequently. That introduces quite a burden on keeping > the Nix package up-to-date unless it can be automated, which in turn is yet > more work. If I used Nixos as my daily driver I might consider it, but I > don’t. > > — > > Bruce Horrocks > > Hampshire, UK > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] index entry with sorting and processor
Hi again, the page number of register entries from a glossary should have a different color: \defineprocessor[glossar][color=green] \define[1]\GlIndex{\index[glossar->]{#1}} This works, but I’d like to apply a macro to the text, and then I need to set the sort order: \define[1]\GlIndex{\index[glossar->#1]{\Word{#1}}} This also works, but I get separate index entries from \index{Something} and \GlIndex{something} Glossary entries may be lowercase, but in the index I’d like to normalize to uppercase initials. (The index command is part of a lemma setup.) How can I combine the entries? I also tried \setregisterentry but didn’t find out how to use a processor for the page number. In the wiki, the (generally working) processor option is undocumented, so if there’s another option, it’s also missing. In the source, I found processors for entry & page, but not how to address the latter. MWE: """ \defineprocessor[glossar][color=green] \define[1]\GlIndex{\index[glossar->#1]{\Word{#1}}} \starttext \samplefile{ward} \index{something} \index{anything} \page \samplefile{tufte} \GlIndex{something} \GlIndex{anything} \page \placeindex \stoptext """ Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: upload
On 8/1/2024 9:21 AM, Henning Hraban Ramm wrote: Am 31.07.24 um 19:55 schrieb Hans Hagen via ntg-context: Hi, end of the month update: - we are still working on the math manual so updates there (we want the manual to stable for the upcoming meeting) - we also work on the export (some changes and additions there but we will conver that plus some new tools later when we're done, read: are satisfied with what browsers can handle sort of well) - wolfgang updated the setups (command definitions) so plenty of improvements and completion in there (he also did some quality assurance) - all kind of small thingies (some to be introduced at the upcoming meeting were as usual we also discuss development and priorities) - there are some new \setupalign options, like 'notwins', 'notoddlers' and 'noorphans' in case someone wants to be surprised as usual when we run into unforseen issues we'll fix it, I dared to update, since Hans’ & Mikael’s article for the journal required the latest version. (I wonder what \startimage is about…) related to the export, we'll demo it at the meeting: formulas, metapost etc; here it is used to make an images file so that you don't need to update (i assumed that you'd turn the text into whatever the journal needs (if you render yourself best also check if the examples come out right) Being careful, I did a parallel install, but all looks good so far. no fundamental changes My book went from 490 to 484 pages, must investigate, might just be better paragraph/page/table breaking or something like that. Or is automatical nonsense-removal now included? run old and new and then context --extra=compare old.pdf new.pdf it might be some improvement in page crossing My usual TTC problem (all Cambria is Bold Cambria) didn’t show after installation of the distribution, but resurfaced after installing all modules. ("mtxrun --script font --reload --force" helped as usual.) there is an issue with cambria and name resolving, i'll send you an alternative typescript we've been testing 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: upload
Am 31.07.24 um 19:55 schrieb Hans Hagen via ntg-context: Hi, end of the month update: - we are still working on the math manual so updates there (we want the manual to stable for the upcoming meeting) - we also work on the export (some changes and additions there but we will conver that plus some new tools later when we're done, read: are satisfied with what browsers can handle sort of well) - wolfgang updated the setups (command definitions) so plenty of improvements and completion in there (he also did some quality assurance) - all kind of small thingies (some to be introduced at the upcoming meeting were as usual we also discuss development and priorities) - there are some new \setupalign options, like 'notwins', 'notoddlers' and 'noorphans' in case someone wants to be surprised as usual when we run into unforseen issues we'll fix it, I dared to update, since Hans’ & Mikael’s article for the journal required the latest version. (I wonder what \startimage is about…) Being careful, I did a parallel install, but all looks good so far. My book went from 490 to 484 pages, must investigate, might just be better paragraph/page/table breaking or something like that. Or is automatical nonsense-removal now included? My usual TTC problem (all Cambria is Bold Cambria) didn’t show after installation of the distribution, but resurfaced after installing all modules. ("mtxrun --script font --reload --force" helped as usual.) Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: upload
Sound great, thanks! I just don’t dare to update with printing deadlines approaching… Hraban Am 31.07.24 um 19:55 schrieb Hans Hagen via ntg-context: Hi, end of the month update: - we are still working on the math manual so updates there (we want the manual to stable for the upcoming meeting) - we also work on the export (some changes and additions there but we will conver that plus some new tools later when we're done, read: are satisfied with what browsers can handle sort of well) - wolfgang updated the setups (command definitions) so plenty of improvements and completion in there (he also did some quality assurance) - all kind of small thingies (some to be introduced at the upcoming meeting were as usual we also discuss development and priorities) - there are some new \setupalign options, like 'notwins', 'notoddlers' and 'noorphans' in case someone wants to be surprised as usual when we run into unforseen issues we'll fix it, Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] upload
Hi, end of the month update: - we are still working on the math manual so updates there (we want the manual to stable for the upcoming meeting) - we also work on the export (some changes and additions there but we will conver that plus some new tools later when we're done, read: are satisfied with what browsers can handle sort of well) - wolfgang updated the setups (command definitions) so plenty of improvements and completion in there (he also did some quality assurance) - all kind of small thingies (some to be introduced at the upcoming meeting were as usual we also discuss development and priorities) - there are some new \setupalign options, like 'notwins', 'notoddlers' and 'noorphans' in case someone wants to be surprised as usual when we run into unforseen issues we'll fix it, Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: index sort order (de)
On 7/7/2024 11:46 AM, Henning Hraban Ramm wrote: Would any of the German users object to a change of the default? Well, I'm sure that you can guess which german you need to convince for me to change it (apply a patch) without second thought. Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: index sort order (de)
Would any of the German users object to a change of the default? Am 14.05.24 um 18:57 schrieb Henning Hraban Ramm: Hi, I checked the German index sorting rules, and as far as I can tell, all of them are somewhat wrong. – de, default, or no setting (just mainlanguage de) – Duden - DIN 5007-1(:2005) - DIN 5007-2(:1996) - de-AT IMO, "Duden" is obsolete, should be the same as default; it makes no sense to have a default setting that doesn’t adhere to the official rules. If I’m not mistaken it’s also the same as DIN 5007-1; maybe there was a difference before 2005. (DIN 5007-2 and de-AT have their uses.) The order of umlauts etc. should be ok. [ß] In tex/context/base/mkiv/sort-lan.lua, ß is replaced by s, while it should be sorted like ss in default and both DIN versions. (de-AT sorts ss after ß.) [upper-/lowercase] While casing is not mentioned in Wikipedia (https://de.wikipedia.org/wiki/Alphabetische_Sortierung), Duden „Satz und Korrektur“ says: Uppercase characters get sorted the same as lowercase (i.e. mixed), but if both appear, lowercase comes first. ATM all German settings sort lowercase behind uppercase. Generally, default method seems to be not "default" but "before". Does this make sense? If we look at the method presets, there’s none for {zm,pm,zc,zm,uc} (upper like lower, ignore diacritics – basic default for German). """ \mainlanguage[de] \setupregister[index][language=de] \starttext \index{Apfel} \index{Äpfel} \index{apfel} \index{äpfel} \index{aepfel} \index{Aepfel} \index{Ápfel} \index{ápfel} \page \completeindex \stoptext """ default order should be: aepfel Aepfel apfel Apfel äpfel Äpfel ápfel Ápfel aqua DIN 5007-2 sorts like: aepfel Aepfel äpfel Äpfel apfel Apfel ápfel Ápfel aqua de-AT sorts like: aepfel Aepfel apfel Apfel aqua äpfel Äpfel ápfel Ápfel Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] 1: Modifying bibliography entries using lua, 2. Sort apa pubs according to year reverse author
Dear List, Here’s a beautiful example of lua checking a list of authors and conditionally formatting one: https://www.mail-archive.com/ntg-context@ntg.nl/msg88382.html I've dismally failed transferring the example to apa rendering style. Maybe someone can enlighten me. Furthermore, I’ve spent quite some time trying to reverse order the rendered list of publications by using apa such as, that the newest publication with author A… is on the top. Basically, sort in reverse according to year and then with author. As always, help is much appreciated. Thank you very much Ben___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: BibTeX choking on comments in database
On Wed, 2024-05-29 at 06:49 -0600, Alan Braslau wrote: > 1) You appear to be using the long-frozen mkii bibliography code. I think you are right! I just realized that. I'm using in my Environment file... % \BIBTEX macro... \usemodule[abr-02] % Setup bibliography... % References database and other general settings... \setupbibtex[database={./References}, sort=author] % Global settings... \setuppublications[ alternative=apa, numbering=yes, monthconversion=month, autohang=yes, sorttype=cite] % Without this, no hyperlinks at all in the output... \setupinteraction[state=start] % This two-part helper creates a hyperlink for url fields... \unprotect \def\bibgotoURL#1#2% {\useURL[#1][#2][][#1]\from[#1]} \def\bibinsertbiburl#1#2#3% {\bibdoifelse{\@@pb@biburl} {#1\expanded{\bibgotoURL{\@@pb@title}{\@@pb@biburl}}#2}{#3}} \protect % Book reference layout... \setuppublicationlayout[book]{% \insertauthors{}{. }{\insertthekey{}{. }{}}% \inserttitle{\bgroup\it }{.\egroup\space }{}% \insertpubname{}{. }{}% \insertday{}{ }{}% \insertmonth{\Word }{. }{}% \insertpubyear{}{. }{}% \insertnote{}{.}{}% } % Adjusted version of 'misc' typesetting, using \insertbiburl % instead of \inserttitle (and \insertbiburl runs the % \bibinsertbiburl macro defined above) \setuppublicationlayout[misc]{% \insertauthors{}{. }{\insertthekey{}{. }{}}% \insertbiburl{\bgroup\it }{.\egroup\space }{}% \insertpubname{}{. }{}% \insertday{}{ }{}% \insertmonth{\Word }{. }{}% \insertpubyear{}{. }{}% \insertnote{}{.}{}% } % finally, this is a horrible hack needed due to bibtex inserting % line breaks in the middle of urls in the output bbl (!) % If you find this hack too ugly, consider editing the .bbl by % hand and forgetting about the .bib file altogether... \let\mydodostartpublication\dodostartpublication \def\dodostartpublication{\catcode`\%=14 \mydodostartpublication} % Macro to put the citations as footnotes... \unexpanded\def\footnotecite{\dodoubleempty\domycite} \def\domycite[#1][#2]% {\ifsecondargument \footnote{\cite[alternative=data,#1][#2]}% \else \footnote{\cite[data][#1]}% \fi} % Individial citation settings... % Enable clickable links... \setupcite[alternative=interaction=start, compress=no] % Publication list setups for end of the book list... % Settings for triggering et al... \setuppublicationlist[authoretallimit=3] \setuppublicationlist[authoretaltext={\it\ et al.}] \setuppublicationlist[authoretaldisplay=2] % List the author, editor, or article author's full name, inverted... \setuppublicationlist[% author=\invertedauthor,% artauthor=\invertedauthor,% editor=\invertedauthor,% title=References] % Setup footnotes... \setupnotation[footnote] [color=colour_footnote_text, backgroundcolor=colour_footnote_background, width=0.3cm, % Space between footnote number and footnote itself numbercommand=] % Remove elevated footnote notation at bottom of page \setupnote[footnote] [textseparator={\textcomma}, % Comma delineated before={\crlf\crlf}] % \setupfootnotes [rule=on, % Disable horizontal rule textstyle={\hskip.03em}] % Vertical space between footnotes and the text % To move footnotes inside of text boxes to the bottom of the page with % the rest of the footnotes. Disabled temporarily to fix issue of text % background frame borders vanishing... \kindofpagetextareas\plusone Whenever I wanted to use a citation I'd just write \footnotecite[something]. But I see now there is this page that describes a different process for using BibTeX: https://wiki.contextgarden.net/Bibliography I will take a look today and try to incorporate the new best practice for using the database and its citations. If you have any suggestions I will try and incorporate them. -- Kip Warner OpenPGP signed/encrypted mail preferred https://www.thevertigo.com 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://mailman.ntg.nl/mailman3/lists/ntg-con
[NTG-context] index sort order (de)
Hi, I checked the German index sorting rules, and as far as I can tell, all of them are somewhat wrong. – de, default, or no setting (just mainlanguage de) – Duden - DIN 5007-1(:2005) - DIN 5007-2(:1996) - de-AT IMO, "Duden" is obsolete, should be the same as default; it makes no sense to have a default setting that doesn’t adhere to the official rules. If Û#m not mistaken it’s also the same as DIN 5007-1; maybe there was a difference before 2005. (DIN 5007-2 and de-AT have their uses.) The order of umlauts etc. should be ok. [ß] In tex/context/base/mkiv/sort-lan.lua, ß is replaced by s, while it should be sorted like ss in default and both DIN versions. (de-AT sorts ss after ß.) [upper-/lowercase] While casing is not mentioned in Wikipedia (https://de.wikipedia.org/wiki/Alphabetische_Sortierung), Duden „Satz und Korrektur“ says: Uppercase characters get sorted the same as lowercase (i.e. mixed), but if both appear, lowercase comes first. ATM all German settings sort lowercase behind uppercase. Generally, default method seems to be not "default" but "before". Does this make sense? If we look at the method presets, there’s none for {zm,pm,zc,zm,uc} (upper like lower, ignore diacritics – basic default for German). """ \mainlanguage[de] \setupregister[index][language=de] \starttext \index{Apfel} \index{Äpfel} \index{apfel} \index{äpfel} \index{aepfel} \index{Aepfel} \index{Ápfel} \index{ápfel} \page \completeindex \stoptext """ default order should be: aepfel Aepfel apfel Apfel äpfel Äpfel ápfel Ápfel aqua DIN 5007-2 sorts like: aepfel Aepfel äpfel Äpfel apfel Apfel ápfel Ápfel aqua de-AT sorts like: aepfel Aepfel apfel Apfel aqua äpfel Äpfel ápfel Ápfel Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Wiki - test/proposal to further clarify documentation
It would be great if the main page actually said what Context does. > On 15/04/2024, at 2:18 AM, Henning Hraban Ramm wrote: > > Hi Garulfo, > > I’m not against the “new order”, but I’d keep the colorful subject tiles. > Different accesses are good IMO (as long as it doesn’t get to convoluted). > > I’d say updating, sorting, restructuring pages is more important than a new > start page. > > Yes, please sort out reference vs. tutorials! > > Often examples make sense in the reference pages, so the distinction is a bit > fuzzy, but there are enough where a subject/tutorial page would make more > sense than examples spread over several single command pages. > > We could also define if the “main” reference page (with examples) is > \definestuff, \setupstuff, or \stuff – IMO \setupstuff makes the most sense, > since usually the others inherit from it. > > Often enough, parameters aren’t explained in the reference pages; sometimes > you can find examples using them, but there are too many holes. I tried to > fix that where I could, but too often I don’t understand enough of the > sources to make sense of some setting. > > For wiki contributors, it might make sense to combine the markup pages – in > many pages e.g. is used where would make more > sense; often \starttext … \stoptext is not necessary and just blows up > examples; markup is generally somewhat chaotic (e.g. , , or ``?). > > Hraban > >> Am 14.04.24 um 13:21 schrieb garu...@azules.eu: >> I just discover the Diátaxis documentation framework : >> - https://www.diataxis.fr/ >> - 30min video : "What nobody tells you about documentation", >> https://www.youtube.com/watch?v=t4vKPhjcMZg , from Daniele Procida at PyCon >> 2017 >> As I understand it, it can help both readers and writers of the >> documentation by clarifying the purpose of each element. >> So I started a potential new "welcome page" : >> https://wiki.contextgarden.net/Main_Page2 >> The main lines would be : >> - Tutorials: installation pages, step by step examples >> - How-to guides: most of the existing wiki pages which are not >> https://wiki.contextgarden.net/Commands/ ... >> - Discussions and manuals: most of the existing manuals >> - Reference : the pages dedicated to commands which already include link to >> mailing list, stack exchange, ConTeXt's source >> - https://wiki.contextgarden.net/Category:Commands >> - https://wiki.contextgarden.net/Special:PrefixIndex?prefix=Command%2F >> To match the logic of Diátaxis, maybe some material from command pages >> should be moved from "Reference" to "How-to guides", >> for example, when the examples go beyond "pure description" and begin to >> deal with "how-to" cases, e.g. : >> - Reference for setuphead: https://wiki.contextgarden.net/Command/setuphead >> - How-to guides for headings: https://wiki.contextgarden.net/Titles >> If it make sense, and according to your feedbacks, I can continue to >> reallocate existing contents. >> Thanks for your feedback and thoughts. >> Garulfo >> ___ >> If your question is of interest to others as well, please add an entry to >> the Wiki! >> maillist : ntg-context@ntg.nl / >> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl >> webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) >> archive : https://github.com/contextgarden/context >> wiki : https://wiki.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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) > archive : https://github.com/contextgarden/context > wiki : https://wiki.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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Wiki - test/proposal to further clarify documentation
Hi Garulfo, I’m not against the “new order”, but I’d keep the colorful subject tiles. Different accesses are good IMO (as long as it doesn’t get to convoluted). I’d say updating, sorting, restructuring pages is more important than a new start page. Yes, please sort out reference vs. tutorials! Often examples make sense in the reference pages, so the distinction is a bit fuzzy, but there are enough where a subject/tutorial page would make more sense than examples spread over several single command pages. We could also define if the “main” reference page (with examples) is \definestuff, \setupstuff, or \stuff – IMO \setupstuff makes the most sense, since usually the others inherit from it. Often enough, parameters aren’t explained in the reference pages; sometimes you can find examples using them, but there are too many holes. I tried to fix that where I could, but too often I don’t understand enough of the sources to make sense of some setting. For wiki contributors, it might make sense to combine the markup pages – in many pages e.g. is used where would make more sense; often \starttext … \stoptext is not necessary and just blows up examples; markup is generally somewhat chaotic (e.g. , , or ``?). Hraban Am 14.04.24 um 13:21 schrieb garu...@azules.eu: I just discover the Diátaxis documentation framework : - https://www.diataxis.fr/ - 30min video : "What nobody tells you about documentation", https://www.youtube.com/watch?v=t4vKPhjcMZg , from Daniele Procida at PyCon 2017 As I understand it, it can help both readers and writers of the documentation by clarifying the purpose of each element. So I started a potential new "welcome page" : https://wiki.contextgarden.net/Main_Page2 The main lines would be : - Tutorials: installation pages, step by step examples - How-to guides: most of the existing wiki pages which are not https://wiki.contextgarden.net/Commands/ ... - Discussions and manuals: most of the existing manuals - Reference : the pages dedicated to commands which already include link to mailing list, stack exchange, ConTeXt's source - https://wiki.contextgarden.net/Category:Commands - https://wiki.contextgarden.net/Special:PrefixIndex?prefix=Command%2F To match the logic of Diátaxis, maybe some material from command pages should be moved from "Reference" to "How-to guides", for example, when the examples go beyond "pure description" and begin to deal with "how-to" cases, e.g. : - Reference for setuphead: https://wiki.contextgarden.net/Command/setuphead - How-to guides for headings: https://wiki.contextgarden.net/Titles If it make sense, and according to your feedbacks, I can continue to reallocate existing contents. Thanks for your feedback and thoughts. Garulfo ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Back in the 90s
On 4/13/2024 2:12 PM, Riviera Taylor wrote: Hello, I was reading about the history of ConTeXt in the Not So Short Introduction To ConTeXt and I have a historical question. I noticed that the PDF specification was published in 1993 yet ConTeXt was invented in 1991. The book suggests that PDF output was handled by the PdfTeX engine in MKII in 2005. What sort of output did the software produce before PdfTeX was introduced? Was this the same as the output produced by the software before the publication of the PDF specification? 2005 is when we started with luatex which is a follow up on pdftex, and pdftex is more a mid 90's thing; we immediately adopted pdftex (which made some believe that context depended on pdftex which is not true) anyway, we started with dvi which needs a postprocessor to go to some printer format like specific hp or more general postscript but also can drive viewers we went from epson dot matrix printer -> early 300 dpi laser -> 600 dpi laser printer -> high speed oce 512 dpi printer (metric) -> high speed oce 600 dpi printer (+ crappy canon color laser printer) -> fast page-wide hp color inkjet office printer in mkii all is controlled by backend drivers, that use so called specials to support color, hyperlinks, images so a workflow can have - dvipsone : high quality postscript - dviwindo : viewer with typeone support and hyperlinks - acrobat : postscript to pdf and as all these external backends have their demands we could handle all these things in an abstract way (that way one could also drive printer properties like duplex or paper bins etc from a tex job) that meant that when pdf came around we could almost immediately support most of the interactive features in a dvi -> ps -> acrobat workflow when pdftex came around the intermediate step of postscript could be avoided which btw was also possible with dvipdfm(x) so we also supported that so to summarize, it went from tex -> dvi -> printer format tex -> dvi -> postscript -> more generic printer format tex -> dvi -> pdf -> print from acrobat tex -> pdf -> print from pdf viewer in the meantime we are pdf (as from that one can produce other formats) Hans (btw, the fact that we could easily support pdf was also a reason why at that time some adobe folk in nl used documents produced by context to show somewhat extrems usage of interactive features, thanks to the fact that tex can adapt to such new situations, also via the dvi route in this case with pdfmarks; at that time pdf usage - and features - was a bit more dualistic: ps replacement format versus storage and preview format, but that's a different story; but it still shows in how the standard evolved) - 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Back in the 90s
Hello, I was reading about the history of ConTeXt in the Not So Short Introduction To ConTeXt and I have a historical question. I noticed that the PDF specification was published in 1993 yet ConTeXt was invented in 1991. The book suggests that PDF output was handled by the PdfTeX engine in MKII in 2005. What sort of output did the software produce before PdfTeX was introduced? Was this the same as the output produced by the software before the publication of the PDF specification? Kind regards, Riviera she, her, hers https://wiki.contextgarden.net/User:River ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: last page number for a list
Hi, Bruce— This does not quite work—the page numbers are those of the first page of the chapter, not the last. But thanks for the tip about \writetolist. Perhaps I can get that to work. What I need are ToC entries like AuthorName ShortTitle 1–6 I need this pagination because one of the requirements of continuous publication on the OJS is that once an item is published changes are not permitted. So I cannot go with normal continuous publication since, for us anyway, items are not processed in strict sequential order (e,g., we may have, paper+paper+ review+paper...) If it helps: I currently have \startFMTitle[reference=\Reference, title={}][itemAuthor=AuthorName, itemTitle=ShortTitle,...] \setuplist[FMTitle][state=start, alternative=startendfmpages, criterium=all,] (\Reference is defined at the in the preamble to input of the file/component.) \definelistalternative[startendfmpages][renderingsetup=list:startendfmpages] \startsetups[list:startendfmpages] \structurelistuservariable{itemAuthor}\crlf \structurelistuservariable{itemTitle}\hfill% \at[\currentlistentrypagenumber]–\at[\lastpagenumber] \vglue1pc \stopsetups where I have \reference[\lastpagenumber]{} at the end of the file. But this gives me ??–viii (the viii is correct and interactive) for the FMTitle. Sadly the entries for all my other Titles (SourceTitle, StudyTitle...) is ??–viii. (Each title is a modified chapter.) Curiously, \at[\Reference]–\convertnumber{r}{\lastpagenumber} and \at[\Reference]–\at[\lastpagenumber] work properly in the body text. The overall structure is project-product sort with many components in the product. This is probably TMI. The bottom line is that I am truly stumped. All best, Alan On Wed, Apr 3, 2024 at 6:56 AM Bruce Horrocks wrote: > > > > On 30 Mar 2024, at 19:59, Alan Bowen wrote: > > > > How can I get the last page number of a chapter for a list (ToC)? > > > > Outside of a list, I use \lastpagenumber. > > But that does not work in a list such as the ToC. > > > > Any tips or pointers will be gladly received. > > > I'm not quite sure what you want to do with these numbers: something like > printing out a contents page but instead of the start page of a chapter it > shows the last page of the chapter? > > If so then try creating a custom list and use \writetolist immediately > before each \stopchapter command? > > \definelist[LastPages][criterium=all] > \starttext > \completecontent > \page > \completelist[LastPages] > \page > \dorecurse{10}{ > \startchapter[title={This is my chapter}] > This is a chapter\par \dorecurse{6}{\input knuth } \input > math-kontinuitet-sv > > \writetolist[LastPages]{3.}{\namedstructurevariable{chapter}{title}} > \stopchapter > } > \stoptext > > But I can't get the number option of \writetolist to work - the "3." above > is ignored. :-( > > — > Bruce Horrocks > Hampshire, UK > > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) > archive : https://github.com/contextgarden/context > wiki : https://wiki.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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] context editor support / syntax highlighting for Pulsar
Hi Hans (et al.), find attached a slightly extended version of the "interface" script that can also generate the list of commands in cson format for Pulsar/Atom. It just creates a basic list of commands for syntax highlighting; for a complete plugin, "grammars" and "settings" are missing, see https://codeberg.org/fiee/language-context (Yes, this approach is oldfashioned and a plugin could do a lot more, but I don’t speak TypeScript.) The generated cson file is for "snippets", like in: https://codeberg.org/fiee/language-context/src/branch/master/snippets/language-context.cson There, I added information from the interface files and also from the wiki, if existing. I don’t know how to do that in the lua script. --- function flushers.pulsar(collected) for interface, whatever in next, collected do local commands = whatever.commands local environments = whatever.environments local result, r = { }, 0 r = r + 1 ; result[r] = "'.text.tex.context':\n" for i=1,#commands do r = r + 1 ; result[r] = format("\t'\\%s':\n",commands[i]) r = r + 1 ; result[r] = format("\t\tprefix: '%s'\n",commands[i]) -- can we have some information? --r = r + 1 ; result[r] = format("\t\tdescription: 'level: primitive; interface: i-tex.xml'",'') -- no URL if command starts with "stop" r = r + 1 ; result[r] = format("\t\tdescriptionMoreURL: 'https://wiki.contextgarden.net/Command/%s'\n",commands[i]) end io.savedata(format("language-context-%s.cson",interface), concat(result),"\n") end end --- Also, the "en" interface is empty, everything is in "common", so the iteration over interfaces makes no sense here. Actually, Atom/Pulsar could work with a tree sitter parser (https://github.com/pmazaitis/tree-sitter-context), but I don’t know how to use it. [TextMate] For TextMate and other editors that use TM bundles, it might make sense to update https://github.com/pgundlach/context.tmbundle At least the list of commands could be automatically converted from the interface files, but it’s more involved than what mtx-interface does. [Visual Studio Code / VSCodium] BTW, is the ConTeXt language server for VS Code public anywhere? (Ramkumar KB promised…) Or is "mtxrun --script=vscode --lsfile" the same? Hrabanif not modules then modules = { } end modules ['mtx-cache'] = { version = 1.001, comment = "companion to mtxrun.lua", author= "Hans Hagen, PRAGMA-ADE, Hasselt NL", copyright = "PRAGMA ADE / ConTeXt Development Team", license = "see context related readme files" } local concat, sort, insert = table.concat, table.sort, table.insert local gsub, format, gmatch, find, upper = string.gsub, string.format, string.gmatch, string.find, string.upper local utfchar, utfgsub = utf.char, utf.gsub local sortedkeys, sortedhash, serialize = table.sortedkeys, table.sortedhash, table.serialize local helpinfo = [[ mtx-interface ConTeXt Interface Related Goodies 0.14 generate context mkii interface files equals generate scite interface generate bbedit interface files generate jedit interface files generate pulsar/atom interface files generate textpad interface files generate vim interface files create text files for commands and environments report commands to the console generate check file report the meaning of commands show the internal representation of commands replace named characters by utf preprocess mkvi files to tex files [force,suffix] use given suffix for output files force action even when in doubt a pattern for meaning lookups ]] local application = logs.application { name = "mtx-interface", banner = "ConTeXt Interface Related Goodies 0.13", helpinfo = helpinfo, } local report = application.report scripts = scripts or { } scripts.interface = scripts.interface or { } local flushers = { } local userinterfaces= { 'en','cs','de','it','nl','ro','fr','pe' } local messageinterfaces = { 'en','cs','de','it','nl','ro','fr','pe','no' } local function collect(filename,class,data) if data then local result, r = { }, 0 for name, list in sortedhash(data) do r = r + 1 ; result[r] = format("keywordclass.%s.%s=\\\n",class,name) for i=1,#list do if i%5
[NTG-context] Re: how to include an an svg file?
Thanks. I appreciate your work You are correct. when i convert this svg to pdf via inkscape it works like a charm. But what is standard way of including an svg file with context if we want to inkscape render the images? On Tue, 12 Mar 2024, 21:51 Hans Hagen, wrote: > On 3/12/2024 2:53 PM, seyal zavira wrote: > > thanks for your reply > > > > yes but i don't have problem with regular svgs but when svgs has > > gradient color it does not produce any color in output. > > > > you can see my svg in attachment. > svg gets worse and worse (esp the inheritance model) ... anyway, i can > sort of get the gradient but no stepwise gradient opacity (in pdf and > i'm not going to emulate something) (it's not the most interesting stuff > to work on unpaid) > > but ... i don't know if fixing this breaks something else > > 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) > archive : https://github.com/contextgarden/context > wiki : https://wiki.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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: how to include an an svg file?
On 3/12/2024 2:53 PM, seyal zavira wrote: thanks for your reply yes but i don't have problem with regular svgs but when svgs has gradient color it does not produce any color in output. you can see my svg in attachment. svg gets worse and worse (esp the inheritance model) ... anyway, i can sort of get the gradient but no stepwise gradient opacity (in pdf and i'm not going to emulate something) (it's not the most interesting stuff to work on unpaid) but ... i don't know if fixing this breaks something else 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Creating a module for calligraphy practice templates
Hello, list! I've been working on a module to typeset calligraphy practice templates using ConTeXt and MetaPost. You are welcome to check it out on github: https://github.com/conradolandia/pauta I'm not including a MWE because the repository has all the current code. I hope this is fine. I did not want to clutter the list with too much text. The module is only a single file (t-pauta.mkxl) and some examples of use and documentation that are still somewhat unfinished, but I've tried to document the source code as much as I could. If you need clarification about anything, please let me know. (At the root of the repository, there is a file build.lua, that is not really part of the project, just a custom tool I use to process the files, a sort of minimal build system. You can ignore it.) I welcome any kind of suggestions and dire warnings. I've tried to read the wiki and the manuals carefully and made as many tests as possible, and in general it works fine, but I have ADHD and things frequently get over my head. There are still some things that don't work as they should, and things that need improvement: 1. I use top/bottom areas to display some info. These areas are not being handled properly so far. For example, if I place a chapter before the Pauta macro invocation, there will be data on the top and bottom areas in the last page of the chapter. I've tried using \page and clearing the areas, which feels like cheating, but still does not work well. Any ideas on how to better handle this are more than welcome. 2. I'm using what I found at https://wiki.contextgarden.net/System_Macros/Handling_Arguments and \getparameters to handle the arguments for my Pauta macro, but today I found out about \processaction at https://wiki.contextgarden.net/Module_Parameters and I'm not really sure if I should change my module to work with this instead of \getparameters. In general, after checking the source code of several modules, I'm not really sure how much I have to follow the guidelines at https://wiki.contextgarden.net/Module_Parameters or if those are the most current recommendations. 3. I'm including in my module the code of the file hatching.mp that can be found at https://ctan.org/tex-archive/graphics/metapost/contrib/macros/hatching. I did this for portability reasons, since it's less than 70 lines and has not been updated in 20 years. But if it's better to have this in a separate file, please let me know. Also, if a better method to create pattern filled paths is available, please let me know, I confess I didn't look too much into it yet. This has solved my requirement so far. 4. I want to be as close as possible to the new LMTX syntax and way of doing things. so If you think I'm doing something in anachronistic ways, please let me know. In general, if someone wants to check it out and provide feedback so I can improve it, with the objective of eventually being shared on modules.contextgarden.net, will be much appreciated. Thank you for your time, and have a great week! -- Andrés Conrado Montoya Andi Kú andresconr...@gmail.com http://sesentaycuatro.com http://messier87.com http://chiquitico.org Los fines no justifican los medios, porque la medida verdadera de nuestro carácter está dada por los medios que estamos dispuestos a utilizar, no por los fines que proclamamos. “You develop an instant global consciousness, a people orientation, an intense dissatisfaction with the state of the world, and a compulsion to do something about it. From out there on the moon, international politics look so petty. You want to grab a politician by the scruff of the neck and drag him a quarter of a million miles out and say, ‘Look at that, you son of a bitch.’” — Apollo 14 astronaut Edgar Mitchell ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: new context option
Thanks Denis… I fixed the error. Sure, I had a sort of two years time jet lag :-) Best regards: Otared > On 24 Feb 2024, at 11:11, Denis Maier via ntg-context > wrote: > > Hi Otared > Shouldn't the version be 2024? > Best > Denis > >> Otared Kavian hat am 24.02.2024 10:40 CET geschrieben: >> >> >> Hi Hans, >> >> Thanks for this nice option: it comes handy for many situations. >> >> I added a page for it: >> https://wiki.contextgarden.net/find <https://wiki.contextgarden.net/find> >> >> Best regards: Otared >> >>> On 22 Feb 2024, at 18:40, Hans Hagen >> <mailto:j.ha...@xs4all.nl>> wrote: >>> Hi, >>> >>> As I needed to check some commands i added this: >>> >>> context --find="%\starttabulate" >>> >>> which will (should) give a list of lines/files in the documentation where >>> this command is used. >>> >>> Hans >>> >>> - >>> Hans Hagen | PRAGMA ADE >>> Ridderstraat 27 | 8061 GH Hasselt | The Netherlands >>> tel: 038 477 53 69 | www.pragma-ade.nl <http://www.pragma-ade.nl/> | >>> www.pragma-pod.nl <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 <mailto:ntg-context@ntg.nl> / >>> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl >>> <https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl> >>> webpage : https://www.pragma-ade.nl <https://www.pragma-ade.nl/> / >>> https://context.aanhet.net <https://context.aanhet.net/> (mirror) >>> archive : https://github.com/contextgarden/context >>> <https://github.com/contextgarden/context> >>> wiki : https://wiki.contextgarden.net <https://wiki.contextgarden.net/> >>> ___ >> >> Otared Kavian >> e-mail: ota...@gmail.com <mailto: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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl >> webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) >> archive : https://github.com/contextgarden/context >> wiki : https://wiki.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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) > archive : https://github.com/contextgarden/context > wiki : https://wiki.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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: chronological TOC
Den tis 30 jan. 2024 09:06Henning Hraban Ramm skrev: > Am 29.01.24 um 21:45 schrieb jbf: > > And indeed this is the best solution I could find, though it obviously > > meant that something like '29 April 2017' was no good for sorting on... > > it has to be the US date format YY-MM-DD > > How did you expect a simple sorting algorithm to sort by verbose dates? > BTW, -MM-DD is ISO 8601. > Just out of curiosity from an occasional user: is it possible in indices to specify a separate sort key and displayed term as you can with makeindex? I remember back in the nineties I used numeric sort keys for a Sanskrit index where the letters were Latin (with lots of diacritics) but the sort order was Indic (a, ā, i, ī, ... k, kh, g, gh, ...). I assigned a two-digit "number" (01, 02, 03, ...) to each grapheme and the sort key consisted of hyphen-separated such numbers. > Hraban > > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) > archive : https://github.com/contextgarden/context > wiki : https://wiki.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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: chronological TOC
Am 29.01.24 um 21:45 schrieb jbf: And indeed this is the best solution I could find, though it obviously meant that something like '29 April 2017' was no good for sorting on... it has to be the US date format YY-MM-DD How did you expect a simple sorting algorithm to sort by verbose dates? BTW, -MM-DD is ISO 8601. Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: chronological TOC
And indeed this is the best solution I could find, though it obviously meant that something like '29 April 2017' was no good for sorting on... it has to be the US date format YY-MM-DD Julian On 30/1/24 06:15, Wolfgang Schuster wrote: Henning Hraban Ramm schrieb am 27.01.2024 um 10:05: Am 26.01.24 um 23:46 schrieb jbf: I wonder if someone can point me in the right direction for a separate TOC which needs to be in chronological order at the back of the book (i.e. not in page number order, although I need the page numbers to show up in the TOC. There is the normal TOC at the front of the book, according to chapter titles. I have succeeded in defining a separate TOC to place at the back, but have not succeeded in the chronological order! Here is what I have done: \definelist[chron][criterium=all,alternative=c] At the back of the book: \placelist[chron][criterium=all] Then at an appropriate point after each \startchapter I have placed (as an example): \writetolist[chron]{}{{\bf 29 April 2017,} Speech, Panama City} This gives me my list, but in page number order. How do I get the date (e.g. 29 April 2017) to be the ordering factor in the list. I assume it will be something to do with criterium, but am clueless at the moment on how to indicate this. I don’t know if it works this way (the wizards will know a way), but for special needs I’m (ab)using indexes: just add something like \index[2017-04-29]{Speech, Panama City} to your chapter command and setup the index at will. Lists have a sort option but this is no use here because you can't use the title to have a chronological sorted list. \starttext \placelist[section][order=title] \section{Hans} \section{Peter} \section{Anton} \stoptext Using the register mechanism as you suggest seems to be the best option in this case. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: chronological TOC
On 29 Jan 2024, at 19:15, Wolfgang Schuster wrote: > > Henning Hraban Ramm schrieb am 27.01.2024 um 10:05: >> Am 26.01.24 um 23:46 schrieb jbf: >>> I wonder if someone can point me in the right direction for a separate TOC >>> which needs to be in chronological order at the back of the book (i.e. not >>> in page number order, although I need the page numbers to show up in the >>> TOC. There is the normal TOC at the front of the book, according to chapter >>> titles. >>> >>> I have succeeded in defining a separate TOC to place at the back, but have >>> not succeeded in the chronological order! Here is what I have done: >>> >>> \definelist[chron][criterium=all,alternative=c] >>> >>> At the back of the book: >>> >>> \placelist[chron][criterium=all] >>> >>> Then at an appropriate point after each \startchapter I have placed (as an >>> example): >>> >>> \writetolist[chron]{}{{\bf 29 April 2017,} Speech, Panama City} >>> >>> This gives me my list, but in page number order. How do I get the date >>> (e.g. 29 April 2017) to be the ordering factor in the list. I assume it >>> will be something to do with criterium, but am clueless at the moment on >>> how to indicate this. >> I don’t know if it works this way (the wizards will know a way), but for >> special needs I’m (ab)using indexes: >> just add something like \index[2017-04-29]{Speech, Panama City} to your >> chapter command and setup the index at will. > > Lists have a sort option but this is no use here because you can't use the > title to have a chronological sorted list. > > \starttext > > \placelist[section][order=title] > > \section{Hans} > > \section{Peter} > > \section{Anton} > > \stoptext > > Using the register mechanism as you suggest seems to be the best option in > this case. The order= mechanism doesn't seem to work for \definelist lists as opposed to the built-in ones, viz: \definelist[chron] \starttext \placelist[section][order=title] \section{Hans} \writetolist[chron]{}{Hans} \section{Peter} \writetolist[chron]{}{Peter} \section{Anton} \writetolist[chron]{}{Anton} \placelist[chron][criterium=all,order=title] \stoptext — Bruce Horrocks Hampshire, UK ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: chronological TOC
Henning Hraban Ramm schrieb am 27.01.2024 um 10:05: Am 26.01.24 um 23:46 schrieb jbf: I wonder if someone can point me in the right direction for a separate TOC which needs to be in chronological order at the back of the book (i.e. not in page number order, although I need the page numbers to show up in the TOC. There is the normal TOC at the front of the book, according to chapter titles. I have succeeded in defining a separate TOC to place at the back, but have not succeeded in the chronological order! Here is what I have done: \definelist[chron][criterium=all,alternative=c] At the back of the book: \placelist[chron][criterium=all] Then at an appropriate point after each \startchapter I have placed (as an example): \writetolist[chron]{}{{\bf 29 April 2017,} Speech, Panama City} This gives me my list, but in page number order. How do I get the date (e.g. 29 April 2017) to be the ordering factor in the list. I assume it will be something to do with criterium, but am clueless at the moment on how to indicate this. I don’t know if it works this way (the wizards will know a way), but for special needs I’m (ab)using indexes: just add something like \index[2017-04-29]{Speech, Panama City} to your chapter command and setup the index at will. Lists have a sort option but this is no use here because you can't use the title to have a chronological sorted list. \starttext \placelist[section][order=title] \section{Hans} \section{Peter} \section{Anton} \stoptext Using the register mechanism as you suggest seems to be the best option in this case. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: LuaMetaTeX code
On 1/19/2024 9:26 AM, Shiv Shankar Dayal wrote: Dear Hans, I saw the C code of LuaMetaTeX and I saw a lot of gotos which is not good coding practice. These potions of code which have goto should be refactored. I am a C programmer, but I know very little of TeX. If you can point me towards where should I start for TeX(perhaps TeX Book or TeX for the Impatient), I can help with refactoring of code to make is more efficient/easier. Luametatex evolves out of traditional tex so we have/keep some and although i grew up in the 'anti goto' times (pascal) there are plenty cases where i see no problem. Occasionaly I clean up such bits (when it makes sense). And I'm not going to enter coding practice discussions. Forget about refactoring ... there has already be done a lot of that and we want to stay sort of close to the original (also due to doicumentation). I know the code quite wel now and refactoring is for me counter productive. These are projects running for decades and engines need to be stable so changes come slow. You can compare the luanmetatex source to luatex and pdftex to see how we proiceed. 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://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: LMTX schema for poster
Am 11.01.24 um 22:04 schrieb Bruce Horrocks: 1. "ConTeXt" should be the biggest word - or as an obvious title for the poster, away from the actual drawing. This will be only a part of the poster. I imagine a 3x3 grid with a title above and some information (website etc.) below. The 9 elements of the grid will be - such a diagram that explains the building blocks / general workflow – the diagram of the layout areas – the project structure (environment, product, component) – some examples of code and results I wanted to use the “christmas card” squares for borders around and inbetween. 2. Don't add the "MkXL" bit - it's a distracting detail that no one needs to know at this stage. Also it looks like "Mk 40" in Roman numerals, or extra large. ok. But “extra large” is intentional, I guess. 3. I though Hans had stopped using the TeX style capitalisation now i.e. just "Context"? Hans uses different versions. We use “context group”, but I keep ConTeXt; esp. in the context of LaTeX (DANTE booth!), I’d like to stress that it’s still TeX. 4. It's not clear whether the intersecting boxes are simply decorative or meant to present some sort of logical structure. I'm happy for it to be decorative, in which case fewer labels might be better. ConTeXt “wraps” the LuaMetaTeX binary, since it handles the input as well as the output. I wasn’t sure how to show what controls what. 5. Similar to the box structure comment is that it's not clear which words I should be looking at. Ask yourself: what word(s) do I want the viewer to remember when they walk away? 6. Consider swapping the TeX and MetaPost circles so that Lua, MetaPost and TeX are read left to right as they appear in the acronym LMTX. Perhaps invert the "triangle" so that there are two circles at the top. My first idea was to show that TeX and MP are under Lua control, but Hans disagreed. So while the 3 subsystems interact, I wanted to keep TeX on top. 7. It doesn't really tell the viewer that Context is a typesetting system - it looks like it is a system for producing XMLs and PDFs. (Which is what it is but... much more) I’ll show some typography on the poster, and there will be books around. 8. Don't forget space for a URL and/or a QR code to the Contextgarden website. See above. Sorry if the above sounds harsh - not meant to be - just brain storming. No problem, thank you! I have a suggestion though. Use the Christmas card code / memory game code to produce patterns to use as the dots in the QR code? If the QR is large enough for people to distinguish the individual dots then it would provide a talking point? Or maybe have a copy of the card game to hand and challenge them to find a randomly drawn card in the QR code? I don’t think I understand your intention. I wouldn’t construct a QR code out of other stuff, it would become too big. Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: LMTX schema for poster
> On 11 Jan 2024, at 19:15, vm via ntg-context wrote: > > > > On 11/01/2024 19:52, Henning Hraban Ramm wrote: >> Here’s a preliminary schema of LMTX. What do you think? > > as is, it is difficult to understand where to look. > what does is describe? > > e.g. what is the distinction between the 'source' (lua tex) and the > 'resources' (fonts icc lib) and the 'frontend' (tex xml png ...mp) > (no lua?) Agreed. In no particular order: 1. "ConTeXt" should be the biggest word - or as an obvious title for the poster, away from the actual drawing. 2. Don't add the "MkXL" bit - it's a distracting detail that no one needs to know at this stage. Also it looks like "Mk 40" in Roman numerals, or extra large. 3. I though Hans had stopped using the TeX style capitalisation now i.e. just "Context"? 4. It's not clear whether the intersecting boxes are simply decorative or meant to present some sort of logical structure. I'm happy for it to be decorative, in which case fewer labels might be better. 5. Similar to the box structure comment is that it's not clear which words I should be looking at. Ask yourself: what word(s) do I want the viewer to remember when they walk away? 6. Consider swapping the TeX and MetaPost circles so that Lua, MetaPost and TeX are read left to right as they appear in the acronym LMTX. Perhaps invert the "triangle" so that there are two circles at the top. 7. It doesn't really tell the viewer that Context is a typesetting system - it looks like it is a system for producing XMLs and PDFs. (Which is what it is but... much more) 8. Don't forget space for a URL and/or a QR code to the Contextgarden website. Sorry if the above sounds harsh - not meant to be - just brain storming. I have a suggestion though. Use the Christmas card code / memory game code to produce patterns to use as the dots in the QR code? If the QR is large enough for people to distinguish the individual dots then it would provide a talking point? Or maybe have a copy of the card game to hand and challenge them to find a randomly drawn card in the QR code? — Bruce Horrocks Hampshire, UK — Bruce Horrocks Hampshire, UK ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Seeking advice for module that draws globes
Am 19.12.23 um 15:27 schrieb Gavin via ntg-context: This was very helpful. I think I have everything organized according to TDS now. Thank you for the feedback! Sort these files into folders according to TDS (TeX directory structure) – just have a look at the distribution to understand what goes where. This was a dead end for me. I didn’t know where to look, or what to look for. I recommend adding these items, modified from your email: – Module code and data files go into tex/context/third/luageo – Documentation files go into doc/context/third/luageo Those instructions were very easy to follow. Maybe you need to elaborate for more general cases, but that was everything I needed to know about TDS. Pointing to a specific example, as you did in the email, is also helpful. Also look at the structure of other modules in the distribution, or e.g. https://codeberg.org/fiee/context-simpleslides Ok, I added that to the wiki page and fixed a few other things. I haven’t learned to make wiki contributions myself yet. It is nearing the top of my to-do list. First create an account (link in the upper right corner). Anonymous editing is disabled due to spam. You can create a new page just by calling it, e.g. https://wiki.contextgarden.net/My_new_page and then click on "create this page". Have a look at https://wiki.contextgarden.net/Wiki:Editing The page links to general MediaWiki syntax but also explains the special formatting of our wiki. Usually it makes sense to link _to_ your new page from a related (overview) page and _from_ your page back to that. Command reference pages are special in that they read data from interface files and display a form to fill in explanations and examples. (That doesn’t yet work with interface files of modules.) Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Seeking advice for module that draws globes
Hi Hraban, This was very helpful. I think I have everything organized according to TDS now. > Have a look at > https://wiki.contextgarden.net/Modules#Module_writing_guidelines > … and please tell me, if you miss anything or find errors! Regarding TDS, the wike page says: > Sort these files into folders according to TDS (TeX directory structure) – > just have a look at the distribution to understand what goes where. This was a dead end for me. I didn’t know where to look, or what to look for. I recommend adding these items, modified from your email: > – Module code and data files go into tex/context/third/luageo > – Documentation files go into doc/context/third/luageo Those instructions were very easy to follow. Maybe you need to elaborate for more general cases, but that was everything I needed to know about TDS. Pointing to a specific example, as you did in the email, is also helpful. > Also look at the structure of other modules in the distribution, or e.g. > https://codeberg.org/fiee/context-simpleslides I haven’t learned to make wiki contributions myself yet. It is nearing the top of my to-do list. Thanks! Gavin ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Offline documentations
Am 02.10.23 um 10:37 schrieb Juliano David Hilario: Also, if I were to do that, I might just make at the moment some sort of search engine, or grep it when I need something, then view whatever I need in the wiki. I'm just wondering if it's fine if I were to send many GET requests and obtain a copy of the wiki. Would that act like a DDoS attack? For a DDoS attack you’d need more (for one, it’s not distributed, so at most DoS). I assume it should be ok if you don’t do it too often (like hourly). And of course you’re expected to report wrong/outdated information and to help with updating it. 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: Offline documentations
Also, if I were to do that, I might just make at the moment some sort of search engine, or grep it when I need something, then view whatever I need in the wiki. I'm just wondering if it's fine if I were to send many GET requests and obtain a copy of the wiki. Would that act like a DDoS attack? On Mon, Oct 2, 2023, 4:32 PM Juliano David Hilario < yellowcutterpil...@gmail.com> wrote: > If I were to download the entire wiki with the exception of the discussion > files and the user pages, do you think it would be wise? I would try to > make it dynamically updatable too, if possible, and also try to make as > offline-friendly as the Python docs. Do you think that would be wise? Thank > you for your help, the wiki is very useful. > > On Mon, Oct 2, 2023, 4:29 PM Henning Hraban Ramm wrote: > >> Am 02.10.23 um 09:59 schrieb Juliano David Hilario: >> > Is there a way to view the documentations offline? Sort of the way the >> > Python docs work, where you could just search for a subject and it will >> > function regardless of internet connection. If it's not yet working, I >> > could contribute some of my time if it's not that a heavy of a task. >> > Something like this would be convient, since some like to search by >> > topic. Though since we probably have the common ground of liking >> > writing, we, or most of us, prefer referring to current manuals out >> there. >> >> Well, the documentation is spread over several PDF files, and the wiki >> is not usable offline, of course. >> >> You can grep through the sources of the manuals (in >> texmf-context/doc/context/sources). >> >> And there is a command reference browser: >> >> mtxrun --script server --auto >> >> and the open >> http://localhost:8088/mtx-server-ctx-help.lua >> >> But since it just shows what’s in the interface files, it lacks any >> explanations. >> >> 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] Re: Offline documentations
If I were to download the entire wiki with the exception of the discussion files and the user pages, do you think it would be wise? I would try to make it dynamically updatable too, if possible, and also try to make as offline-friendly as the Python docs. Do you think that would be wise? Thank you for your help, the wiki is very useful. On Mon, Oct 2, 2023, 4:29 PM Henning Hraban Ramm wrote: > Am 02.10.23 um 09:59 schrieb Juliano David Hilario: > > Is there a way to view the documentations offline? Sort of the way the > > Python docs work, where you could just search for a subject and it will > > function regardless of internet connection. If it's not yet working, I > > could contribute some of my time if it's not that a heavy of a task. > > Something like this would be convient, since some like to search by > > topic. Though since we probably have the common ground of liking > > writing, we, or most of us, prefer referring to current manuals out > there. > > Well, the documentation is spread over several PDF files, and the wiki > is not usable offline, of course. > > You can grep through the sources of the manuals (in > texmf-context/doc/context/sources). > > And there is a command reference browser: > > mtxrun --script server --auto > > and the open > http://localhost:8088/mtx-server-ctx-help.lua > > But since it just shows what’s in the interface files, it lacks any > explanations. > > 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] Re: Offline documentations
Am 02.10.23 um 09:59 schrieb Juliano David Hilario: Is there a way to view the documentations offline? Sort of the way the Python docs work, where you could just search for a subject and it will function regardless of internet connection. If it's not yet working, I could contribute some of my time if it's not that a heavy of a task. Something like this would be convient, since some like to search by topic. Though since we probably have the common ground of liking writing, we, or most of us, prefer referring to current manuals out there. Well, the documentation is spread over several PDF files, and the wiki is not usable offline, of course. You can grep through the sources of the manuals (in texmf-context/doc/context/sources). And there is a command reference browser: mtxrun --script server --auto and the open http://localhost:8088/mtx-server-ctx-help.lua But since it just shows what’s in the interface files, it lacks any explanations. 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] Offline documentations
Is there a way to view the documentations offline? Sort of the way the Python docs work, where you could just search for a subject and it will function regardless of internet connection. If it's not yet working, I could contribute some of my time if it's not that a heavy of a task. Something like this would be convient, since some like to search by topic. Though since we probably have the common ground of liking writing, we, or most of us, prefer referring to current manuals out there. ___ 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: Table of contents of unnumbered titles
Hi Wolfgang, On Sat, Sep 9, 2023 at 23:12 (+0200), Wolfgang Schuster wrote: > Jim schrieb am 09.09.2023 um 22:34: >> Wolfgang, >> thanks very much for your help. As a long-time plain TeX user, but a >> ConTeXt n00b, that would have taken me a long time to figure out. >> Having said that (and not to be ungrateful), for both of your examples >> below, in my tests only the subsubject shows up in the contents. I tried >> this both with the context distribution (updated a few minutes ago) and >> with the version that is in texlive (also updated a few minutes ago). Do >> all three items show up in your contents listing? > Hi Jim, > both examples worked for me without problems and even the online compiler > on the wiki produces the expected result. Are you sure all 3 \setuphead > lines are in your document? Argh. Mea culpa. My mail program did not show me that your first answer had non-breakable spaces after '[title]' and '[subject]' (but not after '[subsubject]'). And I quickly copied and pasted those into a file without checking the character set. Replacing those with ASCII spaces makes everything work nicely, thanks very much. Amusingly (sort of), there was a bun-fight on the texhax mailing list recently when someone's message came across with non-breakable spaces in it, causing the recipient to complain that something didn't work, when the originator vehemently asserted that it did. (I was neither of those two people, although I did help the originator trace where the nbsp's got into his message.) It's like deja vu all over again. Did you insert your helpful solution into the wiki somewhere, or just test them in the wiki compiler? I just reloaded https://wiki.contextgarden.net/index.php?title=Titles&mobileaction=toggle_view_desktop#Unnumbered_titles_in_table_of_contents and don't see your code there, but since yours does work and those (apparently) do not work, it would be nice to have your code there. Cheers. Jim ___ 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: # verbatim typesetting
Dear Hans, Thank you for your detailed answer. I'll wait then the next upload. Kind regards Marcus Vinicius On Thu, Sep 7, 2023 at 2:36 PM Hans Hagen via ntg-context wrote: > > On 9/7/2023 2:47 PM, Marcus Vinicius Mesquita wrote: > > Dear List, > > > > The MWE below gives a pdf with two #'s instead of only one. Why is that? > > > > \starttext > > > > \startluacode > > context.type("#") > > \stopluacode > > > > \stoptext > because by default tex loves to duplicate hashes when it serializes > token lists > > as this seems to be "the month of the duplicate hashes" i looked it what > we did so far can also work here and i sort of managed although there > might be more cases (when im done with this we probably "have it the > other way around" which could mean adapting some code in the tex-lua > context system that actually depends on duplication or where we work > around it and no longer need to) > > the complication is mostly in moving token lists around, them beign > serialized and deserialized etc but i guesa at some point we'll get > there (original tex doesn't really have this problem because there > serialization hashes will triggere errors in cases where they are not > permitted anyway) > > no upload as i need to test more > > 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 > ___ -- Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o corpo nem seus membros, por ser descanso da alma, primavera do coração, distração do aflito, entretenimento do solitário, e viático do viajante. Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik) ___ 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: # verbatim typesetting
On 9/7/2023 2:47 PM, Marcus Vinicius Mesquita wrote: Dear List, The MWE below gives a pdf with two #'s instead of only one. Why is that? \starttext \startluacode context.type("#") \stopluacode \stoptext because by default tex loves to duplicate hashes when it serializes token lists as this seems to be "the month of the duplicate hashes" i looked it what we did so far can also work here and i sort of managed although there might be more cases (when im done with this we probably "have it the other way around" which could mean adapting some code in the tex-lua context system that actually depends on duplication or where we work around it and no longer need to) the complication is mostly in moving token lists around, them beign serialized and deserialized etc but i guesa at some point we'll get there (original tex doesn't really have this problem because there serialization hashes will triggere errors in cases where they are not permitted anyway) no upload as i need to test more 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: xmldoif: checking for contents of attribute
On 8/25/2023 1:45 PM, denis.ma...@unibe.ch wrote: -Ursprüngliche Nachricht- Von: Hans Hagen Gesendet: Freitag, 25. August 2023 09:06 An: Maier, Denis Christian (UB) ; mailing list for ConTeXt users Betreff: Re: [NTG-context] Re: xmldoif: checking for contents of attribute On 8/25/2023 8:22 AM, denis.ma...@unibe.ch wrote: Thanks for your help. I can use that, but why is this sort of double-checking necessary here? because containsa in a function that has checking while find is just the lua find .. so i've added a check in that one too now but no upload So, that would mean that the double checking is only necessary for find, not for contains. And indeed the example below works. Is that correct or are there any unwanted side-effects? correct and in the next upload i'll also catch the find - 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: xmldoif: checking for contents of attribute
> -Ursprüngliche Nachricht- > Von: Hans Hagen > Gesendet: Freitag, 25. August 2023 09:06 > An: Maier, Denis Christian (UB) ; mailing list for > ConTeXt users > Betreff: Re: [NTG-context] Re: xmldoif: checking for contents of attribute > > On 8/25/2023 8:22 AM, denis.ma...@unibe.ch wrote: > > > Thanks for your help. I can use that, but why is this sort of > > double-checking > necessary here? > > because containsa in a function that has checking while find is just the lua > find > .. so i've added a check in that one too now but no upload > So, that would mean that the double checking is only necessary for find, not for contains. And indeed the example below works. Is that correct or are there any unwanted side-effects? \startxmlsetups xml:test \xmlsetsetup{#1}{*}{-} \xmlsetsetup{#1}{doc|element}{xml:*} \stopxmlsetups \xmlregisterdocumentsetup{test}{xml:test} \startxmlsetups xml:doc \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:element 1 \xmldoifelse{#1}{.[contains(@class,'abc')]}{Yes}{No} \par 2 \xmldoifelse{#1}{.[@class and find(@class,'abc')]}{Yes}{No} \par % runs, but no match \stopxmlsetups \startxmlsetups xml:whatever Yes \stopxmlsetups \startbuffer[test] Yes No \stopbuffer \starttext \xmlprocessbuffer{test}{test}{} \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] Re: xmldoif: checking for contents of attribute
On 8/25/2023 8:22 AM, denis.ma...@unibe.ch wrote: Thanks for your help. I can use that, but why is this sort of double-checking necessary here? because containsa in a function that has checking while find is just the lua find .. so i've added a check in that one too now but no upload 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: xmldoif: checking for contents of attribute
> -Ursprüngliche Nachricht- > Von: Hans Hagen > Gesendet: Donnerstag, 24. August 2023 16:54 > An: ntg-context@ntg.nl > Betreff: [NTG-context] Re: xmldoif: checking for contents of attribute > > On 8/24/2023 4:11 PM, denis.ma...@unibe.ch wrote: > > Hi, > > > > I'm trying to check whether an attribute contains (or, actually starts > > with) a > given string. > \xmldoifelse{#1}{.[@class and contains(@class,'abc')]}{Yes}{No} > \xmldoifelse{#1}{.[@class and find(@class,"abc")]}{Yes}{No} Thanks for your help. I can use that, but why is this sort of double-checking necessary here? \startxmlsetups xml:test \xmlsetsetup{#1}{*}{-} \xmlsetsetup{#1}{doc|element}{xml:*} \stopxmlsetups \xmlregisterdocumentsetup{test}{xml:test} \startxmlsetups xml:doc \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:element 1 \xmldoifelse{#1}{.[@class and contains(@class,'abc')]}{Yes}{No} \par 2 \xmldoifelse{#1}{.[@class and find(@class,"abc")]}{Yes}{No} \par 3 \xmldoifelse{#1}{.[True and contains(@class,'abc')]}{Yes}{No} \par % runs, but no match 4 \xmldoifelse{#1}{.[True and find(@class,"abc")]}{Yes}{No} \par % run, but no match % 5 \xmldoifelse{#1}{.[contains(@class,'abc')]}{Yes}{No} \par % causes an error % 6 \xmldoifelse{#1}{.[find(@class,"abc")]}{Yes}{No} \par % causes an error \stopxmlsetups \startxmlsetups xml:whatever Yes \stopxmlsetups \startbuffer[test] Yes No \stopbuffer \starttext \xmlprocessbuffer{test}{test}{} \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] Re: breakpoints in verbatim text
On 8/18/2023 1:02 PM, Wolfgang Schuster wrote: Alex Leray schrieb am 18.08.2023 um 12:19: Hello Wolfgang, Le 17/08/23 à 18:56, Wolfgang Schuster a écrit : Is it correct all your listing are HTML code and you need line breaks for the entries of the href attributes? The content is from a dutch net-artist artist from the early days of the public web, and is often (volontary) mixing different natural nd machine langages. Not all snippets are HTML, but most of them are some sort of HTML pidgin. I see, the typing environment is in this case the safest option to ensure special characters like % remain i the output. For simple text without special characters you could have switched to the lines environment and use a monospaced but I wouldn't trust it here (even when you enable \asciimode). Syntax highlighting of the code listing isn't needed in your case. No, I don't need syntax highlighting My problem is solved using manual zero width spaces at the moment but I'd be interested to find a more structural solution. Checking at the Context source code I would have thought that breakpoints were possible withing typing env. See https://source.contextgarden.net/tex/context/base/mkiv/buff-ver.mkiv?search=typing#l51 It would be interesting to document on the wiki that behavior, which I can do later when my understanding is better. The typing environment disables the breakpoint (and a few other) mechanism because they can lead to undesired side effects but Hans suggestion to provide a hook which can be used to re-enable the feature, e.g. \startsetups [typing:mine] \setbreakpoints[compound] \stopsetups \setuptyping [CUSTOM] [setups=typing:mine] The only flaw I can see in the suggestion is the use of the \everyinitializeverbatim register because it is used for inline and display verbatim. A better place to add the option is \buff_verbatim_initialize_typing_two for \starttyping and \buff_verbatim_initialize_type_two for \type. ok -- - 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] new upload
Hi, I uploaded a new lmtx (some new - experimental - things will be explained after the ctx meeting), but there's one thing that is somewhat important. In addition to the built in units we can now have so called user units. There is some more info about this in the lowlevel-registers manual. One of the predefined units is 'uu' with an associated \ununit (dimension) variable and it's is also interfaced to metafun. That means that when you use uu in metapost graphics you have to make sure that you save the meaning and/or numeric uu now. The idea is that just as in mp one can say 20xx with xx being a (sort of) unit, one can do the same in tex. Think of \newdimension \MyUnitA \MyUnitA 1.23pt \pushoverloadmode % just in case \newuserunit\MyUnitA ua % binds the unit to the variable \popoverloadmode x\hskip 10ua\relax x The units starting with 'u' are considered user units but be carefulk with other combinations as we have (and will have more) built into context ones, like pi : pi for Mikael ft : foot for Alan fs : (global body) font size tw : (layout) text width th : (layout) text height hs : (current) hsize vs : (current) vsize cd : (when set) column distance cw : (when set) column width cx : combination cell width uu : user unit (\METAFUN) So Mikael can now have test \hskip 3pi\relax test and Alan can have \setuplayout [width=1ft] to be consistent with inches. The reason why we have this mechanism is that it provides a level of abstraction. It might evolve over time but don't expect the 600+ units possible to show up because one needs sensible shortcuts. Already built in unit always win and you cna only bind to already defined quantities. Here's one for those who want to go beyond the normal: \newdimension \FooA \FooA 1.23pt \newdimen \FooB \FooB 12.3pt \protected\def\FooC {\the\dimexpr\FooA +\FooB\relax} So you can now figure how 'cx' is defined in a dynamic 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 ___
[NTG-context] Re: An error which is not in .log file
On 8/15/2023 4:50 PM, Xavier B. wrote: After trying to compile a long file with LMTX (previously with MKIV all compiles perfectly), I get an error structures > bookmark: Referències structure > sectioning > chapter @ level 2 : 0.1 -> Referències publications> list > collecting entries using method 'global' and sort order 'default' pages > flushing realpage 296, userpage 294, subpage 296 structures > bookmark: Índex alfabètic structure > sectioning > chapter @ level 2 : 0.2 -> \headtext {index} pages > flushing realpage 297, userpage 295, subpage 297 structures > end of sectionblock 'backpart' close source> level 1, order 147, name './ng-exercicis.conTeXt' (\end occurred inside a group at level 8) 8:0: semisimple group entered at line 276: \begingroup so check what starts at line 276 and see what should match - 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] An error which is not in .log file
After trying to compile a long file with LMTX (previously with MKIV all compiles perfectly), I get an error structures > bookmark: Referències structure > sectioning > chapter @ level 2 : 0.1 -> Referències publications> list > collecting entries using method 'global' and sort order 'default' pages > flushing realpage 296, userpage 294, subpage 296 structures > bookmark: Índex alfabètic structure > sectioning > chapter @ level 2 : 0.2 -> \headtext {index} pages > flushing realpage 297, userpage 295, subpage 297 structures > end of sectionblock 'backpart' close source> level 1, order 147, name './ng-exercicis.conTeXt' (\end occurred inside a group at level 8) 8:0: semisimple group entered at line 276: \begingroup 7:0: semisimple group entered at line 5: \begingroup 6:0: semisimple group entered at line 5: \begingroup 5:0: semisimple group entered at line 114: \begingroup 4:0: semisimple group entered at line 114: \begingroup 3:0: semisimple group entered at line 5: \begingroup 2:0: semisimple group entered at line 5: \begingroup 1:0: semisimple group entered at line 27: \begingroup 0:0: bottomlevel mkiv lua stats > used config file: selfautoparent:/texmf/web2c/texmfcnf.lua mkiv lua stats > used cache path: /home/xan/bin/context-current/tex/texmf-cache/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e mkiv lua stats > resource resolver: loadtime 0.004 seconds, 0 scans with scantime 0.000 seconds, 0 shared scans, 240 found files, scanned paths: mkiv lua stats > stored bytecode data: 512 modules (0.181 sec), 105 tables (0.010 sec), 617 chunks (0.191 sec) mkiv lua stats > traced context: maxstack: 1715, freed: 2, unreachable: 1713 mkiv lua stats > cleaned up reserved nodes: 85 nodes, 11 lists of 671 mkiv lua stats > node memory usage: 291 attribute, 62 dir, 91 glue, 3281 gluespec, 1 glyph, 1 hlist, 1 kern, 2 math, 645 mathspec, 4 penalty, 18 rule, 2 temp, 66305 whatsit mkiv lua stats > node list callback tasks: 16 unique task lists, 18 instances (re)created, 119367 calls mkiv lua stats > h-node processing time: 0.653 seconds including kernel mkiv lua stats > attribute processing time: 0.119 seconds front- and backend mkiv lua stats > driver time: 0.693 seconds mkiv lua stats > used backend: pdf mkiv lua stats > jobdata time: 0.054 seconds saving, 0.000 seconds loading mkiv lua stats > callbacks: file: 69204, saved: 309548, direct: 957, function: 244605, value: 7598, message: 0, bytecode: 617, late 0, total: 632529 (0 per page) mkiv lua stats > randomizer: initialized with value 0.45060333164985 mkiv lua stats > v-node processing time: 0.259 seconds mkiv lua stats > loaded tex modules: 4 requested, 1 found (*-tikz), 3 missing (*-pgfmat *-pgfmath *-pgfrcs) mkiv lua stats > loaded patterns: ca::65 en::1, load time: 0.000 mkiv lua stats > interactive elements: 74 references, 950 destinations mkiv lua stats > loaded fonts: 13 files: latinmodern-math.otf, lmmono10-regular.otf, lmroman10-bold.otf, lmroman10-italic.otf, lmroman10-regular.otf, lmromancaps10-regular.otf, lmromanslant10-regular.otf, lmsans10-bold.otf, lmsans10-boldoblique.otf, lmsans10-regular.otf, texgyreschola-bold.otf, texgyreschola-math.otf, texgyreschola-regular.otf mkiv lua stats > font engine: otf 3.133, afm 1.513, tfm 1.000, 68 instances, 51 shared in backend, 8 common vectors, 43 common hashes, load time 1.181 seconds mkiv lua stats > body font sizes: defined: 10pt 11pt 12pt 14.4pt 17.3pt 20.7pt 4pt 5pt 6pt 7pt 8pt 9pt, undefined: 11.2pt 12.8pt 14pt 16.8pt 16pt 19.2pt 24pt 30pt 36pt mkiv lua stats > metapost: 0.000 seconds, loading: 0.033, execution: 0.000, n: 3, average: 0.011, instances: 1, luacalls: 14196 (file: 13784, text: 0, script: 393, log: 19), memory: 3.881 M mkiv lua stats > math tweaking time: 0.474 seconds, 84 math goodie tables mkiv lua stats > math processing time: 0.292 seconds mkiv lua stats > graphics processing time: 1.768 seconds including tex, 268 processed images, 57 unique asked, 27 bad names mkiv lua stats > publications load time: 0.005 seconds, 2963 bytes, 11 definitions, 0 shortcuts mkiv lua stats > pdf annotations: 74 links (74 unique), 0 special mkiv lua stats > font embedding time: 0.018 seconds, 13 fonts mkiv lua stats > result saved in file: ng-exercicis.pdf, compresslevel 1, objectcompresslevel 3 mkiv lua stats > positions: 311 collected, 0 deltas, 307 shared partials, 133 partial entries mkiv lua stats > cross referencing: 713 identified, 269 unknown mkiv lua stats > used platform: linux-64, type: unix, binary subtree: texmf-linux-64 mkiv lua stats > used engine: luametatex version: 2.10.10, functionality level: 20230803, format id: 697, compiler: gcc mkiv lua stats > tex properties: 806417 hash slot
[NTG-context] Re: Very strange error:
On 8/14/2023 11:24 PM, Xavier B. wrote: Thanks, Rik, for the comment. You're right. Note that I've never been aware of such requirement because always in MKIV I use \head without \par. @all, please comment it out this behaviour in somewhere. The weak point of context is documentation: wiki is too bit not updated and reference manual are outdated. As a simple user, it could cause nightmares, overall in transition to one major version to another. the only things that really changed are - input encodings, still supported but we assume utf8 - font encodings, font features etc that make for different specifications - some fuzzy argument handling that made sense 25 years ago but not today - some low level fatures that were never to be used at the user level - improvements to mechanism that are now possible - more was added than removed (and believe me: i'd like to remove some) - if something fails also keep in mind that maybe it was never supossed to work but tex is just rather tolerant take for instance math: we adapt to possibilities, unicode developments etc. but overall interfaces are kept (we eventually dropped $$ mkiv because it is hard to get spacing right otherwise, een with some nasty tricks) \head is one of these "best use arguments" and les sknown is that we also dropped par delimited \section and such (the head one currently can be enabled with \autoparagraphmode4) the main drive is 'better rendering' and 'less complicated coding' you use for for instance \bigskip which is never going to guarantee good spacing as it doesn't cooperate with \blank and friends (it is sort of dangerous to mix what oen sees outside context with context commands like like loading that lua module, which actually is in none of the manuals) if one wants to get an idea of coding context documents the 'source sof manuals' can show some 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: Why overbar is so big
On 8/12/2023 10:10 AM, Xavier B. wrote: The font is the default: \setupbodyfont [modern, 12pt] % modern o cmr, 11pt I use Linux (arch derivative). if you want nicer math switch over to lmtx as mkiv is sort of frozen and efforts wrt math go into lmtx 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: xml: matches always child of other element
Hi Denis, Ok, after a bit of more testing I can now come up with another example. The version using startstop works, but with the normal command, I'm always getting back the content of the first element. I thought it might be an expansion issue, but \expanded and also expansion=yes or expansion=xml on \definedescription have no effect. Perhaps most interestingly, adding using the startstop variant together with the command variant gives correct results for the command as well (xml:index-entry-term-3). I have now found a way to proceed with my project (I'll just use the startstop variant), but I'd still be interested in understanding what is happening here. Does anyone know? Or is there anything I'm doing wrong here? This is kind of tricky but here is a variant test \startxmlsetups xml:index-entry-term-1 % does not work \indexentry{1: \xmlflush{#1}} % test \par \indexentry{2: \xmlflush{#1}} 3: \xmlflush{#1} \par \stopxmlsetups it has to do with the fact that when you don't use a start / stop the next paragraph is sees as description content so then you grab the same entry (sort of) nested you can uncomment the "test \par" to see the side effects (twice one versus 1/2) it's kind of hard to debug this, i admit, Hans %% \startxmlsetups xml:test \xmlsetsetup{#1}{*}{-} \xmlsetsetup{#1}{index}{xml:*} \xmlsetsetup{#1}{index-entry}{xml:index-entry} %\xmlsetsetup{#1}{term}{xml:index-entry-term} \xmlsetsetup{#1}{term}{xml:index-entry-term-2} \xmlsetsetup{#1}{term}{xml:index-entry-term-3} \stopxmlsetups \xmlregisterdocumentsetup{test}{xml:test} % Index \startxmlsetups xml:book-back \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:index \xmlflush{#1} \stopxmlsetups \definedescription[indexentry][] %\definedescription[indexentry][expansion=yes] % has no effect %\definedescription[indexentry][expansion=xml] % has no effect \startxmlsetups xml:index-entry \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:index-entry-term % does not work \expanded{\indexentry{\xmlflush{#1}}} \indexentry{\xmlflush{#1}} \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:index-entry-term-2 % works \startindexentry{\xmlflush{#1}} \xmlflush{#1} \stopindexentry \stopxmlsetups \startxmlsetups xml:index-entry-term-3 % works \expanded{\indexentry{\xmlflush{#1}}} \indexentry{\xmlflush{#1}} \startindexentry{\xmlflush{#1}} \xmlflush{#1} \stopindexentry \stopxmlsetups \startbuffer[test] One Two Three \stopbuffer \starttext \xmlprocessbuffer{test}{test}{} \stoptext %% Von: denis.ma...@unibe.ch Gesendet: Montag, 24. Juli 2023 15:57 An: ntg-context@ntg.nl Betreff: [NTG-context] Re: xml: matches always child of other element Interestingly, we should be in the right subtree as this modified example is supposed to demonstrate (we're getting the correct numbers under each index-entry-term, just the terms are incorrect in all but the first case): \startxmlsetups xml:test \xmlsetsetup{#1}{*}{-} \xmlsetsetup{#1}{index}{xml:*} \xmlsetsetup{#1}{index-entry}{xml:index-entry} %\xmlsetsetup{#1}{index-entry}{xml:index-entry-2} \xmlsetsetup{#1}{term}{xml:index-entry-term} \xmlsetsetup{#1}{nav-pointer-group}{xml:*} \xmlsetsetup{#1}{nav-pointer}{xml:nav-pointer} \xmlsetsetup{#1}{nav-pointer/ext-link}{xml:nav-pointer-link} \stopxmlsetups \xmlregisterdocumentsetup{test}{xml:test} % Index \startxmlsetups xml:book-back \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:index \startsectionlevel[title={\xmlfilter{#1}{/index-title-group/title/command(xml:index-title)}},] \xmlflush{#1} \stopsectionlevel \stopxmlsetups \startxmlsetups xml:index-title \xmlflush{#1} \stopxmlsetups \definedescription[indexentry] [alternative=top, headstyle=normal, headcommand=\hskip-1cm, margin=1cm, inbetween=, ] \startxmlsetups xml:index-entry \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:index-entry-2 \xmlfilter{#1}{/term/command(xml:index-entry-term)}% \xmlverbatim{#1} \stopxmlsetups \startxmlsetups xml:index-entry-term \indexentry{\xmlflush{#1}} \stopxmlsetups \startxmlsetups xml:nav-pointer-group \xmlconcat{#1}{/nav-pointer}{, } \stopxmlsetups \startxmlsetups xml:nav-pointer \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:nav-pointer-link \xmlflush{#1} \stopxmlsetups \startbuffer[test] Index
[NTG-context] Re: \showmakeup adds unwanted space despite accurate readings; \qquad mandatory before \TeX\
15 969313 15 200 100100 1500 1000 2 1 6491376 96 1200320 system > all240 969313240 1800 800100 32 16000 72000 8 16 6491376 96 28800 10240 system > system > ini2145695 919716 0 48526 0 530329 0 system > ptr 50218 10054 50201 565577 0 0 0 0 0 0 7 0 0 7 system > top 50219806398 131074 14831 573482156 36 5 12 37356 250250 50 10 system > --- system > system > current input type: initial system > system > approximate memory: 43283217 (41 MB) system > system > expansion depth : min: 1, max: 100, set: 1, top: 5 system > system > luabytecode registers : 1011 system > luabytecode bytes : 16192 (0 MB) system > luastate bytes now: 62130578 (59 MB) system > luastate bytes max: 62130578 (59 MB) system > system > file callbacks: 113 system > saved callbacks : 245 system > direct callbacks : 2 system > function callbacks: 1242 system > value callbacks : 2 system > message callbacks : 0 system > bytecode callbacks: 616 system > system > mp instances : 0 system > mp estimated memory : 0 (0 MB) system > mp file callbacks : 0 system > mp text callbacks : 0 system > mp script callbacks : 0 system > mp log callbacks : 0 system > system > total callbacks : 2220 system > mp total callbacks: 0 system > backend callbacks : 0 system > mkiv lua stats > used config file: selfautoparent:/texmf/web2c/texmfcnf.lua mkiv lua stats > used cache path: /context-lmtx-2/tex/texmf-cache/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e mkiv lua stats > resource resolver: loadtime 0.006 seconds, 0 scans with scantime 0.000 seconds, 0 shared scans, 11 found files, scanned paths: mkiv lua stats > stored bytecode data: 511 modules (0.209 sec), 105 tables (0.011 sec), 616 chunks (0.220 sec) mkiv lua stats > traced context: maxstack: 1705, freed: 0, unreachable: 1705 mkiv lua stats > cleaned up reserved nodes: 73 nodes, 7 lists of 435 mkiv lua stats > node memory usage: 9 attribute, 1 glue, 120 gluespec, 3 kern, 645 mathspec, 2 penalty, 2 temp mkiv lua stats > node list callback tasks: 16 unique task lists, 10 instances (re)created, 84 calls mkiv lua stats > used backend: pdf mkiv lua stats > jobdata time: 0.001 seconds saving, 0.000 seconds loading mkiv lua stats > callbacks: file: 113, saved: 245, direct: 2, function: 1242, value: 2, message: 0, bytecode: 616, late 0, total: 2220 (2220 per page) mkiv lua stats > randomizer: resumed with value 0.39480589516671 mkiv lua stats > loaded patterns: en::1, load time: 0.000 mkiv lua stats > loaded fonts: 2 files: latinmodern-math.otf, lucidabrightregular.otf mkiv lua stats > font engine: otf 3.133, afm 1.513, tfm 1.000, 7 instances, 3 shared in backend, 3 common vectors, 0 common hashes, load time 0.224 seconds mkiv lua stats > math tweaking time: 0.068 seconds, 12 math goodie tables mkiv lua stats > font embedding time: 0.001 seconds, 1 fonts mkiv lua stats > result saved in file: atestinlucida-OTF-99.pdf, compresslevel 1, objectcompresslevel 3 mkiv lua stats > positions: 4 collected, 0 deltas, 0 shared partials, 0 partial entries mkiv lua stats > used platform: linuxmusl, type: unix, binary subtree: texmf-linuxmusl mkiv lua stats > used engine: luametatex version: 2.1009, functionality level: 20230604, format id: 693, compiler: clang mkiv lua stats > tex properties: 806398 hash slots used of 2097152, 50201 control sequences, approximate memory usage: 41 MB mkiv lua stats > lua properties: engine: lua 5.4, used memory: 62 MB, ctx: 59 MB, max: 59 MB, symbol mask: utf (τεχ) mkiv lua stats > runtime: 0.508 second
[NTG-context] Re: \showmakeup adds unwanted space despite accurate readings; \qquad mandatory before \TeX\
On Wed, Jul 05, 2023 at 04:43:56PM +0200, Hans Hagen wrote: > On 7/5/2023 3:18 PM, Carlos wrote: > > \showmakeup on \TeX\ shows a > > > > tSP:3.282 > > THK:-1.721 > > H__E > > X > > HK:-1.291 > > SP:3.282 > > no MWE includes so clueless \starttypescript[mylucidaserif] \definefontsynonym[LucidaBrightRegular][file:LucidaBrightRegular] \definefontsynonym[LucidaBrightItalic] [file:LucidaBrightItalic] \definefontsynonym[LucidaBrightDemiBold] [file:LucidaBrightDemiBold] \definefontsynonym[LucidaBrightDemiItalic] [file:LucidaBrightDemiItalic] \stoptypescript \starttypescript [mylucidaserif] \setups[font:fallback:serif] \definefontsynonym[Serif][LucidaBrightRegular] [features=default] \definefontsynonym[SerifItalic] [LucidaBrightItalic] [features=default] \definefontsynonym[SerifBold][LucidaBrightDemiBold] [features=default] \definefontsynonym[SerifBoldItalic] [LucidaBrightDemiItalic] [features=default] \stoptypescript \starttypescript[mylucidasans] \definefontsynonym[LucidaSansRegular][file:LucidaSansRegular] \definefontsynonym[LucidaSansOblique][file:LucidaSansOblique] \definefontsynonym[LucidaSansDemiBold][file:LucidaSansDemiBold] \stoptypescript \starttypescript[mylucidasans] \setups[font:fallback:sans] \definefontsynonym[Sans] [LucidaSansRegular] [features=default] \definefontsynonym[LucidaSansItalic] [LucidaSansOblique] [features=default] \definefontsynonym[LucidaSansSansBold] [LucidaSansDemiBold] [features=default] \stoptypescript \starttypescript [mylucidaserif] \definetypeface [mylucidaserif][rm] [serif] [mylucidaserif][default] \definetypeface [mylucidaserif][ss] [sans] [mylucidasans][default] \stoptypescript \setupbodyfont[mylucidaserif] %\setupbodyfont[mylucidasans] %\setupbodyfont[14pt] \starttext Thus, I came to the conclusion that the designer of a new system must not only be the implementer and first large||scale user; the designer should also write the first user manual. The separation of any of these four components would have hurt \TeX\ significantly. If I had not participated fully in all these activities, literally hundreds of improvements would never have been made, because I would never have thought of them or perceived why they were important. But a system cannot be successful if it is too strongly influenced by a single person. Once the initial design is complete and fairly robust, the real test begins as people with many different viewpoints undertake their own experiments. \stoptext > > > I assume that SP stands for space. Correct me if I'm wrong > > > > After reading some of the manuals that mention \showmakeup with and > > without [spaces] and so forth, I couldn't find any more info related > > to this. > > > > If anyone can provide me more information as to what does HK means there? > > horizontal kern thanks (sorry for duplicate messages. sending out to mailing list works sporadically Sometimes works, other times doesn't). > > > Anyhow > > > > If I were to have, say, a control _word_ such as \TeX\, the sequence of > > TeX kerning is thrown off. The only remedy would be to have a a \qquad > > preceding the control sequence e.g., {\qquad > > \TeX\ significantly} to sort of ameliorate this side-effect. But then > > again. Spacing is off. e.g., > > no MWE so a space cam come from anywhwere > > > The separation of any of these four components would have > > hurt {\qquad\TeX\ significantly}. If I had not participated fully in > > x{\showmakeup[glue]x\qquad x}x > > imo \qquad is okay > > > But it's interesting that \showmakeup, kerning and spaces would > > display what's to be expected. And yet, the aformentioned set of > > > > tSP:3.282 > > THK:-1.721 > > H__E > > X > > HK:-1.291 > > SP:3.282 > > > > is accurate nevertheless. And a very nice implementation at that, > > but one I fear can't be included on a final document either. > > > > With that being said, the introduction of a \qquad, in addition to > > \showmakeup with, say, redundancy aside, whatever is preceding the \TeX\ > > alongside the file would also introduce a space where no space was ever > > there before. > > > > Because of all of this, and unfortunately, \showmakeup is not quite helpful > > here either. Although it does so displays the amount of spaces and > > so forth, any addition of a \qquad also adds a very subtle unwanted > > space. > > qquad is not that subtle: 2em > > > And since we're looking here, I pressume, solely for accuracy
[NTG-context] Re: \showmakeup adds unwanted space despite accurate readings; \qquad mandatory before \TeX\
On 7/5/2023 3:18 PM, Carlos wrote: \showmakeup on \TeX\ shows a tSP:3.282 THK:-1.721 H__E X HK:-1.291 SP:3.282 no MWE includes so clueless > I assume that SP stands for space. Correct me if I'm wrong After reading some of the manuals that mention \showmakeup with and without [spaces] and so forth, I couldn't find any more info related to this. If anyone can provide me more information as to what does HK means there? horizontal kern Anyhow If I were to have, say, a control _word_ such as \TeX\, the sequence of TeX kerning is thrown off. The only remedy would be to have a a \qquad preceding the control sequence e.g., {\qquad \TeX\ significantly} to sort of ameliorate this side-effect. But then again. Spacing is off. e.g., no MWE so a space cam come from anywhwere The separation of any of these four components would have hurt {\qquad\TeX\ significantly}. If I had not participated fully in x{\showmakeup[glue]x\qquad x}x imo \qquad is okay But it's interesting that \showmakeup, kerning and spaces would display what's to be expected. And yet, the aformentioned set of tSP:3.282 THK:-1.721 H__E X HK:-1.291 SP:3.282 is accurate nevertheless. And a very nice implementation at that, but one I fear can't be included on a final document either. With that being said, the introduction of a \qquad, in addition to \showmakeup with, say, redundancy aside, whatever is preceding the \TeX\ alongside the file would also introduce a space where no space was ever there before. Because of all of this, and unfortunately, \showmakeup is not quite helpful here either. Although it does so displays the amount of spaces and so forth, any addition of a \qquad also adds a very subtle unwanted space. qquad is not that subtle: 2em And since we're looking here, I pressume, solely for accuracy and perfection, we're left here with neither: zero, zip. It evaporates. puzzled > Dear Emily: >I'm still confused as to what groups articles should be posted > to. How about an example? >-- Still Confused > > Dear Still: can we omit these confusing additions in mails to the list? looks / sounds like a 'bot' to me 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: \showmakeup adds unwanted space despite accurate readings; \qquad mandatory before \TeX\
On Wed, Jul 05, 2023 at 09:32:51AM -0400, Carlos wrote: > On Wed, Jul 05, 2023 at 09:18:35AM -0400, Carlos wrote: > > \showmakeup on \TeX\ shows a > > > > tSP:3.282 > > THK:-1.721 > > H__E > > X > > HK:-1.291 > > SP:3.282 > > > > I assume that SP stands for space. Correct me if I'm wrong > > > > After reading some of the manuals that mention \showmakeup with and > > without [spaces] and so forth, I couldn't find any more info related > > to this. > > > > If anyone can provide me more information as to what does HK means there? > > > > Anyhow > > > > If I were to have, say, a control _word_ such as \TeX\, the sequence of > > TeX kerning is thrown off. The only remedy would be to have a a \qquad > > preceding the control sequence e.g., {\qquad > > \TeX\ significantly} to sort of ameliorate this side-effect. But then > > again. Spacing is off. e.g., > > > > The separation of any of these four components would have > > hurt {\qquad\TeX\ significantly}. If I had not participated fully in > > > > But it's interesting that \showmakeup, kerning and spaces would > > display what's to be expected. And yet, the aformentioned set of > > > > tSP:3.282 > > THK:-1.721 > > H__E > > X > > HK:-1.291 > > SP:3.282 > > > > is accurate nevertheless. And a very nice implementation at that, > > but one I fear can't be included on a final document either. > > > > With that being said, the introduction of a \qquad, in addition to > > \showmakeup with, say, redundancy aside, whatever is preceding the \TeX\ > > alongside the file would also introduce a space where no space was ever > > there before. > > > > Because of all of this, and unfortunately, \showmakeup is not quite helpful > > here either. Although it does so displays the amount of spaces and > > so forth, any addition of a \qquad also adds a very subtle unwanted > > space. this is the space I referred to here. Please see the attached screenshot > > > > And since we're looking here, I pressume, solely for accuracy and > > perfection, we're left here with neither: zero, zip. It evaporates. > > > > > ___ > 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 > ___ -- It's ten o'clock; do you know where your processes are? ___ 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: \showmakeup adds unwanted space despite accurate readings; \qquad mandatory before \TeX\
On Wed, Jul 05, 2023 at 09:18:35AM -0400, Carlos wrote: > \showmakeup on \TeX\ shows a > > tSP:3.282 > THK:-1.721 > H__E > X > HK:-1.291 > SP:3.282 > > I assume that SP stands for space. Correct me if I'm wrong > > After reading some of the manuals that mention \showmakeup with and > without [spaces] and so forth, I couldn't find any more info related > to this. > > If anyone can provide me more information as to what does HK means there? > > Anyhow > > If I were to have, say, a control _word_ such as \TeX\, the sequence of > TeX kerning is thrown off. The only remedy would be to have a a \qquad > preceding the control sequence e.g., {\qquad > \TeX\ significantly} to sort of ameliorate this side-effect. But then > again. Spacing is off. e.g., > > The separation of any of these four components would have > hurt {\qquad\TeX\ significantly}. If I had not participated fully in > > But it's interesting that \showmakeup, kerning and spaces would > display what's to be expected. And yet, the aformentioned set of > > tSP:3.282 > THK:-1.721 > H__E > X > HK:-1.291 > SP:3.282 > > is accurate nevertheless. And a very nice implementation at that, > but one I fear can't be included on a final document either. > > With that being said, the introduction of a \qquad, in addition to > \showmakeup with, say, redundancy aside, whatever is preceding the \TeX\ > alongside the file would also introduce a space where no space was ever > there before. > > Because of all of this, and unfortunately, \showmakeup is not quite helpful > here either. Although it does so displays the amount of spaces and > so forth, any addition of a \qquad also adds a very subtle unwanted > space. > > And since we're looking here, I pressume, solely for accuracy and > perfection, we're left here with neither: zero, zip. It evaporates. > > > -- > Dear Emily: > I'm still confused as to what groups articles should be posted > to. How about an example? > -- Still Confused > > Dear Still: > Ok. Let's say you want to report that Gretzky has been traded from > the Oilers to the Kings. Now right away you might think rec.sport.hockey > would be enough. WRONG. Many more people might be interested. This is a > big trade! Since it's a NEWS article, it belongs in the news.* hierarchy > as well. If you are a news admin, or there is one on your machine, try > news.admin. If not, use news.misc. > The Oilers are probably interested in geology, so try sci.physics. > He is a big star, so post to sci.astro, and sci.space because they are also > interested in stars. Next, his name is Polish sounding. So post to > soc.culture.polish. But that group doesn't exist, so cross-post to > news.groups suggesting it should be created. With this many groups of > interest, your article will be quite bizarre, so post to talk.bizarre as > well. (And post to comp.std.mumps, since they hardly get any articles > there, and a "comp" group will propagate your article further.) > You may also find it is more fun to post the article once in each > group. If you list all the newsgroups in the same article, some newsreaders > will only show the article to the reader once! Don't tolerate this. > -- Emily Postnews Answers Your Questions on Netiquette > > ___ > 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 of next Tuesday, C will be flushed in favor of COBOL. Please update your programs. ___ 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] \showmakeup adds unwanted space despite accurate readings; \qquad mandatory before \TeX\
\showmakeup on \TeX\ shows a tSP:3.282 THK:-1.721 H__E X HK:-1.291 SP:3.282 I assume that SP stands for space. Correct me if I'm wrong After reading some of the manuals that mention \showmakeup with and without [spaces] and so forth, I couldn't find any more info related to this. If anyone can provide me more information as to what does HK means there? Anyhow If I were to have, say, a control _word_ such as \TeX\, the sequence of TeX kerning is thrown off. The only remedy would be to have a a \qquad preceding the control sequence e.g., {\qquad \TeX\ significantly} to sort of ameliorate this side-effect. But then again. Spacing is off. e.g., The separation of any of these four components would have hurt {\qquad\TeX\ significantly}. If I had not participated fully in But it's interesting that \showmakeup, kerning and spaces would display what's to be expected. And yet, the aformentioned set of tSP:3.282 THK:-1.721 H__E X HK:-1.291 SP:3.282 is accurate nevertheless. And a very nice implementation at that, but one I fear can't be included on a final document either. With that being said, the introduction of a \qquad, in addition to \showmakeup with, say, redundancy aside, whatever is preceding the \TeX\ alongside the file would also introduce a space where no space was ever there before. Because of all of this, and unfortunately, \showmakeup is not quite helpful here either. Although it does so displays the amount of spaces and so forth, any addition of a \qquad also adds a very subtle unwanted space. And since we're looking here, I pressume, solely for accuracy and perfection, we're left here with neither: zero, zip. It evaporates. -- Dear Emily: I'm still confused as to what groups articles should be posted to. How about an example? -- Still Confused Dear Still: Ok. Let's say you want to report that Gretzky has been traded from the Oilers to the Kings. Now right away you might think rec.sport.hockey would be enough. WRONG. Many more people might be interested. This is a big trade! Since it's a NEWS article, it belongs in the news.* hierarchy as well. If you are a news admin, or there is one on your machine, try news.admin. If not, use news.misc. The Oilers are probably interested in geology, so try sci.physics. He is a big star, so post to sci.astro, and sci.space because they are also interested in stars. Next, his name is Polish sounding. So post to soc.culture.polish. But that group doesn't exist, so cross-post to news.groups suggesting it should be created. With this many groups of interest, your article will be quite bizarre, so post to talk.bizarre as well. (And post to comp.std.mumps, since they hardly get any articles there, and a "comp" group will propagate your article further.) You may also find it is more fun to post the article once in each group. If you list all the newsgroups in the same article, some newsreaders will only show the article to the reader once! Don't tolerate this. -- Emily Postnews Answers Your Questions on Netiquette ___ 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] right and left arrowfill
On 6/23/2023 3:21 PM, Carlos via ntg-context wrote: I'm not sure how you can mess up glue so that the box is no longer a box. Boxes remain boxes. I guess that's the same mentality behind a fixed glue in LMTX, while trying not to mess up the box. Back to point A and the main reason of the op's question. I have no clue what "the same mentality behind a fixed glue in LMTX" means here. It's not like LMTX has a mentality of its own, after all it's not an AI (fwiw). Here we use \uleaders that have some feedback-after-typesetting loopback. Eventually I might add some extra callback features but only when it has no impact on performance. For now it's experimental. That said, I wonder how many users can predict the plainish tex result of: \ruledhbox to 2in{\vrule \rightarrowfill \ 1cm \leftarrowfill\vrule} \ruledhbox to 1cm{\vrule \rightarrowfill \ 1cm \leftarrowfill\vrule} Which then makes an argument for % \permanent\protected\def\adaptive % {\dowithnextbox{\adaptivecheckbox\nextbox\box\nextbox}} \adaptive\ruledhbox to 2in{\vrule \rightarrowfill \ 1cm \leftarrowfill\vrule} \adaptive\ruledhbox to 1cm{\vrule \rightarrowfill \ 1cm \leftarrowfill\vrule} doing its thing. Anyway, it is a not using "math arrows in text" that determines the functionality but "math arrows in math" that does (and in that respect we're driven by demands from power math users like Alan and Mikael); so. we're more focussed on shapes and proper rendering; these fillers in text are sort of special Then again, the only way to resemble what TeX does is by re/defining and copied verbatim from The TeXbook both rightarrowfill and leftarrowfill and hope for the best and unlike with TeX in which an \hbox to 1in{\vrule \rightarrowfill \ 1cm \leftarrowfill\vrule} it says 1cm but it'd be more than that, and accurately so Well, plain tex says: \def\rightarrowfill{$\m@th\smash-\mkern-7mu% \cleaders\hbox{$\mkern-2mu\smash-\mkern-2mu$}\hfill \mkern-7mu\mathord\rightarrow$} so, you get a smashed minus, some backtracking (a kern, not a glue), then optional leaders, and finally an overlayed arrowhead and you then cross your fingers that the minus sits on the same axis as the arrowhead because this is pretty much a cmr bound definition (and there are math fonts out there that don't fit this definition, although we got some fixes in the meantime) in lmtx (using luametatex) we use \Uhextensible instead which build from an opentype extensible (which makes me wonder: do users really expect all \macros in plain, latex and context do to the same? i bet not because \end in latex is definitely something else than \end in plain) How good would \meaning be here, notwithstanding the valuable info of the macro it provides, if it can't print out, let alone source it up, the more accurate dimension, let alone the measurement. I don't follow. Does this come from ChapGPT? That's funny. But as chatgpt says: "Sorry about that. \meaning\rightarrowfill is \begingroup \scratchunicode 8594\relax \adaptivebox [mathfiller][alterna tive=8594]{\hss \strut \hss }\endgroup " That's what lmtx returned after Hans vdM sample Nothing wrong with that, but in the meantime that can be \permanent\protected\def\mathfiller#1% {\adaptivebox[mathfiller][\c!alternative=#1]{\hss\strut\hss}} because we don't need the scratch code (was used when we played with it), so a next version wil say: \meaningfull\rightarrowfill or: frozen instance macro:\mathfiller {8594} or more texie \meaningasis\rightarrowfill like: \frozen \instance \def \rightarrowfill \mathfiller {8594} It depends on what you expect. First of all, your assumption that the arrow fill is the same as in plain tex is wrong. Why would it be wrong? because context is not plain When I type \hbox to 3cm{\rightarrowfill} without a vrule that's what I would normally expect as plain user maybe (1) one can define an arrow fill using a leader that uses some (happen to be present in tex math fonts) glyphs: repeated minuses followed by some magic kern and an arrow head. Can you apply it to pagination without breaking? Highly doubt it. you seem to know the plain definition so ... leaders don't break No. I didn't mean anything by it. Just that I disagree with the implementation. Again, I expect what TeX returns rather than what LMTX returns. well, using an arrow fill in running text is rare but who knows how uleaders evolve (after users start using it) No need to re-invent the wheel. (if there's undertone in that so be it) if so, so use plain And of course it's working! Everything works, right? And that's exactly what I meant. Hans - Hans Hagen
Re: [NTG-context] Protect the lettrine
On 6/15/2023 8:35 AM, Max Chernoff via ntg-context wrote: Hi Dave, How would you instruct ConTeXt to "protect" the lettrine such that regardless of whether the first paragraph spans multiple lines, a short first paragraph will still prevent the second paragraph from overlapping the lettrine? Here's the output I'm looking to achieve: https://i.stack.imgur.com/XeZQS.png Note how the second line honours the lettrine's width and padding, in the same way that the second line of the first paragraph in Knuth's quote respects the width and padding. Here's a questionable Lua-based solution: \startluacode userdata.hangindent = 0 function userdata.post_lettrine(head) nodes.tasks.disableaction("finalizers", "userdata.post_lettrine") if tex.prevgraf < math.abs(tex.hangafter) then userdata.hangindent = tex.hangindent nodes.tasks.enableaction("processors", "userdata.next_par") end return head end nodes.tasks.appendaction("finalizers", "before", "userdata.post_lettrine") nodes.tasks.disableaction("finalizers", "userdata.post_lettrine") function userdata.next_par(head) nodes.tasks.disableaction("processors", "userdata.next_par") if head.next.id == node.id("glue") and head.next.subtype == 20 then head.next.width = userdata.hangindent end return head end nodes.tasks.appendaction("processors", "before", "userdata.next_par") nodes.tasks.disableaction("processors", "userdata.next_par") local default = typesetters.initials.actions.default function typesetters.initials.actions.default(...) nodes.tasks.enableaction("finalizers", "userdata.post_lettrine") return default(...) end \stopluacode \setupinitial[n=2] [...] Normally manipulating nodes inside the callbacks is the wrong way to do something, but in this case, that's exactly how the standard initial code works. We need to modify the "default" alternative since "\setupinitial" provides no way for us to set a different alternative. A better solution would be to provide a new alternative so we wouldn't need to make questionable overrides to the base code. Indeed, and it might also sort of fragile due to the prevgraf although we can assume sane usage. All this stuff is also a bit order sensitive. I'll added this: \setupinitial[n=2,continue=yes] But I'll also cheat a bit by adding a prevdepth field to the parstate that remembers the previous one (as it gets lost otherwise). 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 with LMTX
On Mon, Jun 05, 2023 at 03:43:59PM -0400, Carlos via ntg-context wrote: > On Mon, Jun 05, 2023 at 03:06:10PM +0200, Floris van Manen via ntg-context > wrote: > > > > > > On 05/06/2023 14:49, Carlos via ntg-context wrote: > > > %# Synchronize all modules from ConTeXt Garden in the 'modules' > > > directory, which is created if it doesn’t exist. > > > to wherever the modules are > > > > > > isn't the command > > > > mtxrun --script install-modules --install tikz > > > > or > > > > mtxrun --script install-modules --install --all > > > > doing exactly that? > > > > Okay Floris. I see Aditya nearby. He'll take over from now on :) stand > by please. I know you didn't ask the original question but this is over > the pgfsys-pdftex and the pgfsys-luatex. It's a race between them !! > sort of > > The solutions are a few if any really, either as I suggested first and update > afterwards or install tikz > > if the driver is the problem, what does common sense tells you Floris? > the database needs to be updated, correct? The driver needs to be > loaded somehow, right? > > > system > ConTeXt ver: 2023.06.04 18:58 LMTX fmt: 2023.6.5 int: > english/english > > So install tikz. then run the file > > mtx-install-modules | from > 'https://mirrors.ctan.org/install/graphics/pgf/base/pgf.tds.zip' > mtx-install-modules | into 'texmf-modules' > 64 files of 642 done,2108636 bytes, 0.015 seconds > 128 files of 642 done, 13693106 bytes, 0.089 seconds > 194 files of 642 done, 15194110 bytes, 0.100 seconds > 317 files of 642 done, 16096396 bytes, 0.108 seconds > 382 files of 642 done, 17178524 bytes, 0.116 seconds > 446 files of 642 done, 17768214 bytes, 0.123 seconds > 510 files of 642 done, 18327708 bytes, 0.130 seconds > 574 files of 642 done, 18656649 bytes, 0.136 seconds > 638 files of 642 done, 18860083 bytes, 0.142 seconds > 642 files of 642 done, 18864376 bytes, 0.142 seconds > mtx-install-modules | from > 'https://mirrors.ctan.org/install/graphics/pgf/contrib/pgfplots.tds.zip' > mtx-install-modules | into 'texmf-modules' > 29 files of 168 done, 69116 bytes, 0.002 seconds > 48 files of 168 done,1596420 bytes, 0.010 seconds > 67 files of 168 done,1889062 bytes, 0.012 seconds > 83 files of 168 done,2761170 bytes, 0.017 seconds > 100 files of 168 done,3156638 bytes, 0.021 seconds > 116 files of 168 done,3508192 bytes, 0.024 seconds > 132 files of 168 done,4035279 bytes, 0.027 seconds > 148 files of 168 done,4163894 bytes, 0.029 seconds > 168 files of 168 done,4195360 bytes, 0.029 seconds > mtx-install-modules | from > 'https://mirrors.ctan.org/install/graphics/pgf/contrib/circuitikz.tds.zip' > mtx-install-modules | into 'texmf-modules' >7 files of 70 done, 14967 bytes, 0.000 seconds > 21 files of 70 done, 61604 bytes, 0.001 seconds > 28 files of 70 done,4839027 bytes, 0.033 seconds > 35 files of 70 done,5906994 bytes, 0.040 seconds > 42 files of 70 done,6399050 bytes, 0.043 seconds > 70 files of 70 done,6879048 bytes, 0.045 seconds > mtx-install-modules | wiping 17 files in 'tex/context/third/pgf/**' > mtx-install-modules | wiping 0 files in 'doc/context/third/pgf/**' > mtx-install-modules | wiping 0 files in 'source/context/third/pgf/**' > mtx-install-modules | wiping 0 files in 'tex/context/pgf/**' > mtx-install-modules | wiping 0 files in 'doc/context/pgf/**' > mtx-install-modules | wiping 0 files in 'source/context/pgf/**' > mtx-install-modules | wiping 0 files in 'scripts/pgf/**' > mtx-install-modules | wiping 2 files in 'tex/context/third/pgfplots/**' > mtx-install-modules | wiping 3 files in 'doc/context/third/pgfplots/**' > mtx-install-modules | wiping 1 files in 'source/context/third/pgfplots/**' > mtx-install-modules | wiping 0 files in 'tex/context/pgfplots/**' > mtx-install-modules | wiping 0 files in 'doc/context/pgfplots/**' > mtx-install-modules | wiping 0 files in 'source/context/pgfplots/**' > mtx-install-modules | wiping 4 files in 'scripts/pgfplots/**' > mtx-install-modules | wiping 8 files in 'tex/context/third/circuitikz/**' > mtx-install-modules | wiping 2 files in 'doc/context/third/circuitikz/**' > mtx-install-modules | wiping 0 files in 'source/context/third/circuitikz/**' > mtx-install-modules | wiping 0 files in 'te
Re: [NTG-context] TiKz with LMTX
On Mon, Jun 05, 2023 at 03:06:10PM +0200, Floris van Manen via ntg-context wrote: > > > On 05/06/2023 14:49, Carlos via ntg-context wrote: > > %# Synchronize all modules from ConTeXt Garden in the 'modules' directory, > > which is created if it doesn’t exist. > > to wherever the modules are > > > isn't the command > > mtxrun --script install-modules --install tikz > > or > > mtxrun --script install-modules --install --all > > doing exactly that? > Okay Floris. I see Aditya nearby. He'll take over from now on :) stand by please. I know you didn't ask the original question but this is over the pgfsys-pdftex and the pgfsys-luatex. It's a race between them !! sort of The solutions are a few if any really, either as I suggested first and update afterwards or install tikz if the driver is the problem, what does common sense tells you Floris? the database needs to be updated, correct? The driver needs to be loaded somehow, right? system > ConTeXt ver: 2023.06.04 18:58 LMTX fmt: 2023.6.5 int: english/english So install tikz. then run the file mtx-install-modules | from 'https://mirrors.ctan.org/install/graphics/pgf/base/pgf.tds.zip' mtx-install-modules | into 'texmf-modules' 64 files of 642 done,2108636 bytes, 0.015 seconds 128 files of 642 done, 13693106 bytes, 0.089 seconds 194 files of 642 done, 15194110 bytes, 0.100 seconds 317 files of 642 done, 16096396 bytes, 0.108 seconds 382 files of 642 done, 17178524 bytes, 0.116 seconds 446 files of 642 done, 17768214 bytes, 0.123 seconds 510 files of 642 done, 18327708 bytes, 0.130 seconds 574 files of 642 done, 18656649 bytes, 0.136 seconds 638 files of 642 done, 18860083 bytes, 0.142 seconds 642 files of 642 done, 18864376 bytes, 0.142 seconds mtx-install-modules | from 'https://mirrors.ctan.org/install/graphics/pgf/contrib/pgfplots.tds.zip' mtx-install-modules | into 'texmf-modules' 29 files of 168 done, 69116 bytes, 0.002 seconds 48 files of 168 done,1596420 bytes, 0.010 seconds 67 files of 168 done,1889062 bytes, 0.012 seconds 83 files of 168 done,2761170 bytes, 0.017 seconds 100 files of 168 done,3156638 bytes, 0.021 seconds 116 files of 168 done,3508192 bytes, 0.024 seconds 132 files of 168 done,4035279 bytes, 0.027 seconds 148 files of 168 done,4163894 bytes, 0.029 seconds 168 files of 168 done,4195360 bytes, 0.029 seconds mtx-install-modules | from 'https://mirrors.ctan.org/install/graphics/pgf/contrib/circuitikz.tds.zip' mtx-install-modules | into 'texmf-modules' 7 files of 70 done, 14967 bytes, 0.000 seconds 21 files of 70 done, 61604 bytes, 0.001 seconds 28 files of 70 done,4839027 bytes, 0.033 seconds 35 files of 70 done,5906994 bytes, 0.040 seconds 42 files of 70 done,6399050 bytes, 0.043 seconds 70 files of 70 done,6879048 bytes, 0.045 seconds mtx-install-modules | wiping 17 files in 'tex/context/third/pgf/**' mtx-install-modules | wiping 0 files in 'doc/context/third/pgf/**' mtx-install-modules | wiping 0 files in 'source/context/third/pgf/**' mtx-install-modules | wiping 0 files in 'tex/context/pgf/**' mtx-install-modules | wiping 0 files in 'doc/context/pgf/**' mtx-install-modules | wiping 0 files in 'source/context/pgf/**' mtx-install-modules | wiping 0 files in 'scripts/pgf/**' mtx-install-modules | wiping 2 files in 'tex/context/third/pgfplots/**' mtx-install-modules | wiping 3 files in 'doc/context/third/pgfplots/**' mtx-install-modules | wiping 1 files in 'source/context/third/pgfplots/**' mtx-install-modules | wiping 0 files in 'tex/context/pgfplots/**' mtx-install-modules | wiping 0 files in 'doc/context/pgfplots/**' mtx-install-modules | wiping 0 files in 'source/context/pgfplots/**' mtx-install-modules | wiping 4 files in 'scripts/pgfplots/**' mtx-install-modules | wiping 8 files in 'tex/context/third/circuitikz/**' mtx-install-modules | wiping 2 files in 'doc/context/third/circuitikz/**' mtx-install-modules | wiping 0 files in 'source/context/third/circuitikz/**' mtx-install-modules | wiping 0 files in 'tex/context/circuitikz/**' mtx-install-modules | wiping 0 files in 'doc/context/circuitikz/**' mtx-install-modules | wiping 0 files in 'source/context/circuitikz/**' mtx-install-modules | wiping 0 files in 'scripts/circuitikz/**' mtx-install-modules | wiping 0 files in 'tex/latex/**' mtx-install-modules | wiping 0 files in 'tex/plain/**' mtx-install-modules | wiping 0 files in 'doc/latex/**' mtx-install-modules | wiping 0 files in 'doc/plain/**' mtx-insta
Re: [NTG-context] new module installer and .tar.gz compression
On 5/8/2023 8:55 PM, Henning Hraban Ramm via ntg-context wrote: Am 08.05.23 um 19:40 schrieb Pablo Rodriguez via ntg-context: On 5/8/23 17:58, Bruce Horrocks via ntg-context wrote: On 8 May 2023, at 16:20, Pablo Rodriguez wrote: [...] Sorry, but I don’t know how to force git urls to be added as zip packages in https://modules.contextgarden.net. Use <https://github.com/ousia/handlecsv/archive/refs/heads/context-suite.zip> as the link to download as a Zip file. I thought https://codeberg.org/fiee/context-simpleslides as git URL would have worked for me, but the new script actually installs the outdated simpleslides.zip. So I used a link to the release ZIP for a new release: https://codeberg.org/fiee/context-simpleslides/archive/2023-04-13.zip But the script still only installs the old ZIP. Actually, no, it doesn’t install anything, but doesn’t complain: """ ~/lmtx/tex $ mtxrun --script install-modules --install t-simpleslides mtx-install-modules | loading entries from file '~/lmtx/tex/texmf-context/tex/context/modules/third/mtx-install-imp-modules.lua' mtx-install-modules | loading entries from file '~/lmtx/tex/texmf-context/tex/context/modules/third/mtx-install-imp-tikz.lua' mtx-install-modules | mtx-install-modules | mtx-install-modules | renewing file database mtx-install-modules | system | lua | compiling '~/lmtx/tex/texmf-cache/luametatex-cache/context/c821363a6b068765c2a3bbfe3917fcf5/trees/71c82419867f9a0df8a150196c03c86f.lua' into '~/lmtx/tex/texmf-cache/luametatex-cache/context/c821363a6b068765c2a3bbfe3917fcf5/trees/71c82419867f9a0df8a150196c03c86f.lud' ... system | lua | dumping '~/lmtx/tex/texmf-cache/luametatex-cache/context/c821363a6b068765c2a3bbfe3917fcf5/trees/dcb651482955ac31eaab7723b70e0184.lua' into '~/lmtx/tex/texmf-cache/luametatex-cache/context/c821363a6b068765c2a3bbfe3917fcf5/trees/dcb651482955ac31eaab7723b70e0184.lud' stripped mtx-install-modules | mtx-install-modules | installed: t-simpleslides mtx-install-modules | """ "mtxrun --script install-modules --install simpleslides" (without "t-") works. But either the module scripts should re-pack tgz archives or the installer must learn to handle them. There is code for unpacking gzip and tar but I don't think we should start mixing formats and zip is kind of what we always did. The modules are in the imp files (mentioned when loaded) but the urls are sort of abstract (and resolved in the installer). I've added an option to directly pass an url but I suppose that is only for testing. After all, we expect some quality checks and thats what the garden does. >mtxrun --script install-modules --install --module https://codeberg.org/fiee/context-simpleslides/archive/2023-04-13.zip win64/bin/lib/luametatex/curl/libcurl.dll' mtx-install-modules | from 'https://codeberg.org/fiee/context-simpleslides/archive/2023-04-13.zip' mtx-install-modules | into 'texmf-modules' 8 files of 83 done, 25247 bytes, 0.003 seconds 16 files of 83 done,3504028 bytes, 0.025 seconds 24 files of 83 done,4655619 bytes, 0.039 seconds but as said, it's only for testing (or for modules not yet mentioned in the imp file). Keep in mind that no files are deleted. When all modules are consistently packages I can make a 'remove old' feature. 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] new units
Am 07.05.23 um 11:45 schrieb Hans Hagen via ntg-context: 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) of course 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 I thought maybe a play on precision vs. precession (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.) I understand that the rule of thumb is the rule of 1/11 feet in Amsterdam. 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? I know it’s not funny to explain jokes, but I don’t seem to know all people involved. 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
On 5/7/2023 11:29 AM, Mojca Miklavec via ntg-context wrote: On Sun, 7 May 2023 at 11:11, Henning Hraban Ramm via ntg-context wrote: And what’s the abbreviation for Theodores? I assume it must be "tr", though it's somewhat ambiguous what the "r" in "tr" stands for, it seems to be country-dependent ;) actually: as arthur and you are in charge of the language patterns, guess who will sort this out, 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] 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] 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] Software upgrade for ntg and contextgarden server 6 April
On 4/16/2023 3:54 PM, Carlos via ntg-context wrote: 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 use the windows github interface. Mojca showed me some alternatives but trhat's for power users, 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] 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://context
Re: [NTG-context] Software upgrade for ntg and contextgarden server 6 April
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. 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. 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. 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. 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. (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] Software upgrade for ntg and contextgarden server 6 April
On Sat, Apr 15, 2023 at 12:13:58AM +0200, Hans Hagen via ntg-context wrote: > On 4/14/2023 3:50 PM, mf via ntg-context wrote: > > Hello, > > > > the github repo at https://github.com/contextgarden/context-mirror > > is not updated since March 20th. > > > > I don't know whether it's related to the server update, but maybe you know. > > I fetch from the origin, > > https://bitbucket.org/phg/context-mirror.git > which seems up to date; i suppose github gets it from there but > occasionally it lags behind; it's sort of the original git archive and our > backup plan. > > https://github.com/contextgarden/context > > Should be okay, > > Hans thank you Taco, Hans, and Aditya, Mikael, et Hans, I was just curious about your git strategy and wanted to ask you about something. 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/ > > - > 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 > ___ > -- 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] Software upgrade for ntg and contextgarden server 6 April
On 4/14/2023 3:50 PM, mf via ntg-context wrote: Hello, the github repo at https://github.com/contextgarden/context-mirror is not updated since March 20th. I don't know whether it's related to the server update, but maybe you know. I fetch from the origin, https://bitbucket.org/phg/context-mirror.git which seems up to date; i suppose github gets it from there but occasionally it lags behind; it's sort of the original git archive and our backup plan. https://github.com/contextgarden/context Should be okay, 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] /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 05:57:30PM +0200, Hans Hagen via ntg-context wrote: > On 4/11/2023 3:13 PM, Carlos via ntg-context wrote: > > > But where is actually luametatex under the standalone sources > just in the bin path thanks Hans. Didn't have the time to look at et . Looking at a small display on this system and sort of like going blind . Regarding old mkiv, I didn't have the time to delve more into it, but I think (couuld be wrong here) The script installation first-setup for that old mkiv is not as straightforward as lmtx is, and to top it off I had downloaded the modules only With the former I had to manually create the dir temxf-linux-64 whereas with lmtx installation was smooth right after that's why when I read the resolvers output I had pointed it out to Aditya that it was looking over and over for that dir to no avail (of course: the dir was never there; it was never created) Path is always a problem as you know. On gnu/linux bash init file means nothing, as most likely a profile file that supersedes it sets it up regardless of sessions and how many times logging off and rebooting , but the problem woudlnt' stop there as long as texmf is there I can probably venture out and say that even then, even then… it doesn't mean nothing while texmf is still there . what is mtxrun --script cache going to erase let alone /generate while texmf is in place? the chances are nil, nada, iteración infinita It's not going to happen. and an unknown script context.lua mtx-context.lua will certainly pop up all over again only after moving/removing texmf it'd go through or else it won't . then yes context --luatex --generate context --luatex --make or context --make p.s and all of the above over a lucida sans that was my own misconfiguration that's hilarious :) Hans. sorry but I just couldn't stop thinking about it. All over a sans font. Seriously. > > 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 > ___ > -- Blinding speed can compensate for a lot of deficiencies. -- David Nichols ___ 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
- > > ___ > 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 > ___ > -- "We invented a new protocol and called it Kermit, after Kermit the Frog, star of "The Muppet Show." [3] [3] Why? Mostly because there was a Muppets calendar on the wall when we were trying to think of a name, and Kermit is a pleasant, unassuming sort of character. But since we weren't sure whether it was OK to name our protocol after this popular television and movie star, we pretended that KERMIT was an acronym; unfortunately, we could never find a good set of words to go with the letters, as readers of some of our early source code can attest. Later, while looking through a name book for his forthcoming baby, Bill Catchings noticed that "Kermit" was a Celtic word for "free", which is what all Kermit programs should be, and words to this effect replaced the strained acronyms in our source code (Bill's baby turned out to be a girl, so he had to name her Becky instead). When BYTE Magazine was preparing our 1984 Kermit article for publication, they suggested we contact Henson Associates Inc. for permission to say that we did indeed name the protocol after Kermit the Frog. Permission was kindly granted, and now the real story can be told. I resisted the temptation, however, to call the present work "Kermit the Book." -- Frank da Cruz, "Kermit - A File Transfer Protocol" ___ 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 -- Rea
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 Sun, Apr 02, 2023 at 10:41:53AM +0200, Hans Hagen via ntg-context wrote: > On 4/1/2023 11:21 PM, Carlos via ntg-context wrote: > > On Fri, Mar 31, 2023 at 10:22:49PM +0200, Hans Hagen via ntg-context wrote: > > > On 3/31/2023 10:08 PM, Carlos via ntg-context wrote: > > > > > > > > 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 > > > > > > Font loading and processing time can be mosty neglected so these 16 > > > seconds > > > come from something else, maybe there are ways to trace file access. > > > Another > > > possibility is that your fonts are not cached in which case every run will > > > involve parsing the otf / ttf and producing whatever resources needed > > > (normally cached). > > > > interesting. Earlier as the output was showing > > > > > mkiv lua stats > loaded patterns: en::1, load time: 0.000 > > > mkiv lua stats > loaded fonts: 4 files: lucidabrightregular.otf, > > > lucidasansregular.otf, latinmodern-math.otf, lmroman10-regular.otf > > > > you asked > > > > > so why not use lucida math fonts? > > > > which is a valid question but nevertheless unsettling in that > > lmodern-regular may nat have been called out. I fully understand the > > inclusion of a latinmodern-math in it as a lucidamath was not previously > > available but I ponder at the idea and involuntary implementation of > > having lmroman along the pack. Why? If this is TeX doings, or misdoings > > (depending how one looks at it), it clearly shows to me that TeX also > > restricts my freedom to use whatever font I may deem necessary. Don't you > > think? You can probably disagree with me here, or anyone from the TeX > > community can, but the roman last was imposed deliberately upon. Someoe may > > also give a lengthy explanation but that would be just hogwash in thee very > > end . > > The fact that a file is loaded doesn't mean that it is used. In fact there > is some fallback loading going on because explaining when nothing gets > typeset or why \nullfont is used which results in missing chars messages is > a waste of time. > > It has nothing to do with restrictions: tex will load any font you want it. > But for instance when you turn on some tracing the macro package can load a > font it needs. Indirectly you get what you ask for. > You're right about that. My mistake. Somehow monospaced had been previously defined and I hadn't even noticed it . I think I got it (sort of) figured for what I want it so far. The latest stats are mkiv lua stats > loaded fonts: 5 files: latinmodern-math.otf, lucidabrightdemiitalic.otf, lucidabrightitalic.otf, lucidabrightregular.otf, lucidasansregular.otf mkiv lua stats > font engine: otf 3.133, afm 1.513, tfm 1.000, 17 instances, 10 shared in backend, 3 common vectors, 7 common hashes, load time 0.413 seconds mkiv lua stats > math tweaking time: 0.162 seconds, 24 math goodie tables which is pretty much what I was looking for, except the math font issue. Thank you! While I was trying to play with it a bit, I noticed a problem with the tfb and tfc resizing in math mode The only mention of anything similar happened back in 2009 (but then again this was with mkii). There may be more similar issues in the list. I just didn't have the time to look for it. https://www.mail-archive.com/ntg-context@ntg.nl/msg40224.html But anyhow, the following did the trick , which I found it convenient really. But I don't use math mode, although someone else might, it's intuitive, and does the job \startmidaligned $\tfc a + \overbracket{b + c} + \underbracket{d + e} + \doublebracket{f + g} + h$ \stopmidaligned \startformula \int_{\infty} \stopformula > I bet you didn't explicitly ask for e.g. english hyphentation patterns > either but still got them, but tex will happily let you use polish ones > instead. > > Of course the best remedy against any automatism is to just start with > initex and implement from scratch. > > In the above case: just add \type {foo} and you might see another font you > didn't ask for / set up. > > > > > 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. > > > > > > These fonts are small (only huge cjk fonts with tens of thousands of > > > glyphs > > > o
Re: [NTG-context] Text editors
HI! I’ve been using emacs and played around with configuration and finally found a good and very useful setup using LMTX installation. Also I’ve customized with help from YAsnippet my own snippets så it goes very fast. Below I have a setup on my macos that uses - ConTeXt LMTX - emacs-lisp setting in ~/.emacs.d/init.el - customized setting for preview with Skim pdf reader - YASnippet snippets on my dropbox cloudstoring so I can use it on several computers and has a macro syntax easy to learn. - Bind-keys for fast build and preview on two pane "side by side editor and previewer" in "TeXshop style”. C-å Build document and C-c C-v for fast preview in Skim Something to start playing with below to put in your init.el file ;; This is for getting preferred position and size of the emacs editor frame (add-to-list 'default-frame-alist '(top . 25)) (add-to-list 'default-frame-alist '(left . 1)) (add-to-list 'default-frame-alist '(height . 56)) (add-to-list 'default-frame-alist '(width . 120)) ;; For solving path issues install: do M-x package-install RET exec-path-from-shel RETl (when (memq window-system '(mac ns x)) (exec-path-from-shell-initialize)) ;; For configuring context (add-to-list 'auto-mode-alist '("\\.tex\\'" . context-mode)) (eval-after-load 'tex '(add-to-list 'TeX-command-list '("LuaMetaTeX" "mtxrun --autogenerate --script context %t" TeX-run-command nil (context-mode) :help "Run LuaMetaTeX"))) (defun myctx () "Saves the current buffer and runs ConTeXt, all with no prompts or further interaction." (interactive) (save-buffer) (TeX-command "LuaMetaTeX" 'TeX-master-file -1)) ;; (add-hook 'ConTeXt-mode-hook 'turn-on-smartparens-strict-mode) (add-hook 'ConTeXt-mode-hook (lambda () (define-key ConTeXt-mode-map (kbd "C-å") 'myctx))) (setq TeX-output-view-style '("^pdf$" "." "open -a Skim.app %o")) (setq TeX-view-program-list '(("Skim" "open -a Skim.app %o") )) (add-hook 'ConTeXt-mode-hook (lambda () (setq TeX-view-program-selection '((output-pdf "Skim") ;; YASnippet config (use-package yasnippet :config (setq yas-snippet-dirs '("~/Dropbox/filer/system/emacsgrejer/snippets")) (yas-global-mode 1) (setq yas/triggers-in-field t)) Hope this helps and gives some inspiration to get started if you choose emacs /Jan-Erik > 26 mars 2023 kl. 10:22 skrev Alexandre Christe via ntg-context > : > > Dear ConTeXt users, > > I'm wondering what kind of typesetting system / syntax highlighting / > completion you're using. > > I've been using myself the simple_Context package for SublimeText which I > scavenged a while ago before it was made unavailable (I wanted to attach but > it's too big for the list). But it's sort of a dead-end. > > Open to anything from vim/neovim to emacs or more exotic. Maybe it would be > nice to show the config. (And yes I've seen the Wiki page > https://wiki.contextgarden.net/Text_Editors but I've the feeling some content > is outdated.) > > Thanks in advance, > Alex > ___ > 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] Text editors
Hi! Le 26/03/2023 à 10:39, jbf via ntg-context a écrit : Every user has his or her own preferred test editor. Over years I have used Emacs for just about everything except the kitchen sink, but not, as it happens, for ConTeXt. For what it's worth here is what I use: (1) TeXworks. All one has to do is indicate the correct path to ConText in the setup for this program, depending on your OS and where you have installed it, e.g. home/yourname/bin/context/tex/texmf-linux-64/bin if you are using Linux and have installed it in \bin. Then choose ConTeXt (LuaTeX) as the processing tool. (2) But to make things a lot easier, I also use Federico's text expander Espanso <https://duckduckgo.com/?q=espanso+site:espanso.org&t=lm&atb=v353-1>https://espanso.org <https://espanso.org/>. This just saves so much time, especially for so many \start...\stop sequences. For example, in espanso I might have: You can do the same inside TeXworks. There are completion files in the folder C:\Users\yourname\AppData\Roaming\TUG\TeXworks\completion. It is not yet completed for Context, but it should not be difficult to do that. But thanks Julian, this is an interesting information Alain Julian On 26/3/23 19:22, Alexandre Christe via ntg-context wrote: Dear ConTeXt users, I'm wondering what kind of typesetting system / syntax highlighting / completion you're using. I've been using myself the simple_Context package for SublimeText which I scavenged a while ago before it was made unavailable (I wanted to attach but it's too big for the list). But it's sort of a dead-end. Open to anything from vim/neovim to emacs or more exotic. Maybe it would be nice to show the config. (And yes I've seen the Wiki page https://wiki.contextgarden.net/Text_Editorsbut I've the feeling some content is outdated.) Thanks in advance, Alex ___ 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 ___ ___ 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] registered function call [1160]:...live/2023/texmf-dist/tex/context/base/mkiv/l-sandbox.lua:87: cannot open /.: Permission denied - Alpine Linux
On Sat, Mar 25, 2023 at 09:26:36PM +0100, Hans Hagen via ntg-context wrote: > On 3/25/2023 8:55 PM, Carlos via ntg-context wrote: > > Hello list: > > > > This is under a fresh TeXLive installation. Sort as to put aside any > > texlive prepackaged issues. > > > > And the followign lines is the output of the error I've been having with > > the call of context on a recent texlive installation by both mtxrun > > --generate and luatools --generate right after. > > there i no need to use luatools (it's something old from the early days) > > what does > > mtxrun --generate --verbose > > report (whre does it fail) > > > 57 \starttext > > 58 > > 59 \usetypescriptfile[type-lucida] > > 60 \usetypescript[Lucida][texnansi] > > 61 >> \setupbodyfont[MyLucida, 10pt] > > 62 > > 63 \input zapf > > 64 > > 65 \input tufte > > fwiw, lucida type one makes no sense any more because the opentype version > is way better (and in the updated math setup in lmtx we didn't even look at > it) > > > Is LuaLaTeX behaving the same way? > > > > Answer: no. > > no surprise because it doesn't use the same setup > > what cache path does > > mtxrun --variables > > report > > Hans > > Thanks a lot Hans! Of course your sugggestion by using otf rather than going through the ttf as it may be deprecated works. No doubt. But look at the output of only a few lines.. This is exactly what I wanted to see!: system >6: filename=texnansi-bandh-lucida.map filetype=map format=map foundname=/usr/local/texlive/2023/texmf-local/fonts/map/pdftex/context/texnansi-bandh-lucida.map fullname=/usr/local/texlive/2023/texmf-local/fonts/map/pdftex/context/texnansi-bandh-lucida.map usedmethod=database system > 13: filename=/usr/local/texlive/2023/texmf-local/fonts/afm/bandh/lucida/LucidaBrightDemiBold.afm foundname=/usr/local/texlive/2023/texmf-local/fonts/afm/bandh/lucida/LucidaBrightDemiBold.afm fullname=/usr/local/texlive/2023/texmf-local/fonts/afm/bandh/lucida/LucidaBrightDemiBold.afm usedmethod=direct system > 14: filename=/usr/local/texlive/2023/texmf-local/fonts/afm/bandh/lucida/LucidaBrightDemiItalic.afm foundname=/usr/local/texlive/2023/texmf-local/fonts/afm/bandh/lucida/LucidaBrightDemiItalic.afm fullname=/usr/local/texlive/2023/texmf-local/fonts/afm/bandh/lucida/LucidaBrightDemiItalic.afm usedmethod=direct system > 15: filename=/usr/local/texlive/2023/texmf-local/fonts/afm/bandh/lucida/LucidaBrightItalic.afm foundname=/usr/local/texlive/2023/texmf-local/fonts/afm/bandh/lucida/LucidaBrightItalic.afm fullname=/usr/local/texlive/2023/texmf-local/fonts/afm/bandh/lucida/LucidaBrightItalic.afm usedmethod=direct system > 16: filename=/usr/local/texlive/2023/texmf-local/fonts/afm/bandh/lucida/LucidaBrightRegular.afm foundname=/usr/local/texlive/2023/texmf-local/fonts/afm/bandh/lucida/LucidaBrightRegular.afm fullname=/usr/local/texlive/2023/texmf-local/fonts/afm/bandh/lucida/LucidaBrightRegular.afm usedmethod=direct system > 17: filename=/usr/local/texlive/2023/texmf-local/fonts/afm/bandh/lucida/LucidaSansDemiBold.afm foundname=/usr/local/texlive/2023/texmf-local/fonts/afm/bandh/lucida/LucidaSansDemiBold.afm fullname=/usr/local/texlive/2023/texmf-local/fonts/afm/bandh/lucida/LucidaSansDemiBold.afm usedmethod=direct system > 18: filename=/usr/local/texlive/2023/texmf-local/fonts/afm/bandh/lucida/LucidaSansDemiOblique.afm foundname=/usr/local/texlive/2023/texmf-local/fonts/afm/bandh/lucida/LucidaSansDemiOblique.afm fullname=/usr/local/texlive/2023/texmf-local/fonts/afm/bandh/lucida/LucidaSansDemiOblique.afm usedmethod=direct system > 19: filename=/usr/local/texlive/2023/texmf-local/fonts/afm/bandh/lucida/LucidaSansOblique.afm foundname=/usr/local/texlive/2023/texmf-local/fonts/afm/bandh/lucida/LucidaSansOblique.afm fullname=/usr/local/texlive/2023/texmf-local/fonts/afm/bandh/lucida/LucidaSansOblique.afm usedmethod=direct system > 20: filename=/usr/local/texlive/2023/texmf-local/fonts/afm/bandh/lucida/LucidaSansRegular.afm foundname=/usr/local/texlive/2023/texmf-local/fonts/afm/bandh/lucida/LucidaSansRegular.afm fullname=/usr/local/texlive/2023/texmf-local/fonts/afm/bandh/lucida/LucidaSansRegular.afm usedmethod=direct system > 21: filename=/usr/local/texlive/2023/texmf-local/fonts/afm/bandh/lucida/LucidaTypewriterBold.afm foundname=/usr/local/texlive/2023/texmf-local/fonts/afm/bandh/lucida/LucidaTypewriterBold.afm fullname=/usr/local/texlive/2023/texmf-local/fonts/afm/bandh/lucida/LucidaTypewriterBold.afm usedmethod=direct system > 22: filename=/us
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 Sat, Mar 25, 2023 at 09:26:36PM +0100, Hans Hagen via ntg-context wrote: > On 3/25/2023 8:55 PM, Carlos via ntg-context wrote: > > Hello list: > > > > This is under a fresh TeXLive installation. Sort as to put aside any > > texlive prepackaged issues. > > > > And the followign lines is the output of the error I've been having with > > the call of context on a recent texlive installation by both mtxrun > > --generate and luatools --generate right after. > > there i no need to use luatools (it's something old from the early days) > > what does > > mtxrun --generate --verbose > > report (whre does it fail) > > > 57 \starttext > > 58 > > 59 \usetypescriptfile[type-lucida] > > 60 \usetypescript[Lucida][texnansi] > > 61 >> \setupbodyfont[MyLucida, 10pt] > > 62 > > 63 \input zapf > > 64 > > 65 \input tufte > > fwiw, lucida type one makes no sense any more because the opentype version > is way better (and in the updated math setup in lmtx we didn't even look at > it) > Hans, your advice for using otf fonts worked. Thanks. system > lua > compiling '/home/ce/.texlive2023/texmf-var/luametatex-cache/context/1b4da46d1f340757f9984eae810b1464/fonts/streams/lucidabrightregularotf-1.tma' into '/home/ce/.texlive2023/texmf-var/luametatex-cache/context/1b4da46d1f340757f9984eae810b1464/fonts/streams/lucidabrightregularotf-1.tmd' system > lua > dumping '/home/ce/.texlive2023/texmf-var/luametatex-cache/context/1b4da46d1f340757f9984eae810b1464/fonts/streams/lucidabrightregularotf-1.tma' into '/home/ce/.texlive2023/texmf-var/luametatex-cache/context/1b4da46d1f340757f9984eae810b1464/fonts/streams/lucidabrightregularotf-1.tmd' stripped Not how I wanted it originally as in Void Linux with texnansi encoding and a TeXLive2021 prepackaged mkiv lua stats > loaded fonts: 4 files: lucidabrightregular.otf, lucidasansregular.otf, latinmodern-math.otf, lmroman12-regular.otf mkiv lua stats > font engine: otf 3.113, afm 1.513, tfm 1.000, 12 instances, 6 shared in backend, 4 common vectors, 2 common hashes, load time 0.413 seconds mkiv lua stats > used platform: linux-64, type: unix, binary subtree: usr mkiv lua stats > used engine: luatex version: 1.13, functionality level: 7418, banner: this is luatex, version 1.13.0 (tex live 2021/voidlinux) mkiv lua stats > used hash slots: 48145 of 65536 + 20 mkiv lua stats > lua properties: engine: lua 5.3, used memory: 158 MB, ctx: 158 MB, max: unknown MB, hash chars: min(64,40), symbol mask: utf (τεχ) Or with otf under Alpine. but yes. otf rather than ttf backend > fonts > width units in 'SGVYNL+LucidaBright-Italic' are 2048, forcing 1000 instead backend > fonts > width units in 'QRVECH+LucidaBright' are 2048, forcing 1000 instead system > start used files system > text: atestinlucida-OTF system > stop used files system > start used files > > Is LuaLaTeX behaving the same way? > > > > Answer: no. > > no surprise because it doesn't use the same setup > > what cache path does > > mtxrun --variables > > report > > 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 > ___ -- The New Testament offers the basis for modern computer coding theory, in the form of an affirmation of the binary number system. But let your communication be Yea, yea; nay, nay: for whatsoever is more than these cometh of evil. -- Matthew 5:37 ___ 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] registered function call [1160]:...live/2023/texmf-dist/tex/context/base/mkiv/l-sandbox.lua:87: cannot open /.: Permission denied - Alpine Linux
On Sun, Mar 26, 2023 at 03:21:35PM +0200, Hans Hagen via ntg-context wrote: > On 3/26/2023 3:08 PM, Carlos via ntg-context wrote: > > On Sun, Mar 26, 2023 at 01:04:30PM +0200, Henning Hraban Ramm via > > ntg-context wrote: > > > Am 25.03.23 um 23:42 schrieb Carlos via ntg-context: > > > > > > > > > fonts | names | 3092 afm files checked, okay > > > > > > fonts | names | identifying tree font files with suffix > > > > > > 'AFM' > > > > > > fonts | names | scanning path > > > > > > '/home/ce/.texlive2023/texmf-config' for AFM files > > > > > > > > > fonts | names | variable 'OSFONTDIR' specifies path > > > > > > '/home/ce' > > > > > > fonts | names | variable 'OSFONTDIR' specifies path > > > > > > '/usr/share/fonts' > > > > > > fonts | names | globbing path '/home/ce/**.otf' > > > > > > There is something strange here. > > > Is maybe TEXMFHOME set? > > > > > > Since you use a TeX live installation, some other texmfcnf.lua or > > > texmf.cnf > > > might interfere. > > > Look into /usr/local/texlive/2023/ > > > > I'll check again to make sure. But keep in mind this issue predates the > > official TeX Live installation . I've been using the distro prepackaged for > > a while. And yes. It's always been there. Sort of like, it came with the > > system :) > > > > > > Since it scans everything in your home directory, maybe TEXMFHOME or > > > OSFONTDIR is set to ~ (instead ~/texmf) there? > > > > But even if there was a conflict, it wouldn't justify to be scanninp up > > everything viciously. > > Well, if fonts can be anywhere that means checking for them anywhere. TeX > installations have some directory setup for a reason. Imagine that you set > up the installation to include that wildcard path in TEXINPUITS then every > run that whole tree would get scanned for a file you ask for and that is not > in the current directory. The whole idea behind TDS and defining paths for > specific kind of files it to limit lookups. Hans, plesae… please, You know deep inside that the above paragraph does not make any sense even after writing it convincingly. The fact that fonts can be anywhere DOES NOT mean that a program whatever that program may be is following whatever TDS sets in place or is presumably setting in place.. or much less — regardless of fonts' location, that a program out there needs to act erratically. Careless. To say the least. Bear with me in this one (I'm just a bit tired): Look at the same issue from another system perspective. I said system perspective because simply put there is so much one can do whenever you're dealing with a multiuser program such as TeX Live. Bear wiht me here: I have Void Linux on a spare system. Let's put aside for a second the inconsistencies surrounding texmfcnf.lua there. We can get back to it later And there's plenty of it taht can also be said. Do you know what is the method used to handle this problem? By folder. If I were to invoke mtxrun --script cache --erase it should behave accordingly. Or I'd expect it to act accordingly. The same with mtxrun --script font --reload Of course, it doesn't help if texmfcnf.lua sets anything else by doing otherwise. Does it sound far-fetched? Maybe. But it certainly makes more sense than looking up everything under every imaginable worktree by which presumably there can be fonts. Which 100 percent of the time there's none. But What fonts are to be found on cache and headers folders? tfm, afm, otf? come on! But then again. Even in Void Linux (a system for which concurrent files lookups seem to be working now under the right expectations) threw errors back and forth with both context.lua mtx-context.lua and base.lua unknown scripts, before eventually getting it right. (that may be a misnomer) I ought to say I got it right, I guess. Were mtxrun --generate or mtxrun --script cache --erase called out? Of course. Which led me to read about that pesky behavior here for example: https://tug.org/pipermail/tex-live/2022-August/048375.html and similarly https://tex.stackexchange.com/questions/653913/context-from-texlive-2021-says-unknown-script-context-lua-or-mtx-context-lua But the above was put aside. And there soon followed a matter-of-fact «it's not broken in TeX Live» statement. Well. If looked at from that narow angle, yes, I guess. Recall this is with a prepackaged TeXLive or the one put out by the devs. And I
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/26/2023 3:08 PM, Carlos via ntg-context wrote: On Sun, Mar 26, 2023 at 01:04:30PM +0200, Henning Hraban Ramm via ntg-context wrote: Am 25.03.23 um 23:42 schrieb Carlos via ntg-context: fonts | names | 3092 afm files checked, okay fonts | names | identifying tree font files with suffix 'AFM' fonts | names | scanning path '/home/ce/.texlive2023/texmf-config' for AFM files fonts | names | variable 'OSFONTDIR' specifies path '/home/ce' fonts | names | variable 'OSFONTDIR' specifies path '/usr/share/fonts' fonts | names | globbing path '/home/ce/**.otf' There is something strange here. Is maybe TEXMFHOME set? Since you use a TeX live installation, some other texmfcnf.lua or texmf.cnf might interfere. Look into /usr/local/texlive/2023/ I'll check again to make sure. But keep in mind this issue predates the official TeX Live installation . I've been using the distro prepackaged for a while. And yes. It's always been there. Sort of like, it came with the system :) Since it scans everything in your home directory, maybe TEXMFHOME or OSFONTDIR is set to ~ (instead ~/texmf) there? But even if there was a conflict, it wouldn't justify to be scanninp up everything viciously. Well, if fonts can be anywhere that means checking for them anywhere. TeX installations have some directory setup for a reason. Imagine that you set up the installation to include that wildcard path in TEXINPUITS then every run that whole tree would get scanned for a file you ask for and that is not in the current directory. The whole idea behind TDS and defining paths for specific kind of files it to limit lookups. So far I've had to move about 7-8 folders. About 6 of them are owned by root, the rest are owned by root but symlinked to user. I would not do that, instead I'd fix ny OSFONTDIR path. Even with some directories moved you still end with plenty useless scanning. And to top it off, after doing so, it didn't stop there, heck no, it also wanted to snoop in a folder with cache and headers. To be honest. I woudlnt' know what to make of it. If it's simply looking into the permissions of the directories first, or the fact that it has a colon separated pattern. But. Then again. The other folders didn't have it. I'll let you know. What if you use the regular context installation (not texlive) and see what that does? Maybe that gives a clue. (btw, the official texlive 2023 was tested on windows, linux and osx so there must be something special at your end.) 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] registered function call [1160]:...live/2023/texmf-dist/tex/context/base/mkiv/l-sandbox.lua:87: cannot open /.: Permission denied - Alpine Linux
On Sun, Mar 26, 2023 at 01:04:30PM +0200, Henning Hraban Ramm via ntg-context wrote: > Am 25.03.23 um 23:42 schrieb Carlos via ntg-context: > > > > > fonts | names | 3092 afm files checked, okay > > > > fonts | names | identifying tree font files with suffix 'AFM' > > > > fonts | names | scanning path > > > > '/home/ce/.texlive2023/texmf-config' for AFM files > > > > > fonts | names | variable 'OSFONTDIR' specifies path '/home/ce' > > > > fonts | names | variable 'OSFONTDIR' specifies path > > > > '/usr/share/fonts' > > > > fonts | names | globbing path '/home/ce/**.otf' > > There is something strange here. > Is maybe TEXMFHOME set? > > Since you use a TeX live installation, some other texmfcnf.lua or texmf.cnf > might interfere. > Look into /usr/local/texlive/2023/ I'll check again to make sure. But keep in mind this issue predates the official TeX Live installation . I've been using the distro prepackaged for a while. And yes. It's always been there. Sort of like, it came with the system :) > > Since it scans everything in your home directory, maybe TEXMFHOME or > OSFONTDIR is set to ~ (instead ~/texmf) there? But even if there was a conflict, it wouldn't justify to be scanninp up everything viciously. So far I've had to move about 7-8 folders. About 6 of them are owned by root, the rest are owned by root but symlinked to user. And to top it off, after doing so, it didn't stop there, heck no, it also wanted to snoop in a folder with cache and headers. To be honest. I woudlnt' know what to make of it. If it's simply looking into the permissions of the directories first, or the fact that it has a colon separated pattern. But. Then again. The other folders didn't have it. I'll let you know. Thank you Hraban Carlos > 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 > ___ -- This file will self-destruct in five minutes. ___ 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] Text editors
Every user has his or her own preferred test editor. Over years I have used Emacs for just about everything except the kitchen sink, but not, as it happens, for ConTeXt. For what it's worth here is what I use: (1) TeXworks. All one has to do is indicate the correct path to ConText in the setup for this program, depending on your OS and where you have installed it, e.g. home/yourname/bin/context/tex/texmf-linux-64/bin if you are using Linux and have installed it in \bin. Then choose ConTeXt (LuaTeX) as the processing tool. (2) But to make things a lot easier, I also use Federico's text expander Espanso <https://duckduckgo.com/?q=espanso+site:espanso.org&t=lm&atb=v353-1>https://espanso.org <https://espanso.org/>. This just saves so much time, especially for so many \start...\stop sequences. For example, in espanso I might have: # blockquote - trigger: ":bq" replace: | \startblockquote $|$ \stopblockquote And this means all I have to do is type :bq and as you can sense from the example above, I have the \start and \stop and intervening space all ready to work with. Hope it helps! Julian On 26/3/23 19:22, Alexandre Christe via ntg-context wrote: Dear ConTeXt users, I'm wondering what kind of typesetting system / syntax highlighting / completion you're using. I've been using myself the simple_Context package for SublimeText which I scavenged a while ago before it was made unavailable (I wanted to attach but it's too big for the list). But it's sort of a dead-end. Open to anything from vim/neovim to emacs or more exotic. Maybe it would be nice to show the config. (And yes I've seen the Wiki page https://wiki.contextgarden.net/Text_Editorsbut I've the feeling some content is outdated.) Thanks in advance, Alex ___ 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] Text editors
Dear ConTeXt users, I'm wondering what kind of typesetting system / syntax highlighting / completion you're using. I've been using myself the simple_Context package for SublimeText which I scavenged a while ago before it was made unavailable (I wanted to attach but it's too big for the list). But it's sort of a dead-end. Open to anything from vim/neovim to emacs or more exotic. Maybe it would be nice to show the config. (And yes I've seen the Wiki page https://wiki.contextgarden.net/Text_Editors but I've the feeling some content is outdated.) Thanks in advance, Alex ___ 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] registered function call [1160]:...live/2023/texmf-dist/tex/context/base/mkiv/l-sandbox.lua:87: cannot open /.: Permission denied - Alpine Linux
On Sat, Mar 25, 2023 at 09:26:36PM +0100, Hans Hagen via ntg-context wrote: > On 3/25/2023 8:55 PM, Carlos via ntg-context wrote: > > Hello list: > > > > This is under a fresh TeXLive installation. Sort as to put aside any > > texlive prepackaged issues. > > > > And the followign lines is the output of the error I've been having with > > the call of context on a recent texlive installation by both mtxrun > > --generate and luatools --generate right after. > > there i no need to use luatools (it's something old from the early days) > > what does > > mtxrun --generate --verbose It doesn't. This is under the same folder in question. Recall I moved the other group owned files elsewhere out of the way This is the output system | lua | compiling '/home/ce/.texlive2023/texmf-var/luametatex-cache/context/78ac5e3684a91334606faa581c7ce1d1/trees/73630a261795d9c53610a28af4550cbc.lua' into '/home/ce/.texlive2023/texmf-var/luametatex-cache/context/78ac5e3684a91334606faa581c7ce1d1/trees/73630a261795d9c53610a28af4550cbc.lud' system | lua | dumping '/home/ce/.texlive2023/texmf-var/luametatex-cache/context/78ac5e3684a91334606faa581c7ce1d1/trees/73630a261795d9c53610a28af4550cbc.lua' into '/home/ce/.texlive2023/texmf-var/luametatex-cache/context/78ac5e3684a91334606faa581c7ce1d1/trees/73630a261795d9c53610a28af4550cbc.lud' stripped resolvers | caching | 'files' compiled to '/home/ce/.texlive2023/texmf-var/luametatex-cache/context/78ac5e3684a91334606faa581c7ce1d1/trees/73630a261795d9c53610a28af4550cbc.lud' resolvers | resolving | saving tree 'selfautoparent:texmf-dist' resolvers | caches | hashing tree 'selfautoparent:texmf-dist', hash '929f6dbc83f6d3b65dab91f1efa4aacb' resolvers | caching | preparing 'files' for 'selfautoparent:texmf-dist' resolvers | caching | category 'files', cachename 'selfautoparent:texmf-dist' saved in '/home/ce/.texlive2023/texmf-var/luametatex-cache/context/78ac5e3684a91334606faa581c7ce1d1/trees/929f6dbc83f6d3b65dab91f1efa4aacb.lua' system | lua | compiling '/home/ce/.texlive2023/texmf-var/luametatex-cache/context/78ac5e3684a91334606faa581c7ce1d1/trees/929f6dbc83f6d3b65dab91f1efa4aacb.lua' into '/home/ce/.texlive2023/texmf-var/luametatex-cache/context/78ac5e3684a91334606faa581c7ce1d1/trees/929f6dbc83f6d3b65dab91f1efa4aacb.lud' system | lua | dumping '/home/ce/.texlive2023/texmf-var/luametatex-cache/context/78ac5e3684a91334606faa581c7ce1d1/trees/929f6dbc83f6d3b65dab91f1efa4aacb.lua' into '/home/ce/.texlive2023/texmf-var/luametatex-cache/context/78ac5e3684a91334606faa581c7ce1d1/trees/929f6dbc83f6d3b65dab91f1efa4aacb.lud' stripped resolvers | caching | 'files' compiled to '/home/ce/.texlive2023/texmf-var/luametatex-cache/context/78ac5e3684a91334606faa581c7ce1d1/trees/929f6dbc83f6d3b65dab91f1efa4aacb.lud' mtxrun | mtxrun | elapsed lua time: 4.327 seconds > > 58 > > 59 \usetypescriptfile[type-lucida] > > 60 \usetypescript[Lucida][texnansi] > > 61 >> \setupbodyfont[MyLucida, 10pt] > > 62 > > 63 \input zapf > > 64 > > 65 \input tufte > > fwiw, lucida type one makes no sense any more because the opentype version > is way better (and in the updated math setup in lmtx we didn't even look at > it) > It goes throught without a problem under Void Linux. pfm and afm files on this one are right there in place. On this one: Alpine. It's a problem. or a given :) depending how one looks at it. > > Is LuaLaTeX behaving the same way? > > > > Answer: no. > > no surprise because it doesn't use the same setup > > what cache path does > > mtxrun --variables > > report mtxrun --variables resolvers | lists | AFMFONTS resolvers | lists | env: unset resolvers | lists | var: AFMFONTS resolvers | lists | exp: .\{home:.texlive2023/texmf-config, home:texmf, !!selfautoparent:texmf-config, !!selfautoparent:texmf-var, !!selfautoparent:texmf-project, !!selfautoparent:texmf-fonts, !!selfautoparent:texmf-local, !!selfautoparent:texmf-dist}/fonts/{data, afm}//\/home/ce\/usr/share/fonts resolvers | lists | res: .\{/home/ce/.texlive2023/texmf-config, /home/ce/texmf, !!/usr/local/texlive/2023/texmf-config, !!/usr/local/texlive/2023/texmf-var, !!/usr/local/texlive/2023/texmf-project, !!/usr/local/texlive/2023/texmf-fonts, !!/usr/local/texlive/2023/texmf-local, !!/usr/local/texlive/2023/texmf-dist}/fonts/{data, afm}//\/home/ce\/usr/share/fonts resolvers | lists | BIBINPUTS resolvers | lists | env: unset resolvers
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/25/2023 8:55 PM, Carlos via ntg-context wrote: Hello list: This is under a fresh TeXLive installation. Sort as to put aside any texlive prepackaged issues. And the followign lines is the output of the error I've been having with the call of context on a recent texlive installation by both mtxrun --generate and luatools --generate right after. there i no need to use luatools (it's something old from the early days) what does mtxrun --generate --verbose report (whre does it fail) 57 \starttext 58 59 \usetypescriptfile[type-lucida] 60 \usetypescript[Lucida][texnansi] 61 >> \setupbodyfont[MyLucida, 10pt] 62 63 \input zapf 64 65 \input tufte fwiw, lucida type one makes no sense any more because the opentype version is way better (and in the updated math setup in lmtx we didn't even look at it) Is LuaLaTeX behaving the same way? Answer: no. no surprise because it doesn't use the same setup what cache path does mtxrun --variables report 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] registered function call [1160]:...live/2023/texmf-dist/tex/context/base/mkiv/l-sandbox.lua:87: cannot open /.: Permission denied - Alpine Linux
Hello list: This is under a fresh TeXLive installation. Sort as to put aside any texlive prepackaged issues. And the followign lines is the output of the error I've been having with the call of context on a recent texlive installation by both mtxrun --generate and luatools --generate right after. mtxrun --script cache --erase has also been called out to no avail registered function call [1160]: ...live/2023/texmf-dist/tex/context/base/mkiv/l-sandbox.lua:87: cannot open /.: Permission denied stack traceback: [C]: in upvalue 'func' ...live/2023/texmf-dist/tex/context/base/mkiv/l-sandbox.lua:87: in function 'lfs.dir' .../texlive/2023/texmf-dist/tex/context/base/mkiv/l-dir.lua:139: in upvalue 'glob_pattern_table' .../texlive/2023/texmf-dist/tex/context/base/mkiv/l-dir.lua:163: in upvalue 'glob_pattern_table' .../texlive/2023/texmf-dist/tex/context/base/mkiv/l-dir.lua:163: in upvalue 'glob_pattern_table' .../texlive/2023/texmf-dist/tex/context/base/mkiv/l-dir.lua:163: in upvalue 'glob_pattern_table' .../texlive/2023/texmf-dist/tex/context/base/mkiv/l-dir.lua:163: in upvalue 'glob_pattern_table' .../texlive/2023/texmf-dist/tex/context/base/mkiv/l-dir.lua:180: in function <.../texlive/2023/texmf-dist/tex/context/base/mkiv/l-dir.lua:169> (...tail calls...) ...xlive/2023/texmf-dist/tex/context/base/mkiv/font-syn.lua:1030: in upvalue 'walk_tree' ...xlive/2023/texmf-dist/tex/context/base/mkiv/font-syn.lua:1190: in local 'method' ...xlive/2023/texmf-dist/tex/context/base/mkiv/font-syn.lua:1152: in local 'traverse' ...xlive/2023/texmf-dist/tex/context/base/mkiv/font-syn.lua:1200: in upvalue 'analyzefiles' ...xlive/2023/texmf-dist/tex/context/base/mkiv/font-syn.lua:1286: in field 'identify' ...xlive/2023/texmf-dist/tex/context/base/mkiv/font-syn.lua:1311: in field 'load' ...xlive/2023/texmf-dist/tex/context/base/mkiv/font-syn.lua:1322: in field 'load' ...xlive/2023/texmf-dist/tex/context/base/mkiv/font-syn.lua:1588: in field 'getfilename' ...xlive/2023/texmf-dist/tex/context/base/mkxl/font-otl.lmt:835: in function <...xlive/2023/texmf-dist/tex/context/base/mkxl/font-otl.lmt:828> (...tail calls...) ...xlive/2023/texmf-dist/tex/context/base/mkxl/font-def.lmt:378: in function <...xlive/2023/texmf-dist/tex/context/base/mkxl/font-def.lmt:366> (...tail calls...) ...xlive/2023/texmf-dist/tex/context/base/mkxl/font-def.lmt:485: in field 'read' ...xlive/2023/texmf-dist/tex/context/base/mkxl/font-ctx.lmt:1377: in function <...xlive/2023/texmf-dist/tex/context/base/mkxl/font-ctx.lmt:1234> (...tail calls...) 51 ;definetypeface[MyLucida][rm][serif][lucida][default][encoding=texnansi] 52 \definetypeface[MyLucida][ss][sans][lucida][default][encoding=texnansi] 53 \definetypeface[MyLucida][tt][mono][lucida][default][encoding=texnansi] 54 \stoptypescript 55 56 57 \starttext 58 59 \usetypescriptfile[type-lucida] 60 \usetypescript[Lucida][texnansi] 61 >> \setupbodyfont[MyLucida, 10pt] 62 63 \input zapf 64 65 \input tufte 66 67 68 \stoptext 69 mtx-context | fatal error: return code: 1 it doesn't matter either whatever the typescript name goes and whether is type-lucida from texnansi-lucida-map file as it has been previously advised to change the name from . makes no difference. Is LuaLaTeX behaving the same way? Answer: no. The permission denied message happened first with folders whose permeissions were not owned by the user, but the root, so I moved the files out of harm's way to another folder . Anothr folder, NOT a subfolder. Then the problem persisted to read folders and even subfolders (directories, subdirectories) with cache filenames and headers that follow So let's not get to apprehensive, It's understandable that say, not reasonable, but understandable maybe? that mtxrun or lua for that matter will stop right before. So the folders were moved right after. Gone out of the binaries. But what I can't understand is why would it try to access cache folders unrelated with anything TeX or header folders for that matter This is perhaps more serious than I thought at first. And Let's not blame the TeXLive pre-packaged running under Alpine Linux. To put it in laymans' terms and If anything is clear to me, is that Alpine ir not letting Lua running beserk on the system and its folders, owned by whatever/whoever else, and with pesmissions set elsewhere. It's out of the question. Or it rather be. This is all writh a fresh TeX Live Installation. I mentioned the problem tha
Re: [NTG-context] Problem with \stoptabulate
Sorry everyone, ignore me, it doesn't work. (Got my test files mixed up - aargh!) > On 21 Mar 2023, at 11:06, Bruce Horrocks via ntg-context > wrote: > > > Thanks Julian - I tried a startstop environment originally but it didn't work. > > The answer turns out to be trivial - just needed to use \long\def for > \stoptabulate so the following appears to work: > > \def\startMyExample{\starttabulate[|r|c|l|p|]} > \long\def\stopMyExample{\stoptabulate} %% long def required here > \def\MyExampleItem#1#2#3{\NC #1 \NC \rightarrow \NC #2 \NC #3 \NC\NR} > > \starttext > Here are some examples... > > \startMyExample > \MyExampleItem{before}{after}{change before into after} > \MyExampleItem{straw}{gold}{Rumpelstiltskin} > \stoptabulate > > \stoptext > > >> On 21 Mar 2023, at 05:23, jbf via ntg-context wrote: >> >> Not sure if this helps, Bruce, but there is \definestartstop >> >> Julian >> >> On 21/3/23 10:34, Bruce Horrocks via ntg-context wrote: >>> I have a technical manual style document that requires a lot of examples to >>> be included. >>> >>> They can easily be typeset with a table so I thought I would save myself >>> some typing by defining macros for the various bits of a tabulate table. >>> Thus I have: >>> >>> \def\startMyExample{\starttabulate[|r|c|l|p|]} >>> \def\stopMyExample{\stoptabulate} >>> \def\MyExampleItem#1#2#3{\NC #1 \NC \rightarrow \NC #2 \NC #3 \NC\NR} >>> >>> \starttext >>> Here are some examples... >>> >>> \startMyExample >>> \MyExampleItem{before}{after}{change before into after} >>> \MyExampleItem{straw}{gold}{Rumpelstiltskin} >>> \stopMyExample >>> %\stoptabulate >>> >>> \stoptext >>> >>> The problem is that \stopMyExample doesn't work - the \stoptabulate isn't >>> recognised and I get an end of file reached error. If use a straight >>> \stoptabulate then it works as expected. That's fine but it would be nice, >>> from an aesthetic point of view, to have start & stop 'paired' commands in >>> the source. >>> >>> Presumably some sort of deep ConTeXt fu is going on - can anyone explain it >>> please? >>> >>> Regards, >>> — >>> Bruce Horrocks >>> Hampshire, UK > > — > Bruce Horrocks > Hampshire, UK > > ___ > 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 > ___ — Bruce Horrocks Hampshire, UK ___ 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] Problem with \stoptabulate
Thanks Julian - I tried a startstop environment originally but it didn't work. The answer turns out to be trivial - just needed to use \long\def for \stoptabulate so the following appears to work: \def\startMyExample{\starttabulate[|r|c|l|p|]} \long\def\stopMyExample{\stoptabulate} %% long def required here \def\MyExampleItem#1#2#3{\NC #1 \NC \rightarrow \NC #2 \NC #3 \NC\NR} \starttext Here are some examples... \startMyExample \MyExampleItem{before}{after}{change before into after} \MyExampleItem{straw}{gold}{Rumpelstiltskin} \stoptabulate \stoptext > On 21 Mar 2023, at 05:23, jbf via ntg-context wrote: > > Not sure if this helps, Bruce, but there is \definestartstop > > Julian > > On 21/3/23 10:34, Bruce Horrocks via ntg-context wrote: >> I have a technical manual style document that requires a lot of examples to >> be included. >> >> They can easily be typeset with a table so I thought I would save myself >> some typing by defining macros for the various bits of a tabulate table. >> Thus I have: >> >> \def\startMyExample{\starttabulate[|r|c|l|p|]} >> \def\stopMyExample{\stoptabulate} >> \def\MyExampleItem#1#2#3{\NC #1 \NC \rightarrow \NC #2 \NC #3 \NC\NR} >> >> \starttext >> Here are some examples... >> >> \startMyExample >> \MyExampleItem{before}{after}{change before into after} >> \MyExampleItem{straw}{gold}{Rumpelstiltskin} >> \stopMyExample >> %\stoptabulate >> >> \stoptext >> >> The problem is that \stopMyExample doesn't work - the \stoptabulate isn't >> recognised and I get an end of file reached error. If use a straight >> \stoptabulate then it works as expected. That's fine but it would be nice, >> from an aesthetic point of view, to have start & stop 'paired' commands in >> the source. >> >> Presumably some sort of deep ConTeXt fu is going on - can anyone explain it >> please? >> >> Regards, >> — >> Bruce Horrocks >> Hampshire, UK — Bruce Horrocks Hampshire, UK ___ 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] Problem with \stoptabulate
On 3/21/2023 12:34 AM, Bruce Horrocks via ntg-context wrote: I have a technical manual style document that requires a lot of examples to be included. They can easily be typeset with a table so I thought I would save myself some typing by defining macros for the various bits of a tabulate table. Thus I have: \def\startMyExample{\starttabulate[|r|c|l|p|]} \def\stopMyExample{\stoptabulate} \def\MyExampleItem#1#2#3{\NC #1 \NC \rightarrow \NC #2 \NC #3 \NC\NR} \starttext Here are some examples... \startMyExample \MyExampleItem{before}{after}{change before into after} \MyExampleItem{straw}{gold}{Rumpelstiltskin} \stopMyExample %\stoptabulate \stoptext The problem is that \stopMyExample doesn't work - the \stoptabulate isn't recognised and I get an end of file reached error. If use a straight \stoptabulate then it works as expected. That's fine but it would be nice, from an aesthetic point of view, to have start & stop 'paired' commands in the source. Presumably some sort of deep ConTeXt fu is going on - can anyone explain it please? \definetabulate[MyExample][|r|c|l|p|] \def\MyExampleItem#1#2#3{\NC #1 \NC \rightarrow \NC #2 \NC #3 \NC\NR} \startMyExample \MyExampleItem{before}{after}{change before into after} \MyExampleItem{straw}{gold}{Rumpelstiltskin} \stopMyExample - 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] Problem with \stoptabulate
Not sure if this helps, Bruce, but there is \definestartstop Julian On 21/3/23 10:34, Bruce Horrocks via ntg-context wrote: I have a technical manual style document that requires a lot of examples to be included. They can easily be typeset with a table so I thought I would save myself some typing by defining macros for the various bits of a tabulate table. Thus I have: \def\startMyExample{\starttabulate[|r|c|l|p|]} \def\stopMyExample{\stoptabulate} \def\MyExampleItem#1#2#3{\NC #1 \NC \rightarrow \NC #2 \NC #3 \NC\NR} \starttext Here are some examples... \startMyExample \MyExampleItem{before}{after}{change before into after} \MyExampleItem{straw}{gold}{Rumpelstiltskin} \stopMyExample %\stoptabulate \stoptext The problem is that \stopMyExample doesn't work - the \stoptabulate isn't recognised and I get an end of file reached error. If use a straight \stoptabulate then it works as expected. That's fine but it would be nice, from an aesthetic point of view, to have start & stop 'paired' commands in the source. Presumably some sort of deep ConTeXt fu is going on - can anyone explain it please? Regards, — Bruce Horrocks Hampshire, UK ___ 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] Problem with \stoptabulate
I have a technical manual style document that requires a lot of examples to be included. They can easily be typeset with a table so I thought I would save myself some typing by defining macros for the various bits of a tabulate table. Thus I have: \def\startMyExample{\starttabulate[|r|c|l|p|]} \def\stopMyExample{\stoptabulate} \def\MyExampleItem#1#2#3{\NC #1 \NC \rightarrow \NC #2 \NC #3 \NC\NR} \starttext Here are some examples... \startMyExample \MyExampleItem{before}{after}{change before into after} \MyExampleItem{straw}{gold}{Rumpelstiltskin} \stopMyExample %\stoptabulate \stoptext The problem is that \stopMyExample doesn't work - the \stoptabulate isn't recognised and I get an end of file reached error. If use a straight \stoptabulate then it works as expected. That's fine but it would be nice, from an aesthetic point of view, to have start & stop 'paired' commands in the source. Presumably some sort of deep ConTeXt fu is going on - can anyone explain it please? Regards, — Bruce Horrocks Hampshire, UK ___ 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] Disappearing footnote in figure / tabulate
Ok, I've somehow managed to isolate the issue in my real document. There, the issue happens only when a new paragraph starts after the tabulate. If there's nothing after the tabulate, the footnotes appears... Also, if I'm using location=page, the footnote will also appear. That's what I'm using now, so there's no urgency for me now. (But does that maybe already indicate the source of the issue ?) Anyway, I still find the behaviour somewhat weird. I'll try to come up with a MWE. Any hints how to best proceed are still highly appreciated. Best, Denis Von: ntg-context Im Auftrag von Denis Maier via ntg-context Gesendet: Donnerstag, 2. März 2023 09:21 An: ntg-context@ntg.nl Cc: Maier, Denis Christian (UB) Betreff: [NTG-context] Disappearing footnote in figure / tabulate Hi, I have a strange case where a footnote in a tabulate disappears. Strangely, I *cannot* reproduce the behaviour in the MWE below. At first, I thought it must have something to do with \startpostponingnotes, but it seems that this currently isnt't necessary anymore, or at least only for extreme tables. Is that correct? I'll try to narrow it down. Any hints how I could debug that issue? As I'm again working with XML files: Is it possible that this behaviour is caused by some sort of nested setups which makes the footnotes not bubble up? Best, Denis \startbuffer[test] a2 b a2 b \stopbuffer \startxmlsetups xml:test \xmlsetsetup{\xmldocument}{document|table-wrap|table|figure|p|footnote}{xml:*} \stopxmlsetups \xmlregistersetup{xml:test} \startxmlsetups xml:document \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:p \xmlflush{#1}\par \stopxmlsetups \startxmlsetups xml:footnote \footnote{\xmlflush{#1}} \stopxmlsetups \startxmlsetups xml:figure \startplacefigure[title={Test},location={force,split}] \xmlflush{#1} \stopplacefigure \stopxmlsetups \startxmlsetups xml:table-wrap \startpostponingnotes \xmlflush{#1} \stoppostponingnotes \stopxmlsetups \startxmlsetups xml:table \startpostponingnotes \starttabulate[|p|p|] \xmlfilter{#1}{/tr/command(xml:table:tr)} \stoptabulate \stoppostponingnotes \stopxmlsetups \startxmlsetups xml:table:tr \xmlfilter{#1}{/td/command(xml:table:tr:td)}\NC\NR \stopxmlsetups \startxmlsetups xml:table:tr:td \NC \xmlflush{#1} \stopxmlsetups \starttext \xmlprocessbuffer{test}{test}{} \startplacetable \starttabulate[|p|p|] \NC a\footnote{3}\NC b\NC\NR \stoptabulate \stopplacetable \startplacetable \bTABLE \bTR \bTD One\footnote{4} \eTD \bTD two \eTD \eTR \bTR \bTD One \eTD \bTD two \eTD \eTR \eTABLE \stopplacetable % \startpostponingnotes \startplacetable \startxtable \startxrow \startxcell a\footnote{5}\stopxcell \startxcell b\footnote{6}\stopxcell \stopxrow \stopxtable \stopplacetable % \stoppostponingnotes \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] Disappearing footnote in figure / tabulate
Hi, I have a strange case where a footnote in a tabulate disappears. Strangely, I *cannot* reproduce the behaviour in the MWE below. At first, I thought it must have something to do with \startpostponingnotes, but it seems that this currently isnt't necessary anymore, or at least only for extreme tables. Is that correct? I'll try to narrow it down. Any hints how I could debug that issue? As I'm again working with XML files: Is it possible that this behaviour is caused by some sort of nested setups which makes the footnotes not bubble up? Best, Denis \startbuffer[test] a2 b a2 b \stopbuffer \startxmlsetups xml:test \xmlsetsetup{\xmldocument}{document|table-wrap|table|figure|p|footnote}{xml:*} \stopxmlsetups \xmlregistersetup{xml:test} \startxmlsetups xml:document \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:p \xmlflush{#1}\par \stopxmlsetups \startxmlsetups xml:footnote \footnote{\xmlflush{#1}} \stopxmlsetups \startxmlsetups xml:figure \startplacefigure[title={Test},location={force,split}] \xmlflush{#1} \stopplacefigure \stopxmlsetups \startxmlsetups xml:table-wrap \startpostponingnotes \xmlflush{#1} \stoppostponingnotes \stopxmlsetups \startxmlsetups xml:table \startpostponingnotes \starttabulate[|p|p|] \xmlfilter{#1}{/tr/command(xml:table:tr)} \stoptabulate \stoppostponingnotes \stopxmlsetups \startxmlsetups xml:table:tr \xmlfilter{#1}{/td/command(xml:table:tr:td)}\NC\NR \stopxmlsetups \startxmlsetups xml:table:tr:td \NC \xmlflush{#1} \stopxmlsetups \starttext \xmlprocessbuffer{test}{test}{} \startplacetable \starttabulate[|p|p|] \NC a\footnote{3}\NC b\NC\NR \stoptabulate \stopplacetable \startplacetable \bTABLE \bTR \bTD One\footnote{4} \eTD \bTD two \eTD \eTR \bTR \bTD One \eTD \bTD two \eTD \eTR \eTABLE \stopplacetable % \startpostponingnotes \startplacetable \startxtable \startxrow \startxcell a\footnote{5}\stopxcell \startxcell b\footnote{6}\stopxcell \stopxrow \stopxtable \stopplacetable % \stoppostponingnotes \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] problem with Segoe Ui Symbol as fallback font
On 1/4/2023 2:29 PM, Jacob Kauffmann via ntg-context wrote: The problem is that now that \bf, \it and so on stopped working outside math mode. A workaround is to add \rm after \starttext. Maybe the developers can shed some light :) \definefontfeature[mathextra][moderntocalligraphic=yes] you can peek inti pagella-math.lfg and common-math.lfg fallbacks in math are sort of gone in lmtx as it's only asking for troubles but we can overlay from other fonts in lfg files Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / 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 ___