From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/48803 Path: news.gmane.org!not-for-mail From: luigi scarso Newsgroups: gmane.comp.tex.context Subject: Re: The very last macro Date: Thu, 26 Mar 2009 15:14:18 +0100 Message-ID: References: <49CB4342.3050609@wxs.nl> <49CB504F.7080706@wxs.nl> <49CB5DE3.3060408@wxs.nl> <49CB89F4.1010005@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1470825419==" X-Trace: ger.gmane.org 1238076923 13595 80.91.229.12 (26 Mar 2009 14:15:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 26 Mar 2009 14:15:23 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Mar 26 15:16:41 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1LmqNn-0006JQ-9R for gctc-ntg-context-518@m.gmane.org; Thu, 26 Mar 2009 15:16:35 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1E3511FC0D; Thu, 26 Mar 2009 15:15:10 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 03183-02; Thu, 26 Mar 2009 15:14:31 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C7EC41FBAA; Thu, 26 Mar 2009 15:14:31 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B0D091FBAA for ; Thu, 26 Mar 2009 15:14:30 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 15722-06-5 for ; Thu, 26 Mar 2009 15:14:21 +0100 (CET) Original-Received: from filter3-nij.mf.surf.net (filter3-nij.mf.surf.net [195.169.124.154]) by ronja.ntg.nl (Postfix) with ESMTP id 209FF1FB98 for ; Thu, 26 Mar 2009 15:14:21 +0100 (CET) Original-Received: from mail-bw0-f178.google.com (mail-bw0-f178.google.com [209.85.218.178]) by filter3-nij.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n2QEEIlv000663 for ; Thu, 26 Mar 2009 15:14:18 +0100 Original-Received: by bwz26 with SMTP id 26so605008bwz.2 for ; Thu, 26 Mar 2009 07:14:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=w953/34KWBOPQ3j+mN9A0qTcRi/QRl2zmguJ6WsA5Eo=; b=qQ/H2Ib0+WklXfK9BLi3O/Pe+BvYoPNLl4j5zr39EsmnmKuuPsQeO9gLy1tOloc5cV chil1d0Ygvd3ZYroWbf+Oi/Vu2oVOPnGisehDYfnvss/YmrnnLqecnWYi2GiPSyZg6ef QJsGWx4XxfJOwazJGrOjsMkpP4mGg6LI5/qdg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=ovlj5WKs8Se+yMV/rwpm6oOlf0PA3S2NjqcXkcSr2ozzOH2XeOyrGxBS/JPnAI3r6Y KzQ7yBHQUXWw8+85hsYGup7Hp0A56m1jXqxTORCv64IFNwqLC0RBlFIwKBkjurEMQFj+ xuMGAwfoZ3zhEl/5KykgrUsfaDQVdU5TmE9RI= Original-Received: by 10.204.62.82 with SMTP id w18mr299276bkh.129.1238076858150; Thu, 26 Mar 2009 07:14:18 -0700 (PDT) In-Reply-To: <49CB89F4.1010005@wxs.nl> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.218.178; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 199580940 - b547f1807581 - 20090326 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.154 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:48803 Archived-At: --===============1470825419== Content-Type: multipart/alternative; boundary=001636c5b13a55af750466063b65 --001636c5b13a55af750466063b65 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit > why, what do you want to achieve; there are already such hooks The original request was sorry for the noise : is there in mkiv a very last macro ? I mean something like \IamCallAtTheReallyEnd{..} which does absolutly nothing to the pdf , and after which mkiv ends without calls any other macro Peter suggest to use \everylastshipout; but this \def\LuigisWhateverShouldHappen{\immediate\write16{BOOOM!}Something Luigi want to do for some unknown reason.\immediate\write16{BOOOM!}} \appendtoks\LuigisWhateverShouldHappen \to \everylastshipout \starttext hello \stoptext write Something Luigi want to do for some unknown reason. near the bottom of pdf (and I don't want it) and BOOM! on log (which is a way to say that this macro was called) Aditya suggests to put nothing to print in \LuigisWhateverShouldHappen and I said that it's no a robust solution . BTW, for a specific document, this is actually a solution -- just need a bit of test -- I'm almost sure that there is no solutions much differents from this one. >>From luatex.web , around line 22423 : @ We don't want to leave |main_control| immediately when a |stop| command is sensed, because it may be necessary to invoke an \.{\\output} routine several times before things really grind to a halt. (The output routine might even say `\.{\\gdef\\end\{...\}}', to prolong the life of the job.) Therefore |its_all_over| is |true| only when the current page and contribution list are empty, and when the last output was not a ``dead cycle.'' -- luigi --001636c5b13a55af750466063b65 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable > why, what do you want to achieve; there are already such hooks
The = original request was
sorry for the noi= se :
is there in mkiv a very last macro ?
I mean something like
\IamCallAtTheReallyEnd{..}
which does absolutly nothing to the pdf , and =C2=A0after =C2=A0which mkiv = ends
without calls any other macro

Peter suggest to use \everylasts= hipout;
but this

\def\LuigisWhateverShouldHappen{\immediate\write= 16{BOOOM!}Something
Luigi want to do for some unknown reason.\immediate\= write16{BOOOM!}}

\appendtoks\LuigisWhateverShouldHappen \to \everylastshipout
\startt= ext
hello
\stoptext

write
Something Luigi want to do for s= ome unknown reason.

near the bottom of pdf (and I don't want it)=
and BOOM! on log (which is a way to say that this macro was called)

=
Aditya suggests to put nothing to print in
\LuigisWhateverShouldHapp= en
and I said that it's no a robust solution .


BTW, for a= specific document, this is actually a solution -- just need a bit of test = --

I'm almost sure that there is no solutions much differents from thi= s one.
From luatex.web , around line 22423 :

@ We don't want = to leave |main_control| immediately when a |stop| command
is sensed, bec= ause it may be necessary to invoke an \.{\\output} routine
several times before things really grind to a halt. (The output routine
= might even say `\.{\\gdef\\end\{...\}}', to prolong the life of the job= .)
Therefore |its_all_over| is |true| only when the current page
and contribution list are empty, and when the last output was not a
``de= ad cycle.''


--
luigi


--001636c5b13a55af750466063b65-- --===============1470825419== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============1470825419==--