ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Subject: Re: Re: Strange offset
Date: Tue, 25 Nov 2003 12:28:45 +0100	[thread overview]
Message-ID: <6.0.0.22.2.20031125122553.02c77590@server-1> (raw)
In-Reply-To: <20031125093344.GA5991@physik.fu-berlin.de>

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  

      reply	other threads:[~2003-11-25 11:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-25  9:33 Tobias Burnus
2003-11-25 11:28 ` Hans Hagen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6.0.0.22.2.20031125122553.02c77590@server-1 \
    --to=pragma@wxs.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).