[NTG-context] mailing list delivery security
Hi again, Besides having a solution for the mailing list server inadvertently spamming unsuspecting people through scripted form submits (see my recent message), there is also another update: the mailing lists of both ntg.nl <http://ntg.nl/> and contextgarden.net <http://contextgarden.net/> now use DKIM signing for their outgoing messages. This should help reliability of message delivery. Best wishes, Taco — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ 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: Mail server login broken
Hi all, > > I will try turning signs ups on again for a while, but I probably cannot keep > it open. This situation will likely endure until some future update to > mailman3 gives administrators more control, or until someone knowledgeable in > python can help me patch mailman so that it blocks only the “password reset” > functionality, but not the “sign up” (help?). With much needed help from Max Chernoff, the mailing list webforms now all have a reCaptcha. This means that both signup and “password forgotten” features could be enabled again. Thank you, Max! Best wishes, Taco — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ 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: Mail server login broken
> On 30 Sep 2024, at 09:15, Hans Åberg wrote: > > An anti-spam measure is requiring email confirmation, typically an email sent > to the address to be registered with an HTML link that must be opened and > confirmed by clicking on a button. What happens is that a malicious script is submitting a "password reset" form with a valid but unknown to mailman email address. Mailman3 should not respond to those, but it does. The receivers of such password reset reminders get righteously annoyed. Best wishes, Taco — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ 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: Mail server login broken
Hi, > On 29 Sep 2024, at 21:31, Hans Åberg via ntg-context > wrote: > > >> On 29 Sep 2024, at 20:56, Henning Hraban Ramm wrote: >> >> Am 29.09.24 um 17:57 schrieb Hans Åberg via ntg-context: >>> Nothing seems to be working on the NTG ConTeXt server login page below, so >>> I can't change my email address. >>> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl/ The situation with the mailing list server: mailman3 is confused about all the accounts that have been imported from the old mailman2 installation: the front end assumes these accounts have a postorius login attached to it because that is how it works for new subscribers, but those imported accounts do not have such an account. There is no easy fix for that that I can apply as an administrator, unfortunately. The most straightforward solution would be to create a new subscriber account using the web interface, and then use the old-fashioned email method to unsubscribe the old account (or send me a message personally). However, a secondary problem is that the mailman web forms are used by spammers so often that I have registration/signup turned off. The continuous barrage of invalid password reset requests was negatively affecting the reputation of the mail server so much that even delivery of proper emails became a problem. This is another issue that cannot be easily fixed as administrator, because there is not a lot of detailed control possible on what messages mailman does and does not send out. Either it sends out no messages to unknown email addresses, or it always sends out such messages. I will try turning signs ups on again for a while, but I probably cannot keep it open. This situation will likely endure until some future update to mailman3 gives administrators more control, or until someone knowledgeable in python can help me patch mailman so that it blocks only the “password reset” functionality, but not the “sign up” (help?). TL;DR: if you have a problem, email me personally with old and new addresses, and I will fix your account. >> Try https://lists.contextgarden.net/mailman3/ the footer is apparently wrong. FWIW the footer is actually correct. It just does not help that much. — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ 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 in Mobile(?) format
> On 1 Aug 2024, at 16:15, Gerion Entrup wrote: > > Hi, > > since a few weeks I have the problem that I get the mobile(?) view for the > wiki, when I open a "wiki.contextgarden.net" link. > However, the mobile view is not feature complete (colors and renderings are > missing). There is a link at the bottom of each wiki page. Its label is either “Mobile view” (in your firefox) or “Desktop” (in your Qutebrowser). I am sure you can guess what clicking on it does. :) Best wishes, Taco ___ 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: Alignments of margin notes
Hi, Something seems wrong with the align processing inside \setupmargindata, because using a macro like \def\Inmargin#1{\inmargin{\blank[-line]\startalignment[inner,nothyphenated]#1\stopalignment}} works ok (the \blank[-line] is a side-effect of using the environment inside a margin text). Best, Taco > On 1 Aug 2024, at 14:28, Gerion Entrup wrote: > > Hi, > > I want to make a two sided document with margin notes. > The notes should not be hyphenated and always aligned to the inner text body. > However, I did not get this to work. > It hyphenates and the alignment is only correct at even pages. > > Do you know the correct way? > > Here is a MWE: > ``` > \setuppagenumbering[location={footer, right}, alternative=doublesided] > > \definealign[myalign][inner, nothyphenated] > \setupmargindata[inmargin][ > location=outer, > style=italic, > % nothing of that seems to have any effect > % align=myalign, > % align=inner, > % align=nothyphentated, > align={inner, nothyphentated}, > ] > > \starttext > > \inmargin{significant incredible components}\input knuth > \inmargin{significant incredible components}\input knuth > \inmargin{significant incredible components}\input knuth > \inmargin{significant incredible components}\input knuth > \inmargin{significant incredible components}\input knuth > \inmargin{significant incredible components}\input knuth > \inmargin{significant incredible components}\input knuth > \inmargin{significant incredible components}\input knuth > > \stoptext > ``` > > Best, > Gerion___ > 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 > ___ — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ 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] Reminder: 18th ConTeXt Meeting , August 17-23.
Dear list members, We would like to remind you that registration for the 18th ConTeXt Meeting https://meeting.contextgarden.net/2024/ will only remain open for a few more days. There are a few open onsite spots remaining, so there is still an opportunity to meet us all in person this year. You can also register to attend the online meeting, where there is no limit on the number of attendees. Meeting in person is a lot more fun, though! This year we are hosted in Lutten, The Netherlands, in a converted water tower: https://watertorenlutten-nl.translate.goog/?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en&_x_tr_pto=wapp We will be present online in Hraban's BBB chatroom, per usual: https://lecture.senfcall.de/hen-rbr-rku-oke The theme for this meeting is keeping up but as you know we have never been that strict about a particular theme, so feel free to suggest other topics to talk about. We are busy creating the actual schedule, but a lot of the planned talks are already mentioned on the abstracts page of the website (in random order): https://meeting.contextgarden.net/2024/abstracts.shtml Dates and deadlines • August 1st 2024, registration closes, ask for options after this deadline • August 17th–23th, 2024, 18th ConTeXt Meeting Never been to the ConTeXt Meeting? Don't worry, the group of regular participants is open and friendly, and you don't know what you are missing, unless you come at least once. Different discount options https://meeting.contextgarden.net/2024/fee.shtml are available. We hope to see you in August! Ton, Hans, and Taco — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ 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 hide any content?
> On 25 Jul 2024, at 10:29, Joel via ntg-context wrote: > > I have a strange issue with some macros that are creating extra spaces > between paragraphs. Note these macros shouldn’t create any content, as they > define content that will be sent to registers and content that is used for > page references. Its more like invisible data, perhaps the word is “metadata” > and other parts of the document need to know it and refer to it, but nothing > should be rendered there. You will have to post a true minimal example including the correct definition of one of your macros. Best wishes, Taco — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ 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: Install urbanist fonts
Here is what I did (and it worked) * clone the repo * mkdir [context root]/tex/texmf-fonts/fonts/data/urbanist * copy the *.otfs there * mtxrun —generate * fix 3 errors in your typescript (“name:” => “file:”) * done (for Hraban: mtxrun —scripts fonts —reload will run automatically if a font cannot be found) > On 22 Jul 2024, at 10:33, alan.caruanam...@gmail.com wrote: > > Hello, I was trying to install the urbanist fonts > (https://github.com/coreyhu/Urbanist) but I couldn't get it to load and save > the fonts in the system folder and in the ConTeXt folder without success, I > could only get it to load when saving them in the current working directory > but that is annoying, help me by telling me the correct way to install it... > I leave you my code so you can review it and give me advice to improve it > > \starttypescript [sans] [urbanist] >\definefontsynonym > [Urbanist][file:urbanist-regular.otf*default][features=default] >\definefontsynonym > [UrbanistItalic][name:urbanist-italic.otf*default][features=default] >\definefontsynonym > [UrbanistBold][name:urbanist-bold.otf*default][features=default] >\definefontsynonym > [UrbanistBoldItalic][name:urbanist-bolditalic.otf*default][features=default] > \stoptypescript > > \starttypescript [sans] [urbanist] >\definefontsynonym [Sans][Urbanist][features=default] >\definefontsynonym [SansItalic][UrbanistItalic][features=default] >\definefontsynonym [SansBold][UrbanistBold][features=default] >\definefontsynonym [SansBoldItalic][UrbanistBoldItalic][features=default] > \stoptypescript > > \definetypeface[urbanist][ss][sans][urbanist][default] > > \setupbodyfont[urbanist,30pt] > > \starttext > \dorecurse{100}{\bf \input knuth \crlf} > \stoptext > ___ > 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 > ___ — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ 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: request for talk/article on writing modules
Hi, > On 19 Jul 2024, at 17:06, Henning Hraban Ramm wrote: > > Hi wizards, > I’d really appreciate an introduction “how to write a ConTeXt module” at the > meeting and in the next journal. I’ll try to find some knowledgeable people for you. Best wishes, Taco ___ 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: (any) link with document breaks Reader DC
> On 26 Jun 2024, at 18:01, Pablo Rodriguez via ntg-context > wrote: > > If it asks for permission, it is working fine. > > It might be (a wild guess, since I don’t have access to macOS system) > that the issue only happens with Windows computers. > > BTW, I have just consistenly experienced it on another Windows computer. On my Mac it did not crash, but that is a Reader from 2021 that I am not willing to upgrade so I am not sure how useful that information is. I also installed a new Reader on my Windows 11 machine, and that one worked ok as well. It says “Continuous Release | Version 2024.002.20857 | 64 bit”, and it is the Win 11 specific EN (US) version. Best wishes, Taco ___ 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's broken
> On 14 Jun 2024, at 23:43, Taco Hoekwater wrote: > > After the weekend, I will see whether we can somehow enlarge the server (more > memory/more cpu). For now, you will occasionally get this message, sorry. I > blame the USA elections with their associated rise of online town criers > flooding the email service that is on the same machine. Update: the server load dropped quite dramatically after disabling a few crawling bots, in particular the badly-behaved ClaudeBot. The wiki and mailing lists are performing much better now. Jay! Best wishes, Taco ___ 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's broken
Hi, > On 14 Jun 2024, at 20:03, Andres Conrado Montoya > wrote: > > Visiting the Wiki currently renders this error when you try to search > anything: > > Internal error I did this, and on purpose. It also shows ’Sorry, the server is too busy right now’ along the top of the page. This is a quick hack I did that prevents the wiki from destroying the whole machine when it gets too busy. If it is very busy already, asking the wiki for search results tends to escalate the problem quickly into the machine dropping services left and right. After the weekend, I will see whether we can somehow enlarge the server (more memory/more cpu). For now, you will occasionally get this message, sorry. I blame the USA elections with their associated rise of online town criers flooding the email service that is on the same machine. Somewhat sorry, Taco (server maintenance) — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ 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 improve appearance of bars in frac, sqrt, etc. on screens?
> On 14 Jun 2024, at 11:44, Hans Hagen via ntg-context > wrote: > > On 6/14/2024 9:35 AM, Henning Hraban Ramm wrote: >> Am 13.06.24 um 23:13 schrieb Hans Hagen via ntg-context: >>> On 6/13/2024 10:04 PM, Otared Kavian wrote: >>>> Hi Ralph, >>>> >>>> I don’t see any pixels in the PDF file when I typeset your code snipet (on >>>> MacOS 11.7.10). Here is what I get. >>> No problems on windows on chrome-os either. Mikael S and I checked it on >>> his linux box and one can indeed see anti aliasing when taking a screen >>> dump (depends on resolution). >>> >>> So it's a linux rendering issue when taking dumps. >> Not only. It also happens with all(?) PDF viewers on MacOS – at least 10.14 >> and 10.15, can anyone confirm with current versions? Artifacts like mentioned were visible in Preview on my Mac (14.5) as well. The PDF view in chrome on this Mac shows a slightly different artifact effect, see image below. Neither bothers me, though. Best wishes, Taco — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ 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: https://wiki.contextgarden.net/Command/blank
> On 4 Jun 2024, at 20:16, Wolfgang Schuster > wrote: > > Jim schrieb am 04.06.2024 um 19:48: > >> I did not realize the wiki software did that. On reflection I suppose that >> is useful in many (most?) cases. But I'd argue that it is not always a good >> thing, such as in this case. (If nothing else, it might mislead a n00b >> into thinking that you should get output for text preceding \starttext.) Here is the documentation for the tag extension: https://wiki.contextgarden.net/Help:Context Best wishes, Taco___ 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: Numbers obtained by commands <\datasetvariable> cannot be copied to counters
> On 29 May 2024, at 14:05, ai2472206...@yeah.net wrote: > > I'm defining a command to generate options for multiple choice questions, > but at the moment I'm stuck at this step. > I want to get a number and assign a value to the counter, but why can't I get > it? > > > \starttext > \definedataset [myset] > \setdataset[myset] [foo=1,boo=4] > \newcount\tempa > \datasetvariable{myset}{1}{boo} % definitely get 4 > %\tempa=\datasetvariable{myset}{1}{boo} % why i cannt pass 4 to tempa? > %\number\tempa > \stoptext Works for me (minus comment signs of course): ConTeXt ver: 2024.03.11 09:34 LMTX Best wishes, Taco ___ 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 am I missing in the typescript?
> On 15 May 2024, at 13:38, madiazm.eo...@gmail.com wrote: > > > \definefontsynonym [SerifRegular] [Cormorant-Regular] > [features=default] The line above should read: > \definefontsynonym [Serif] [Cormorant-Regular] > [features=default] Best wishes, Taco ___ 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 Command/MPdrawingdonetrue => NO COMMAND FOUND
> On 8 May 2024, at 14:54, garu...@azules.eu wrote: > > Is there something to do to make the wiki aware of the existence of > \MPdrawingdonetrue ? Not right now. The Wiki only understands commands that are documented in the interface files (and it is a bit behind on those anyway). Also, I assume the actual command is based on \newif\ifMPdrawingdone, and I do not know how those \if… commands are represented in the interface files (if at all). Best wishes, Taco ___ 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] 18th ConTeXt Meeting, Lutten NL, August 17-23 2024: Registration open
Dear list members! Registration for the 18th ConTeXt Meeting https://meeting.contextgarden.net/2024/ is now open. This year we are hosted in Lutten, The Netherlands, in a converted water tower: https://watertorenlutten.nl/ https://watertorenlutten-nl.translate.goog/?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en&_x_tr_pto=wapp The accommodation is near to Pragma ADE; Ton Otten is the local organizer. The theme for this meeting is keeping up but as you know we have never been that strict about a particular theme, so feel free to suggest other topics to talk about. Dates and deadlines • June 30st, 2024, deadline for early bird payment • August 1st 2024, registration closes, ask for options after this deadline • August 17th–23th, 2024, 18th ConTeXt Meeting Never been to the ConTeXt Meeting? Don't worry, the group of regular participants is open and friendly, and you don't know what you are missing, unless you come at least once. Different discount options https://meeting.contextgarden.net/2024/fee.shtml are available. We hope to see you in August! Ton, Hans, and Taco — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ 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: The graph is not visible.
> On 25 Apr 2024, at 23:12, Fabrice Couvreur > wrote: > > Hi, > Here is the code that interferes with the graph from the last chapter but why > ? Because of this “path b”: > path circle, p, q, b; which interferes with the assignment line from the other graphic code: > b := xpart(reverse C_f intersectionpoint reverse C_g); because there “b” is a now a path, not a numeric. Adding numeric a,b; fixes the problem in chapter 14. But why it does not affect chapters 6-13, that I do not understand. — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ 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: start/stopregister
> On 25 Apr 2024, at 16:45, Thomas A. Schmitz > wrote: > > On 4/25/24 16:13, Henning Hraban Ramm wrote: >> I’m using it like >> \startregister[index][bibliografie]{Bibliografie} >> … >> \stopregister[index][bibliografie] >> i.e. very similar to your example, and can confirm it doesn’t result in a >> page range in the index. Also gives no error. > > Since I've become an expert on tuc files since yesterday (ha!): if I compare > the tuc from a mkiv and a mkxl run, I see that mkiv produces an entry > ["lastrealpage"]=9 in the references table, mkxl doesn't. This appears to be > the relevant bit, and it is connected with the replacement of realpageno by > c_realpageno in line 638 of strc-reg.lmt > > references.lastrealpage = texgetcount(c_realpageno) Possibly related: I noticed last week that mkxl does not update the legacy counter \pageno any more for every page. Best wishes, Taco — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ 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: The graph is not visible.
> On 25 Apr 2024, at 16:08, Fabrice Couvreur > wrote: > > Hi Taco, > I knew I wouldn't be able to explain what was happening. > The code works perfectly and the figure is clearly visible in the component > chapter-14 : It is probably not related to the figure itself. Something may be different in this component compared to the other ones. I cannot really say, of course. Still, using external image instead of inline metapost may be fix it. Not elegant, but if it works it works! Good luck, Taco > > \startcomponent[chapter-14] > \startMPpage > ... > \stopMPpage > \stopcomponent > > But if I compile my project, it disappears !! > > \startproduct[terminale-manual] > \startbodymatter > \component[chapter-1] > \component[chapter-2] > \component[chapter-3] > \component[chapter-4] > \component[chapter-5] > \component[chapter-6] > \component[chapter-7] > \component[chapter-8] > \component[chapter-9] > \component[chapter-10] > \component[chapter-11] > \component[chapter-12] > \component[chapter-13] > \component[chapter-14] > \stopbodymatter > \stopproduct — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ 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: The graph is not visible.
H Fabrice, You did not provide a good minimum test because the graph by itself renders fine: fabr.pdf Description: Adobe PDF document Best wishes, Taco (if all else fails, you can replace \startMPcode with \startMPpage and generate a standalone graph that way) > On 25 Apr 2024, at 12:27, Fabrice Couvreur > wrote: > > Hi, > I don't know if I can explain the problem I'm having. I made a project with > 14 chapters. In each of them, there are graphics embedding metapost code. I > proceed as follows : I compile each chapter alone with lmtx then I compile > the project containing the 14 chapters. I didn't encounter any problems > except with a graphic from the last chapter. It is indeed in chapter 14 but > not in the project ! I give the code for this graph. > Thanks. > Fabrice > > \startMPcode > >interim linejoin := mitered; >interim ahangle := 30; >numeric u, pi; > >pi = 3.141592653589793; >u = 1.5cm; > >vardef graph_of_function (suffix f) (expr xmin, xmax, xsep) = > for x = xmin step xsep until xmax: (x, f(x)) .. endfor > (xmax, f(xmax)) >enddef ; > >vardef vline (suffix f, g) (expr x) = (x, min(f(x), g(x))) -- > (x, max(f(x),g(x))) enddef; > >vardef area_between_functions (suffix f, g)(expr a, b, xsep) = > buildcycle(graph_of_function(f, a, b, xsep), vline(f, g, > b), > reverse graph_of_function(g, a, b, xsep), reverse vline(f, > g, a)) >enddef; > >vardef xaxis (expr xmin, xmax) = (xmin, 0) -- (xmax, 0) enddef > ; >vardef yaxis (expr ymin, ymax) = (0, ymin) -- (0, ymax) enddef > ; > > >xmin:=-pi/2; xmax := 3*pi/2; >ymin := -1.5; ymax := 5; > > >vardef f(expr x)= exp(-x)*(-cos(x)+sin(x)+1) enddef; >vardef g(expr x)=-exp(-x)*cos(x) enddef; >path C_f, C_g; >C_f = graph_of_function(f,xmin, xmax, .1); >C_g = graph_of_function(g, xmin, xmax, .1); > >a := xpart(C_f intersectionpoint C_g); >b := xpart(reverse C_f intersectionpoint reverse C_g); > >fill (area_between_functions(f, g, a, b, 0.1)) scaled u > withcolor 0.4[white, blue]; >draw C_f scaled u withcolor blue; >draw C_g scaled u withcolor blue; > > >\stopMPcode > ___ > 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 > ___ — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ 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: Figure reference failing
> On 10 Apr 2024, at 13:04, Willi Egger wrote: > > Hello, > > It seems, that the referencing mechanism is failing. I detected this with the > January version and the current version: 2024.04.01 08:59. > > Could some one confirm this? It fails for me as well, when "mode=columns" is used. Best wishes, Taco ___ 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] Fwd: [lug-leaders] BachoTeX 2024: Last minute
Hi all, Please see the forwarded message from GUST below. Best wishes, Taco > Begin forwarded message: > > From: Jerzy Ludwichowski > Subject: [lug-leaders] BachoTeX 2024: Last minute > Date: 9 April 2024 at 14:09:09 CEST > To: tex...@tug.org, LUG boards > Reply-To: lug-boa...@ifi.uio.no > > Dear TeXies, > > we've extended the deadline for "early-bird" BachoTeX 2024 registrations > until 11th of April. > All the current details of the conference are available from the revamped(!) > page: > > https://bachotex.gust.org.pl > > Don't hesitate, come and share the joys of TeXing together: "Ideas are born > between heads" > > --Jerzy Ludwichowski > (for the Organizing Committee) ___ 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: issue with module update
> On 11 Mar 2024, at 16:57, Pablo Rodriguez via ntg-context > wrote: > > Dear list, > > I have just updated a module named PresVoz. > > I get the standard directory > (https://modules.contextgarden.net/dl/presvoz/) and > (https://modules.contextgarden.net/dl/presvoz-{%version%}.zip), but no > https://modules.contextgarden.net/dl/presvoz.zip (with current version). > > So when updating the module, I get it only uninstalled. > > The two most recent updates (this one and the one before) had this issue. > > Is there something I am missing here? One of your releases had “changed-name” as its release ‘number’. The modules site does not know how to deal with non-numeric release names all that well; it made a mess of its symlinking stage. I fixed the symlink manually, it should be fine now. Best wishes, Taco — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ 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: weird character normalization in the wiki
Hi, > On 9 Mar 2024, at 09:35, Pablo Rodriguez via ntg-context > wrote: > > Sure, they may be a workaround to type codepoints instead of characters > (such as with \utfchar{0x1fbb}, but wouln’t it be possible to disable > that character normalization in the wiki? AFAIK, Wikimedia’s Unicode normalisation can not be turned off. Best wishes, Taco ___ 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: .jpx and .jxl
> On 4 Mar 2024, at 15:30, Jim wrote: > > Recently I've been trying to make some PDFs smaller by using better > compression of JPEG pictures. > > I was happy to see that \externalfigure cheerfully accepts .jp2 (JPEG 2000) > files. However, my understanding (and I could well be wrong, but I've seen > it multiple places) is that JPEG 2000 *Part 2* files should have extension > .jpx, not .jp2. > > By default, ConTeXt does not recognize .jpx. But if I rename a .jpx file > to have a .jp2 extension, then ConTeXt properly processes the file and I > see the picture in the PDF. > > Q: are there any plans to make ConTeXt recognize the .jpx extension? > If not, can anyone suggest some ConTeXt code which allows me to tell > ConTeXt to process a .jpx file as a .jp2 file? The recognised extensions are specified in a table in grph-inc.lmt, I don’t think you can alter that table runtime. But it is possible to do \externalfigure[method=jp2,file=….jpx] Untested, but should work. Best wishes, Taco > > > I have also been investigating the use to JPEG-XL files (.jxl). One of the > interesting aspects of JXL files is that .jpg files can be **losslessly** > compressed into .jxl files. (That is, you can recover the exact .jpg from > the .jxl file if you want, so there is no further degradation of the image > by doing this lossless compression.) I have been seeing 20% to 30% > reduction in file sizes by converting JPGs into JXLs, which I would be > happy to make use of in my PDFs, if possible. > > Bonus question: is there any plan to support JXL files in ConTeXt? > > Thanks. >Jim > ___ > 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 > ___ — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ 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: XML processing, unwanted indentation/alignment
> On 16 Feb 2024, at 00:34, Bruce Horrocks wrote: > > The extra space is because you have a space between {first_name} and > {\xmlatt... on line 9 of xml.tex. > >> On 15 Feb 2024, at 20:28, Michael Guravage >> wrote: >> >> Greetings, >> >> I'm typesetting an address book whose addresses are in XML. A typical entry >> has this structure: >> >> >> >> >> > mobile="" /> >> >> >> >> >> >> initials and birthday are required, first_name can be left blank and email, >> mobile and maiden_name are optional. >> >> I've written a macro (name) to compose the name, i.e. initials, first_name >> (maiden_name), and another macro (nameemaillink) to make the name a link >> associated with an email address. >> >> % Derive an individual's name >> \def\name#1% >> {\ifxmlattempty{#1}{first_name} {\xmlatt{#1}{initials}} \else >> {\xmlatt{#1}{initials}, \xmlatt{#1}{first_name}} \fi > Remove the space after {first_name} here >> \ifxmlattempty{#1}{maiden_name} {} \else { >> \tfxx(\xmlatt{#1}{maiden_name})} \fi} I am fairly certain the “ {} “ before the \else introduces spaces. >> >> % Create a mailto:link that associates a individual's name with their email >> address. >> \def\nameemaillink#1% >> {\ifxmlattempty{#1}{email} {\name{#1}} \else {\goto{\name{#1}} >> [url(mailto:\xmlatt{#1}{email})]} \fi} >> >> I thought I was done when I noticed that a composed name with an empty first >> name, with or without an email address, is slightly indented. In the mwe Moe >> and Curly, without first names, are indented; while Shemp and Michael aren't. >> >> That the undesired indentation/alignment is dependent on the presence of a >> first name is baffling. After this long description, if someone would look >> at the code and tell me where I've gone wrong I would be very grateful. The >> interesting bits begin on lines 8 and 12 in xml.tex. > > — > 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 > ___ — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ 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: Section numbering does not work
> On 13 Feb 2024, at 00:17, Oliver Marugg wrote: > > Hi > > Section numbering does not work until I remove \startbackmatter > \stopbackmatter. I had a longer text file and I stripped it down until I > found this? IIRC : \setupsectionblock[backpart][number=yes] Best wishes, Taco > Greets Oliver > > > Running freshly installed context ARM64 on m1 and updated it via sh > install.sh on ARM64 macos 14.3.1: > > context --version > mtx-context | ConTeXt Process Management 1.05 > mtx-context | > mtx-context | main context file: > /Applications/ConTeXtStandalone/tex/texmf-context/tex/context/base/mkiv/context.mkiv > mtx-context | current version: 2024.01.24 22:39 > mtx-context | main context file: > /Applications/ConTeXtStandalone/tex/texmf-context/tex/context/base/mkxl/context.mkxl > mtx-context | current version: 2024.01.24 22:39 > -- > > Stripped down MWE: > > \setuppapersize[A4] [A4] > \starttext > \completecontent[criterium=all] > % ToC > \page > \chapter{CHAP 1} > TEXT > \startbackmatter > \startchapter[title=Literature] > \placelistofpublications > \stopchapter > \stopbackmatter > \stoptext > ___ > 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 > ___ — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ 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: mtxrun.lua:10080: bad argument #9 to 'format'
> On 29 Jan 2024, at 01:36, vm via ntg-context wrote: > > while also on linux platform: > > > mtxrun --script font --list --spec --filter="fontname=ibm*" > mtxrun --script font --list --spec --filter="fontname=ple*" > > give correct result (as in listing the available installed ibmplex fonts) > > > mtxrun --script font --list --spec --filter="fontname=*" > mtxrun --script font --list --spec --filter="fontname=p*" > mtxrun --script font --list --spec --filter="fontname=pl*" > > lua error : function call: > /home/vm/context/tex/texmf-linux-64/bin/mtxrun.lua:10080: bad argument #9 to > 'format' (number expected, got string) > > apparently you need at least three characters in the the filter template. Hi, I changed line 10066 in mtxrun.lua to templates[i]="%-"..w.."s"..between from templates[i]=“% "..w..”i"..between and that fixed it. The problem here is that the “big" results contain both ttc fonts (with subfont ids, which are numbers) and non-ttc fonts (with empty subfont ids, and those are strings). This means the output template gets confused about whether it should use “%s” or “%i” as format string. > > > > $ mtxrun --script font --list --spec --filter="fontname=ple" > table: 0x3bc80550ac0 > table: 0x3bc80550b00 This is what happens if there are no matches, apparently. Best wishes, Taco — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ 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: Own command definition breaks with interaction: Use of \do_my_command doesn't match its definition
Hi, You can try: > \unexpanded\def\do_my_command[#1]#2{% But there is probably a cleaner way to implement optional arguments with lua? Best wishes, Taco > On 25 Jan 2024, at 09:18, Gerion Entrup wrote: > > Hi, > > I want to make a proper definition of a new command to be able to > process it in Lua. I found something on StackOverflow [1] but that > breaks in enumeration _and_ when interaction is enabled and I do not > understand why? Can you give me some help here? > > I want to make commands like \foo{bla} and \foo[b]{bla} possible at the > same time. Here is a minimal example (also attached): > > ``` > \startluacode > function userdata.my_command(keywords, text) > commands.writestatus("test", string.format("text: %s, config: %s", text, > keywords)) >local cfg = utilities.parsers.settings_to_hash(keywords) > > if cfg['emph'] ~= nil then > context("\\emph{" .. text .. "}") > elseif cfg['bold'] ~= nil then > context("\\bold{" .. text .. "}") > else > context(text) > end > end > \stopluacode > > % without that line there is no problem > \setupinteraction[state=start] > > \defineenumeration[enu][text=Enu] > > \unprotect > \def\mc{\dosingleempty\do_my_command} > \def\do_my_command[#1]#2{% > \iffirstargument{% > \ctxlua{userdata.my_command('#1', [==[#2]==])}% > }\else {% > \ctxlua{userdata.my_command('', [==[#2]==])}% > }\fi > } > \protect > > \starttext > > % all the following works > \mc{foo} \mc[bold]{foo} \mc[emph]{foo} > > \startenu[title=Some] > \stopenu > > % this breaks > \startenu[title=Some \mc{foo}] > \stopenu > > \stoptext > ``` > > The compilation fails with: > ``` > tex error > tex error on line 41 in file ./test.tex: Use of > \do_my_command doesn't match its definition > ``` > > Best, > Gerion > > [1] https://tex.stackexchange.com/a/55778 > ___ > 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 > ___ — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ 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: Why LuaMetaTex is so slow?
> On 19 Jan 2024, at 11:00, Henning Hraban Ramm wrote: > > Am 19.01.24 um 10:31 schrieb Hans Hagen: >> (that said: luametatex runs fine on my mobile phone) > > What’s the smallest/oldest device someone tried LMTX on? > (We were joking about “Hans’ thermostate and Alan’s fridge“…) > Would it run on some 8 bit homecomputer? (I’d guess the RAM is too limited, > and loading from datasette would need hours…) No. You need integers (and pointers) to be at least 32 bits wide. And you also need about 90Mb of RAM for the initial malloc()s. Historical 8-bit and 16-bit CPUs will not work. A modern fridge might, though. :) — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ 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
Hi Shiv, Can you move this discussion to the dev-context list, please? https://mailman.ntg.nl/mailman3/lists/dev-context.ntg.nl/ Best wishes, Taco > On 19 Jan 2024, at 09:31, Shiv Shankar Dayal > wrote: > > I see code like > > # define luametatex_version 210 > # define luametatex_revision 10 > # define luametatex_release 10 > # define luametatex_version_string "2.10.10" > > starting with C99 these become unnecessary. Rather they should be like const > int luametatex_version=210; const char* luametatex_version_string="2.10.10"; > > These ensure type-safety in the code and are good coding practice. > > On Fri, Jan 19, 2024 at 1:56 PM 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. > > -- > Respect, > Shiv Shankar Dayal > > > -- > Respect, > Shiv Shankar Dayal > ___ > 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 > ___ — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ 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] Wiki update
Hi all, I just updated the wiki ConTeXt to 20240108. The tag on the wiki by default uses luametatex (LMTX), but if you want luatex instead (MKIV), you can still do that by using . There have been some problems recently because Hans’ new binaries needed a newer version of various system libraries. I fixed that this morning after Hraban spotted the issue, but it means that there may be wiki pages with ConTeXt processing errors in them now. These can be recognised by either the colorised “error” output, or some cryptic “copy failed” message instead of the actual output. If you see one of those pages, Edit it. For the colorised “error” output you need to make a tiny change to the example itself (because that “error” output is correct as far as the wiki software can tell, so you have to force it to regenerate). For the “copy failed” case, you just have to start an edit and then immediately save again. The wiki will autogenerate any missing examples on save. Best wishes, Taco — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ 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: Question to a formular
> On 05/01/2024 14:27, Ursula Hermann wrote: > >> Can someone help me please? > > > \starttyping > 0! := 1 > (n + 1)! := (n + 1) n! > \stoptyping Or: \startformula \startalign[n=1,align={1:left}] \NC 0! := 1\NR \NC (n + 1)! := (n + 1) n!\NR \stopalign \stopformula https://wiki.contextgarden.net/Multiline_equations ___ 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: Metapost: draw only subpath; changing thickness of line
Hi, Here is 'a' way to draw the subpath, at least. I do not have time to come up with a nice “thicker in the middle” solution. Best wishes, Taco \startMPcode numeric u; u=1cm; %equiangular spiral numeric a, k ; a = 2.3; %scaling factor k = 8.61722335; path S; S = right for t=1 upto 360: .. a ** (t/50.2) * dir (-k*t) endfor; draw S; z1 = 8 dir -14; path A; A = origin -- z1 scaled 0.7u ;% draw A; pair AEndPoint; AEndPoint = point 1 of A; pair gong[], times; numeric n; n = 0; numeric gongtimes[]; % new for i = 1 upto length(A): for j = 1 upto length(S): times := subpath (i-1,i) of A intersectiontimes subpath (j-1,j) of S; if xpart times > -1: gong[incr n] = 1[point xpart times of subpath (i-1,i) of A, point ypart times of subpath (j-1,j) of S]; gongtimes[n] = j-1 + ypart times; % new fi endfor endfor % new path H; H = subpath(gongtimes[6],gongtimes[7]) of S; lH = length(H); for i = 1 upto 100: draw (subpath((i-1)/100*lH, i/100* lH) of H) withcolor red withpen (pencircle scaled(abs(abs(i-50)-50)/10)) ; endfor; \stopMPcode > On 5 Jan 2024, at 09:56, Emanuel Han via ntg-context > wrote: > > Hi all, > > I have this MWE. Now I want to draw only the subpath of S between gong6 and > gong7 with a red line which is narrower at the two ends and thicker in the > middle part. How to achieve this? > > Thanks! > Emanuel > > \setuppapersize[A4,landscape] > > \starttext > > \startMPcode > numeric u; u=1cm; > %equiangular spiral > numeric a, k ; > a = 2.3; %scaling factor > k = 8.61722335; > path S; > S = right for t=1 upto 360: .. a ** (t/50.2) * dir (-k*t) endfor; > draw S; > > z1 = 8 dir -14; > path A; A = origin -- z1 scaled 0.7u ; draw A; > pair AEndPoint; AEndPoint = point 1 of A; > pair gong[], times; numeric n; n = 0; > for i = 1 upto length(A): > for j = 1 upto length(S): >times := subpath (i-1,i) of A intersectiontimes subpath (j-1,j) of S; >if xpart times > -1: > gong[incr n] = 1/2[point xpart times of subpath (i-1,i) of A, > point ypart times of subpath (j-1,j) of S]; > fi > endfor > endfor > > dotlabel.rt ("$gong6$", gong6); > dotlabel.rt ("$gong7$", gong7); > > %Now I want to draw only the subpath of S between gong6 and gong7 with a red > line which is narrower at the two ends and thicker in the middle part > > \stopMPcode > > \stoptext > ___ > 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 > ___ — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ 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: Invalid certificate for distribution.contextgarden.net
> On 23 Nov 2023, at 11:14, Marco Patzer wrote: > > On Thu, 23 Nov 2023 08:58:56 +0100 > Taco Hoekwater wrote: > >>> probably a side effect if moving some more to the (ntg) server in >>> the netherlands (also setting up the build there) >> >> Even if it used the right certificate, it would not work right now >> because of the move: there is nothing behind the connection. > > I used that server to check for the latest context version. What's > the recommended way to check for the latest version? Basically the > output of the \contextversion command? The command context —version gives the local installed version. Not sure whether there is a clean way to see if there is a remote newer update without actually doing an update. You can check the mailing list, all new releases by Hans are now reported on the ntg-context list, but that may be less convenient than an actual test. mtx-install.sh does not have a —dry-run or —upgradable switch, afaik. Personally, I just run “bash install.sh” when I suspect there is a relevant update (install.sh is in the top-level context installation directory). Best wishes, Taco ___ 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: Invalid certificate for distribution.contextgarden.net
> On 23 Nov 2023, at 08:49, Hans Hagen wrote: > > On 11/22/2023 9:47 PM, Marco Patzer wrote: >> Hi! >> The site >> https://distribution.contextgarden.net/ >> uses an invalid certificate: >> echo | openssl s_client -servername 'distribution.contextgarden.net' >> -connect 'distribution.contextgarden.net':443 2>/dev/null | openssl x509 >> -noout -ext subjectAltName >> X509v3 Subject Alternative Name: >> DNS:4tex.ntg.nl, DNS:mailman.ntg.nl, DNS:mysql-admin.ntg.nl, >> DNS:ntg.nl, DNS:www.ntg.nl >> This makes connections fail. distribution.contextgarden.net has to >> be added to the Alternative Name list. > probably a side effect if moving some more to the (ntg) server in the > netherlands (also setting up the build there) Even if it used the right certificate, it would not work right now because of the move: there is nothing behind the connection. Best wishes, Taco ___ 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 Group Subscriptions
Hi Keith, > On 18 Nov 2023, at 18:16, Keith McKay wrote: > > Hi, > > I was wondering if the reminder for the ConTeXt Group Membership > subscriptions had been sent out? It's been over a year since I took out > membership and I thought I would have had a reminder by now. I hope I haven't > missed the email. > Rest assured, we definitely have you registered as a member! Usually we send out the membership invoices at the end of the winter, and communication for the next meetings tends to pickup around easter. Best wishes, Taco — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ 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 problem - labels missing from the main diagram on the Page Layout page
> On 6 Nov 2023, at 00:35, Bruce Horrocks wrote: > > > [1] Now there's an irony: the Wiki software creates different-sized previews > of a vector image so that it can show the image at different sizes on > different clients. I bet it started doing this back 'in the day’ to support Internet Explorer 6. ___ 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: Testing whether an XML attribute exists
> On 17 Oct 2023, at 12:43, Michael Guravage > wrote: > > Hi, > > I am typesetting a very simple address list whose source is written in XML. > Typesetting choices need to be made dependent on the presence of various > attributes; consider the following element. > > > > If the prefix attribute exists I'l like the name to appear as, e.g. 'Boer, > den." The several XML attribute testing functions in the XML manual appear > to discriminate on an attribute's value. I tried \xmldoifnotatt in an > attempt to say, "TRUE if prefix does not match an empty string", since I am > not interested in the attribute's value but only whether or not it exists. > The code below doesn't work. If someone who knows why it doesn't work would > enlighten my ignorance I would be most grateful. A brief explanation and > example of \xmldoifatt, \xmldoifnotatt, and \xmldoifelseatt would be > exceedingly helpful. > > \startxmlsetups xml:list:family > {\bf \xmlatt{#1}{surname} \xmldoifnotatt{#1, prefix, ''} {, > \xmlatt{#1}{prefix}}} \crlf Syntax error there, you need: \xmldoifnotatt{#1}{prefix}{}{, \xmlatt{#1}{prefix}} Best wishes, Taco ___ 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: Chapters without new page
> On 15 Sep 2023, at 14:07, Rik Kabel wrote: > > > On 9/15/2023 4:10 AM, Taco Hoekwater wrote: >> >> >>> On 15 Sep 2023, at 09:58, >>> wrote: >>> >>> I thought there should be a setups key on \setupsectionblock, but >>> apparently there isn’t. So, the example below does not work, but maybe it >>> wouldn’t be too hard to add it… >>> >> There is a ‘before' key, but note that the sectionblock itself is called >> “backpart”, not “backmatter” >> >> Either use >> >> \setupsectionblock[backpart][before={\setuphead[chapter][page=no]}] >> >> Or, nicer: >> >> \startsectionblockenvironment[backpart] >> \setuphead[chapter][page=no] >> \stopsectionblockenvironment >> >> >>> Best, >>> Denis >>> \setuphead[chapter][page=yes] >>> \setupsectionblock[backmatter][setups={\setuphead[chapter][page=no]}] >>> \starttext >>> \chapter{One} >>> \input knuth >>> \chapter{Two} >>> \input ward >>> \startbackmatter >>> \chapter{Three} >>> \input knuth >>> \chapter{Four} >>> \input ward >>> \stopbackmatter >>> \stoptext >>> Von: Jeroen >>> Gesendet: Donnerstag, 14. September 2023 23:50 >>> An: mailing list for ConTeXt users >>> Betreff: [NTG-context] Chapters without new page >>> In the \startbackmatter ... \stopbackmatter section i would like to have >>> some chapters that are not automatically placed on a new page for the next >>> chapter. Is there an easy way to suppress the new page for these chapters? >>> Thanks, Jeroen >>> >> Best wishes, >> Taco >> >> > While this works, it changes behavior for **all** chapters. It does not > address the original question of how to have **some** chapters "not > automatically placed on a new page." Like this? \definehead[mychapter][chapter] \setuphead[mychapter][page=no] Taco ___ 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: Chapters without new page
> On 15 Sep 2023, at 09:58, wrote: > > I thought there should be a setups key on \setupsectionblock, but apparently > there isn’t. So, the example below does not work, but maybe it wouldn’t be > too hard to add it… There is a ‘before' key, but note that the sectionblock itself is called “backpart”, not “backmatter” Either use \setupsectionblock[backpart][before={\setuphead[chapter][page=no]}] Or, nicer: \startsectionblockenvironment[backpart] \setuphead[chapter][page=no] \stopsectionblockenvironment > Best, > Denis > \setuphead[chapter][page=yes] > \setupsectionblock[backmatter][setups={\setuphead[chapter][page=no]}] > \starttext > \chapter{One} > \input knuth > \chapter{Two} > \input ward > \startbackmatter > \chapter{Three} > \input knuth > \chapter{Four} > \input ward > \stopbackmatter > \stoptext > Von: Jeroen > Gesendet: Donnerstag, 14. September 2023 23:50 > An: mailing list for ConTeXt users > Betreff: [NTG-context] Chapters without new page > In the \startbackmatter ... \stopbackmatter section i would like to have > some chapters that are not automatically placed on a new page for the next > chapter. Is there an easy way to suppress the new page for these chapters? > Thanks, Jeroen Best wishes, Taco ___ 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: flush to lua function
Hi, xml.text(t) is safer than directly accessing t.dt[1]. Note: you may need to strip some XML tags from that content. If the element is not straight-up data but has nested elements, then this will return the full xml representation instead: A short title=> ‘A short title' <A short title>=> ‘' <A short title> => '<A short title>' Best wishes, Taco > On 12 Sep 2023, at 08:56, wrote: > > Ok, I’ve found a way, see below. > But maybe someone has some nice lua (or other) tricks to share… (I’m not sure > accessing t.dt[1] is particularly safe when operating on nested structures.) > Best, > Denis > \startbuffer[test] > > > > A short title > asdf asdf asdf jklö jklö jklö > > > A longer title bla bla bla bla bla bla bla bla > > asdf asdf asdf jklö jklö jklö > > > > \stopbuffer > \startxmlsetups xml:test > \xmlsetsetup{#1}{*}{-} > \xmlsetsetup{#1}{doc|chapter|p}{xml:*} > \stopxmlsetups > \xmlregisterdocumentsetup{test}{xml:test} > \startxmlsetups xml:doc >\xmlflush{#1} > \stopxmlsetups > \setuphead[chapter][expansion=yes] % make sure the stuff gets expanded on > time > \startxmlsetups xml:chapter > \startchapter >[ > > title={\xmlfilter{#1}{/title/command(xml:chapter:title)}}, > > marking={\xmlfilter{#1}{/title/command(xml:chapter:title:marking)}}, >] >\xmlflush{#1} > \stopchapter > \stopxmlsetups > \startxmlsetups xml:p > \xmlflush{#1}\par > \stopxmlsetups > \startluacode > function xml.functions.getMarking(t) > _,n = t.dt[1]:gsub("%S+","") > if n > 10 then local words = {} > for word in t.dt[1]:gmatch("%S+") do table.insert(words, word) end > local resWords = {} > resWords = { unpack( words, 1, 7 ) } > res = table.concat(resWords, " ") .. " …" > else res = t.dt[1] > end > context(res) > end > \stopluacode > \startxmlsetups xml:chapter:title:marking > \xmlfunction{#1}{getMarking} > \stopxmlsetups > \startxmlsetups xml:chapter:title > \xmlflush{#1} > \stopxmlsetups > \setupheadertexts[chapter] > \starttext > \xmlprocessbuffer{test}{test}{} > \stoptext > Von: denis.ma...@unibe.ch > Gesendet: Montag, 11. September 2023 16:47 > An: ntg-context@ntg.nl > Betreff: [NTG-context] XML: flush to lua function > Hi, > I have the following xml setup with a lua function: > \startluacode > function markingLength(s) > _,n = s:gsub("%S+","") > if n > 3 then context("yes" .. " …") else > context("no") end > end > \stopluacode > \startxmlsetups xml:ink:ink-title:marking > %\ctxlua{markingLength(\xmlflush{#1})} % does not work > \ctxlua{markingLength{"1 2 3 4"}} > \stopxmlsetups > While the function works, I cannot use xmlflush here. How can I properly > pass the xml content to the lua function? > Best, > Denis > ___ > 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 > ___ — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ 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] ConTeXt meeting 2023 attendance (please read)
Hi all, This is a reminder that the registration for the upcoming ConTeXt meeting in Sibrina, Czech Republic is still open. The meeting will take place from Sept 10 to Sept 16. You can go to https://meeting.contextgarden.net for more information. You will also find the registration form there. You can (of course) attend in person, but registration for online only attendance is also possible! We hope to see you next month! NOTE: There have recently been problems with the delivery of the filled-in registration form to the organisers. If you have registered sometime *in the last month* but have not heard from Jano or me yet, please re-register (the form emailer is fixed) or at least drop us a message! Best wishes, Taco ___ 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: enhancing MetaPost presentation progress graphics
Hi, First, find the actual point along the curve of the wave you want, then you can ask for the direction of the wave at that time, and its point: \startuseMPgraphic{Waves} numeric height,stops,yoffset; stops := 10; height := OverlayHeight/10; path wave[]; % storing waves draw (0,0)--(OverlayWidth,0)--(OverlayWidth,OverlayHeight) withcolor white withpen pencircle scaled 0.01; for j=1 upto 3: definecolor [name="Sea", y=(j/20), c=2*(j/10), m=(j/20)]; yoffset := height/(j*2); wave[j] := (0,0)--(0,yoffset)... for i=1 upto stops: (OverlayWidth*i/(stops+1), (yoffset) randomized (height/2)) ... endfor (OverlayWidth,yoffset); fill ((0,0)--wave[j]--(OverlayWidth,0)--cycle) withcolor "Sea"; endfor; xpos := OverlayWidth * RealPageNumber/NOfPages; path ship; ship := (0,10)---(70,10)...(60,0)---(10,0)...cycle; pair itime, iangle, boatpos; itime = (wave[3] intersectiontimes ((xpos,0)--(xpos,infinity))); iangle = direction (xpart itime) of wave[3]; boatpos = (point (xpart itime) of wave[3]) shifted (-5,0); % shift to center horizontally fill ship xysized (10,5) shifted boatpos rotatedaround (boatpos, angle iangle) withcolor red; \stopuseMPgraph > On 19 Jul 2023, at 12:32, Henning Hraban Ramm wrote: > > Hi, > I’d like a presentation progress indicator that looks like a boat on waves – > and if it works, it can also become a bike on hills or a mars rover on dunes. > But my math skills are lacking. > > Below’s a mostly working draft. > > * I find the waves not yet very convincing. Would it make sense to use a > randomized sinus? (How?) > > * The boat should sit on the middle wave and be rotated by the current slope. > I know I need the “time” of the upper curve and get the 1st derivation, but > how? > > """ > \setuppapersize[SW] > > \startuseMPgraphic{Waves} > numeric height,stops,yoffset; > stops := 10; > height := OverlayHeight/10; > path wave; > > draw (0,0)--(OverlayWidth,0)--(OverlayWidth,OverlayHeight) withcolor white > withpen pencircle scaled 0.01; > > for j=1 upto 3: > definecolor [name="Sea", y=(j/20), c=2*(j/10), m=(j/20)]; > yoffset := height/(j*2); > wave := (0,0)--(0,yoffset)... > for i=1 upto stops: >(OverlayWidth*i/(stops+1), (yoffset) randomized (height/2)) ... > endfor > (OverlayWidth,yoffset)--(OverlayWidth,0)--cycle; > fill wave withcolor "Sea"; > endfor; > > pair pos; > pos := (OverlayWidth * RealPageNumber/NOfPages, height/2 randomized 2); > path ship; > ship := (0,10)---(70,10)...(60,0)---(10,0)...cycle; > > fill ship xysized (10,5) shifted pos rotatedaround (pos, 15) withcolor red; > \stopuseMPgraphic > > \defineoverlay[Waves][\useMPgraphic{Waves}] > > \setupbackgrounds[state=repeat] > \setupbackgrounds[page][background={Waves}] > > \starttext > > \dorecurse{10}{\recurselevel\page} > > \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://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 > ___ — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ 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: Slow sreach with new mailing list interfache
Hi, > On 16 Jul 2023, at 13:49, Pablo Rodriguez wrote: > > On 7/16/23 11:25, Michael Loescher wrote: >> Hello, >> >> searching the mailing list is very slow recently (since the new >> interface hast been established). For example searching for "font" >> takes 20 seconds for the results to show up. Is it only me >> experiencing this phenomenon or ist it a general problem? > I’m experiencing the delay too, Michael. > > I wonder whether this is a general issue with the HyperKitty interface. There are a lot of messages in the ntg-context archive, which is likely causing the problem. Officially, the search engine is a plug-in so perhaps it can be switched out for a faster one. I’ll see if I can investigate that in the near future. Meanwhile, you can just use the mail-archive search engine. https://www.mail-archive.com/search?l=ntg-context%40ntg.nl&q=context&a=1 > > BTW, it is really a pity that the new interface doesn’t consider all > messages send from and to the list as with the address of the mailing > list itself. > > This would avoid non-intended private replies. I do not have that? If I press “Reply” in my mailer it goes to the list. Best wishes, Taco — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ 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: Cron /var/www/aanhet.net/context/bin/cron/context-mirror
Hi, Sorry about these messages. Bad permissions after server restore. Best wishes, Taco > On 9 Jul 2023, at 20:01, Cron Daemon wrote: > > rsync: [generator] failed to set times on > "/var/www/aanhet.net/context/htdocs/.": Operation not permitted (1) > rsync: [generator] failed to set times on > "/var/www/aanhet.net/context/htdocs/context/latest": Operation not permitted > (1) > rsync: [receiver] mkstemp > "/var/www/aanhet.net/context/htdocs/.ctan.lsr.sgflWo" failed: Permission > denied (13) > rsync: [receiver] mkstemp > "/var/www/aanhet.net/context/htdocs/.document-2.htm.5abSRS" failed: > Permission denied (13) > rsync: [receiver] mkstemp > "/var/www/aanhet.net/context/htdocs/.download-1.htm.vr439u" failed: > Permission denied (13) > rsync: [receiver] mkstemp > "/var/www/aanhet.net/context/htdocs/.download-2.htm.m4Kr82" failed: > Permission denied (13) > rsync: [receiver] mkstemp > "/var/www/aanhet.net/context/htdocs/.logo-ade.png.59SWaO" failed: Permission > denied (13) > rsync: [receiver] mkstemp > "/var/www/aanhet.net/context/htdocs/.logo-cts.png.jTUUas" failed: Permission > denied (13) > rsync: [receiver] mkstemp > "/var/www/aanhet.net/context/htdocs/.logo-pod.png.3izuIx" failed: Permission > denied (13) > rsync: [receiver] mkstemp > "/var/www/aanhet.net/context/htdocs/.rss.xml.Q3zR2F" failed: Permission > denied (13) > rsync: [receiver] mkstemp > "/var/www/aanhet.net/context/htdocs/.show-fil.pdf.AV0T91" failed: Permission > denied (13) > rsync: [receiver] mkstemp > "/var/www/aanhet.net/context/htdocs/context/latest/.cont-lmt.zip.J0XfB5" > failed: Permission denied (13) > rsync: [generator] failed to set times on > "/var/www/aanhet.net/context/htdocs/general/manuals": Operation not permitted > (1) > rsync: [receiver] mkstemp > "/var/www/aanhet.net/context/htdocs/context/latest/.cont-mpd.zip.kNfQs7" > failed: Permission denied (13) > rsync: [receiver] mkstemp > "/var/www/aanhet.net/context/htdocs/context/latest/.cont-ppc.zip.3gozgp" > failed: Permission denied (13) > rsync: [receiver] mkstemp > "/var/www/aanhet.net/context/htdocs/context/latest/.cont-sci.zip.jzutxP" > failed: Permission denied (13) > rsync: [receiver] mkstemp > "/var/www/aanhet.net/context/htdocs/context/latest/.cont-tmf.zip.uGUuq6" > failed: Permission denied (13) > rsync: [receiver] mkstemp > "/var/www/aanhet.net/context/htdocs/context/latest/.cont-tst.7z.BdU9MR" > failed: Permission denied (13) > rsync: [receiver] mkstemp > "/var/www/aanhet.net/context/htdocs/context/latest/.cont-tst.tar.xz.1wVZiX" > failed: Permission denied (13) > rsync: [receiver] mkstemp > "/var/www/aanhet.net/context/htdocs/context/latest/.cont-tst.zip.neMzS8" > failed: Permission denied (13) > rsync: [receiver] mkstemp > "/var/www/aanhet.net/context/htdocs/general/manuals/.cld-mkiv.pdf.U8OT16" > failed: Permission denied (13) > rsync: [receiver] mkstemp > "/var/www/aanhet.net/context/htdocs/general/manuals/.lowlevel-lines.pdf.Th1bwo" > failed: Permission denied (13) > rsync: [receiver] mkstemp > "/var/www/aanhet.net/context/htdocs/general/manuals/.luametatex.pdf.B0oPCw" > failed: Permission denied (13) > rsync error: some files/attrs were not transferred (see previous errors) > (code 23) at main.c(1865) [generator=3.2.7] > receiving incremental file list > ./ > context/latest/ > general/manuals/ > > sent 188,908 bytes received 47,768,727 bytes 4,170,229.13 bytes/sec > total size is 562,026,290 speedup is 11.72 > ___ > 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 > ___ — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ 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] Server downtime
Hi all, Many of you have noticed that https://wiki.contextgarden.net and https://www.ntg.nl are down, as well as all the mailing lists at domain ntg.nl, and a few less obvious websites like source.contextgarden.net and modules.contextgarden.net. The ntg.nl/wiki.contextgarden.net server’s disk (raid) controller crashed so badly that we did not trust it to come back up in read-write mode, so we had to rebuild the disk setup as read-only and then copy its revived data to a different machine that we also still had to configure. This is a complicated and slow process, unfortunately. Our apologies for the long down time! As of now, we at least have working emails for the mailing lists again. Tomorrow we will try to get the simple websites back up. We hope to at least be able to restore www.ntg.nl, wiki.contextgarden.net, and the mailing list web interface. Getting the email subsystem back up was the main priority today. More news later (sometime tomorrow) All the best, Taco (also from Robbert and Jules) Dag Allemaal, Velen van jullie hebben gemerkt dat https://wiki.contextgarden.net en https://www.ntg.nl onbereikbaar zijn, evenals alle mailinglijsten op domein ntg.nl, en een paar minder voor de hand liggende websites zoals source. contextgarden.net en modules.contextgarden.net. De schijfcontroller (raid) van de ntg.nl/wiki.contextgarden.net-server crashte zo erg dat we het niet vertrouwden om hem terug te laten komen in lees-schrijfmodus, dus moesten we de schijfconfiguratie herstellen als alleen-lezen om vervolgens zijn nieuw leven ingeblazen data te kopiëren naar een andere machine die we ook nog moesten configureren. Dat is helaas een ingewikkeld en vrij langzaam proces. Onze excuses voor de lange downtime! Vanaf nu hebben we in ieder geval weer werkende e-mails voor de mailinglijsten. Morgen gaan we proberen de simpele websites weer aan de praat te krijgen. We hopen in ieder geval www.ntg.nl, wiki.contextgarden.net en de web-interface van de mailinglijsten te kunnen herstellen. Voor vandaag was het heropstarten van de e-mail faciliteiten de eerste prioriteit. Later (ergens morgen) meer nieuws Al het beste, Taco (ook van Robbert en Jules) — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ 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] context-on-web broken
Dear Miguel, > On 25 Jun 2023, at 22:48, Miguel Diaz via ntg-context > wrote: > > Hi everyone, > and sorry if this is not the right place to post. > > Context-on-web is no more accesible. What is this context-on-web? I tried searching, but context+web produces rather useless results. Best wishes, Taco ___ 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] Wiki Down?
Hi Keith, > On 16 Jun 2023, at 13:04, Keith McKay via ntg-context > wrote: > > I am getting "safari can't find server" for the wiki so I checked on > isitdownrightnow.com and it confirms it is down. Must have been some transport issue. The server is up and has not been down today at all. If it keeps appearing to be down, try a traceroute tool to see where the problem is, e.g. https://ping.eu/traceroute/ Best wishes, Taco — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ 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] Server certificate of wiki server run out
> On 8 Jun 2023, at 12:21, Henning Hraban Ramm via ntg-context > wrote: > > Hi Mojca, > > the server certificate is outdated since a few hours, can you renew it? Fixed for now, Taco ___ 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] Mailing list problems
Hi! Both problems should be fixed now. If you still do not see the new posts in the ntg-context html archive page at https://mailman.ntg.nl/pipermail/ntg-context/2023/thread.html , force a hard reload of the page in your browser. Best wishes, Taco > On 28 May 2023, at 18:50, Mikael Sundqvist via ntg-context > wrote: > > Hi! > > See https://tex.stackexchange.com/q/687020/52406. The OP there cannot > subscribe. > > Looking at the web archive, it indeed seems to be missing several > emails: https://www.mail-archive.com/ntg-context@ntg.nl/ > > I do not know who handles this, but... Ping! > > /Mikael > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > ___ — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ 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] Cron /var/www/aanhet.net/context/bin/cron/context-mirror
Hi all, Sorry about all these. The server had a network failure earlier today (fixed now) Best wishes, Taco > On 29 May 2023, at 15:14, Cron Daemon via ntg-context > wrote: > > rsync: getaddrinfo: rsync.pragma-ade.nl 873: Temporary failure in name > resolution > rsync error: error in socket IO (code 10) at clientserver.c(139) > [Receiver=3.2.7] > ___ > 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] Context Live
> On 24 May 2023, at 17:10, Jeroen via ntg-context wrote: > > I would like to setup a website with a live Context renderer like > live.contextgarden.net > Is there a procedure how to setup such a live setup? It is a chroot jail and a few scripts to integrate with the web browser. I will send you the files via private email. Best wishes, Taco — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ 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] Module authors: please update your metadata
> On 15 May 2023, at 19:01, Henning Hraban Ramm via ntg-context > wrote: > > Am 15.05.23 um 18:57 schrieb Jairo A. del Rio via ntg-context: >> I reuploaded my module. Let me know if problems persist. Thank you very much! >> Check again, please. > > Now it’s there. > > CTAN sync should happen every night. Starting tonight, because CTAN exports have to be added by hand to an rsync script, I did that just now. Best wishes, Taco ___ 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
Hi, So … the server now runs Ubuntu 22.04. Jay! This was a much harder upgrade though. Various things were wrong, and are likely still a bit wrong in places. Robbert had to rescue the network configuration that went missing completely after the upgrade (requiring a trip to the data center). Various packages have been discontinued by our linux distribution, including the version of the mailing list software that we use (so that had to be installed manually). The new version of php is much stricter than the old version (so some website hacks were also needed). Et cetera. It has been a “process” ... The basic functionality appears to be back online, although the web interface to the mailing lists does not work yet (we will try to fix that tomorrow). But there are likely to be small problems with other services still. Please *do* let me know if you notice something odd! In any case, today was the last of the big software update procedures (at least for the next year or so). Best wishes, Taco and Jules and Robbert > On 6 Apr 2023, at 18:20, Taco Hoekwater wrote: > > If you notice anything wrong, please warn either me personally or > ntg-ser...@ntg.nl. > > Unless major problems develop, we will continue the update process on Tuesday > afternoon. — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ 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
Hi again, from the other side! Jules has just finished with all the updating and restarting for now, and at first glance everything seems to be OK. The server now runs Ubuntu 20.04. Jay! If you notice anything wrong, please warn either me personally or ntg-ser...@ntg.nl. Unless major problems develop, we will continue the update process on Tuesday afternoon. Best wishes, Taco and Jules ___ 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] Software upgrade for ntg and contextgarden server 6 April
Hi all, Tomorrow an attempt to upgrade the software on the ntg.nl / server-nl.contextgarden.nl server will be made. This means that various services will probably be offline for a while during the afternoon (CET timezone). Affected will be the NTG website, all the @ntg.nl mailing lists, the ConTeXt wiki, and some other subsites of contextgarden.net. We expect to the outage to last a few hours at most. I do not have an exhaustive list of potentially affected services and lists, so this message is sent out to the two largest mailing lists on the server. If you know of some other person or group that is likely going to be worried about a few hours of outage, please forward this message to them. Best wishes, Taco — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ 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] English-Vietnamese facing pages
> On 3 Apr 2023, at 11:54, jbf via ntg-context wrote: > > Am always up for a challenge, but hope this one is not beyond my > possibilities! Have a request to produce a book with English-Vietnamese > facing pages. The text doesn't have to be strictly in sync, but generally so. > The only ConTeXt guidelines I think I have at the moment are (1) an old > module called m-streams (which I am assuming is now obsolete), and (2) an > exchange of emails on this list over a decade about bilingual typesetting. > > It won't bother me too much if I have to tell the intending author and his > editor that this might be beyond me, but before taking that stance, I have a > couple of simple questions that someone might be able to respond to. And, > BTW, the Vietnamese font is not the problem. Tex Gyre Pagella seems to be > able to cope with that at least! > > Q 1: Has anybody reading this actually produced a bilingual book (it doesn't > have to be en-vn) with ConTeXt? And if so would you be prepared to offer me > some basic guideline Way, way back when, I did a document in NL + EN by creating two separate pdfs for the page bodies only and using a third context doc to included those pages alternated, with the correct headers added in that third document. Not a ’nice’ solution at all, but it worked for me. (this was in the nineties, though) > > Q 2: There is some guidance from Wolfgang on > https://wiki.contextgarden.net/Columns towards the end of that page. I tried > two or three pages of the first chapter of the book, placing English in > outputstream[one] and the Vietnamese in outputstream[two] and kind of got a > suitable result except that the last paragraph of both languages ended up > BEFORE the chapter began. No idea why. The rest seemed okay. So my question > is whether or not Wolfgang's sample (where he says 'a simple example but I > had to write the splitter myself') would be sufficient for me to put the book > together? > > Q 2: I suppose the third question is whether, since LMTX, there has been any > further development in the 'streams' mechanism that might help me? > > Julian > > ___ > 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 > ___ — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ 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] contextgarden wiki
> On 30 Mar 2023, at 00:23, Jim via ntg-context wrote: > > At https://wiki.contextgarden.net/Wiki:About there is a Contact section, > including > >For general questions (any questions!), start a new topic on the >Context_wiki:Discussions page. > >If you need the help of an administrator, there is a list of >administrators at Context_wiki:Administrators. > > There are *no* topics on the Discussions page, and the Administrators page > doesn't exist. This causes me to be concerned that no one is there. > > Is anyone there? Yes! And I fixed the missing interwiki prefix. The pages actually exist, but the link prefix didn’t. > In case anyone wonders why I am asking... I was looking at the wiki page > for "\listing", which is no longer in Mk IV (and may also not be in Mk II > (I didn't check)). In 2015 both Hans and Wolfgang mentioned in this list > that the command was gone. You meant "\nolist”. I am sure there are more obsolete command pages, but they are not easy to find. I edited this page by using the also obsolete \couplepage as an example. Berst wishes, Taco — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] How to prevent \subject from being the last line
> On 20 Feb 2023, at 16:21, Pablo Rodriguez via ntg-context > wrote: > > On 2/20/23 15:47, Sylvain Hubert via ntg-context wrote: >> [...] >> Btw, just in case if anyone shares this idea: is it possible to have a >> zulip channel for ConTeXt? It's free for open source projects, has a >> interface for existing mailing lists, and has a reasonable builtin >> search engine, which could serve as another de-facto documentation, >> considering the fact that very few of the massive useful use cases asked >> in the mailing lists so far have been transcribed into official >> documentations. > > Hi Sylvain, > > one main documentation source is the wiki. > > Sorry, but I‘m afraid it is hard for me to understand how adding another > information source for ConTeXt is a gain. I had almost forgotten this, but there is also a dedicated Google Search engine that Mojca set up more than a decade ago: https://cse.google.com/cse?cx=016640200293943433883%3Aw-6slqs1kjg Some of the predefined urls may be obsolete now, I have not checked those in a while. Still, it seems to work quite well still, and it could be integrated with the wiki with a bit of effort, I guess. Best wishes, Taco — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ 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] atan2 function
> On 14 Oct 2022, at 14:26, Alan Braslau via ntg-context > wrote: > > Are you using MP in scaled integer or in doubleprecision mode? > > I have not looked into the MP angle operator code, but my suspicion is that > it is based on some super-clever John Hobby scheme optimized for scaled > integer calculations. The scaled version of “angle” is a handwritten approximation in web, not using any math library. I really doubt that that code is faster than calling atan2() on a modern machine, but I’ve kept it in because using a lib might give slightly different results. The double version of “angle" uses atan2() internally already, so that the atantwo macro is just duplicating the internals for that case. The decimal version of “angle’ uses a dedicated decNumberAtan2() library call. > > Hans has integrated the entire math library (and more) into lmtx. > > On 13/10/22 13/10/22, 13:51, Thangalin via ntg-context wrote: >> Thank you, Max. >> The angle function doesn't appear to provide the same calculation as >> my atantwo in all cases. >> https://pdfhost.io/v/Oqj7XmibJ_scaled >> The shorter line segment should be directed towards the vertex closest >> to the longer line segment. I tried using both: >> theta := angle( dx, dy ); >> theta := angle( dy, dx ); >> Neither made a difference, in some cases the angle differs from what I'd >> expect. >> My implementation is based on the first version given here: >> https://en.wikipedia.org/wiki/Atan2#Definition_and_computation >> I have something that works, so this is more of a curiosity as to >> there being a difference between my implementation of atantwo and the >> angle function. >> Here's an example with many lines and the angle function: >> https://pdfhost.io/v/1T4jgBnxh_scaled >> On Wed, Oct 12, 2022 at 11:42 PM Max Chernoff wrote: >>> >>> Hi, >>> >>>> How is atan2 called? I rolled my own as follows: >>> >>>> Is atan with two parameters supposed to behave like atan2? >>> >>> At mp-math.mpxl:167 there is: >>> >>>vardef atan primary x = angle(1,x) enddef ; >>> >>> The MetaPost manual says: >>> >>>The angle operator takes a pair and computes the two-argument >>>arctangent; i.e., angle is the inverse of the dir operator >>> >>> So it looks like "angle" is the function that you want for "atan2". >>> >>> Thanks, >>> -- Max >> ___ >> If your question is of interest to others as well, please add an entry to >> the Wiki! >> maillist : ntg-context@ntg.nl / >> https://www.ntg.nl/mailman/listinfo/ntg-context >> webpage : https://www.pragma-ade.nl / http://context.aanhet.net >> archive : https://bitbucket.org/phg/context-mirror/commits/ >> wiki : https://contextgarden.net >> ___ > > \ > > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > ___ — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Fwd: [CG Wiki] ConTeXt with VS Code (https://wiki.contextgarden.net/VSCode)
Message below is forwarded from the wiki mailing list. Anybody? > Begin forwarded message: > > From: Michal Kvasnička > Subject: [CG Wiki] ConTeXt with VS Code > (https://wiki.contextgarden.net/VSCode) > Date: 20 September 2022 at 16:31:06 CEST > To: w...@contextgarden.net > > Hi! > > I tried to use the VS Code extension described in > https://wiki.contextgarden.net/VSCode <https://wiki.contextgarden.net/VSCode> > but in > > xxx > > I got the following error: > > /home/qasar/Stažené/cont/tex/texmf-context/context/data/vscode/extensions/context/node_modules/vsce/out/package.js:136 > return (translations ?? []) > ^ > > SyntaxError: Unexpected token '?' > at wrapSafe (internal/modules/cjs/loader.js:915:16) > at Module._compile (internal/modules/cjs/loader.js:963:27) > at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10) > at Module.load (internal/modules/cjs/loader.js:863:32) > at Function.Module._load (internal/modules/cjs/loader.js:708:14) > at Module.require (internal/modules/cjs/loader.js:887:19) > at require (internal/modules/cjs/helpers.js:74:18) > at Object. > (/home/qasar/Stažené/cont/tex/texmf-context/context/data/vscode/extensions/context/node_modules/vsce/out/main.js:27:19) > at Module._compile (internal/modules/cjs/loader.js:999:30) > at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10) > > Is there any way to discuss it with the extension developer? Can I find > somewhere the extension source code (on github or so)? Many thanks. > > Note: I downloaded the last ConTeXt and compiled it in its directory. But > I've got an older version (part of TeXLive) installed on my Ubuntu 22.04, > too. I hope this is not the cause of the problem. > > Best wishes, > Michal > > ___ > Wiki mailing list > w...@contextgarden.net > https://lists.contextgarden.net/mailman/listinfo/wiki — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ 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] Cron /var/www/aanhet.net/context/bin/cron/context-mirror
As Hraban said: it is my script that checks for new ConTeXt uploads by Hans, which currently cannot connect to Hans’ server. Usually that is because Hans is reconfiguring something in his internal network at Pragma, and it will eventually sort itself out. Best wishes, Taco > On 7 Sep 2022, at 16:51, Henning Hraban Ramm via ntg-context > wrote: > > Don’t panic, all is well with the list. Nothing to do, nothing to see here. > > Taco included the mailing list in the message recipients of the cron demon in > order to get notified of ConTeXt updates. > Seems like there is a connection problem with the pragma servers, but it > doesn’t affect the list. > > Hraban > > Am 07.09.22 um 16:32 schrieb Ursula Hermann via ntg-context: >> I got the same Mail. >> Uschi Hermann >> -Ursprüngliche Nachricht- >> Von: ntg-context Im Auftrag von Jeong Dal via >> ntg-context >> Gesendet: Mittwoch, 07. September 2022 16:27 >> An: mailing list for ConTeXt users >> Cc: Jeong Dal >> Betreff: Re: [NTG-context] Cron >> /var/www/aanhet.net/context/bin/cron/context-mirror >> Dear Taco, >> The following mail came every hour since a few days ago. >> But I don’t get any other mail from the list. >> I think that there is something wrong between my mail system and the server. >> However, I don’t know how to solve it. >> Would you please tell me what to do? > > ___ > 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 > ___ — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ 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] searching in the source browser
> On 5 Sep 2022, at 20:28, Henning Hraban Ramm via ntg-context > wrote: > > Hi, this is probably for Taco: > > Is there a possibility in the source browser to search for macros > (\something) or anything containing dots (logs.errors)? > Because neither “simple” nor with Lua patterns I get any results. That is something we can look at next week. The sourcebrowser is using an lpeg-based lua script to create its search index, meaning it is not impossible to extend it. :) Best wishes, Taco — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ 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 old MP code
> On 1 Sep 2022, at 18:28, Henning Hraban Ramm via ntg-context > wrote: > > Am 01.09.22 um 15:40 schrieb Taco Hoekwater: >> Adding grouping makes sense: >>> >>> def Moire(expr size)(text densities)= >> begingroup >> endgroup >> As that at least makes it an expression instead of a statement list. >> But also depthless() is never defined? > > Oops, I forgot to copy that part (confusing source...) > > It still doesn’t compile: Missing definition of “width()”, from this line: > > xs := width(q)-width(p); Adding that should do the trick. Best wishes. Taco — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ 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 old MP code
Hi Hraban, Adding grouping makes sense: > > def Moire(expr size)(text densities)= begingroup > save dn,a,b,k,labit,n,p,q,s,xs; > n := 32; > dn := 0; > for i := densities: >d[incr dn] := abs(i); >if i>1: labit[dn]:=1; fi > endfor > a := min(d[1],d[dn]); > b := max(d[1],d[dn]); > image( >for i=-n upto n: > draw (0,i*in/a)--(size,i*in/b); > %withpen pencircle scaled 3/5defaultthickness; >endfor >for i=1 upto dn: > k:=(a/d[i]-1)/(a/b-1); > if known labit[i]: >string s; s:=decimal(d[i]); xs:=0; >picture p,q; q := p := depthless(s); >if i=dn: > q := depthless(s & " lpi"); > xs := width(q)-width(p); >fi >label.top(q, (k*size+1/2xs, n*in/a+1.5mm)); > fi > draw (k*size, n*in/a+1.5mm)--(k*size, k[n*in/a,n*in/b]+.5mm); > draw (k*size, -n*in/a-1.5mm)--(k*size, -k[n*in/a,n*in/b]-.5mm); >endfor > ) endgroup > enddef; > draw Moire(57.5mm)(200, 175, 150, 125, 100, 75); > % ulshiftedto (142mm, 38.5mm); > \stopreusableMPgraphic As that at least makes it an expression instead of a statement list. But also depthless() is never defined? — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ 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] Is rendering furigana over horizontal or vertical japanese text doable in ConTeXt?
> On 15 Aug 2022, at 13:02, amano.kenji via ntg-context > wrote: > > Typesetting furigana over kanji characters is common for japanese educational > materials. Yes, using the \ruby command. That used to require a module, but is now in the core. The wiki page on CJK fonts should probably be updated (new fonts, broken ftp links, etc.) but at least it mentions this: https://wiki.contextgarden.net/CJK_fonts Best wishes, Taco — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ 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] issue with lpath
> On 4 Aug 2022, at 18:39, Pablo Rodriguez via ntg-context > wrote: > > On 8/4/22 17:32, Taco Hoekwater via ntg-context wrote: >> [...] >> PS This sort of confusing filtering is why I do most of my xml >> processing from the lua end, where it is much clearer to me what is >> what. > Many thanks for clarifying the issue, Taco. > > BTW, according to the last slide from > https://meeting.contextgarden.net/2019/talks/02-xmlprocessing/02-xmlprocessing.pdf, > you had plans to document how to deal with XML in proper Lua. > > I wonder whether you are still interested in adding this information to > the manual. In theory, yes. In reality, life is too short, and it is on the bottom of an ever rising pile of things to do. :sadface Best wishes, Taco Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ 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] issue with lpath
> On 4 Aug 2022, at 16:07, Hans Hagen wrote: > > On 8/4/2022 12:22 PM, Taco Hoekwater via ntg-context wrote: >>> On 3 Aug 2022, at 15:54, Pablo Rodriguez via ntg-context >>> wrote: >>> >>> BTW, is there any way to rephrase "{h3 + blockquote}" in proper Lua? >> I was wondering about that as well, and I really had no clue how to do that. >> Some >> reading and studying later, I realised that there is a preceding-sibling:: >> axis. >> That is not documented in xml-mkiv.pdf I think, but it inherited from xpath, >> and that means this works: >> \xmlsetsetup{#1}{blockquote/preceding-sibling::h3[-1]/} {xml:section} >> “Take all blockquotes, then tests their immediate preceding siblings (index >> [-1]) that are h3." >> But the CSS version is nicer. Still, both solutions fail on generic input. >> Sorry, out of clues > \startbuffer[demo] > ... That puts the whole content inside the \section, and I don’t think that was the intent. I understood that Pablo only wants the “h3” node. In the original request, the CSS “{h3 + blockquote}” matches a “blockquote” anyplace where it is immediately preceded by a “h3” (and nowhere else). After that, some trickery was needed to try and get back to the actual “h3”. My trick above with preceding-sibling above also gets the “h3” that is immediately followed by a “blockquote”, but it got easily confused if there were multiple “h3” or “blockquote” objects in the input. Best wishes, Taco PS This sort of confusing filtering is why I do most of my xml processing from the lua end, where it is much clearer to me what is what. — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ 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] issue with lpath
> On 3 Aug 2022, at 15:54, Pablo Rodriguez via ntg-context > wrote: > > BTW, is there any way to rephrase "{h3 + blockquote}" in proper Lua? I was wondering about that as well, and I really had no clue how to do that. Some reading and studying later, I realised that there is a preceding-sibling:: axis. That is not documented in xml-mkiv.pdf I think, but it inherited from xpath, and that means this works: \xmlsetsetup{#1}{blockquote/preceding-sibling::h3[-1]/} {xml:section} “Take all blockquotes, then tests their immediate preceding siblings (index [-1]) that are h3." But the CSS version is nicer. Still, both solutions fail on generic input. Sorry, out of clues Best wishes,Taco — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ 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] issue with lpath
> On 2 Aug 2022, at 21:14, Pablo Rodriguez via ntg-context > wrote: > > Dear list, > > > I need an lpath to select the h3 node above, but only the one with "h3 + > blockquote" as a CSS selector (which could be added the lpath "../h3" > after). Lpath supports CSS selectors between curly braces as parts, so simply: \xmlsetsetup{#1}{{h3 + blockquote}/../h3} {xml:section} should do. The xml-mkiv.pdf manual has lots of other lpath examples as well. Best wishes, Taco — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] How to switch off the numbering of a float in a CLDocument?
> On 21 Jul 2022, at 13:18, Willi Egger via ntg-context > wrote: > > Hraban thank you for your answer. > > I tried diffrent approaches in the meantime, however I am unable to get it > working. > > What is wrong with this code? — The code woks a for the context.framedtext() > > \setupexternalfigures[location={local,default}] > > \startluacode > > function Foto_page() --thirddata > > context.startplacefigure({number="",textstyle="red",title="A Test"}) >context.externalfigure("{cow.pdf}",{width="0.5\\textwidth"}) It is subtle, but you need: context.externalfigure({“cow.pdf"},{width="0.5\\textwidth"}) A “lua table” becomes [] stuff, a “lua string” becomes {} stuff. Your original resulted in \externalfigure{{cow.pdf}}[width={0.5\textwidth}] Best wishes, Taco PS \enabletrackers[context.*] > --context.framedtext( > -- {frame="on",style="\\bfd"}, > -- "{This is a test}") > context.stopplacefigure() > end > > \stopluacode > > \define\Test{\ctxlua{Foto_page()}} > > \starttext > \strut > \Test > \stoptext > > KR > Willi > >> On 18 Jul 2022, at 20:56, Henning Hraban Ramm via ntg-context >> wrote: >> >> Am 18.07.22 um 20:31 schrieb Willi Egger via ntg-context: >>> Hi all, >>> I wanted to place a figure in a cld. The example in the cld manual does not >>> reveal how to influence bahavior except for the caption. >>> context.placefigure( >>> “caption”, >>> function() context.externalfigure({i}, { width = "\\textwidth" } ) end ) >>> Can anybody enlighten me? >> >> Just use >> >> context.startplacefigure({ option = "some", otheroption = "thing" }) >> ... >> context.stopplacefigure() >> >> 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 > ___ — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ 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] number of chapters
> On 20 Jul 2022, at 09:40, Henning Hraban Ramm via ntg-context > wrote: > > Am 20.07.22 um 09:06 schrieb Henning Hraban Ramm via ntg-context: >> Hi, >> how do I access the current chapter number and the number of chapters >> (including appendixes; after the first run)? >> I’d like to setup a chapter color like >> \definecolor[ChapterColor][ >> s=1,v=1, >> h=360*\namedstructurevariable{chapter}{number}/\numberofchapters, >> ] >> and use it for a thumb index... >> (I can’t access the wiki ATM; downforeveryoneorjustme.com says it would be >> just me.) > > Ok, I can access the wiki via Tor and found > > \somenamedheadnumber{chapter}{current} > \somenamedheadnumber{chapter}{last} These are expandable > > or > > \someheadnumber[chapter][current] > \someheadnumber[chapter][last] These are not > > What’s the difference? > > And even if I use \definecolor within a setup, I get the same color for every > chapter – how and where must I delay expansion? > > \usemodule[visual] > > \startsetups[MyChapterSetup] > \definecolor[MyChapterColor][h={360*\somenamedheadnumber{chapter}{current}/\somenamedheadnumber{chapter}{last}},s=1,v=1] \definecolor[MyChapterColor][h={\the\numexpr 360*\somenamedheadnumber{chapter}{current}/\somenamedheadnumber{chapter}{last}\relax},s=1,v=1] Best wishes, Taco — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ 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] What is going wrong with this use of --mode for switching language?
> On 8 Jul 2022, at 11:42, Gerben Wierda via ntg-context > wrote: > > I have this minimal example: > > \startmode[EL] > \setuplanguage[el][patterns={el}]\mainlanguage[el] That (‘el’) is a non-existent language, so it never becomes active. Best wishes, Taco — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ 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] "pragma-ade.com" is now a domain parking page
> On 1 Jul 2022, at 09:46, Henning Hraban Ramm via ntg-context > wrote: > > Am 01.07.22 um 09:33 schrieb Hans Hagen via ntg-context: >> On 7/1/2022 9:02 AM, Taco Hoekwater via ntg-context wrote: >>> Well, >>> >>> Hans had been complaining about networksolutions not allowing him to move >>> the domain away from them, so I guess this was to be expected. >> indeed, and transfer is pending for ages now ... looks liek they don't like >> to transfer >> make me wonder if we should just ditch that domain and stick to the nl one >> only, saves money too > > Well, we must change a lot of dead links on the wiki now. > > Taco, can you automate it? Otherwise I’ll start... I do not know of a clean way to automate that. It may be possible, but then it is outside of my knowledge set. So yeah, by hand. Best wishes, Taco — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] "pragma-ade.com" is now a domain parking page
Well, Hans had been complaining about networksolutions not allowing him to move the domain away from them, so I guess this was to be expected. Best wishes, Taco > On 1 Jul 2022, at 08:01, Max Chernoff via ntg-context > wrote: > > When I go to: > >https://www.pragma-ade.com/ > > I get a page that says: > >pragma-ade.com expired on 06/28/2016 and is pending renewal or deletion. > > followed by some advertisements. Both a link archiver > >https://archive.today/jUOox > > and an SSL/TLS certificate checker > >https://www.ssllabs.com/ssltest/analyze.html?d=www.pragma-ade.com > > show the same results, so I'm pretty sure that this isn't just an issue > with my connection. > > Both "https://www.pragma-ade.nl/"; and "https://www.pragma-pod.nl/"; still > work as expected. > > Here's the output of a few debugging commands: > >$ whois pragma-ade.com > Domain Name: PRAGMA-ADE.COM > Registry Domain ID: 30119007_DOMAIN_COM-VRSN > Registrar WHOIS Server: whois.networksolutions.com > Registrar URL: http://networksolutions.com > Updated Date: 2022-06-30T10:41:12Z > Creation Date: 2000-06-28T10:41:39Z > Registry Expiry Date: 2023-06-28T10:41:39Z > Registrar: Network Solutions, LLC > Registrar IANA ID: 2 > Registrar Abuse Contact Email: ab...@web.com > Registrar Abuse Contact Phone: +1.8003337680 > Domain Status: clientTransferProhibited > https://icann.org/epp#clientTransferProhibited > Name Server: NS1.PENDINGRENEWALDELETION.COM > Name Server: NS2.PENDINGRENEWALDELETION.COM > DNSSEC: unsigned > URL of the ICANN Whois Inaccuracy Complaint Form: > https://www.icann.org/wicf/ >>>> Last update of whois database: 2022-07-01T05:34:25Z <<< > > >$ dig www.pragma-ade.com @1.1.1.1 >; <<>> DiG 9.16.1-Ubuntu <<>> www.pragma-ade.com @1.1.1.1 >;; global options: +cmd >;; Got answer: >;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 33675 >;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1 > >;; OPT PSEUDOSECTION: >; EDNS: version: 0, flags:; udp: 1232 >;; QUESTION SECTION: >;www.pragma-ade.com.IN A > >;; ANSWER SECTION: >www.pragma-ade.com. 7200IN A 208.91.197.132 > >;; Query time: 90 msec >;; SERVER: 1.1.1.1#53(1.1.1.1) >;; WHEN: Thu Jun 30 23:34:00 MDT 2022 >;; MSG SIZE rcvd: 63 > > >$ whois 208.91.197.132 >NetRange: 208.91.196.0 - 208.91.197.255 >CIDR: 208.91.196.0/23 >NetName:CONFLUENCE-NETWORK-INC >NetHandle: NET-208-91-196-0-1 >Parent: NET208 (NET-208-0-0-0-0) >NetType:Direct Allocation >OriginAS: AS40034 >Organization: Confluence Networks Inc (CN) >RegDate:2011-04-15 >Updated:2015-11-23 >Ref:https://rdap.arin.net/registry/ip/208.91.196.0 > >OrgName:Confluence Networks Inc >OrgId: CN >Address:3rd Floor, J & C Building, P.O. Box 362 >City: Road Town >StateProv: Tortola >PostalCode: VG1110 >Country:VG >RegDate:2011-04-07 >Updated:2017-03-29 >Ref:https://rdap.arin.net/registry/entity/CN > > >$ whois pragma-ade.nl >Domain name: pragma-ade.nl >Status: active > >Reseller: > Soverin BV > Vijzelstraat 68 > 1017HL Amsterdam > Netherlands > >Registrar: > Metaregistrar B.V. > Zuidelijk Halfrond 1 > 2801DD Gouda > Netherlands > >Abuse Contact: > +31.858885692 > ab...@metaregistrar.com > >Creation Date: 1999-02-10 > >Updated Date: 2021-11-23 > >DNSSEC: yes > >Domain nameservers: > ns0.soverin.net > ns1.soverin.net > ns2.soverin.net > ns3.soverin.net > >Record maintained by: NL Domain Registry >$ dig www.pragma-ade.nl @1.1.1.1 >; <<>> DiG 9.16.1-Ubuntu <<>> www.pragma-ade.nl @1.1.1.1 >;; global options: +cmd >;; Got answer: >;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 7089 >;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1 > >;; OPT PSEUDOSECTION: >; EDNS: version: 0, flags:; udp: 1232 >;; QUESTION SECTION: >;www.pragma-ade.nl. IN A > >;
Re: [NTG-context] Graphviz and ConTeXt
Hi, You could just convert these separately to pdf/svg/jpg/png and then load them as \externalfigure. You could also use the filter module to be able to take them inline into the ConTeXt code: \usemodule[filter] \define[1]\ReadFigure{\externalfigure[#1]} \defineexternalfilter[graphviz] [cache=yes, readcommand=\ReadFigure, output={\externalfilterbasefile.pdf}, filtercommand={dot -Tpdf -o "\externalfilterbasefile.pdf" "\externalfilterinputfile"}] \starttext \startTEXpage \startgraphviz digraph G { main -> parse -> execute; main -> init; main -> cleanup; execute -> make_string; execute -> printf init -> make_string; main -> printf; execute -> compare; } \stopgraphviz \stopTEXpage \stoptext See the filter module documentation for more details about that. Best wishes, Taco > On 23 Jun 2022, at 14:08, juh via ntg-context wrote: > > Dear all, > > I have a legacy project that I shall convert to a new ConTeXt project. > > There are a lot of Graphviz dot-files. What shall I do with these? > > Any hints? > juh > -- > Autoren-Homepage: . http://literatur.hasecke.com > Satiren & Essays: . http://www.sudelbuch.de > Privater Blog: http://www.hasecke.eu > Netzliteratur-Projekt: http://www.generationenprojekt.de > > > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___ — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Cyrillic UTF8 works, greek does not?
> On 22 Jun 2022, at 11:44, Gerben Wierda via ntg-context > wrote: > > What am I doing wrong? Either use range={greekandcoptic,greekextended}, or preset=range:greek, The presets are defined based on combinations of ranges. The preset "range:greek" is defined as: \definefontfamilypreset [range:greek] [range={greekandcoptic, greekextended, ancientgreeknumbers}] Best wishes, Taco — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] arm osx
Hi, > On 29 May 2022, at 22:15, Keith McKay via ntg-context > wrote: > > Hi Steffen > > I have TeXshop setup on my mac mini M1 but I rarely use it. I do not use TeXshop, but I did just upgrade to an M1 Mac, and I had some issues with intel binaries 'sticking around’. Perhaps this page helps (esp. point 3)? https://www.macrumors.com/how-to/tell-apps-optimized-for-m1-apple-silicon-macs/ Best wishes, Taco — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Fwd: ConTeXt meeting registration
Hi all, I just registered myself to attend the ConTeXt meeting in 2022. This is a good moment to remind you all of the meeting (September 12-18, in Dreifelden DE) and —especially— of the need to register if you plan to attend, either in person or online! There is no finished programme yet, so I can repeat the call for papers also. The theme for this meeting is digging deep But, as in previous years, anything at all related to ConTeXt that you would like to share is an acceptable subject for a presentation, tutorial, discussion, Q&A session, demonstration, workshop, recital, sketch, or sermon. More details are on the website: https://meeting.contextgarden.net/ Hoping to see many of you in Dreifelden, Taco > Begin forwarded message: > > From: 16th ConTeXt Meeting Registration > Subject: t...@bittext.nl ConTeXt meeting registration > Date: 25 May 2022 at 09:08:47 CEST > To: cg-treasu...@contextgarden.net > Reply-To: t...@bittext.nl > > Hi Taco, > > Taco Hoekwater has registered at 2022-05-25 09:08:47. — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] ignore not closed tags in XML input
> On 16 May 2022, at 18:50, Pablo Rodriguez via ntg-context > wrote: > > On 5/16/22 17:30, Hans van der Meer via ntg-context wrote: >> Can't you use an editor with grep, searching for something like the >> pattern ? > > Many thanks for your reply, dr. van der Meer. > > If I want to typeset the whole book > (https://seumasjeltzz.github.io/LinguaeGraecaePerSeIllustrata/), I will > have to download and sanitize over 20 HTML files. Which can be done with a couple of command lines. Xmllint usually does a good job of cleaning up dodgy html input: xmllint --html --xmlout > (As good as can be expected from a program, anyway). > It is really a pity that ConTeXt cannot totally ignore any given XML elements. This statement is a little unfair: the problem is exactly that your input is NOT proper XML. If it was proper XML, ConTeXt would not have problems with it. ConTeXt explicitly has the capability to handle XML files, which your input simply is not. In fact, it is sloppy HTML-esque data that modern webbrowsers happen to be able to handle more or less correctly. It is not valid HTML either, because valid HTML has to be valid SGML, which your input clearly is not. That said, Tools like xmllint exist for this stuff. Just write a small batch driver file in some scripting language ((power)shell, lua, python, perl, etc.) to preprocess the HTML stuff into clean XML, and you should be fine. Taco — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Can I use language as a mode (set on the command line) and simplify this?
> On 10 May 2022, at 23:40, Gerben Wierda via ntg-context > wrote: > > Fix >> I was wondering if this can be simplified, e.g. by setting language on the >> command line instead, enable a mode derived from a language set on the >> command line, The language settings trigger a system mode, see https://wiki.contextgarden.net/Modes#System_modes Best wishes, Taco — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] a cross-reference query
> On 10 May 2022, at 04:03, jbf via ntg-context wrote: > > Can anyone give me a hint as to what I might be doing wrong? I realise that > usually these references call on page numbers or section numbers, but I don't > want/need (or do I?) to use those. I simply the reader to be able to click on > a hyperlink which takes them to the referenced entry. Check for duplicates (referenced definitions with the same key). That problem has hit me a number of times. Best wishes, Taco — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to place "Content" and other chapter-level titles the same vertical distance from the top?
aligned vertically on >> the >> page, with no other settings. But when calling \completecontent or a similar >> title that won't get a number, because the number isn't placed, it is >> vertically >> higher on the page, but I need it to be printed the same height, as it it >> had an >> invisible number. >> >> I've tried adding strut (the code has it in two places), but don't know if >> I've >> used it appropriately, and it didn't solve the problem. >> >> --Joel > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___ — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Citeproc-lua
Hi, I had a quick look at this and it seems very extensible if-not-quite ConTeXt-ready right away. On the input side, it reads a LaTeX .aux file to parse things like options, databases, and requested citations. For this, it uses a dedicated “citeproc” lua script that should be easy to modify/copy for someone who knows what is actually in the ConTeXt .tuc file. On the output side, it uses a lookup table to generate the desired markup (in citeproc-formats.lua). Right now, there are definitions provided for HTML and LaTeX, but that is very simple to extend. There is a LaTeX package for the integration (making sure the right commands appear in the aux file, option processing, et cetera), and that file I do not understand *at all*. It seems to be completely isolated from the core citeproc processing, though. Very promising stuff, I think. But: I personally do not understand how to do the integration with ConTeXt’s new biblio system. I only understand half of what ConTeXt does these days, and much less of what the LaTeX package is trying to achieve i.r.t. options. Best wishes, Taco > On 3 May 2022, at 22:00, Denis Maier via ntg-context > wrote: > > Hi, > > I just came across this: https://github.com/zepinglee/citeproc-lua > Thats’s an lua implemenation of the CSL language targeting LaTeX. > I don’t know if the processor itself contains any LaTeX specific code, but it > looks like the integration basically happens here > :https://github.com/zepinglee/citeproc-lua/blob/main/latex/citation-style-language.sty > So, at least in theory, shouldn’t it be possible to make this workable also > with context? > > Best, > Denis > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___ Taco Hoekwater Elvenkind BV ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] XML: calculations on attribute values before output
> On 4 May 2022, at 22:10, Duncan Hothersall via ntg-context > wrote: > > Hi. > > I'm processing an XML table and need to set a row span. Because we use a > variant of the CALS table model, spans are defined by an attribute saying how > many *additional* rows should be spanned, as opposed to how many *in total*. > So to translate this into TABLE \bTD[nr=X] syntax I need to add 1. > > I'm guessing this is very easily doable (in lua?) but I've tried various > permutations and can't work it out. If anyone could give me a pointer that > would be great. > > (In reality I'm going to need to handle lots of other conversions of > attribute values into \bTD[...] commands, so if there's a generalised way of > doing that sort of thing, or even better if someone has already tackled CALS > tables in this way, that would also be great!) Not CALS, but I do a lot of HTML table processing. I find it all much easier on the lua side, because there the attributes are just in a table entry of the argument node t ( t.at ): set up a lua function in the setups: \startxmlsetups xml:demo:base \xmlsetsetup{#1}{*}{xml:demo:*} \xmlsetfunction {\xmldocument}{entry}{userdata.xmlfunctions.entry} \stopxmlsetups and then add this lua code: \startluacode userdata.xmlfunctions = {} function userdata.xmlfunctions.entry (t) local rows = (t.at.morerows or 1) + 1 context.bTD({nr=rows}) lxml.flush(t) context.eTD() end \stopluacode All of the tex-side commands also exist in lua, in the lxml and/or xml table, e.g.: direct output flushing: lxml.flush(t) lxml.all(t, ‘entry’) filter for processing: for b in xml.collected(lxml.getid(t),'../row/entry') do … end (those are the ones I use a lot, there are many more) Best wishes, Taco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Cron /var/www/aanhet.net/context/bin/cron/context-mirror
Hi, So this cron forwarding actually works ;) > On 2 May 2022, at 17:01, Cron Daemon via ntg-context > wrote: > > receiving incremental file list > ./ > ctan.lsr > document-2.htm > download-1.htm > download-2.htm > install.htm > logo-ade.png > logo-cts.png > logo-pod.png > rss.xml > show-fil.pdf > context/latest/ > context/latest/cont-mpd.zip > context/latest/cont-ppc.zip > context/latest/cont-sci.zip > context/latest/cont-tmf.zip > > sent 90,352 bytes received 18,536,958 bytes 3,386,783.64 bytes/sec > total size is 456,819,434 speedup is 24.52 That block above means that Hans has uploaded new files to the pragma website. That is not exactly the same thing as the packaged distribution, so bear in mind that you probably (?) have to allow for a little bit of delay before running the installation updater. > > Running archiver: > > New dir: /var/www/aanhet.net/context//htdocs/archives/context-2022-05-02.17 > 137316935 > /var/www/aanhet.net/context//htdocs/archives/context-2022-05-02.17/latest > 126745317 > /var/www/aanhet.net/context//htdocs/archives/context-2022-05-02.17/current > 18956262 > /var/www/aanhet.net/context//htdocs/archives/context-2022-05-02.17/alpha > 126707516 > /var/www/aanhet.net/context//htdocs/archives/context-2022-05-02.17/beta > 409730126 > /var/www/aanhet.net/context//htdocs/archives/context-2022-05-02.17 > 409730126 total This last bit is just my archiving code reporting local space requirements. I keep a fairly large collection of older downloads as well: http://context.aanhet.net/archives/ You may have to hunt backward in time to find a specific zip, because I delete duplicates occasionally, only keeping the oldest/first (Hans nowadays mostly updates ‘latest’, with a ‘current’ now and then. ‘alpha’ and ‘beta’ are typically don’t change at all). Also, the site is still plain http. I am not going to install https right now. Best wishes, Taco — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Need some hints to fix my standalon installation
Hi, I have an rsync cron job running each hour that alerts me if there is a new upload. If nobody objects, I could direct the cron notification email to the list? Taco > On 20 Apr 2022, at 19:41, Pablo Rodriguez via ntg-context > wrote: > > On 4/20/22 19:22, Christoph Hintermüller via ntg-context wrote: >> >> That's fine. As soon as post that update is ready for pulling I will >> pull. >> Till then i can wait. > > Hi Christoph, > > to check when there is a new release I use: > > curl -I https://lmtx.pragma-ade.com/install-lmtx/texmf-context.zip 2>&1 > | grep -i Last-Modified > > Just in case it might help you, > > Pablo > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Fwd: \vfill doesn't work in this example
Hi, Message below forwarded on behalf of Dalyoung , who has problems submitting messages. Best wishes, Taco > Begin forwarded message: > > Hi, > > To add the same vertical space in column mode, > I usually use \vfill as in the following sample before. > But this example doen’t add spaces after first item. > How to locate the two subitems evenly spaced in vertically? > > Thank you for reading. > > Best regards, > > Dalyoung > > > %% > \starttext > \startcolumns[n=2] > \startitemize[n] > \item 111 > \startitemize[a] > \item 1-1 > \vfill > \item 1-2 > \vfill > \stopitemize > > \column > > \item 222 > \startitemize[a] > \item 2-1 > \vfil > \item 2-2 > \vfil > \stopitemize > > \column > > \stopitemize > \stopcolumns > \stoptext > >> 2022. 4. 8. 오후 6:33, Taco Hoekwater > <mailto:t...@bittext.nl>> 작성: >> >> Hi Dalyoung, >> >> >>> Forwarded Message >>> Subject:Re: \vfill doesn't work in this example >>> Date: Fri, 8 Apr 2022 15:00:21 +0900 >>> From: Jeong Dal mailto:hak...@icloud.com>> >>> To: ntg-context-ow...@ntg.nl <mailto:ntg-context-ow...@ntg.nl> >>> >>> Hi, >>> >>> I received the following mail. >>> But I think that my message is rejected in error. >>> >>> I have an account in this list for long time. >>> >>> The email address of this mail may cause the error. >>> I used email address given from Mac.com <http://mac.com/> <http://Mac.com >>> <http://mac.com/>>. >>> >>> hak...@mac.com <mailto:hak...@mac.com> <mailto:hak...@mac.com >>> <mailto:hak...@mac.com>>, hak...@me.com >>> <mailto:hak...@me.com><mailto:hak...@me.com <mailto:hak...@me.com>>, and >>> hak...@icloud.com <mailto:hak...@icloud.com><mailto:hak...@icloud.com >>> <mailto:hak...@icloud.com>> are actually the same address. >> >> Well, the mailing list did not know that. Only hak...@mac.com >> <mailto:hak...@mac.com> was actually subscribed. I have now added the two >> aliases. >> >> Best wishes, >> Taco >> >> — >> Taco Hoekwater E: t...@bittext.nl <mailto:t...@bittext.nl> >> genderfluid (all pronouns) > — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Nested $$ in inline math
> On 13 Dec 2021, at 16:15, Jack Hill via ntg-context > wrote: > > Dear list, > > I was playing around and found that nesting $$s inside of \m blocks typesets > the code as text. > I can't find anything about this on the wiki or in the math-mkiv manual, so > I'm asking whether this is supported behaviour or just a bug? I would say that this is unsupported expected behaviour ;) It is better not to use $ at all (except when using it as a dollar sign when \asciimode is active). > > \starttext > % All the same > \mathematics{math $text here$ math} \\ > \math{math $text here$ math} \\ > \m{math $text here$ math} \\ > \m{math \text{text here} math} \\ A bit over-precise maybe, but while the first three are the same, the last line is actually very subtly different. The first three lines are essentially this in TeX82 : $math $text here$ math\hfill\break while that last line is $math \hbox{text here} math\hfill\break Best wishes, Taco — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] upload ... new feature
> On 10 Dec 2021, at 11:46, Hans Hagen via ntg-context > wrote: > > Hi, > > This time the lmtx upload has a (for some maybe) interesting new features: > runtime pdf encryption. > > > I would be surprised if the native apple viewer works but I can't test that. Apple Preview works without any problems, with a quick test. It forces a popup dialog for “user password” on opening when that is set, and with context .. --permissions="-print” it shows an "owner password" dialog before allowing to print — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Bad linebreak in figure caption
> On 2 Dec 2021, at 19:37, Marco Patzer via ntg-context > wrote: > > On Mon, 29 Nov 2021 16:44:07 +0100 > Marco Patzer via ntg-context wrote: > >> Why does ConTeXt not break the line between "unnecessary" and "FOO"? > > Any ideas how to fix this? Captions have their own alignment setting: \setupcaption[figure][align={verytolerant,stretch}] Best wishes, Taco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] double underbars
> On 30 Nov 2021, at 14:38, Denis Maier via ntg-context > wrote: > > Thanks, Taco. Good to know. Although it's not what I wanted to hear, of > course... > > I was thinking using mp to draw the combination could be solution, but > unfortunately I don't know metafun yet. > > If my understanding of https://source.contextgarden.net/node-rul.mkiv is > correct, it should be possible to build upon the defintion of > rules:under:dots (l. 327) Any hints how I could get this started? Yes, that is the right part to get started with. You could just copy the whole \startuseMPgraphic and rename it for editing (to let’s say rules:under:bardots), then do \definebar[underbardot][undergraphic][mp=rules:under:bardots] and play with the mp until you are happy with the output. But the problem is that you have to create an “underbardot" that contains both the bar and the dots, to fix the non-nesting problem. It is then quite hard to get that definition to align properly with any enclosing “underbar” (I tried something like that a while ago and basically gave up. I did not want to spend a whole of time on it so I just told the client “computer says no"). > Another question: what do you mean with a dy-shift version? Nested bars have a parameter ‘dy’ which controls the vertical shifts needed to make sure that they do not overlap. Text backgrounds do not have that option at all. > > Best, > Denis > >> -Ursprüngliche Nachricht- >> Von: Taco Hoekwater >> Gesendet: Dienstag, 30. November 2021 14:19 >> An: mailing list for ConTeXt users >> Cc: Maier, Denis Christian (UB) >> Betreff: Re: [NTG-context] double underbars >> >> >> >>> On 30 Nov 2021, at 12:06, Denis Maier via ntg-context > cont...@ntg.nl> wrote: >>> >>> Hi, >>> >>> for a current project I’ll need different variants of underbars. >>> >>> - A normal underbar >>> - A dotted underbar >>> - A combination of both >>> >>> Is there a way to combine them? I was hoping to have the dotted variant >> above the normal bar. >> >> I would like to have this type of “complete” bar nesting as well. >> >> As it stands, you can nest \underbars inside \underbars and \overstrikes >> inside \overstrikes and \overbars inside \overbars, but no other >> combinations work. Interoperability between these (as well as \underdot, >> \underdash, \underrandom ...) would be really cool. >> >> Either with \bar or a nestable dy-shift version of textbackgrounds would >> be really handy sometimes. :) >> >> >> >>> >>> This is not working >>> >>> %%% >>> \starttext >>> >>> \underbar{asdf} >>> >>> \underdot{asdf} >>> >>> \underbar{\underdot{asdf}} >>> >>> \stoptext >>> %%% >>> >>> >>> Best, >>> Denis >>> >>> >> __ >> >>> _ If your question is of interest to others as well, >>> please add an entry to the Wiki! >>> >>> maillist : ntg-context@ntg.nl / >>> http://www.ntg.nl/mailman/listinfo/ntg-context >>> webpage : http://www.pragma-ade.nl / http://context.aanhet.net >>> archive : https://bitbucket.org/phg/context-mirror/commits/ >>> wiki : http://contextgarden.net >>> >> __ >> >>> _ >> >> — >> Taco Hoekwater E: t...@bittext.nl >> genderfluid (all pronouns) >> >> > > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___ — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] double underbars
> On 30 Nov 2021, at 12:06, Denis Maier via ntg-context > wrote: > > Hi, > > for a current project I’ll need different variants of underbars. > > - A normal underbar > - A dotted underbar > - A combination of both > > Is there a way to combine them? I was hoping to have the dotted variant above > the normal bar. I would like to have this type of “complete” bar nesting as well. As it stands, you can nest \underbars inside \underbars and \overstrikes inside \overstrikes and \overbars inside \overbars, but no other combinations work. Interoperability between these (as well as \underdot, \underdash, \underrandom ...) would be really cool. Either with \bar or a nestable dy-shift version of textbackgrounds would be really handy sometimes. :) > > This is not working > > %%% > \starttext > > \underbar{asdf} > > \underdot{asdf} > > \underbar{\underdot{asdf}} > > \stoptext > %%% > > > Best, > Denis > > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___ — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Problem with \head inside \itemize
> On 22 Nov 2021, at 14:15, Jean-Philippe Rey via ntg-context > wrote: > > Dear list, > > The following code worked perfectly well with ConTeXt ver: 2021.01.05 10:45 > LMTX > but produces an error with the current LMTX version (at least since ConTeXt > ver: 2021.09.26 17:00 LMTX). > Adding an explicit \par at the end of the \head line allows the example to > work. It seems like the newest LMTX versions don’t handle implicit \par (empty lines) as argument delimiter any more, the argument has to be terminated by the explicit string “\par", just like any other argument delimiter. This is definitely a change, but I would vote for that change to stay. ;) Best wishes, Taco — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Can modes be used for content control?
Hi Idris, I think Hans was trying to point you to the blocks mechanism. Blocks *do* nest: \defineblock[sectionblock] \defineblock[myblock] \startmode[variantone] \keepblocks[sectionblock] \keepblocks[myblock] \stopmode \startmode[varianttwo] \keepblocks[sectionblock] \stopmode \starttext \beginsectionblock \section{A to B} \beginmyblock A is for Amy, who fell down the stairs. \endmyblock \beginmyblock B is for Basil, assaulted by bears. \endmyblock \endsectionblock \stoptext — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Footnotes in margins
Hi, Like Hraban said, inserts are generally tricky and they tend to disappear when used inside other elements like floating objects / boxes / tables. However, ConTeXt has an easy way out at least for your case: \starttext \startpostponingnotes \inmargin{Foo\footnote{Foo 1.}}Foo\footnote{Foo 2.} \stoppostponingnotes \stoptext Best wishes, Taco > On 16 Nov 2021, at 12:57, Marcus Vinicius Mesquita via ntg-context > wrote: > > Dear list, > > When running the MWE below, the first footnote does not appear. > What am I missing? > > \starttext > \inmargin{Foo\footnote{Foo 1.}}Foo\footnote{Foo 2.} > \stoptext — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___