From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/77273 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: setupbars Date: Tue, 10 Jul 2012 00:16:08 +0200 Message-ID: <4FFB5828.5010006@wxs.nl> References: <8809129F-6B53-4376-A164-BD56C9E30A10@uva.nl> <8155A316-76DE-469A-92A9-AA427F7E1B22@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: dough.gmane.org 1341872187 23391 80.91.229.3 (9 Jul 2012 22:16:27 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 9 Jul 2012 22:16:27 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Jul 10 00:16:26 2012 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 1SoMFf-0000uD-6K for gctc-ntg-context-518@m.gmane.org; Tue, 10 Jul 2012 00:16:19 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 10CBB10264; Tue, 10 Jul 2012 00:16:18 +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 4fA5CPf0AG9p; Tue, 10 Jul 2012 00:16:15 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8CA6910206; Tue, 10 Jul 2012 00:16:15 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4EF2210206 for ; Tue, 10 Jul 2012 00:16: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 Jv-bRF1xaBLA for ; Tue, 10 Jul 2012 00:16:12 +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 CF52610204 for ; Tue, 10 Jul 2012 00:16:12 +0200 (CEST) Original-Received: from smtp.ziggozakelijk.nl (D57D1DA2.static.ziggozakelijk.nl [213.125.29.162]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q69MGAX2023421 for ; Tue, 10 Jul 2012 00:16:12 +0200 X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.101; Original-Received: from [10.100.1.101] (unverified [10.100.1.101]) by pragma-net.nl (SurgeMail 5.3h2) with ESMTP (TLS) id 188-1713362 for multiple; Tue, 10 Jul 2012 00:16:07 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 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=03; city=Hattem; latitude=52.4724; longitude=6.0696; http://maps.google.com/maps?q=52.4724,6.0696&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0VHwmgaoJ - fd79cb0a3f0e - 20120710 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.220 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.13 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:77273 Archived-At: On 9-7-2012 09:26, Wolfgang Schuster wrote: > > Am 09.07.2012 um 09:09 schrieb Meer, H. van der: > >> There is still an issue here. >> >> \setupbars[unit=3Dmm,rulethickness=3D1] >> AB\startbar[underbar]CD\stopbar EF\crlf >> \setupbars[unit=3Dex,rulethickness=3D1] >> AB\startbar[underbar]CD\stopbar EF\crlf >> \setupbars[unit=3Dpt,rulethickness=3D1] >> AB\startbar[underbar]CD\stopbar EF\crlf >> >> The first and third setup do not give an underbar, the second does. >> Question: why does "ex" qualify as a dimension unit but "pt" and "mm" do= not? Sounds strange. >> >> If I want an underbar exactly 1mm or 3pt's thick, why isn't that made po= ssible? Doing the math myself is no option, becaus ex will not be known bef= orehand. > > The underlying Lua code accepts only =93ex=94 and =93em=94 as valid optio= ns for the =93unit=94 key but I would also vote to accept either =93pt=94, = =93mm=94 etc. as unit value or to allow =93rulethickness=3D=85pt=94. actually it does accept more units but they were pretty small (needed an = 1/u) anyhow, in the next beta we can do \starttext \setupbars[unit=3Dmm,rulethickness=3D1] = bar\startbar[underbar]foo\stopbar bar\blank \setupbars[unit=3Dex,rulethickness=3D1] = bar\startbar[underbar]foo\stopbar bar\blank \setupbars[unit=3Dpt,rulethickness=3D1] = bar\startbar[underbar]foo\stopbar bar\blank \setupbars[unit=3Dpt,rulethickness=3D10pt] = bar\startbar[underbar]foo\stopbar bar\blank \stoptext but someone has do document it ----------------------------------------------------------------- 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 ___________________________________________________________________________= ________