From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/65406 Path: news.gmane.org!not-for-mail From: =?iso-8859-2?B?UHJvY2jhemthIEx1a+G5?= Newsgroups: gmane.comp.tex.context Subject: Re: Forming paragraphs Date: Sun, 23 Jan 2011 16:06:49 +0100 Message-ID: References: <4D3C2E9C.6080905@gmx.de> 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"; DelSp="yes" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1295795254 9998 80.91.229.12 (23 Jan 2011 15:07:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 23 Jan 2011 15:07:34 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Sun Jan 23 16:07:30 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 1Ph1XN-00007f-Vv for gctc-ntg-context-518@m.gmane.org; Sun, 23 Jan 2011 16:07:30 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 128D5CA9F0; Sun, 23 Jan 2011 16:07:29 +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 G9I5VvTyfCJJ; Sun, 23 Jan 2011 16:07:26 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id EF222CA972; Sun, 23 Jan 2011 16:07:25 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2B73CCA972 for ; Sun, 23 Jan 2011 16:07:25 +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 EXsd7pOSI-UT for ; Sun, 23 Jan 2011 16:07:13 +0100 (CET) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id C393FCA967 for ; Sun, 23 Jan 2011 16:07:13 +0100 (CET) Original-Received: from mail.pontex.cz (mail.pontex.cz [89.233.168.98]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p0NF7BZM011346 for ; Sun, 23 Jan 2011 16:07:13 +0100 Original-Received: from lk-2008-nbk ([88.100.123.157]) (authenticated user lpr@pontex.cz) by mail.pontex.cz (Kerio MailServer 6.6.2) for ntg-context@ntg.nl; Sun, 23 Jan 2011 16:07:08 +0100 In-Reply-To: <4D3C2E9C.6080905@gmx.de> User-Agent: Opera Mail/11.00 (Win32) X-Bayes-Prob: 0.9881 (Score 4.7, tokens from: @@RPTN) X-CanIt-Geo: ip=89.233.168.98; country=CZ; region=52; city=Prague; latitude=50.0833; longitude=14.4667; http://maps.google.com/maps?q=50.0833,14.4667&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 08DX37cTK - 1afb2c56ae30 - 20110123 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 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:65406 Archived-At: Hello, thanks for the link, this seems to do the job. Lukas On Sun, 23 Jan 2011 14:35:24 +0100, Stefan M=FCller w= rote: > 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 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 ___________________________________________________________________________= ________