Re: [NTG-context] context-on-web broken

2023-06-26 Thread Taco Hoekwater via ntg-context
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?

2023-06-16 Thread Taco Hoekwater via ntg-context
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

2023-06-08 Thread Taco Hoekwater via ntg-context



> 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

2023-05-31 Thread Taco Hoekwater via ntg-context
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

2023-05-29 Thread Taco Hoekwater via ntg-context
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

2023-05-24 Thread Taco Hoekwater via ntg-context


> 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

2023-05-16 Thread Taco Hoekwater via ntg-context


> 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

2023-04-11 Thread Taco Hoekwater via ntg-context
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

2023-04-06 Thread Taco Hoekwater via ntg-context
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

2023-04-05 Thread Taco Hoekwater via ntg-context
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

2023-04-03 Thread Taco Hoekwater via ntg-context


> 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

2023-03-30 Thread Taco Hoekwater via ntg-context


> 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

2023-02-20 Thread Taco Hoekwater via ntg-context


> 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

2022-10-14 Thread Taco Hoekwater via ntg-context


> 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)

2022-10-03 Thread Taco Hoekwater via ntg-context
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  
> 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

2022-09-07 Thread Taco Hoekwater via ntg-context
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

2022-09-06 Thread Taco Hoekwater via ntg-context


> 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

2022-09-01 Thread Taco Hoekwater via ntg-context


> 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

2022-09-01 Thread Taco Hoekwater via ntg-context
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?

2022-08-15 Thread Taco Hoekwater via ntg-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

2022-08-05 Thread Taco Hoekwater via ntg-context


> 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

2022-08-04 Thread Taco Hoekwater via ntg-context


> 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

2022-08-04 Thread Taco Hoekwater via ntg-context


> 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

2022-08-03 Thread Taco Hoekwater via ntg-context


> 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?

2022-07-21 Thread Taco Hoekwater via ntg-context


> 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

2022-07-20 Thread Taco Hoekwater via ntg-context


> 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?

2022-07-08 Thread Taco Hoekwater via ntg-context


> 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

2022-07-01 Thread Taco Hoekwater via ntg-context


> 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

2022-07-01 Thread Taco Hoekwater via ntg-context
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
> 
>;; ANSWER SECTION:
>www.pragma-ade.nl.  300 IN  A   213.125.29.165
> 
>;; Query time: 730 msec
>;; SERVER: 1.1.1.1#53(1.1.1.1)
>;; WHEN: Thu Jun 30 23:55:28 MDT 2022
>;; MSG SIZE  rcvd: 62
> 
> 
>$ whois 213.125.29.165
>inetnum:213.125.29.160 - 213.125.29.167
>netname:PRAGMA
>descr:  Pragma
>descr:  Hasselt
>descr:  This space is statically assigned.
>country:NL
>admin-c:HH6275-RIPE
>tech-c: ZBTB1-RIPE
>status: 

Re: [NTG-context] Graphviz and ConTeXt

2022-06-23 Thread Taco Hoekwater via ntg-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?

2022-06-22 Thread Taco Hoekwater via ntg-context


> 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

2022-05-30 Thread Taco Hoekwater via ntg-context
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

2022-05-25 Thread Taco Hoekwater via ntg-context
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 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

2022-05-16 Thread Taco Hoekwater via ntg-context


> 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?

2022-05-11 Thread Taco Hoekwater via ntg-context


> 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

2022-05-10 Thread Taco Hoekwater via ntg-context


> 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?

2022-05-09 Thread Taco Hoekwater via ntg-context


> On 9 May 2022, at 09:45, Denis Maier via ntg-context  
> wrote:
> 
> This example from the wiki does not run anymore with LMTX:

Still worked ok in:  ConTeXt  ver: 2022.04.19 19:53 LMTX

