Re: [NTG-context] ConTeXt meeting 2022 – please register!
Dear Hraban, Am 03.08.22 um 10:50 schrieb Henning Hraban Ramm via ntg-context: Taco convinced me not to cancel the meeting due to a lack of participants, but I’d like to know why you (esp. if you attended previous meetings) decided not to come: short answer. The meeting is in the holidays of my wife and she expects me to join her in a travel. ;-) The long answer. During the pandemic I stopped planning more than one month ahead. So the above mentioned travel isn't booked yet. For this reason I miss the early birds and maybe the booking of special things like a private room. (In fact I don't found information about accommodations on the website) Before Corona I wanted to attend a meeting but didn't do it for two reasons. 1. I wasn't sure if I can follow the programe. Though I am not a bloody beginner, I am still at the basis of the learning curve. Many talks seems to be way above my understanding. (The same is true for the monthly video meetings.) But I am very interested in learning – I can even imagine that my cooperative would pay for it. 2. I always like to combine meetings with my passion to dance Tango. If a meeting is in a bigger city, chances are high that I could spend a couple of evenings in a local milonga. From Dreifelden to any milonga in NRW or Hessen I would need at least an hour by car. In this year there are some things that might affect others as well. Currently the first real life meetings starts again and I have to confess that it is not so easy to switch mentally to the pre-corona area. My cooperative will be present at the Bits&Bäume conference in Berlin and we are struggling to organize this. This sounds silly but all the processes of planning such an event must be restarted. Corona isn't over and even boostered people have to lay down for at least one week and to stay away from work another one to recover from covid. So for that reason I am still very cautious – and I expect to take over more tasks at work when colleagues got ill from one day to another. So it is not a good time too stay away for one week to attend a meeting. On the other hand I would really like to get into ConTeXt as I am convinced that it is the thing I need for my personal work and my work in my cooperative. So I would still like to attend a meeting. What are the things I am interested in most? I would like to take an intensive training. Aside from the core functions I would like to learn more about integrations as this is what we are trying to do at Hostsharing at the moment. This could cover small things like automated business graphics with different tools to printing from TEI-XML to setup a single source publishing chain with Pandoc. The problems are in the details. ;-) Another topic: If we want to promote ConTeXt it would be nice to have small meetings on bigger meetings like FOSDEM in Belgium or FrOSCon in Germany. (I was so bold to propose a workshop at FrOSCon and alas it was accepted!) At FrOSCon and FOSDEM you can get a developer room to make your own programe. That would be a good place for introductory workshops. I hope that this is of some value for you. Thank you very much for organizing the meeting in these challenging times. juh ___ 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] bibliography problem
Am 29.07.22 um 20:19 schrieb Henning Hraban Ramm via ntg-context: Hi, Denis’ article in the CG journal uses the publications module with a .bib database. With ConTeXt LMTX 2022.05.11 all was well, with the current version (2022.07.27) it can’t find the entries of the database: ... But the entries do exist in the bib file, and a minimal example works. In both cases, the setup looks like: \usebtxdataset[dmlig][dm-ligatures/references.bib] \setupbtx[dataset=dmlig] \usebtxdefinitions[apa] \setupbtx[apa:cite][alternative=num] Unfortunately, I got no answers. But I found out: \definebtxdataset[dmlig] \usebtxdataset[dmlig][dm-ligatures/references.bib] If I use a btxdataset other than "default", \usebtxdefinitions[apa] has no effect, i.e. "default" style is used. Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] What exactly is lpath?
On 8/3/22 16:39, Denis Maier via ntg-context wrote: > [...] > Just like Pablo, I'm from time to time reading through the xml-mkiv > manual, and I was just wondering if there other places where I can > other examples or explanations. (If it were a more general Lua thing > for example...) Hi Dennis, my impression is that (at least in my case) the hardest part is to figure out how XPath actually works. For that, I wonder whether https://github.com/sarahalang/Harvard_BeyondTEI_Workshop_SLang2022 may be helpful. This is from the LaTeX-Ninja (Sarah A. Lang). But nothing prevents using it as an exercise for ConTeXt users. I haven’t done it myself. Just in case it might help, Pablo ___ 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 exactly is lpath?
On 8/3/2022 4:39 PM, Denis Maier via ntg-context wrote: -Ursprüngliche Nachricht- Von: ntg-context Im Auftrag von Hans Hagen via ntg-context Gesendet: Mittwoch, 3. August 2022 10:35 An: Denis Maier via ntg-context Cc: Hans Hagen Betreff: Re: [NTG-context] What exactly is lpath? On 8/3/2022 9:46 AM, Denis Maier via ntg-context wrote: Hi everyone Just a question I've been thinking about from time to time: What exactly is lpath? Is that ConTeXt-specific? Or something more general from Lua? I've of course asked Google, but Lpath seems to a Python-inspired path library for Lua unrelated to XML... it's a bit like xpath ... a way to access arbitrary nodes in a xml tree with lokup and access 'patterns' Thanks. That I do know. I was more wondering where that is coming. (My question was probably not that clear.) As I couldn't find more about it I guess it's ConTeXt-specific, not something coming from the Lua ecosystem... indeed, all lua code is written in the context perspective; we used some socket code but that was also stripped and parially redone (seemed not maintained at that time) keep in mind that we started with luate xin 2005 so much of the lua code had to be written anyway and it also had to be pretty efficient and useable in tex; roberto had an example of a simple xml parser and for xml i started from that but by now it's quite different and way more extensive; we need to be able to handle huge files so, no dependencies and we keep it that way Just like Pablo, I'm from time to time reading through the xml-mkiv manual, and I was just wondering if there other places where I can other examples or explanations. (If it were a more general Lua thing for example...) the test suite and x-* files ... Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] What exactly is lpath?
> -Ursprüngliche Nachricht- > Von: ntg-context Im Auftrag von Hans Hagen > via ntg-context > Gesendet: Mittwoch, 3. August 2022 10:35 > An: Denis Maier via ntg-context > Cc: Hans Hagen > Betreff: Re: [NTG-context] What exactly is lpath? > > On 8/3/2022 9:46 AM, Denis Maier via ntg-context wrote: > > Hi everyone > > Just a question I've been thinking about from time to time: What exactly is > lpath? Is that ConTeXt-specific? Or something more general from Lua? I've of > course asked Google, but Lpath seems to a Python-inspired path library for > Lua unrelated to XML... > it's a bit like xpath ... a way to access arbitrary nodes in a xml tree with > lokup > and access 'patterns' Thanks. That I do know. I was more wondering where that is coming. (My question was probably not that clear.) As I couldn't find more about it I guess it's ConTeXt-specific, not something coming from the Lua ecosystem... Just like Pablo, I'm from time to time reading through the xml-mkiv manual, and I was just wondering if there other places where I can other examples or explanations. (If it were a more general Lua thing for example...) 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 ___
Re: [NTG-context] Forbid footnotes from splitting across pages
Dear Pablo, Many thanks and apologies for top-posting: my normal email client is currently down. I thought of something similar; after some testing, this is what I finally came up with: \setupwhitespace[medium] \setupnotation[footnote] [before={% \startframedtext[none][frame=on,offset=none,width=\textwidth,style={\setupwhitespace[medium]}]}, after={\stopframedtext\blank[medium]}] \starttext \input ward\ \startfootnote \input knuth \stopfootnote{} \dorecurse{3}{\input ward\ } \startfootnote \input knuth \stopfootnote{} \dorecurse{2}{\input ward\ } \startfootnote \input knuth \stopfootnote{} \dorecurse{3}{\input ward\ } \startfootnote \input knuth \stopfootnote{} \stoptext It works but there must be a cleaner way.. Observation: The first argument of \startframedtext is important, otherwise too much extra space is generated -- not sure why but the \startframedtext[none] suppresses it. Endnotes are evil 🙂 But the reason for this is that I'm converting to WORD using Abobe and NitroPDF, and I'm trying to make things as easy for the editor of the book as easy as possible. The conversion will look right but the dozens of footnotes will, of course, be unlinked. If no footnote crosses the page it will be easier to edit in WORD -- which I'm not touching! Thanks again. Best wishes Idris -- Idris Samawi Hamid, Professor Department of Philosophy Colorado State University Fort Collins, CO 80523 From: ntg-context on behalf of Pablo Rodriguez via ntg-context Sent: Wednesday, August 3, 2022 7:47 AM To: Idris Samawi Hamid ادريس سماوي حامد via ntg-context Cc: Pablo Rodriguez Subject: Re: [NTG-context] Forbid footnotes from splitting across pages ** Caution: EXTERNAL Sender ** On 8/3/22 03:05, Idris Samawi Hamid ادريس سماوي حامد via ntg-context wrote: > Dear gang, > > Objectives: > > i) Prevent footnotes from splitting across a page or pagebreak Dear Idris, I wonder whether a \framed[offset=none, frame=off, width=\textwidth] would make sense here. At least, it would prevent page breaks. > ii) Make sure that the footnote reference number in the main text is > always on the same page as the footnote. \setupnote[footnote][split=verystrict, scope=text] might help here. But it cannot achieve what is practically impossible: \setupnote[footnote][split=verystrict, scope=text] \starttext \dorecurse{25} {ab cd ef\footnote{\input{knuth}}} \stoptext I know that this depends from the publisher, but in these cases endnotes are a way more viable option. Just in case it might help, Pablo ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.ntg.nl%2Fmailman%2Flistinfo%2Fntg-context&data=05%7C01%7CIdris.Hamid%40ColoState.EDU%7Ca35bc09dc2a64a5a81ed08da7556aca9%7Cafb58802ff7a4bb1ab21367ff2ecfc8b%7C0%7C0%7C637951312414526695%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=53R%2FGoQs03xamwTP1AaSV%2Flz0ANPdXq%2BScb8LWrCKDY%3D&reserved=0 webpage : https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.pragma-ade.nl%2F&data=05%7C01%7CIdris.Hamid%40ColoState.EDU%7Ca35bc09dc2a64a5a81ed08da7556aca9%7Cafb58802ff7a4bb1ab21367ff2ecfc8b%7C0%7C0%7C637951312414526695%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=d0in%2BCdHvJmM4%2FLLb4TSe3HLoUTGm3SV9VWckCFge8c%3D&reserved=0 / https://nam10.safelinks.protection.outlook.com/?url=http%3A%2F%2Fcontext.aanhet.net%2F&data=05%7C01%7CIdris.Hamid%40ColoState.EDU%7Ca35bc09dc2a64a5a81ed08da7556aca9%7Cafb58802ff7a4bb1ab21367ff2ecfc8b%7C0%7C0%7C637951312414526695%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=0ROMr0be%2Fcjjn7%2B84joQS6VN40i%2BkhEKytb%2FOYfT7Tk%3D&reserved=0 archive : https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbitbucket.org%2Fphg%2Fcontext-mirror%2Fcommits%2F&data=05%7C01%7CIdris.Hamid%40ColoState.EDU%7Ca35bc09dc2a64a5a81ed08da7556aca9%7Cafb58802ff7a4bb1ab21367ff2ecfc8b%7C0%7C0%7C637951312414526695%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=KvquRtfyCxBeYRNGwgcjIfJJcc2VFzgMrVblnqx5IiU%3D&reserved=0 wiki : https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcontextgarden.net%2F&data=05%7C01%7CIdris.Hamid%40ColoState.EDU%7Ca35bc09dc2a64a5a81ed08da7556aca9%7Cafb58802ff7a4bb1ab21367ff2ecfc8b%7C0%7C0%7C637951312414526695%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=2I9Ld7VLXQUlPOAo96PnWx3ITOX%2BS0arKW%2FIuPpWvRg%3D&reserved=0 ___ __
Re: [NTG-context] issue with lpath
On 8/3/22 09:09, Taco Hoekwater via ntg-context wrote: >> On 2 Aug 2022, at 21:14, Pablo Rodriguez via ntg-context >> wrote: >> [...] >> 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} Taco, I knew that, but I wasn’t sure how to mix both. I’d say yesterday I tried something similar to: \xmlsetsetup{#1}{{h3 + blockquote}../h3} {xml:section} Which, of course, couldn’t work. > The xml-mkiv.pdf manual has lots of other lpath examples as well. I know, I have read them many times. And I read them from time to time. But I’m not smart enough to understand them. BTW, is there any way to rephrase "{h3 + blockquote}" in proper Lua? Something like "/h3/../!p/../blockquote" selected both "h3 + p" (which I didn’t want and "h3 + blockquote" (the one intended). Many thanks for your help, Pablo ___ 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] Forbid footnotes from splitting across pages
On 8/3/22 03:05, Idris Samawi Hamid ادريس سماوي حامد via ntg-context wrote: > Dear gang, > > Objectives: > > i) Prevent footnotes from splitting across a page or pagebreak Dear Idris, I wonder whether a \framed[offset=none, frame=off, width=\textwidth] would make sense here. At least, it would prevent page breaks. > ii) Make sure that the footnote reference number in the main text is > always on the same page as the footnote. \setupnote[footnote][split=verystrict, scope=text] might help here. But it cannot achieve what is practically impossible: \setupnote[footnote][split=verystrict, scope=text] \starttext \dorecurse{25} {ab cd ef\footnote{\input{knuth}}} \stoptext I know that this depends from the publisher, but in these cases endnotes are a way more viable option. Just in case it might help, Pablo ___ 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 meeting 2022 – please register!
Am 31.07.22 um 16:02 schrieb Henning Hraban Ramm via ntg-context: Hi folks & friends, I’d like to remind you to register for the current ConTeXt meeting (September 12–18 in Germany), we must close registration in about two weeks, and my list is still rather short. https://meeting.contextgarden.net/2022/ If you registered early and got only an error message from the form, please register again. And please don’t think you could avoid a registration because everyone knows you’ll come (except Hans). Otherwise it’s normal that you got no response from me (sorry!). We have no Covid restrictions in Germany any more, even if the incidences are high, except that you must wear a mask in trains and are asked to in some other places. I’d ask you to test yourself before traveling. It would be nice if you would register also for online attendance, just for my information. Since the regular online meetup would be during the conference, we will drop that. Looking forward to seeing you soon, Hraban Hi again, Taco convinced me not to cancel the meeting due to a lack of participants, but I’d like to know why you (esp. if you attended previous meetings) decided not to come: * personal reasons (family etc.) * health (Covid, pox...) * financial (too expensive?) * ecological (avoid traveling) * time (bad date?) * place (too far? not comfortable enough?) This might also affect upcoming meetings (2023 in Sibřina in September again, 2024 maybe earlier in Italy). One person told me they wouldn’t attend conferences without mandatory face masks. (While it makes sense to wear a mask, I don’t think it does if you spend a week with the same people.) Hraban ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] What exactly is lpath?
On 8/3/2022 9:46 AM, Denis Maier via ntg-context wrote: Hi everyone Just a question I've been thinking about from time to time: What exactly is lpath? Is that ConTeXt-specific? Or something more general from Lua? I've of course asked Google, but Lpath seems to a Python-inspired path library for Lua unrelated to XML... it's a bit like xpath ... a way to access arbitrary nodes in a xml tree with lokup and access 'patterns' Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] What exactly is lpath?
Hi everyone Just a question I've been thinking about from time to time: What exactly is lpath? Is that ConTeXt-specific? Or something more general from Lua? I've of course asked Google, but Lpath seems to a Python-inspired path library for Lua unrelated to XML... Best, Denis > -Ursprüngliche Nachricht- > Von: ntg-context Im Auftrag von Taco > Hoekwater via ntg-context > Gesendet: Mittwoch, 3. August 2022 09:09 > An: mailing list for ConTeXt users > Cc: Taco Hoekwater ; Pablo Rodriguez > Betreff: Re: [NTG-context] issue with lpath > > > > > On 2 Aug 2022, at 21:14, Pablo Rodriguez via ntg-context cont...@ntg.nl> 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 > __ > _ ___ 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 ___