From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/17664 Path: main.gmane.org!not-for-mail From: Giuseppe Bilotta Newsgroups: gmane.comp.tex.context Subject: Extra inserpages options and Out of hash space Date: Tue, 28 Dec 2004 01:19:52 +0100 Message-ID: <848248318.20041228011952@iol.it> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1104193306 4048 80.91.229.6 (28 Dec 2004 00:21:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 28 Dec 2004 00:21:46 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Dec 28 01:21:40 2004 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Cj57M-0001Ua-00 for ; Tue, 28 Dec 2004 01:21:40 +0100 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0B8081276B; Tue, 28 Dec 2004 01:21:40 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 14771-06; Tue, 28 Dec 2004 01:21:36 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0F5D412798; Tue, 28 Dec 2004 01:21:36 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id AA24C12798 for ; Tue, 28 Dec 2004 01:21:34 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 14701-07 for ; Tue, 28 Dec 2004 01:21:34 +0100 (CET) Original-Received: from smtp20.libero.it (unknown [193.70.192.147]) by ronja.ntg.nl (Postfix) with ESMTP id 271F51276B for ; Tue, 28 Dec 2004 01:21:34 +0100 (CET) Original-Received: from localhost (172.16.1.83) by smtp20.libero.it (7.0.027-DD01) id 41D02C9800013689 for ntg-context@ntg.nl; Tue, 28 Dec 2004 01:21:34 +0100 Original-Received: from ppp-97-142.29-151.libero.it (151.29.142.97) by smtp20.libero.it (7.0.027-DD01) id 41D02BD30004DC3B for ntg-context@ntg.nl; Tue, 28 Dec 2004 01:21:33 +0100 X-Priority: 3 (Normal) Original-To: ntg-context@ntg.nl X-Virus-Scanned: by amavisd-new at libero.it serv4 X-Virus-Scanned: by amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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: by amavisd-new at ntg.nl Xref: main.gmane.org gmane.comp.tex.context:17664 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:17664 Hello, I'm re-creating a PDF from a split-repeated form: each section of the original document has been split into a separated PDF, and I'm trying to recombine it. To do so, I patched \dodoinsertpages so that it is possible to give a start= and stop= value for the pages (so that you can include, say, the pages from 4 to 86 only): \newcounter\currentip \def\dodoinsertpages[#1][#2][#3]% {\bgroup \dontcomplain \getfiguredimensions[#1]% \getparameters[\??ip][\c!start=1,\c!stop=\noffigurepages,\c!width=\!!zeropoint,#3]% \doifinset0{#2}{\null\page}% % \write16{Should insert from \@@ipstart\space to \@@ipstop}% \let\currentip\@@ipstart% \decrement\currentip \doloop {\increment\currentip\relax % \write16{Inserting page \currentip}% \dofilterpage{#1}\currentip \doifinset\currentip{#2}{\null\page}% \ifnum\currentip=\@@ipstop\exitloop \fi }% \egroup Hans may consider adding such a feature to the default distribution, possibly making it work with the n= option which is used by the standard stuff ... Anyway, my problem is that as soon as I get past page 600 or so, I get hash size exceeded fatal errors. A braindead solution that allows me to get a few more pages is to patch \calculateexternalfigure to define less csnames, eg by commenting %\setxvalue{\@@efobjectname\c!n}{\number\nofinsertpages}% and changing %\xdef\noffigurepages{\number\getvalue{\@@efobjectname\c!n}}% \xdef\noffigurepages{\number\nofinsertpages}% but still still is not enough (it's a nearly 1000 pages book). Ideas on how to solve the problem (MiKTeX does not allow increasing the hash size)? -- Giuseppe "Oblomov" Bilotta