> You get the error message:
> I've run across a '}' that doesn't seem to match anything. For example,
> '\def\a#1{...}' and '\a}' would produce this error. The '\par' that I've just
> inserted will cause me to report a runaway argument that might be the root of 
> the
> problem.
> 
> Maybe some expansion thing. Don't know, but consider this :
> 
> %
> \setuppapersize[A6][A6] 
> \setupbodyfont[8pt] 
> \define[2]\MyChapterCommand{#1 #2} % does work
> %\def\MyChapterCommand#1#2{#1 #2} % does not work
> \setuphead[chapter][ 
>command=\MyChapterCommand, 
>] 
> \starttext 
> \startchapter{test} 
> \input tufte 
> \stopchapter 
> \stoptext
> %
> 
> So, this here should get you started:
> 
> %
> 
> \showframe
> \setuppapersize[A6][A6]
> \setupbodyfont[8pt]
> \define[2]\MyChapterCommand%
>  {\vbox to 15mm\bgroup
>\vss
>{#1\blank #2}
>\egroup}
> \define[1]\MyTitleCommand%
>  {\vbox to 15mm\bgroup
>\vss
>{#1}
>\egroup}
> 
> \setuphead[chapter][command=\MyChapterCommand]
> \setuphead[title][command=\MyTitleCommand]
> \starttext
> \chapter{test} \input tufte
> \title{test} \input tufte
> \stoptext
> %
> 
> I bet there are easier solutions, maybe use framed instead of vbox.
> 
> Denis
> 
> 
>> 
>> 
>> Von: Maier, Denis Christian (UB)
>> Gesendet: Sonntag, 8. Mai 2022 09:24:51
>> An: mailing list for ConTeXt users
>> Cc: Joel
>> Betreff: AW: [NTG-context] How to place "Content" and other chapter-level
>> titles the same vertical distance from the top?
>> 
>> Maybe define your own chapter command and use a vbox.
>> Look at this example from the wiki:
>> 
>> \setuppapersize[A6][A6]
>> \setupbodyfont[8pt]
>> \def\MyChapterCommand#1#2%
>>  {\vbox to 4cm\bgroup
>> {#1\hskip.75em #2}
>> \vss
>> \egroup}
>> \setuphead[chapter][header=nomarking, command=\MyChapterCommand]
>> \starttext \chapter{test} \input tufte \stoptext
>> 
>> That's not exactly what you want, but you can adapt it.
>> 
>> Denis
>> 
>> Von: ntg-context  im Auftrag von Joel via ntg-
>> context 
>> Gesendet: Sonntag, 8. Mai 2022 04:49:32
>> An: ntg-context@ntg.nl
>> Cc: Joel
>> Betreff: [NTG-context] How to place "Content" and other chapter-level titles
>> the same vertical distance from the top?
>> 
>> I created a chapter title style with a large number telling the chapter 
>> number,
>> and below it the title of the chapter.
>> 
>> It looks like this:
>> 
>> -
>>1   <--really big chapter number
>> === <-- there is a border created by a background image between
>> these
>>How to keep  <--chapter title
>>fish
>> 
>> This is the article <-- the article begins about how to keep fish
>> -
>> 
>> \definefontsize[a]%
>> \definefontsize[b]%
>> \definefontsize[c]%
>> \definefontsize[l]%
>> \setupbodyfontenvironment[default]%
>>[%
>>a=1.200,
>>b=1.440,
>>c=1.728,
>>l=8.916
>>]%
>> %
>> 
>> \setuplabeltext[chapter=\strut]
>> \setuphead[chapter][style=\ssc,placehead=yes,expansion=yes,page=yes,
>> numbercommand=\groupedcommand{}{\blank[1cm]},
>> alternative=middle,
>> numberstyle=ssl,
>> numbercolor=green,
>> strut=yes]
>> 
>> \starttext
>> 
>>\completecontent
>> 
>>\chapter{Test}
>>\input knuth
>> 
>>\chapter{Test}
>>\input knuth
>> 
>> \stoptext
>> 
>> The problem I'm facing, is anytime a chapter title is called, such as 
>> "Content"
>> in complete content, or something in the appendix, such as one of the
>> indexes, no number is printed above, so the vertical distance from the top of
>> the page to the top of the chapter title changes. I need these to be
>> consistent, as there is a background image, with vertical lines.
>> 
>> Basically, if I call \chapter{}, it appears perfectly 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  : 

Re: [NTG-context] Citeproc-lua

2022-05-06 Thread Taco Hoekwater via ntg-context
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

2022-05-05 Thread Taco Hoekwater via ntg-context


> 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

2022-05-03 Thread Taco Hoekwater via ntg-context
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

2022-04-20 Thread Taco Hoekwater via ntg-context
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

2022-04-11 Thread Taco Hoekwater via ntg-context
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 > > 작성:
>> 
>> 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 
>>> 
>>> 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  >> >.
>>> 
>>> hak...@mac.com  >> >, hak...@me.com 
>>> >, and 
>>> hak...@icloud.com >> > are actually the same address.
>> 
>> Well, the mailing list did not know that. Only hak...@mac.com 
>>  was actually subscribed. I have now added the two 
>> aliases.
>> 
>> Best wishes,
>> Taco
>> 
>> — 
>> 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] Nested $$ in inline math

2021-12-13 Thread Taco Hoekwater via ntg-context


> 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

2021-12-10 Thread Taco Hoekwater via ntg-context


> 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

2021-12-03 Thread Taco Hoekwater via ntg-context


> 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

2021-11-30 Thread Taco Hoekwater via ntg-context


> 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

2021-11-30 Thread Taco Hoekwater via ntg-context


> 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

2021-11-22 Thread Taco Hoekwater via ntg-context


> 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?

2021-11-17 Thread Taco Hoekwater via ntg-context
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

2021-11-16 Thread Taco Hoekwater via ntg-context
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
___


Re: [NTG-context] \startbodymatter forcing new page in document

2021-11-15 Thread Taco Hoekwater via ntg-context


> On 15 Nov 2021, at 15:07, A A via ntg-context  wrote:
> 
> Dear All,
> 
> The following code generates a title and some fake text:
> 
> \setuppagenumbering[location=right]
> 
> \usemodule[visual]
> 
> \usebtxdataset[bibliography.bib]
> \starttext
> \title{test}
> \fakewords{1000}{1200}
> 
> \stoptext
> 
> The following code does the same, but wraps the fakewords in a bodymatter 
> environment:
> 
> \setuppagenumbering[location=right]
> 
> \usemodule[visual]
> 
> \usebtxdataset[bibliography.bib]
> \starttext
> \title{test}
> \startbodymatter
> \fakewords{1000}{1200}
> \stopbodymatter
> 
> \stoptext
> 
> 
> In the first case, the title remains on the same page as the fake text. In 
> the second case, a new page is forced after the title. Why does this occur? 

\startbodymatter starts a sectionblock (the “bodypart” block, to be exact) and
by default these blocks all switch to a ‘right’ page. Add this in your preamble 
to
get rid of the page switch:

\setupsectionblock[bodypart][page=no]



> 
> Regards,
> 
> Amine
> 
> ___
> 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] check installed program using Lua

2021-11-01 Thread Taco Hoekwater via ntg-context


> On 1 Nov 2021, at 14:26, Pablo Rodriguez via ntg-context  
> wrote:
> 
> Dear list,
> 
> is there a way if a program is installed on the computer using Lua.
> 
> I have the following sample:
> 
>  \starttext
>  \startluacode
>  filename = tex.jobname .. ".pdf"
>  os.exec("dir " .. filename)
>  \stopluacode
>  \stoptext
> 
> Is there a way to wrap os.exec() in the sample so that it only runs if
> "dir" is available?

if os.which(‘dir’) then
  ...
end

But note that os.which() may be unreliable in various cases (like it will fail 
for shell/command interpreter builtins, in cron jobs, in special scripted 
environments, and may incorrectly succeed for disabled/forbidden commands), as 
it just runs through the PATH environment variable to check for executable file 
existence. 

Often times, it is better to just try to run the command to see if that 
produces satisfactory results.

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] Wiki's ConTeXt updated

2021-10-29 Thread Taco Hoekwater via ntg-context
Hi,

Since yesterday  wiki.contextgarden.net, live.contextgarden.net, and 
source.contextgarden.net all use

  ConTeXt 2021.10.28 10:19 LMTX

as the installed ConTeXt.

I have also tried to reset all the “” output images so that they will 
be automatically
regenerated with this new ConTeXt, but sometimes that reset does not work 
properly, and the wiki 
has to be ‘helped' manually. 

If you see a ‘broken image’ icon (or no output at all) from a “” 
demonstration block, do this:

* right click on the ‘Edit’ link of the page so it opens in a new tab,
* go to the new tab and press ’Show preview’,
* close the tab.

The ’Show preview' will force the wiki to refresh the cached images. ’Save 
changes’ is not needed.

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] The certificate of the mailman site has expired

