ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Positioning tag adding space before a chapter
@ 2006-10-02 23:15 Paul Jones
  0 siblings, 0 replies; only message in thread
From: Paul Jones @ 2006-10-02 23:15 UTC (permalink / 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-10-02 23:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-02 23:15 Positioning tag adding space before a chapter Paul Jones

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).