Hello Pablo, sometimes I do something hacky like the following in similar situations (not tested now): ---- .bat call lua.exe -e "os.execute('echo context --purgeall --arguments=PDFdocument=' .. ([[%1]]):gsub([[\]], '/') .. ' b.tex')" ---- Best regards, Lukas On 2020-10-06 16:18, Pablo Rodriguez wrote:
Dear list,
I have a minimal sample file:
\starttext \insertpages[\env{PDFdocument}] \stoptext
I invoke it in Windows, using the following batch file:
@echo off REM ~ context --purgeall --arguments="PDFdocument=%1" b.tex
I’m afraid it only works if the batch file and the PDF document are on the same directory.
I guess this is related to "\" in Windows paths. Is there a way to make it work with the sample above?
Many thanks for your help,
Pablo -- http://www.ousia.tk ___________________________________________________________________________________ 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 ___________________________________________________________________________________