2021-10-22 Thread Taco Hoekwater via ntg-context


> On 22 Oct 2021, at 02:21, Gerben Wierda via ntg-context  
> wrote:
> 
> Just to let you know: The certificate of the mailman site has expired

Which one exactly? 

Both https://lists.contextgarden.net/ and https://mailman.ntg.nl/ seem fine to 
me

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] Clickable url problem with \useurl and \url

2021-10-12 Thread Taco Hoekwater via ntg-context
Hi,

> On 12 Oct 2021, at 04:30, Rik Kabel via ntg-context  
> wrote:
> 
> Hello List,
> 
> I notice an inconsistency in the clickable area when using \useurl. With the 
> following example, both the \from and the \url are clickable in some lines 
> (as noted iin the value of \from) but in others, the \from is clickable but 
> not the \url.
> 
> It does seem sensitive to the urlL, but I cannot see a pattern.

It is the pdf viewer program that automatically interprets the \url-produced 
text and 'invents' a link, it is not
ConTeXt itself. The exact rules may therefore vary depending on the pdf viewer 
you use. 

In Apple's Preview, all items are in fact clickable. But only \from produces 
actual pdf hyperlink annotations.

> Should I use something other than \url[earlXX] here to get the clickable 
> literal url from useurl?

This, maybe

