ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: context@vivaldi.net
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: playing with Windows drag & drop
Date: Thu, 08 Oct 2020 09:56:45 +0200	[thread overview]
Message-ID: <50fedc18fc1bfbb9678002b34e9a716a@vivaldi.net> (raw)
In-Reply-To: <dee6419a-8bdd-cf7b-323c-dcb9f6c71e1b@gmx.es>

Hello Pablo,

On 2020-10-07 19:10, Pablo Rodriguez wrote:
> On 10/7/20 4:45 PM, context@vivaldi.net 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 : 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
___________________________________________________________________________________

      reply	other threads:[~2020-10-08  7:56 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-06 14:18 Pablo Rodriguez
2020-10-06 15:57 ` Henning Hraban Ramm
2020-10-06 19:26   ` Pablo Rodriguez
2020-10-07 14:23 ` context
2020-10-07 14:45   ` context
2020-10-07 17:10     ` Pablo Rodriguez
2020-10-08  7:56       ` context [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=50fedc18fc1bfbb9678002b34e9a716a@vivaldi.net \
    --to=context@vivaldi.net \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).