Re: [NTG-context] slashes in paths (Lua code)

2017-06-01 Thread Pablo Rodriguez
On 06/01/2017 05:47 AM, Akira Kakuto wrote: >> Directories are a problem here. I mean, >> \shatwo{Desktop/i-context.pdf} >> cannot work in Windows. > > Here both of your example and an example by Hans > worked fine on Windows. > Note that > \shatwo{Desktop/i-context.pdf} > works only if the

Re: [NTG-context] slashes in paths (Lua code)

2017-06-01 Thread Pablo Rodriguez
On 05/31/2017 10:00 PM, Hans Hagen wrote: > On 5/31/2017 8:51 PM, Pablo Rodriguez wrote: >> Dear list, >> >> I need to add checksums to files I attach to PDF documents. >> [...] >> Directories are a problem here. I mean, \shatwo{Desktop/i-context.pdf} >> cannot work in Windows. >> >> Which would

[NTG-context] slashes in paths (Lua code)

2017-05-31 Thread Akira Kakuto
Directories are a problem here. I mean, \shatwo{Desktop/i-context.pdf} cannot work in Windows. Here both of your example and an example by Hans worked fine on Windows. Note that \shatwo{Desktop/i-context.pdf} works only if the current directory is your %USERPROFILE%. Best, Akira

Re: [NTG-context] slashes in paths (Lua code)

2017-05-31 Thread Hans Hagen
On 5/31/2017 8:51 PM, Pablo Rodriguez wrote: Dear list, I need to add checksums to files I attach to PDF documents. Following the suggestion from https://stackoverflow.com/a/326715, I wrote: \starttext \startluacode function document.capture(cmd, raw) local f =

[NTG-context] slashes in paths (Lua code)

2017-05-31 Thread Pablo Rodriguez
Dear list, I need to add checksums to files I attach to PDF documents. Following the suggestion from https://stackoverflow.com/a/326715, I wrote: \starttext \startluacode function document.capture(cmd, raw) local f = assert(io.popen(cmd, 'r')) local s =