From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/82201 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Deactivating Grid-Setting for a single paragraph Date: Tue, 30 Apr 2013 08:49:52 +0200 Message-ID: References: <517BB8CA.1010701@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 1367304608 22176 80.91.229.3 (30 Apr 2013 06:50:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Apr 2013 06:50:08 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Apr 30 08:50:08 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 1UX4O8-0001GO-JU for gctc-ntg-context-518@m.gmane.org; Tue, 30 Apr 2013 08:50:08 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id ECD0E101E7; Tue, 30 Apr 2013 08:50:07 +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 5yqFw+imGRLt; Tue, 30 Apr 2013 08:50:06 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 78C56101E4; Tue, 30 Apr 2013 08:50:06 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5455E101E4 for ; Tue, 30 Apr 2013 08:50:05 +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 Xr8wOis9sL2q for ; Tue, 30 Apr 2013 08:50:04 +0200 (CEST) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id 498B9101E0 for ; Tue, 30 Apr 2013 08:49:54 +0200 (CEST) Original-Received: from mail-ea0-x22b.google.com (mail-ea0-x22b.google.com [IPv6:2a00:1450:4013:c01::22b]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r3U6nrts010000 for ; Tue, 30 Apr 2013 08:49:53 +0200 Original-Received: by mail-ea0-f171.google.com with SMTP id b10so72427eae.16 for ; Mon, 29 Apr 2013 23:49:53 -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=DZiZBPoZ0nWCJjzib8ZsTY1jtYmVSflzpyLq/GPmi+g=; b=Uni8bNdaBv1hKjyg79qqu/GFKW7sMXvhx2f3aoltYNQ0ci8feA9kuKfJwi1wOTeH0s qvAm2diKnQl/MzXOTZwwub2cE8JAYGb9AOI0j/zDfAVIjDYc/+46VkGsq6U2XOHRgQQ+ c8gDjJF1jk4aiLxqXSXdmKUCGeosCqzywxJTDir5iTM730hFV1Mb2H/sdEjJpjcamAZn i62qU3+LEGd58PLyJISyXkgaiVkhCncMg0Gx6s7zOIrjZkil8pXKJgDV5pW4twUriSqn 1e0sxdabEm386O1vrq4xOUDPbSpvCD5CRaSW1T32Gc6tTZqH8mIoHcgqpJOIYZoMdPKD nETg== X-Received: by 10.15.31.197 with SMTP id y45mr131291594eeu.18.1367304593331; Mon, 29 Apr 2013 23:49:53 -0700 (PDT) Original-Received: from keima.localdomain (nrbg-4d073b05.pool.mediaWays.net. [77.7.59.5]) by mx.google.com with ESMTPSA id b5sm36692609eew.16.2013.04.29.23.49.52 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 29 Apr 2013 23:49:52 -0700 (PDT) In-Reply-To: <517BB8CA.1010701@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::22b; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0VJu6NRNj - 007ac835b38c - 20130430 (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:82201 Archived-At: Am 27.04.2013 um 13:38 schrieb H. =D6zoguz : > Hi there, speaking code: > = > \setuplayout[grid=3Dyes] > \showgrid > \starttext > {This is a line without a big-sized font.\\ > And this one has it: {\tfa TH=DCS}.} > \blank > = > Perfectly I good disable gridsetting for a complete paragraph. I can do s= o by =93placeongrid=94. But then another problem arises; if the paragraph i= s (without placeongrid) half at the end of a page, and half at the beginnin= g of the next page, than WITH placeongrid the page-break of the paragraph i= s impossible, so the complete paragraph is set on the next page =96 resulti= ng in many blank lines on the first page, at the buttom, of course. I tried= to disable gridsetting for one paragraph only by =93setuplayout=94 (=93off= =94, and after the paragraph =93on=94 again), but that does not work, too, = see here:\blank > = > {\setuplayout[grid=3Dno] > This is a line without a big-sized font.\\ > And this one has it: {\tfa TH=DCS}. > \setuplayout[grid=3Dyes]} > \blank > = > So no effect again. My last try was to change =93setupinterlinespace=94 b= efore the paragraph, and change it back to default after the paragraph, but= that does not work, too:\blank > = > {\setupinterlinespace[line=3D4ex] > This is a line without a big-sized font.\\ > And this one has it: {\tfa TH=DCS}. > \setupinterlinespace[line=3D2.8ex] } > \blank > = > But that does not work, too. How to make this work, disabling grid-set fo= r a paragraph? Perfectly like =93placeongrid=94, but with the possibility t= o break it into to pages:\blank > = > \placeongrid[top]{ > This is a line without a big-sized font.\\ > And this one has it: {\tfa TH=DCS}.} > \blank > = > The problem comes here from setting arabic words into the german text, fo= r arabic I have to use a bigger font, and so the problem simulated here ari= ses. When you use the grid you have to restrict yourself and use fixed values fo= r the interlinespace. The correction of the whitespace after the increased = linespace can be calculated and compensated by half lines in the \blank com= mand. \setuplayout[grid=3Dyes] \setupinterlinespace[line=3D14pt] \showgrid \starttext \dorecurse{3}{\input knuth\par} \blank[line] %\blank[2*line] \start \setupinterlinespace[line=3D21pt] \input knuth\par \stop \ifodd\cldcontext{math.round(\number\pagetotal/\number\dimexpr21pt\relax)} \blank[line,halfline] \else \blank[line] \fi \dorecurse{2}{\input knuth\par} \stoptext 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 ___________________________________________________________________________= ________