[NTG-context] playing with Windows drag & drop

context at vivaldi.net context at vivaldi.net
Wed Oct 7 16:45:40 CEST 2020


Hello Pablo,

slight correction:

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

"echo" should be omitted, of course, or be placed just for debugging 
purposes.

Best regards,

Lukas


On 2020-10-07 16:23, context at vivaldi.net wrote:
> 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 at 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
>> ___________________________________________________________________________________


More information about the ntg-context mailing list