\goto{\url[earlLH]}[url(earlLH)]

(perhaps wrapped in a short macro)

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] TLS Certificate Expired for the Wiki

2021-10-12 Thread Taco Hoekwater via ntg-context


> On 12 Oct 2021, at 08:41, Ramkumar KB via ntg-context  
> wrote:
> 
> Hello,
> 
> The TLS certificate for the Context wiki expired yesterday - valid only upto 
> 12-October-2021.

I’ll fix that in a bit.

> 
> Just an alert as Chrome now pops up the "Unsafe" alerts.
> 
> Thank you,
> 
> best regards,
> Ramkumar 
> ___
> 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] MkIV missing?

2021-10-04 Thread Taco Hoekwater via ntg-context
Hi,

Here is what I assume has happened:

Hans gave LMTX its own "luametatex-cache” directory (around August 20). 
Previously, the cache for LMTX still used files under luatex-cache, just like 
MKIV. But since that change, the “context -—generate” call no longer updates 
files in luatex-cache, only in luametatex-cache. 


That is not a big problem unless something happens to clear any existing cache 
in that folder (like a re-install from scratch, say). 

Normally, one runs “context —-generate” to fix the cache and “context —-luatex” 
to run luatex Combined, that would be 
  “context —-generate —-luatex”. 
But the problem is that luatex cannot find “mtx-context.lua” exactly because of 
the missing cache that we are actually trying to create with that command line. 
Missing “mtx-context.lua” is usually fixed by running the more basic “mtxrun 
—generate”.

However, “mtxrun -—generate”  does not currently support a "-—luatex” argument, 
so the only way I know of right now to get the luatex-cache restored|updated is 
to run the command below.

(Incidentally, this sort of issue is why the core command is not “context 
-—generate” but “mtxrun -—generate”. It is unfortunate that that does not help 
in this case).

Best wishes,
Taco

> On 4 Oct 2021, at 15:33, Taco Hoekwater via ntg-context  
> wrote:
> 
> We are busy with this off-list.
> 
> If it is urgent: 
> 
> luatex --luaonly ~/lmtx/tex/texmf-osx-64/bin/mtxrun.lua --generate
> 
> fixed it for me (you’ll need to adjust the path, of course)
> 
> Best wishes,
> Taco
> 
>> On 4 Oct 2021, at 15:28, Marcus Vinicius Mesquita via ntg-context 
>>  wrote:
>> 
>> Same problem here, on a linux64, context current version: 2021.09.26 17:00
>> 
>> Greetings
>> 
>> Marcus Vinicius
>> 
>> On Mon, Oct 4, 2021 at 8:55 AM Henning Hraban Ramm via ntg-context 
>>  wrote:
>> 
>>> Am 04.10.2021 um 13:06 schrieb Hans Hagen :
>>> 
>>> On 10/4/2021 12:39 PM, Henning Hraban Ramm via ntg-context wrote:
>>>> Hi,
>>>> since a while, I can’t run MkIV any more, even after several runs of 
>>>> install.sh (and mtxrun --generate, of course).

