From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/65405 Path: news.gmane.org!not-for-mail From: =?ISO-8859-2?Q?Stefan_M=FCller?= Newsgroups: gmane.comp.tex.context Subject: Re: Forming paragraphs Date: Sun, 23 Jan 2011 14:35:24 +0100 Message-ID: <4D3C2E9C.6080905@gmx.de> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2"; Format="flowed" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1295789758 19456 80.91.229.12 (23 Jan 2011 13:35:58 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 23 Jan 2011 13:35:58 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Jan 23 14:35:49 2011 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 1Ph06e-0000z9-GU for gctc-ntg-context-518@m.gmane.org; Sun, 23 Jan 2011 14:35:48 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2EF1FCA96A; Sun, 23 Jan 2011 14:35: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 bDIkcbRK3CSn; Sun, 23 Jan 2011 14:35:44 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 46B63CA96E; Sun, 23 Jan 2011 14:35:44 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8A9FECA96E for ; Sun, 23 Jan 2011 14:35:42 +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 muEypaaVHsfe for ; Sun, 23 Jan 2011 14:35:40 +0100 (CET) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id 87C6CCA96A for ; Sun, 23 Jan 2011 14:35:40 +0100 (CET) Original-Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.23]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with SMTP id p0NDZdse005284 for ; Sun, 23 Jan 2011 14:35:40 +0100 Original-Received: (qmail invoked by alias); 23 Jan 2011 13:35:39 -0000 Original-Received: from 77-64-190-60.dynamic.primacom.net (EHLO [192.168.100.108]) [77.64.190.60] by mail.gmx.net (mp015) with SMTP; 23 Jan 2011 14:35:39 +0100 X-Authenticated: #11064435 X-Provags-ID: V01U2FsdGVkX19VUq9BxrpVvrfOPY1WQ3Gl2ENfo305dLRljx1QSn PPrRoA33DNnYwI User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 In-Reply-To: X-Y-GMX-Trusted: 0 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=213.165.64.23; country=DE; latitude=51.0000; longitude=9.0000; http://maps.google.com/maps?q=51.0000,9.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0bDX1zD7w - 7110dedc8a26 - 20110123 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 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:65405 Archived-At: Hi, did you already take a look at this? http://wiki.contextgarden.net/Shaped_paragraphs HTH, Stefan. On 23.01.2011 13:38, Proch=E1zka Luk=E1=B9 wrote: > Hello, > > I would need to form paragraphs to such a shape: > > Abc defhi jklm nop qrst uvw > xyz. ABCDE FGHIJKL MNOPQR > STUW XYZ. > > Abc defhi jklm nop qrst uvw > xyz. ABCDE FGHIJKL MNOPQR > STUW XYZ. > > Abc defhi jklm nop qrst uvw > xyz. ABCDE FGHIJKL MNOPQR > STUW XYZ. > > <-- \textwidth ---------->| > > I.e. paragraphs whose first lines are always \textwidth in width and > whose next lines are always somehow indented. > > I achieved the desired shape by the following combination of > \setupnarrower and \setupindenting: > > --- > \starttext > \setupnarrower[left=3D2em] > \startnarrower[1*left,0*right] > \setupindenting[yes,-2em] > \input knuth > \stopnarrower > \stoptext > --- > > But I would like to ask whether this way is "clean" enough and/or there > is a better way, especially via a kind of \setup command, > e.g. something like: > > \setupparagraph[MySpecialParagraph][first=3D0pt,next=3D2em] > ... > \startparagraph[MySpecialParagraph] > Abc defhi jklm nop qrst uvw xyz. ABCDE FGHIJKL MNOPQR STUW XYZ. > \stopparagraph > > % or: > > \startMySpecialParagraph > Abc defhi jklm nop qrst uvw xyz. ABCDE FGHIJKL MNOPQR STUW XYZ. > \stopMySpecialParagraph > > Kind regards, > > Lukas > > > > _________________________________________________________________________= __________ > 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-co= ntext > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > _________________________________________________________________________= __________ ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________