From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/86160 Path: news.gmane.org!not-for-mail From: "Keith J. Schultz" Newsgroups: gmane.comp.tex.context Subject: Re: Testpage with extras Date: Sat, 1 Feb 2014 10:15:25 +0100 Message-ID: <05873D6A-1123-4598-B978-92741FF908EE@uni-trier.de> References: <52EA38AD.9090202@mmnetz.de> <52EAC2E7.5030800@wxs.nl> <15FF11DF-E7B1-4E41-9E44-7BFF5C8D23A1@uni-trier.de> <52EB785A.5000303@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.1 \(1827\)) Content-Type: multipart/mixed; boundary="===============0498003989==" X-Trace: ger.gmane.org 1391246143 16233 80.91.229.3 (1 Feb 2014 09:15:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 1 Feb 2014 09:15:43 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Feb 01 10:15:52 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W9Wg3-0004hA-On for gctc-ntg-context-518@m.gmane.org; Sat, 01 Feb 2014 10:15:51 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2FAF2101EA; Sat, 1 Feb 2014 10:15:51 +0100 (CET) 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 0VY-6fR0YS9Y; Sat, 1 Feb 2014 10:15:48 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id ADA7F101E2; Sat, 1 Feb 2014 10:15:48 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 85978101E2 for ; Sat, 1 Feb 2014 10:15:47 +0100 (CET) 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 0Qm3ntucgvLH for ; Sat, 1 Feb 2014 10:15:38 +0100 (CET) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 22314101E1 for ; Sat, 1 Feb 2014 10:15:28 +0100 (CET) Original-Received: from mx2.uni-trier.de (mx2.uni-trier.de [136.199.224.18]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s119FRvw015289 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Sat, 1 Feb 2014 10:15:28 +0100 X-IronPort-AV: E=Sophos;i="4.95,760,1384297200"; d="scan'208,217";a="9108404" Original-Received: from rzmail.uni-trier.de ([136.199.8.220]) by mx2i.uni-trier.de with ESMTP; 01 Feb 2014 10:15:27 +0100 Original-Received: from [10.0.62.8] (dslb-084-058-250-198.pools.arcor-ip.net [84.58.250.198]) by rzmail.uni-trier.de (Postfix) with ESMTPA id 2C64C403EE for ; Sat, 1 Feb 2014 10:15:27 +0100 (CET) In-Reply-To: <52EB785A.5000303@wxs.nl> X-Mailer: Apple Mail (2.1827) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=136.199.224.18; country=DE; region=08; city=Trier; latitude=49.7500; longitude=6.6333; http://maps.google.com/maps?q=49.7500,6.6333&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0QLkVfraO - 3025ccdd3714 - 20140201 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:86160 Archived-At: --===============0498003989== Content-Type: multipart/alternative; boundary="Apple-Mail=_862718B5-E8B0-4107-AA4E-9684FC229278" --Apple-Mail=_862718B5-E8B0-4107-AA4E-9684FC229278 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hi Hans, how about the \ifleftonpage, or something like that? Just trying to have the name of the command more literate. Of course if the conditional part is to be expanded to something more elaborate then pagechecker would be fine! regards Keith. Am 31.01.2014 um 11:18 schrieb Hans Hagen : > On 1/31/2014 10:46 AM, Keith J. Schultz wrote: >=20 >> Personally, I find the names used sub-optimal! >=20 > we had testpage and that one stays anyway and checkpage is close to = that (overloading testpage with a new syntax is messy) >=20 >> I would think something like conditionalbreak or conditionalpagebreak >> would be better and verbose. >=20 > the new check command could evolve in more than break .. in fact it = just checks and then does some action (not per se a break) >=20 >> Other names could be ifpagelength, ifpagelengthstill, leftonpage, or >> something similar. >=20 > one can say >=20 > \definepagechecker[leftonpage] >=20 > and then use it like >=20 > \chechpage[leftonpage] >=20 >> I assume you have implemented checkpage as an added layer on top >> of testpage! >=20 > no, the reverse >=20 >> At least the test is if X lines left on page or still fit on page! >>=20 >> I also have a question. Are the commands setuppagechecker sothat >>=20 >> \definepagechecker[whatever] >>=20 >> \setuppagechecker[whatever] >> [lines=3D35, >> voffset=3D10pt, >> before=3D{\vfill\wordright{(see next page)}\par}, >> after=3D\noindentation] >>=20 >> and also >>=20 >> \checkpage [lines=3D35, >> voffset=3D10pt, >> before=3D{\vfill\wordright{(see next page)}\par}, >> after=3D\noindentation] >=20 > in that case you use those values, while >=20 > \checkpage > [whatever] > [lines=3D12] >=20 > would overload given whatever values >=20 > > Question: what is the voffset used for? Line height? If so then a = better >> name for this >> would be nice, too! >=20 > it's 'offset' ... and it's like the second argument of testpage (i = can't think of another key so i've chosen one that already is part of = context, which has advantages) [snip, snip]= --Apple-Mail=_862718B5-E8B0-4107-AA4E-9684FC229278 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii Hi = Hans,

how about the \ifleftonpage, or something like = that?

Just trying to have the name of the = command more literate.

Of course if the = conditional part is to be expanded to something
more elaborate = then pagechecker would be = fine!

regards
= Keith.

Am 31.01.2014 um 11:18 schrieb = Hans Hagen <pragma@wxs.nl>:

On = 1/31/2014 10:46 AM, Keith J. Schultz wrote:

Personally, I find the names used = sub-optimal!

we had testpage and that one stays = anyway and checkpage is close to that (overloading testpage with a new = syntax is messy)

I would think = something like conditionalbreak or conditionalpagebreak
would be = better and verbose.

the new check command could = evolve in more than break .. in fact it just checks and then does some = action (not per se a break)

Other names = could be ifpagelength, ifpagelengthstill, leftonpage, or
something = similar.

one can = say

\definepagechecker[leftonpage]

and then use it = like

\chechpage[leftonpage]

I = assume you have implemented checkpage as an added layer on top
of = testpage!

no, the reverse

At least the test is if X lines left on page or still fit = on page!

I also have a question. Are the commands = setuppagechecker = sothat

\definepagechecker[whatever]

\setuppagechecker[whatev= er]
 [lines=3D35,
  voffset=3D10pt,
  be= fore=3D{\vfill\wordright{(see next = page)}\par},
  after=3D\noindentation]

and = also

\checkpage = [lines=3D35,
  voffset=3D10pt,
  before=3D{\vfil= l\wordright{(see next = page)}\par},
  after=3D\noindentation]

in= that case you use those values, = while

\checkpage
 [whatever]
 [lines=3D12]

w= ould overload given whatever values

> Question: what is the = voffset used for? Line height? If so then a better
name for this
would be nice, = too!

it's 'offset' ... and it's like the second = argument of testpage (i can't think of another key so i've chosen one = that already is part of context, which has = advantages)

[snip, = snip]
= --Apple-Mail=_862718B5-E8B0-4107-AA4E-9684FC229278-- --===============0498003989== 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 ___________________________________________________________________________________ --===============0498003989==--