— 
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] MkIV missing?

2021-10-04 Thread Taco Hoekwater via ntg-context
We are busy with this off-list.

If it is urgent: 

 luatex --luaonly ~/lmtx/tex/texmf-osx-64/bin/mtxrun.lua --generate

fixed it for me (you’ll need to adjust the path, of course)

Best wishes,
Taco

> On 4 Oct 2021, at 15:28, Marcus Vinicius Mesquita via ntg-context 
>  wrote:
> 
> Same problem here, on a linux64, context current version: 2021.09.26 17:00
> 
> Greetings
> 
> Marcus Vinicius
> 
> On Mon, Oct 4, 2021 at 8:55 AM Henning Hraban Ramm via ntg-context 
>  wrote:
> 
> > Am 04.10.2021 um 13:06 schrieb Hans Hagen :
> > 
> > On 10/4/2021 12:39 PM, Henning Hraban Ramm via ntg-context wrote:
> >> Hi,
> >> since a while, I can’t run MkIV any more, even after several runs of 
> >> install.sh (and mtxrun --generate, of course).
> >> It’s the same on my Mac and my Linux laptop (of course the bin dir is 
> >> different on the latter):
> >> $ context --version
> >> mtx-context | ConTeXt Process Management 1.04
> >> mtx-context |
> >> mtx-context | main context file: 
> >> /Users/hraban/lmtx/tex/texmf-context/tex/context/base/mkiv/context.mkiv
> >> mtx-context | current version: 2021.09.26 17:00
> >> mtx-context | main context file: 
> >> /Users/hraban/lmtx/tex/texmf-context/tex/context/base/mkxl/context.mkxl
> >> mtx-context | current version: 2021.09.26 17:00
> >> $ context --version --luatex
> >> mtx-context | redirect luametatex -> luatex: luatex --luaonly 
> >> "/Users/hraban/lmtx/tex/texmf-osx-64/bin/mtxrun.lua" --script mtx-context 
> >> --version --luatex --redirected
> >> mtxrun  | unknown script 'mtx-context.lua' or 'mtx-mtx-context.lua'
> >> $ which context
> >> /Users/hraban/lmtx/tex/texmf-osx-64/bin/context
> >> $ which luatex
> >> /Users/hraban/lmtx/tex/texmf-osx-64/bin/luatex
> >> $ luatex --version
> >> This is LuaTeX, Version 1.13.0 (TeX Live 2021)
> >> ...
> >> $ mtxrun --version
> >> mtxrun  | ConTeXt TDS Runner Tool 1.32
> >> mtxrun  | source path
> >> I thought that was related to the server/provider move, but I guess it 
> >> isn’t.
> >> It’s a bit annoying that install.sh leaves ~/lmtx/bin in the PATH, so that 
> >> a call to mtxrun can’t find any configuration.
> > works here ... maybe a --generate issue?
> 
> I re-ran the install script with a shell ("sh install.sh" instead just ". 
> install.sh"), but that doesn’t change the "unknown script" issue.
> 
> "mtxrun --generate" seems to work without problems; or do you see something 
> suspicious in the attached log?
> 
> Hraban
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___
> 
> 
> -- 
> Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o corpo 
> nem seus membros, por ser descanso da alma, primavera do coração, distração 
> do aflito, entretenimento do solitário, e viático do viajante.
> 
> Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik)
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 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] MkIV missing?

2021-10-04 Thread Taco Hoekwater via ntg-context


> On 4 Oct 2021, at 12:39, Henning Hraban Ramm via ntg-context 
>  wrote:
> 
> I thought that was related to the server/provider move, but I guess it isn’t.
> 
> It’s a bit annoying that install.sh leaves ~/lmtx/bin in the PATH, so that a 
> call to mtxrun can’t find any configuration.

