ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: luigi scarso <luigi.scarso@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: how to set the name of outputfile using a value defined in the source
Date: Fri, 21 Sep 2018 12:48:53 +0200	[thread overview]
Message-ID: <CAG5iGsAR2kpRz0kgUsFeNJ1WvJeYykO6qmBzwT+PDwnodD9i-Q@mail.gmail.com> (raw)
In-Reply-To: <86260dc6-306f-2d95-7c9d-27e191ee3eea@xs4all.nl>


[-- Attachment #1.1: Type: text/plain, Size: 2124 bytes --]

On Fri, Sep 21, 2018 at 12:44 PM Hans Hagen <j.hagen@xs4all.nl> wrote:

> On 9/21/2018 12:05 PM, luigi scarso wrote:
> >
> >
> > On Fri, Sep 21, 2018 at 11:06 AM Taco Hoekwater <taco@elvenkind.com
> > <mailto:taco@elvenkind.com>> wrote:
> >
> >     Hi,
> >
> >      > On 21 Sep 2018, at 10:59, luigi scarso <luigi.scarso@gmail.com
> >     <mailto:luigi.scarso@gmail.com>> wrote:
> >      >
> >      >
> >      > % start demo
> >      > \enabledirectives[system.callbacks.permitoverloads]
> >      > % previous line allows redefinition of ‘wrapup_run’
> >      > iirc ,
> >      > this should be avoided ….
> >
> >     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-<idcode>.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.
> that callback is really the last ... files have been closed then
>
sure , but after it there are 2 free_<something> and free the Lua state,
--- and closing a file can be delayed by the OS. Anyway, this case looks
ok.

-- 
luigi

[-- Attachment #1.2: Type: text/html, Size: 3108 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
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:[~2018-09-21 10:48 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-21  8:09 J Huisman
2018-09-21  8:30 ` Henri Menke
2018-09-21  8:44   ` Taco Hoekwater
2018-09-21  8:48     ` J Huisman
2018-09-21  9:00       ` Taco Hoekwater
2018-09-21  8:59     ` luigi scarso
2018-09-21  9:06       ` Taco Hoekwater
2018-09-21 10:05         ` luigi scarso
2018-09-21 10:44           ` Hans Hagen
2018-09-21 10:48             ` luigi scarso [this message]
2018-09-21 10:25     ` Hans Hagen
2018-09-21 12:43   ` Procházka Lukáš Ing.

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=CAG5iGsAR2kpRz0kgUsFeNJ1WvJeYykO6qmBzwT+PDwnodD9i-Q@mail.gmail.com \
    --to=luigi.scarso@gmail.com \
    --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).