From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/83738 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: setupnarrower and startnarrower Date: Wed, 07 Aug 2013 22:59:19 +0200 Message-ID: <5202B527.8030800@wxs.nl> References: <20130806151137.4594025f@sole> <20130806160946.7526a314@sole> <0F44807F-4466-4943-8D5E-075678005898@gmail.com> <3D080671-6860-4927-85CE-4453A1899F58@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252"; Format="flowed" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1375909197 25021 80.91.229.3 (7 Aug 2013 20:59:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 7 Aug 2013 20:59:57 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Wed Aug 07 23:00:00 2013 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 1V7Apq-0007n7-05 for gctc-ntg-context-518@m.gmane.org; Wed, 07 Aug 2013 22:59:58 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4B6A710200; Wed, 7 Aug 2013 22:59:14 +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 3-bU4YmT58eA; Wed, 7 Aug 2013 22:59:12 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 63240101FB; Wed, 7 Aug 2013 22:59:12 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id F41C1101FB for ; Wed, 7 Aug 2013 22:59:10 +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 Ol3dyIhqYnpn for ; Wed, 7 Aug 2013 22:59:09 +0200 (CEST) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id C8546101FA for ; Wed, 7 Aug 2013 22:59:09 +0200 (CEST) Original-Received: from smtp.ziggozakelijk.nl (D57D1DA2.static.ziggozakelijk.nl [213.125.29.162]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r77Kxp5b010076 for ; Wed, 7 Aug 2013 22:59:52 +0200 X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.104; Original-Received: from [10.100.1.104] (unverified [10.100.1.104]) by pragma-net.nl (SurgeMail 6.3c2) with ESMTP id 610-1713362 for ; Wed, 07 Aug 2013 22:59:51 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 In-Reply-To: X-Authenticated-User: hagen@controller-9 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=213.125.29.162; country=NL; region=15; city=Zwolle; latitude=52.5058; longitude=6.0858; http://maps.google.com/maps?q=52.5058,6.0858&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 06K9UXPuj - 356966d5de9b - 20130807 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 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:83738 Archived-At: On 8/6/2013 6:14 PM, Aditya Mahajan wrote: > On Tue, 6 Aug 2013, Wolfgang Schuster wrote: > >> >> Am 06.08.2013 um 17:53 schrieb Aditya Mahajan : >> >>> On Tue, 6 Aug 2013, Wolfgang Schuster wrote: >>> >>>> >>>> Am 06.08.2013 um 16:09 schrieb Alan BRASLAU : >>>> >>>>> Thank you Wolfgang, but I was wondering about the standard >>>>> \startnarrower. >>>>> >>>>> Many (some) commands allow setup assignments, the use of which >>>>> overides but does not change the default. This is a very useful >>>>> feature of ConTeXt that suggest could be generalized. >>>>> \startnarrower is but one example. >>>> >>>> Changing the command is simple but I would drop the second >>>> argument when you want to change the left/right etc. values >>>> because you can say =93left=3D4cm=94 etc. to get the desired margins. >>> >>> startnarrower has a weird interface. Ideally, it should just support >>> keywords: >>> >>> \startnarrower >>> [ >>> leftmargin=3D..., >>> rightmargin=3D..., >>> alternative=3D(left|right|both), >>> spacebefore=3D...., >>> spaceafter=3D...., >>> indenting=3D...., >>> indentnext=3D...., >>> before=3D...., >>> after=3D...., >>> ] >> >> That=92s more or less what I use for the =93narrow=94 alternative in the >> annotation module. >> >> I would prefer such a parameter driven narrower environment myself (do >> we even need >> the left, middle and right option when we can set absolute margins) >> but keeping the current >> interface for backwards compatibility make things a little bit ugly. > > Haven't we broken backward compatibility for other environments as well? > \startlinenumbering immediately comes to mind where the MkII interface was > > \startlinenumbering[continue] > > and the current interface is > > \startlinenumbering[continue=3Dyes] > > I, for one, think that it is OK to break backward compatibility for more > elegance and consistency. \startnarrower with its interface is one of the oldest commands which = also means that it's used in our styles however, we already have \startnarrow and i extended that one to accept = a few more combinations: \showframe \definenarrower[whatever][left=3D3cm,right=3D2cm,default=3Dleft] \starttext \input ward \startnarrower[2*left] \input ward \stopnarrower \input ward \startnarrow[whatever] \input ward \stopnarrow \input ward \startnarrow[whatever][right] \input ward \stopnarrow \input ward \startnarrow[whatever][default=3Dmiddle] \input ward \stopnarrow \input ward \startnarrow[whatever][default=3Dmiddle,middle=3D-1cm] \input ward \stopnar= row \input ward \startnarrow[default=3Dmiddle] \input ward \stopnarrow \input ward \stoptext ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________