That is why I always run “sh install.sh” instead of executing the script 
directly.

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] website

2021-09-29 Thread Taco Hoekwater via ntg-context
Hi,

There is also a mirror of the website at http://context.aanhet.net

Best wishes,
Taco

> On 28 Sep 2021, at 23:34, Hans Hagen via ntg-context  
> wrote:
> 
> Hi,
> 
> Due to domain transfer issues (provider quits services) there is the 
> possibility that the coming days the pragma-ade.com address fails.
> The pragma-ade.nl and other addresses are okay, If all works well the 
> installer handles fallbacks. Eventually the context garden will also have the 
> 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 / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Test for displaying a header

2021-08-26 Thread Taco Hoekwater via ntg-context

Hi,

> On 26 Aug 2021, at 16:07, Fabrice Couvreur via ntg-context 
>  wrote:
> 
> Hi, 
> I know I asked the question a few years ago, but I don't remember ! 
> The idea is to test whether the document contains only one page or not. 

Perhaps not the nicest solution, but this works:

\doifvalueelse
  {\lastpage}
  {1}
  {\message{true}}
  {\message{false}}

> If it contains only one page, the header is enabled. 
> If it contains several pages, the header is enabled only on the first page 
> but not on the others. 
> Thanks
> Fabrice
> ___
> 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] Indexing redux

2021-08-26 Thread Taco Hoekwater via ntg-context
Hi Rik,

> On 26 Aug 2021, at 03:14, Rik Kabel via ntg-context  
> wrote:
> 
> List,
> 
> I am trying to create an index with both "see" and "see also" cross-reference 
> entries.[1] At this point, ConTeXt provides basic support for "see" entries 
> via the \seeREGISTER command (it does not properly support references to 
> sub-entries) and it provides no support at all for "see also" entries.
> 
> Can somebody suggest a way to generate these entries? Perhaps a way of 
> inserting entries into the index before it is formatted, in the manner of 
> \writetolist or \writebetweenlist? (MkII has \writetoregister, but that did 
> not carry forward and I do not know if it would have helped here.)


Since strc-reg.mkiv starts with a number of ’todo’ comments, I think your best 
bet is to create an
actual functional example along with an explanation of what you want the 
typeset result to look 
like in the cases where it is not doing what you want.

Generally, explicit examples / test files are the best way to get replies to 
questions 
(either by Hans or anyone else).

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] Control of Titles appearing in \completelistoftables and \completelistoffigures

2021-08-25 Thread Taco Hoekwater via ntg-context
Hi,

There is \startplacefigure / \startplacetable , which has a ‘list’ key

 https://wiki.contextgarden.net/Command/_startplacefloat

Best wishes,
Taco

> On 25 Aug 2021, at 05:20, Richard Mahoney via ntg-context 
>  wrote:
> 
> List,
> 
> I've been wondering if there is some syntax that one can use in:
> 
> \placetable or \placefigure
> 
> to control the Table of Figure Title appearing in:
> 
> \completelistoftables and \completelistoffigures
> 
> 
> At the moment one can do this for the output of:
> 
> \completecontent
> 
> with something such as the following:
> 
> \startsection[title={Title in body},list={Title in contents}]
> 
> 
> Such a thing would be *extremely* useful for a current 
> publication. :)
> 
> 
> Best, Richard
> 
> 
> 
> -- 
> T +6433121699  M +64210640216  E rmaho...@indica-et-buddhica.org
> IM https://t.me/rmahoney  W https://indica-et-buddhica.org/
> 
> Indica et Buddhica  Littledene  Bay Road  Oxford  NZ
> ___
> 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






— 
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] lua

2021-08-17 Thread Taco Hoekwater via ntg-context
Hi Hans,

> On 17 Aug 2021, at 16:39, Hans van der Meer via ntg-context 
>  wrote:
> 
> I am still interested in this luacondition 733 allthough the culprit has been 
> spotted. Very nasty typo and hard to spot fo me. 

The “luacondition 733” is the \ifxmlatt . You get these numbers because the 
command is
defined using lua ‘interfaces.implement’ (lxml-ini.lua) instead of directly as 
a TeX conditional.

And yes indeed, the new lua-defined commands are hard to derive from the log 
information
(for the other Hans: is this reporting not controlled via ‘public=true’ ? ).

