From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/58546 Path: news.gmane.org!not-for-mail From: Otared Kavian Newsgroups: gmane.comp.tex.context Subject: Re: strange page break Date: Thu, 6 May 2010 10:46:44 +0200 Message-ID: References: <20100504053845.GA6251@gaston.couberia.bzh> <4BE1598C.1040207@elvenkind.com> <20100505143808.GA25000@gaston.couberia.bzh> <4BE185B8.3080201@elvenkind.com> <20100505153331.GA25725@gaston.couberia.bzh> <4BE1926F.4080309@googlemail.com> <20100505162319.GA26000@gaston.couberia.bzh> <4BE1A01F.4030505@googlemail.com> <20100505172112.GA26198@gaston.couberia.bzh> <4BE1ACD0.2000407@googlemail.com> <20100506081316.GA30434@gaston.couberia.bzh> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1078) Content-Type: multipart/mixed; boundary="===============0591520614==" X-Trace: dough.gmane.org 1273135617 12163 80.91.229.12 (6 May 2010 08:46:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 6 May 2010 08:46:57 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu May 06 10:46:56 2010 connect(): No such file or directory Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O9wjP-0003Q2-U2 for gctc-ntg-context-518@m.gmane.org; Thu, 06 May 2010 10:46:55 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5245DC9C43; Thu, 6 May 2010 10:46:55 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id x6VYmmx2MyDh; Thu, 6 May 2010 10:46:52 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 30E3EC9C04; Thu, 6 May 2010 10:46:51 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 05927C9BB5 for ; Thu, 6 May 2010 10:46:50 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id MybNg4zZDYmi for ; Thu, 6 May 2010 10:46:47 +0200 (CEST) Original-Received: from mail-wy0-f169.google.com (mail-wy0-f169.google.com [74.125.82.169]) by balder.ntg.nl (Postfix) with ESMTP id 3DA1DC9B1A for ; Thu, 6 May 2010 10:46:47 +0200 (CEST) Original-Received: by wyb33 with SMTP id 33so2058863wyb.14 for ; Thu, 06 May 2010 01:46:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:mime-version :content-type:subject:date:in-reply-to:to:references:message-id :x-mailer; bh=hqNbCIi65F2lQN7QDZLiJlwxNm0HqVNmTIjo3uUPBhs=; b=apC4SMhBIZQBSWBzzL5kpqDIWaLZZl1Xq8ihRSJQwMVbO7SVW3InBwl+D/ipoowmoz D9nHhPxg32PJ/tqZhOEZqIeHjndPilhxn1SSGTLQCqlLHGSeYOtgIA0VsDuD3et3ClEa +OKpq4cc4yFA0gRogsm0FtA8Mpwa+nh9q9p/Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:mime-version:content-type:subject:date:in-reply-to:to :references:message-id:x-mailer; b=II6uWvHK9u/GAa1gRTeUQgKtitqHzsCRw+CI66LhyiEc6sgzieFWQDRnkRoMVOLjE5 l33vvqZIdiKN6kFyyMQ7areUHcYwpK30QeAx4jGwUzDkofRaFKT71t1/i7e6Rfufx28r LtT/bPhEWH2cuy48hdS6DFkJryC925QFz3kYA= Original-Received: by 10.227.69.142 with SMTP id z14mr4215103wbi.195.1273135606949; Thu, 06 May 2010 01:46:46 -0700 (PDT) Original-Received: from [192.168.0.12] (mna75-3-82-66-231-76.fbx.proxad.net [82.66.231.76]) by mx.google.com with ESMTPS id b2sm5770467wbb.2.2010.05.06.01.46.45 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 06 May 2010 01:46:45 -0700 (PDT) In-Reply-To: <20100506081316.GA30434@gaston.couberia.bzh> X-Mailer: Apple Mail (2.1078) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:58546 Archived-At: --===============0591520614== Content-Type: multipart/alternative; boundary=Apple-Mail-18-623144577 --Apple-Mail-18-623144577 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 Hi Peter, I had noticed such strange page breaks before and since it was always in = small documents (maths problem sheets), I used an elementary workaround = which consists in adding a \medskip or \smallskip before every \section. = Actually analogous bad page breaks happen in Plain TeX with = \beginsection. Regarding the minimal example you sent, adding=20 \setuphead[section][before=3D\smallskip] to the top of your document, solves the problem appearing in the first = section. I don't know whether this solves all other strange page breaks = or not. Best regards: OK On 6 mai 2010, at 10:13, Peter M=FCnster wrote: > On Wed, May 05 2010, Wolfgang Schuster wrote: >=20 >> The *strict prevents widows and orphans (comment \setuplayout in this=20= >> example) >> but the important setting here is \setupalign[line]. >=20 > Hello Wolfgang, >=20 > I know that \setupalign[line] means: last line should touch the = bottom. > It can be useful, but it's not always what I want. >=20 > Here an example from real life (not the content... ;). I hope you = agree, > that there should be done something in the default setup of ConTeXT: >=20 > %\setuplayout[setups=3D*strict] % this helps only in some cases... > %\setupalign[line] % this means "flushbottom" and I don't always want = that > \def\Lines#1{\dorecurse{#1}{\dorecurse{17}{text }}\par} > \def\Table#1{\starttable[|l|]\dorecurse{#1}{\NC bla \NC\AR}\stoptable} > \showframe > \starttext > \completecontent > \section{bla} > \Lines{10} > \Lines3 > \section{bla} > \Table9 > \section{bla} > \subsection{bla} > \Lines2 > \placetable[force][bla1]{bla}{\Table7} > \Lines2 > \subsection{bla} > \Lines7 > \placetable[force][bla2]{bla}{\Table{22}} > \subsection{bla} > \Lines2 > \placefigure[force][bla3]{}{\framed[height=3D2cm]{bla}} > \subsubsection{bla} > \Lines8 > \subsubsection{bla} > \Lines2 > \subsubsection{bla} > \Lines4 > \subsubsection{bla} > \Lines2 > \section{bla} > \Lines{15} > \Lines2 > \section{bla} > \Lines2 > \Table9 > \Lines2 > \stoptext >=20 > Cheers, Peter %%%%%%%%%%%%%%%%%% Otared Kavian D=E9partement de Math=E9matiques Universit=E9 de Versailles Saint-Quentin B=E2timent Fermat 45 aveue des Etats Unis 78035 Versailles cedex T=E9l=E9phone: +33 1 39 25 46 42 Secr=E9tariat: +33 1 39 25 46 44=20 Secr=E9tariat: +33 1 39 25 46 46 e-mail: Otared.Kavian@math.uvsq.fr --Apple-Mail-18-623144577 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=iso-8859-1 Hi = Peter,

I had noticed such strange page breaks before = and since it was always in small documents (maths problem sheets), I = used an elementary workaround which consists in adding a \medskip or = \smallskip before every \section. Actually analogous bad page breaks = happen in Plain TeX with \beginsection.
Regarding the minimal = example you sent, = adding 
\setuphead[section][before=3D\smallskip]
= to the top of your document, solves the problem appearing in the first = section. I don't know whether this solves all other strange page breaks = or not.

Best regards: = OK

On 6 mai 2010, at 10:13, Peter M=FCnster = wrote:

On Wed, May 05 2010, Wolfgang Schuster = wrote:

The *strict prevents widows and = orphans (comment \setuplayout in this 
example)
but the = important setting here is \setupalign[line].

Hello = Wolfgang,

I know that \setupalign[line] means: last line should = touch the bottom.
It can be useful, but it's not always what I = want.

Here an example from real life (not the content... ;). I = hope you agree,
that there should be done something in the default = setup of ConTeXT:

%\setuplayout[setups=3D*strict]  % this = helps only in some cases...
%\setupalign[line]  % this means = "flushbottom" and I don't always want = that
\def\Lines#1{\dorecurse{#1}{\dorecurse{17}{text = }}\par}
\def\Table#1{\starttable[|l|]\dorecurse{#1}{\NC bla = \NC\AR}\stoptable}
\showframe
\starttext
\completecontent
\sec= tion{bla}
\Lines{10}
\Lines3
\section{bla}
\Table9
\section= {bla}
\subsection{bla}
\Lines2
\placetable[force][bla1]{bla}{\Tab= le7}
\Lines2
\subsection{bla}
\Lines7
\placetable[force][bla2]= {bla}{\Table{22}}
\subsection{bla}
\Lines2
\placefigure[force][bl= a3]{}{\framed[height=3D2cm]{bla}}
\subsubsection{bla}
\Lines8
\su= bsubsection{bla}
\Lines2
\subsubsection{bla}
\Lines4
\subsubse= ction{bla}
\Lines2
\section{bla}
\Lines{15}
\Lines2
\sectio= n{bla}
\Lines2
\Table9
\Lines2
\stoptext

Cheers, = Peter

Otared.Kavian@math.uvsq.fr<= /div>



= --Apple-Mail-18-623144577-- --===============0591520614== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============0591520614==--