ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* on luatex.wrapup
@ 2021-11-07 22:18 Pablo Rodriguez via ntg-context
  2021-11-08  7:28 ` Hans Hagen via ntg-context
  0 siblings, 1 reply; 3+ messages in thread
From: Pablo Rodriguez via ntg-context @ 2021-11-07 22:18 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Pablo Rodriguez

Hi Hans,

I would like to use luatex.wrapup to remove media files that I don’t
need anymore once the PDF document is generated.

I have realized that luatex.wrapup works at the very end of the PDF
generation, but in each run.

Is there no way to have a luatex.final_wrapup, when no other run will
take place?

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: on luatex.wrapup
  2021-11-07 22:18 on luatex.wrapup Pablo Rodriguez via ntg-context
@ 2021-11-08  7:28 ` Hans Hagen via ntg-context
  2021-11-08 20:13   ` Pablo Rodriguez via ntg-context
  0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen via ntg-context @ 2021-11-08  7:28 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Hans Hagen, Pablo Rodriguez

On 11/7/2021 11:18 PM, Pablo Rodriguez via ntg-context wrote:
> Hi Hans,
> 
> I would like to use luatex.wrapup to remove media files that I don’t
> need anymore once the PDF document is generated.
> 
> I have realized that luatex.wrapup works at the very end of the PDF
> generation, but in each run.
> 
> Is there no way to have a luatex.final_wrapup, when no other run will
> take place?

a run doesn't know it's the last one, only the context runner knows and 
then it doesn't call tex (which is why --purge and --result work)

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: on luatex.wrapup
  2021-11-08  7:28 ` Hans Hagen via ntg-context
@ 2021-11-08 20:13   ` Pablo Rodriguez via ntg-context
  0 siblings, 0 replies; 3+ messages in thread
From: Pablo Rodriguez via ntg-context @ 2021-11-08 20:13 UTC (permalink / raw)
  To: Hans Hagen via ntg-context; +Cc: Pablo Rodriguez

On 11/8/21 8:28 AM, Hans Hagen via ntg-context wrote:
> On 11/7/2021 11:18 PM, Pablo Rodriguez via ntg-context wrote:
>> [...]
>> Is there no way to have a luatex.final_wrapup, when no other run will
>> take place?
>
> a run doesn't know it's the last one, only the context runner knows and
> then it doesn't call tex (which is why --purge and --result work)

Many thanks for your reply, Hans.

I realize that what I wanted to achieve it is impossible inside ConTeXt.

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-11-08 20:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-07 22:18 on luatex.wrapup Pablo Rodriguez via ntg-context
2021-11-08  7:28 ` Hans Hagen via ntg-context
2021-11-08 20:13   ` Pablo Rodriguez via ntg-context

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).