Best wishes,
Taco

> Shudder and enjoy:
> 
> \ifxmlatt{#1}{regime}{xml}\let\Flush\ModuleFlushXML\else\let\FlushModuleFlushTEX\fi
> instead of
> \ifxmlatt{#1}{regime}{xml}\let\Flush\ModuleFlushXML\else\let\FlushModule\FlushTEX\fi
> 
> dr. Hans van der Meer
> 
> 
>> On 17 Aug 2021, at 15:49, Hans van der Meer via ntg-context 
>>  wrote:
>> 
>> Where is this message on luacondition 733 coming from? I would be glad to 
>> get rid of it. The message does not pinpoint the problem location enough for 
>> me to find its cause.
>> 
>> close source> level 2, order 7, name './modules-docs.tex'
>> close source> level 1, order 7, name 'cont-yes.mkiv'
>> (\end occurred when luacondition 733 on line 8 was incomplete)
>> 
>> 
>> dr. Hans van der Meer
>> 
>> 
>> ___
>> If your question is of interest to others as well, please add an entry to 
>> the Wiki!
>> 
>> maillist : ntg-context@ntg.nl / 
>> 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
> ___

— 
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] 15th International ConTeXt Meeting (registration closes Aug 22)

2021-08-13 Thread Taco Hoekwater via ntg-context
Hi all,

There is still room for some extra participants for the ConTeXt meeting in 
Bassenge, 
Belgium from Sept 20 to Sept 25. Despite the still somewhat lingering situation 
wrt
COVID-19, we are now certain that the meeting can and will in fact take place in
person. Hurrah!

Even if we still have room by then, registration will close on Aug 22, because 
by 
that time we need to make final arrangements for T-shirt printing and catering. 
So if you are still on the fence about attending, do not wait too long!


Also remember that it is possible for ConTeXt Group members to attend 
online-only
for free. That is less than ideal because you cannot join us for a drink and a 
chat,
but it gives you bragging rights for attending, and you will get a T-shirt as 
well !
(if you register before Aug 22)

You can easily become a member of CG by filling in the form at

  https://group.contextgarden.net/register.shtml

Besides being able to register for the online portion of the upcoming meeting,
you will also receive the nicely printed ConTeXt journal, and additionally you
will help the ConTeXt Group to do more for the community in the future. 

Even if you are not going to attend the online meeting, we think becoming a 
CG member is a great idea! More that fifty people have joined already!

To see more details about the upcoming meeting, see the website at

  https://meeting.contextgarden.net/


In other news, there is now a provisional programme page:

  https://meeting.contextgarden.net/2021/programme.shtml


I can't wait to see (some of) you in person in Bassenge!

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] nil from TeX to Lua

2021-08-10 Thread Taco Hoekwater via ntg-context


> On 9 Aug 2021, at 22:05, Aditya Mahajan via ntg-context  
> wrote:
> 
> On Mon, 9 Aug 2021, Hans van der Meer via ntg-context wrote:
> 
>> In the TeX to Lua interface with
>> 
>> \def\Macro#1{\directlua{luafunction("#1")}}
>> 
>> the transfer from TeX to Lua is by string. However what to do at the Lua end 
>> when calling \Macro{}?
>> As I understand it, then on the Lua side an empty argument and an empty 
>> string are indistinguishable. 
> 

On the TeX side, these are always indistinguishable (as TeX doesn’t have 
’strings’) so depending
on the called macro, you could just assume str == "” actually means nil?

But a clearer example of where you run into trouble would be helpful.

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] Strange new behaviour of the mailing list

2021-08-02 Thread Taco Hoekwater via ntg-context
Hi,

> On 31 Jul 2021, at 15:56, Henning Hraban Ramm via ntg-context 
>  wrote:
> 
> 
> Ah, I didn’t recognize you mean this.
> 
> Since the mail goes through the mailing list software, the sender must not be 
> the original sender any more – ntg.nl is not allowed to send emails for a 
> different domain. Many securely configured mail servers reject “faked” sender 
> addresses, as they should. Look up DANE etc.


Which is exactly why that setting was changed. So yes, the change is on purpose.

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
___