From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/4073 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: early endinput Date: Wed, 14 Feb 2001 16:24:29 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <3.0.6.32.20010214162429.014af350@server-1> References: <200102141411.PAA23877@anxur.fi.muni.cz> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: main.gmane.org 1035394764 22610 80.91.224.250 (23 Oct 2002 17:39:24 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 17:39:24 +0000 (UTC) Cc: ntg-context@ntg.nl Original-To: Han The Thanh In-Reply-To: <200102141411.PAA23877@anxur.fi.muni.cz> Xref: main.gmane.org gmane.comp.tex.context:4073 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:4073 At 03:11 PM 2/14/01 +0100, you wrote: >Hi all, > >I have a long document, which includes several files, each corrseponds to a >part of the document. I wish to produce only a few first pages of each, but >don't want to touch them at all. Is there an easy way to do it in context? \appendtoks \CheckThanhsPages \to \everypar \def\CheckThanhsPages% {\doglobal\increment\ThanhsCounter \ifnum\ThanhsCounter=10 \page \endinput \fi} \def\LoadThanhsFile#1% {\doglobal\newcounter\ThanhsCounter \readfile{#1}{}{}} \LoadThanhsFile {xx.tex} \LoadThanhsFile {yy.tex} cross your fingers that grouping works ok, so an alternative may be: \setuphead[chapter][after=\CheckThansPages] instead of the par. Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com -------------------------------------------------------------------------