From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/14102 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Re: Strange offset Date: Tue, 25 Nov 2003 12:28:45 +0100 Sender: ntg-context-admin@ntg.nl Message-ID: <6.0.0.22.2.20031125122553.02c77590@server-1> References: <20031125093344.GA5991@physik.fu-berlin.de> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Trace: sea.gmane.org 1069762783 4834 80.91.224.253 (25 Nov 2003 12:19:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 25 Nov 2003 12:19:43 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Tue Nov 25 13:19:40 2003 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AOcAO-0003sf-00 for ; Tue, 25 Nov 2003 13:19:40 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 9731E10B2F; Tue, 25 Nov 2003 13:19:32 +0100 (MET) Original-Received: from mail.solcon.net (mail.solcon.net [212.45.33.5]) by ref.ntg.nl (Postfix) with ESMTP id 32E7010ACD for ; Tue, 25 Nov 2003 13:12:01 +0100 (MET) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mail.solcon.net (8.11.6/8.9.3) with ESMTP id hAPCBu031516 for ; Tue, 25 Nov 2003 13:11:56 +0100 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id 59C1E2362E; Tue, 25 Nov 2003 13:12:00 +0100 (CET) Original-Received: from laptop-3.wxs.nl (unknown [10.100.1.191]) by server-1.pragma-net.nl (Postfix) with ESMTP id 7652017BC7 for ; Tue, 25 Nov 2003 12:11:57 +0000 (UTC) X-Sender: hagen-mail@server-1 X-Mailer: QUALCOMM Windows Eudora Version 6.0.0.22 Original-To: ntg-context@ntg.nl In-Reply-To: <20031125093344.GA5991@physik.fu-berlin.de> Original-References: <20031125093344.GA5991@physik.fu-berlin.de> Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:14102 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:14102 At 10:33 25/11/2003, you wrote: >Hi, > >I get this stange result: The second page (p.3-4) of each embedded >file have the wrong offset, for the other pages (p. 6-\infty) they are ok. >Any ideas? This is with > > pdfeTeXk, Version 3.14159-1.10b-2.1 (Web2C 7.4.5) (format=cont-en 2003.10.6 > >and the TeX code from below. in page-imp, patch: \hfil}% \hfilneg} \vfil}% \vfilneg}% \pagina %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% add this line \ifnum\combinedpagescounter>\@@ipn \exitloop\fi} \else \doloop {\startbaselinecorrection If you run your code with: \startsetups[verydirtytrick] \doglobal\increment\DirtyTrickCounter \ifodd\realpageno\relax \ifodd\DirtyTrickCounter \hbox to \overlaywidth{1{\hskip0mm}\foregroundbox1} \else \hbox to \overlaywidth{2{\hskip-1.3cm}\foregroundbox2} \fi \else \ifodd\DirtyTrickCounter \hbox to \overlaywidth{3{\hskip10mm}\foregroundbox3} \else \hbox to \overlaywidth{4{\hskip-0.3cm}\foregroundbox4} \fi \fi \stopsetups you can see that some branches are never entered, which is due to the fact that we're dealing with a sequence of \vbox's and you decide on \realpago whil ethe previous one is not yet flushed (i.e. fits on the page so tex will issue a page break when something new is added, with the new being the wrong calculated thing). Hans