From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/81922 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Command only if \testpage is active Date: Thu, 18 Apr 2013 18:39:12 +0200 Message-ID: <4927CE29-1CE7-4140-9EE7-E1E55A906895@gmail.com> References: <517014E6.40200@mmnetz.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1366303156 19642 80.91.229.3 (18 Apr 2013 16:39:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 18 Apr 2013 16:39:16 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Apr 18 18:39:20 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1USrrk-00053j-DS for gctc-ntg-context-518@m.gmane.org; Thu, 18 Apr 2013 18:39:20 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A085A101E4; Thu, 18 Apr 2013 18:39:19 +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 LR4RVMJDKdkB; Thu, 18 Apr 2013 18:39:17 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id A9ACF101E6; Thu, 18 Apr 2013 18:39:17 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D85C6101E6 for ; Thu, 18 Apr 2013 18:39:15 +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 sQROnEMK9qkn for ; Thu, 18 Apr 2013 18:39:12 +0200 (CEST) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id E9A22101E4 for ; Thu, 18 Apr 2013 18:39:11 +0200 (CEST) Original-Received: from mail-ea0-x235.google.com (mail-ea0-x235.google.com [IPv6:2a00:1450:4013:c01::235]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r3IH0r75021751 for ; Thu, 18 Apr 2013 19:00:53 +0200 Original-Received: by mail-ea0-f181.google.com with SMTP id z10so1388884ead.40 for ; Thu, 18 Apr 2013 09:39:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=sUt1H6GkZZEToePK7E2fTSnWwsv4tmN+pN+BC8Y9P/g=; b=EryFZwnUfh1TLpaWwlcRfId9JWK+yBK1ktEaOjzs6Y8gElx8CaYZeTD24oDFFd5LLH ltqB6N1+ATlnCqONyYAZqS+eJL1mg5ubn+n9RCiBp+G2lpMQoL0Y0y7aYE09wEM+nVgk OXEW1yJHM9Lj5jvVVYBuoB2OXiDfn3yCYmPo4Ah5trZhYHvT6xDZTuSQKDmggWJWUNga JZc08kcqnnWEJrGfl6qPURILiUu++x+T8kg8qqUKj7vSg35DA7dlMLGbeBnoin/yRd8O RsnwVzYWffX7QF5B4XFBWd0dYpKDtmcKXe+neueixx6P/EdNBNjM5G5TzUzxVEOTNyam g/eA== X-Received: by 10.14.107.69 with SMTP id n45mr31807185eeg.23.1366303151197; Thu, 18 Apr 2013 09:39:11 -0700 (PDT) Original-Received: from keima.localdomain (nrbg-4dbf875a.pool.mediaWays.net. [77.191.135.90]) by mx.google.com with ESMTPS id b5sm17020901eew.16.2013.04.18.09.39.10 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 18 Apr 2013 09:39:10 -0700 (PDT) In-Reply-To: <517014E6.40200@mmnetz.de> X-Mailer: Apple Mail (2.1503) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2a00:1450:4013:c01::235; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01Jpt0Rxn - 7db2a3ebbf95 - 20130418 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) 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:81922 Archived-At: Am 18.04.2013 um 17:44 schrieb "H. =D6zoguz" : > Hi, > = > for subsections I use > = > \setuphead[subsection] > [after=3D\vskip-1.6mm, > before=3D{\testpage[5]\vskip1.6mm}] > = > The reason is perfect distances between text-subsection-text with activat= ed gridding. > = > If the subsection is not set by \testpage on the next page, then everythi= ng workes fine! But if, then I want to not use the \vskips in "after" and "= before". I want (in pseudo-pseudocode) something like this: > = > if(less then 5 lines, thas is, testpage sets the subsection on the next p= age) > then: > \setuphead[subsection] > [after=3D, > before=3D] > = > I hope I could make clear, what I intend to achieve. > = > For testing: > +++++++++++++++++++++++++++++++++++++ > \setuplayout[grid=3Dyes] > \showgrid > \setuphead[subsection] > [after=3D\vskip-1.6mm, > before=3D{\testpage[5]\vskip1.6mm}]] > = > \starttext > \dorecurse{13}{Linefill\\} > \input tufte > \subsection{Hallo} > \input tufte > \subsection{Hallo} > \input tufte \input tufte > \stoptext > +++++++++++++++++++++++++++++++++++++ > = > You see on the second page the problem: gridding is lost. I can=92t reproduce the problem, the text on the second page stays on the g= rid. Wolfgang ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________