From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/101973 Path: news.gmane.org!.POSTED!not-for-mail From: luigi scarso Newsgroups: gmane.comp.tex.context Subject: Re: how to set the name of outputfile using a value defined in the source Date: Fri, 21 Sep 2018 12:05:17 +0200 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1950805862312796831==" X-Trace: blaine.gmane.org 1537524280 3915 195.159.176.226 (21 Sep 2018 10:04:40 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 21 Sep 2018 10:04:40 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Sep 21 12:04:36 2018 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g3IIe-0000w3-Lm for gctc-ntg-context-518@m.gmane.org; Fri, 21 Sep 2018 12:04:36 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id CAAC76C179; Fri, 21 Sep 2018 12:05:53 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KoxjhwxFa6Yd; Fri, 21 Sep 2018 12:05:48 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 7BF616C16C; Fri, 21 Sep 2018 12:05:48 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id EA87F6C16C for ; Fri, 21 Sep 2018 12:05:46 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FW216BTyj0so for ; Fri, 21 Sep 2018 12:05:41 +0200 (CEST) Original-Received: from mail-ua1-f54.google.com (mail-ua1-f54.google.com [209.85.222.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 6B9C16C16B for ; Fri, 21 Sep 2018 12:05:31 +0200 (CEST) Original-Received: by mail-ua1-f54.google.com with SMTP id c12-v6so5636636uan.3 for ; Fri, 21 Sep 2018 03:05:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=4GVeyS6oY4ynXgF4ehtlhrlLlBkWCr12IfLpQ04bmb8=; b=dM2OJosUNqDdpWRwPlJ/gtOTYtW0MEUcOXl7GPl9TDEBsxo/R1I3xgE/0PyGXcdEKg 8AQGvOa2e5NDpDpb8wEaO0hZ4IeXVFpTptjPV3myBOuEMYg1YDGeX9PTupRljzva/LSu Ump5EzSqkpDeHsx3FqmgtYsQuXASl9S3OajMW0G4S/ikVEidZGX2t+2orKhQyJgyIYfu Nm3HAQNbDHwVoYy3C+9yF2JbUZMBO03qt2XrfCD9jV20bUqCcdDiMAF+g9hKrKV45uog kCJMW7vyVkD2zqbMR1xbc9wgPOuj/kMt14spFhCtVqnW6MNd6FoyrdJH5JAty+8fRR0/ tlDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=4GVeyS6oY4ynXgF4ehtlhrlLlBkWCr12IfLpQ04bmb8=; b=lb3f38+mKVL0iuXxR8NBaSEvC8FSoWc6aykMfzLDj442MvsOCQM/7hFx/PheVZASXZ 9+drwclzbMpqJHIBlQzF4RRrhDIMCKKPyM+NXn8OYW2lvr2paUPcI4w1oZtdKjTSSoIe dwu6O99soXxe631oWUumcJLTCpFmUDtHkrTIiQn4QINT1eML+2XHCIUMzFJ7QQrB7j+0 8gzA/iiwDqBoGSMfwmQOGLsfW6ucKruygchGhDEAOkT4AX9eVmbBVUjUg9ISs5bc72ci PX2zC2iqeiu2cb3echv5Tix6Upfr81iuIyoDp2Ua09IcLjp52E1V7KaCowW1D3O3Nblb Me3w== X-Gm-Message-State: APzg51DtorJDNvkpufZPbKDUWPLN92zGICDPFSbxxowibARoqYwengqW 3VjokAZkxZxcots23BgdDRw48+92kpR6FlFCw7Om/aWm X-Google-Smtp-Source: ANB0Vda7ZqkDdXPDPqebBLu+RDJno8K4ewtp0hp+3WcFwzLu55t1zYRpcnUIe6djCvsyCG6MXqUf1zeYU3UGQBj0FtU= X-Received: by 2002:ab0:7055:: with SMTP id v21-v6mr13104123ual.44.1537524328521; Fri, 21 Sep 2018 03:05:28 -0700 (PDT) In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:101973 Archived-At: --===============1950805862312796831== Content-Type: multipart/alternative; boundary="0000000000006f64b605765ec74e" --0000000000006f64b605765ec74e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Sep 21, 2018 at 11:06 AM Taco Hoekwater wrote: > Hi, > > > On 21 Sep 2018, at 10:59, luigi scarso wrote: > > > > > > % start demo > > \enabledirectives[system.callbacks.permitoverloads] > > % previous line allows redefinition of =E2=80=98wrapup_run=E2=80=99 > > iirc , > > this should be avoided =E2=80=A6. > > Sure, but I find wrapup_run extremely useful, and I know of no other way > to use it. > sure but the idea of modifying the context state (broadly speaking) before that context says that the state is consistent (ie the run is finished, in this case) is , how to say.. hm hm. Maybe signalling with an asyn msg that has nothing todo with the context state (just to say "Hey, context here: I am finishing the run" to somebofy else) , but usually one wants also to check the starts and the end of the run as process, ie just before the run starts and just after the run ended. This case seems safe but I have already dubious on \ $ lua -e ' os.execute("ls \c*") ' lua: (command line):1: invalid escape sequence near '\c' while $ lua -e ' os.execute([[ls \c*]])' is ok Also, I run context foo.tex and at the end of the runs I found foo.pdf (expected) and doc-.pdf ("hm .. where does it come from ? I dont remember ...I have to look into the source" ) so two times the space --- and the copy is done at each run, iirc. But it's just to complete the picture: once one knows the limits, it's a useful callback. --=20 luigi --0000000000006f64b605765ec74e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Fri, Sep 21, 2018 at 11:06 AM Taco Hoekwater= <taco@elvenkind.com> wrote= :
Hi,

> On 21 Sep 2018, at 10:59, luigi scarso <luigi.scarso@gmail.com> wrote:
>
>
> % start demo
> \enabledirectives[system.callbacks.permitoverloads]
> % previous line allows redefinition of =E2=80=98wrapup_run=E2=80=99 > iirc ,
> this should be avoided =E2=80=A6.

Sure, but I find wrapup_run extremely useful, and I know of no other way to= use it.

sure but the idea of modifying= the context state (broadly speaking) before that context says that the sta= te is consistent=C2=A0
(ie the run is=C2=A0 finished, in this cas= e) is , how to say.. hm hm.=C2=A0
Maybe signalling with an asyn m= sg that has nothing todo with the context state (just to say "Hey, con= text here: I am finishing the run" to somebofy else) ,
but u= sually one wants=C2=A0 also to check the starts and the end of the run as p= rocess, ie just before the run starts and just after the run ended.
This case seems safe but I have already dubious on \
$ lua -e ' os.execute("ls \c*") '
lua: (comma= nd line):1: invalid escape sequence near '\c'
while= =C2=A0
$ lua -e ' os.execute([[ls \c*]])'
is ok
Also,=C2=A0 I run context foo.tex and at the end=C2=A0 of the runs = I found foo.pdf (expected) and doc-<idcode>.pdf ("hm .. where do= es it come from ? I dont remember ...I have to look into the source" )=
so two times the space --- and the copy is done at each run, iirc.


But it's just to complete the pict= ure:=C2=A0 once one=C2=A0 knows the limits, it's a useful callback.


--
luigi
--0000000000006f64b605765ec74e-- --===============1950805862312796831== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============1950805862312796831==--