[NTG-context] Re: output filename with SHA256

2024-02-23 Thread Bruce Horrocks
> On 23 Feb 2024, at 13:32, Pablo Rodriguez via ntg-context > wrote: > > Dear list, > > I have the following sample file: > > \starttext > whatever > > \startluacode > luatex.wrapup( > function() >local t = {} >local pdf_file_name = tex.jobname..".pdf" >local sha_pdf =

[NTG-context] Re: output filename with SHA256

2024-02-23 Thread mf
Il 23/02/24 14:32, Pablo Rodriguez via ntg-context ha scritto: Dear list, I have the following sample file: \starttext whatever \startluacode luatex.wrapup( function() local t = {} local pdf_file_name = tex.jobname..".pdf" local sha_pdf =

[NTG-context] output filename with SHA256

2024-02-23 Thread Pablo Rodriguez via ntg-context
Dear list, I have the following sample file: \starttext whatever \startluacode luatex.wrapup( function() local t = {} local pdf_file_name = tex.jobname..".pdf" local sha_pdf = utilities.sha2.hash256(io.loaddata(pdf_file_name)) local c_r = environment.currentrun t[c_r] =

[NTG-context] imposition: getting to the last page of a booklet

2024-02-23 Thread Michael Guravage
Greetings, I would like to use the nextquadruple and beforequadruple pagebreakhandlers described at the bottom of the wiki's imposition page. However, the examples complain of an error invoking the \installpagebreakhandler command. The wiki page was last updated nearly four years ago. Is anyone