ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Joshua Krämer" <joshua.kraemer-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: ntg-context-wvrSQK3plZs@public.gmane.org
Subject: Re: Disable balancing of page bottoms
Date: Wed, 15 Jan 2014 15:44:53 +0100	[thread overview]
Message-ID: <20140115154453.76cd473c@Klapprechner1.site> (raw)
In-Reply-To: <52D6688C.7050305@wxs.nl>

I have found out that I had interpreted the problem wrongly.  It is
not a problem of balancing, it is a problem of the layout macros.  I
use a different page layout for the titlepage and switch to the main
layout later.  This switch is in the front matter part, which results
in the new layout being respected for one page only.  Somehow for
subsequent pages, the layout is wrong.

Here's a MWE:

\definelayout[Titlelayout][width=10cm,height=10cm,header=0cm,footer=0cm]
\definelayout[Mainlayout][width=10cm,height=25cm,header=0cm,footer=0cm]
\showframe

\definestartstop[Titlepage][
	before={\setuplayout[Titlelayout]},
	after={
		\page[yes]
		\setuplayout[Mainlayout]
		}]

\starttext

\startfrontmatter
\startTitlepage
Title
\stopTitlepage
\stopfrontmatter

\dorecurse{5}{\input{knuth}}

\placetable[270,page]{none}
{\setupTABLE[option=stretch, textwidth=25cm]
\bTABLE \bTR \bTD 1 \eTD \bTD 2 \eTD \eTR \eTABLE}

\dorecurse{5}{\input{knuth}}

\stoptext

The frames are drawn correctly on all pages.  But only page 2 is filled
with text completely.  On subsequent pages, the real layout seems to be
too short.  If I remove \startfrontmatter and \stopfrontmatter, the
problem disappears.  It also works if I input \setuplayout[Mainlayout]
in the preamble, which is cleaner anyway because it is independent of
the titlepage macros.

Kind regards,
Joshua Krämer


___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2014-01-15 14:44 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-14 22:26 Joshua Krämer
2014-01-15 10:53 ` Hans Hagen
2014-01-15 14:44   ` Joshua Krämer [this message]
2014-01-15 15:24     ` Marco Patzer
2014-01-15 17:14       ` Joshua Krämer
2014-01-15 20:54         ` Marco Patzer
2014-01-16 13:17           ` Joshua Krämer

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=20140115154453.76cd473c@Klapprechner1.site \
    --to=joshua.kraemer-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=ntg-context-wvrSQK3plZs@public.gmane.org \
    /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).