Hello Pablo,

On 2020-10-07 19:10, Pablo Rodriguez wrote:
On 10/7/20 4:45 PM, [email protected] wrote:
Hello Pablo,

slight correction:

---- .bat
call lua.exe -e "os.execute('echo context --purgeall
--arguments=PDFdocument=' .. ([[%1]]):gsub([[\]], '/') .. ' b.tex')"
----

Many thanks for your reply, Lukas.

I found another workaround at the ConTeXt file (b.tex).

  \cldcontext{string.gsub([[\env{PDFdocument}]], "\\\\", "/")}

I don’t know why I needed to add "\\\\" instead of "\\". (otherwise, I

I guess that's as Ctx translates "\\" into "\", and you need to have "\\" in Lua code.

You could alse write (not tested):

  \cldcontext{string.gsub([[\env{PDFdocument}]], [[\\]], "/")}

Best,

Lukas

kept getting "C://Users//username//Desktop//document.pdf" and similar ones).

Many thanks for your help,

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

maillist : [email protected] / 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
___________________________________________________________________________________

Reply via email to