From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/74937 Path: news.gmane.org!not-for-mail From: luigi scarso Newsgroups: gmane.comp.tex.context Subject: Re: Hooking \stoptext Date: Wed, 7 Mar 2012 16:14:44 +0100 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1953388910==" X-Trace: dough.gmane.org 1331133318 21726 80.91.229.3 (7 Mar 2012 15:15:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 7 Mar 2012 15:15:18 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Mar 07 16:15:15 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1S5Ia5-0005tp-Od for gctc-ntg-context-518@m.gmane.org; Wed, 07 Mar 2012 16:15:09 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 85EECCB260; Wed, 7 Mar 2012 16:15:08 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id P007HkWc1r-x; Wed, 7 Mar 2012 16:15:02 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E6C36CB251; Wed, 7 Mar 2012 16:15:01 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 980D0CB251 for ; Wed, 7 Mar 2012 16:15:00 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ZdwszUDggHMg for ; Wed, 7 Mar 2012 16:14:46 +0100 (CET) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id CD38ECAB03 for ; Wed, 7 Mar 2012 16:14:46 +0100 (CET) Original-Received: from mail-gx0-f169.google.com (mail-gx0-f169.google.com [209.85.161.169]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id q27FEjD4023875 for ; Wed, 7 Mar 2012 16:14:46 +0100 Original-Received: by ggeq1 with SMTP id q1so3002378gge.14 for ; Wed, 07 Mar 2012 07:14:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=YH1boDxQcRIKxX4+n+dpTOkZl4ZVXkz47+51gbV60pk=; b=uKxGQ9e7ojICvmzqpm735utnBzbIpjdANoXayTEEzonCSvlpBdJgGo9P07rOHaoQ8h 57VDWv/x4GA9uzFTliVh6pS+8vpQKxcNwLk9K3HM/kNDghh1u6kxCEeaxBauk3EsflNM KfoPNg/e3JwpFJD8SMltejtB129vMbGXCvBaP4HbXjpog28tCYOBOSOLLFWPGRWmRpoz X4hzW68HFH1wuXitUBUctY2d58R0Vxq8vuZrkwWO3ZebD6UvxZ1Ss9fKpATnreB7NsFj iv84K7aQXwOb8rTOA8bYMe69c0pZ/g1h8CuvFIYgC6lXIs8FYnxiJmlO6/Eu2mDOkXPH QZdg== Original-Received: by 10.50.89.201 with SMTP id bq9mr2012999igb.55.1331133284646; Wed, 07 Mar 2012 07:14:44 -0800 (PST) Original-Received: by 10.50.216.137 with HTTP; Wed, 7 Mar 2012 07:14:44 -0800 (PST) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.161.169; 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: 0HGGDeJ4B - 9cf88b9a3010 - 20120307 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:74937 Archived-At: --===============1953388910== Content-Type: multipart/alternative; boundary=e89a8f3ba2d19480a004baa89e57 --e89a8f3ba2d19480a004baa89e57 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Wed, Mar 7, 2012 at 3:39 PM, luigi scarso wrote= : > > > 2012/3/7 Proch=C3=A1zka Luk=C3=A1=C5=A1 Ing. - Pontex s. r. o. > > Hello, >> >> I'd need to to hook \stoptext by Lua - I'd need to write something right >> before the end of the text. >> > > At least > \let\Oldstoptext\stoptext > \def\stoptext{% > \startluacode > context("END") > \stopluacode > \Oldstoptext} > > > > \starttext > \input knuth > \stoptext % To be hooked by Lua > > > But there are several \every* tokens list for this. > -- > luigi > > \appendtoks% \startluacode context("END") \stopluacode \to\everylastshipout \starttext \showframe \input knuth \page \input tufte \stoptext % To be hooked by Lua It's hooked by Lua too, but is it what you want ? --=20 luigi --e89a8f3ba2d19480a004baa89e57 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

On Wed, Mar 7, 2012 at 3:39 PM, luigi sc= arso <luigi.= scarso@gmail.com> wrote:


2012/3/7 Proch=C3=A1zka Luk=C3=A1=C5=A1 = Ing. - Pontex s. r. o. <LPr@pontex.cz>

Hello,

I'd need to to hook \stoptext by Lua - I'd need to write something = right before the end of the text.

At least<= br clear=3D"all">\let\Oldstoptext\stoptext
\def\stoptext{%
\startluac= ode
context("END")
\stopluacode
\Oldstoptext}
=


\starttext
=C2=A0\input knuth
\stoptext % To be hooked by= Lua


But there are several \every* tokens list for this.
--
luigi


\appendtoks%
\startluacode
cont= ext("END")
\stopluacode
\to\everylastshipout
\starttext<= br>\showframe
=C2=A0\input knuth
=C2=A0\page
=C2=A0\input tufte\stoptext % To be hooked by Lua

It's hooked by Lua too, but is it what you want ?
=
--
luigi

--e89a8f3ba2d19480a004baa89e57-- --===============1953388910== 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============1953388910==--