ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Paul Jones" <shagreel@gmail.com>
Subject: Positioning tag adding space before a chapter
Date: Mon, 2 Oct 2006 17:15:29 -0600	[thread overview]
Message-ID: <f35545860610021615t6e663858t55019c6600b04de@mail.gmail.com> (raw)

I am using \StartPos and \StopPos to determine where text is
positioned in the output document.  This works very well except that
when it is placed before the first chapter in the bodymatter it adds a
blank page.  All of the other chapters are fine.  Is there some way
for me to make this not happen?  I don't understand everything inthe
StartPos def.  But if I remove the \StartPos from before the first
chapter the blank page is not there, but I need that positioning
information.   I will be greatful for any help.

Paul

% output=pdftex
\let\CurrentPos\empty
\def\StartPos#1{\pushmacro\CurrentPos\edef\CurrentPos{flpos:#1}\dontleavehmode\bpos\CurrentPos\ignorespaces}
\def\StopPos{\removeunwantedspaces\epos\CurrentPos\popmacro\CurrentPos}
\starttext
\startfrontmatter
\setuppagenumbering[alternative=doublesided]
\stopfrontmatter
\startbodymatter
%\chapter{testing}\StartPos{p:31:1}Here is the text to drop a photo
into.\StopPos
\StartPos{s:31}\chapter{Another Section}\StartPos{p:31:1}Here is the
text.\StopPos\StopPos
\StartPos{s:32}\chapter{Another Section}\StartPos{p:32:1}Here is the
text.\StopPos\StopPos
\stopbodymatter
\stoptext

                 reply	other threads:[~2006-10-02 23:15 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=f35545860610021615t6e663858t55019c6600b04de@mail.gmail.com \
    --to=shagreel@gmail.com \
    --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).