From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/77237 Path: news.gmane.org!not-for-mail From: "Meer, H. van der" Newsgroups: gmane.comp.tex.context Subject: Re: setupbars Date: Sun, 8 Jul 2012 21:40:06 +0000 Message-ID: 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: multipart/mixed; boundary="===============2034455412==" X-Trace: dough.gmane.org 1341783625 20343 80.91.229.3 (8 Jul 2012 21:40:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 8 Jul 2012 21:40:25 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Jul 08 23:40:25 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 1SnzDL-0004ec-7h for gctc-ntg-context-518@m.gmane.org; Sun, 08 Jul 2012 23:40:23 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0F311101EA; Sun, 8 Jul 2012 23:40:22 +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 MFJuvAJHCnWj; Sun, 8 Jul 2012 23:40:20 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 35698101E6; Sun, 8 Jul 2012 23:40:20 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4D54D101E6 for ; Sun, 8 Jul 2012 23:40: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 GW7SyDhURUkH for ; Sun, 8 Jul 2012 23:40:16 +0200 (CEST) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id 98863101DD for ; Sun, 8 Jul 2012 23:40:16 +0200 (CEST) Original-Received: from jansen.uva.nl (jansen.uva.nl [146.50.108.229]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q68LnEXp021481 for ; Sun, 8 Jul 2012 23:49:20 +0200 Original-Received: from bijvoet.uva.nl (146.50.108.241) by jansen.uva.nl (146.50.108.229) with Microsoft SMTP Server (TLS) id 14.1.355.2; Sun, 8 Jul 2012 23:40:07 +0200 Original-Received: from SNELDERS.uva.nl ([fe80::38a4:b0d2:dd9b:541]) by bijvoet.uva.nl ([::1]) with mapi id 14.01.0355.002; Sun, 8 Jul 2012 23:40:06 +0200 Thread-Topic: [NTG-context] setupbars Thread-Index: AQHNXUelCP7POetbh0Wf/kiH5LXVtJcfuMMAgAAPn4A= In-Reply-To: <8155A316-76DE-469A-92A9-AA427F7E1B22@gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [82.95.102.36] X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=146.50.108.229; country=NL; region=07; city=Amsterdam; latitude=52.3500; longitude=4.9167; http://maps.google.com/maps?q=52.3500,4.9167&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01HvVNemi - a8b125244c3b - 20120708 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.72 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:77237 Archived-At: --===============2034455412== Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_AD6EFEBBA73A4522B38C0BD20D638915uvanl_" --_000_AD6EFEBBA73A4522B38C0BD20D638915uvanl_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Thansk, I see. \setupbars doesn't give a hit on ConTeXt-wiki, so I couldn't find th= is. Still I dare say, it is a pity that [rulethickness=3D] gets a different mea= ning here than elsewhere. I would like to ask to reconsider, because I stro= ngly believe in consistency in the API (though I am ready to admit that it = is not easy to maintain and confess guilty myself at more than one occasion= ). That is either change all rulethickness's everywhere to this scheme or o= therwise. Or did this already happened and did I miss that? And of course, = the easiest solution would be if the code itself could sort out the differe= nce between having been given a fraction or a length. Hans van der Meer On 8 jul. 2012, at 22:44, Wolfgang Schuster wrote: Am 08.07.2012 um 22:24 schrieb Meer, H. van der: This gives an error: \starttext \setupbars[rulethickness=3D4pt] \stoptext ! LuaTeX error
:1: malformed number near '4pt'. ConTeXt ver: 2012.07.04 23:48 MKIV fmt: 2012.7.6 int: english/english Elsewhere this is ok, as for example in: \framed[rulethickness=3D4pt]{} Strangely in node-rul.mkiv I see: \c!rulethickness=3D2.5 whereas in pack-rul.mkiv: \c!rulethickness=3D\linewidth I am inclined to spot an error here, or at least an inconsistency in the AP= I. \setupbars[rulethickness=3D0.5] \starttext \setupbars[unit=3Dex]\underbar{ex} \setupbars[unit=3Dem]\underbar{em} \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.n= l/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________ --_000_AD6EFEBBA73A4522B38C0BD20D638915uvanl_ Content-Type: text/html; charset="us-ascii" Content-ID: <14659696BAAAC44B9CE3E7C70DE9FACF@uva.nl> Content-Transfer-Encoding: quoted-printable Thansk,

I see. \setupbars doesn't give a hit on ConTeXt-wiki, so I couldn't fi= nd this.
Still I dare say, it is a pity that [rulethickness=3D] gets a differen= t meaning here than elsewhere. I would like to ask to reconsider, because I= strongly believe in consistency in the API (though I am ready to admit tha= t it is not easy to maintain and confess guilty myself at more than one occasion). That is either change all ruleth= ickness's everywhere to this scheme or otherwise. Or did this already happe= ned and did I miss that? And of course, the easiest solution would be if th= e code itself could sort out the difference between having been given a fraction or a length.

Hans van der Meer



On 8 jul. 2012, at 22:44, Wolfgang Schuster wrote:


Am 08.07.2012 um 22:24 schrieb Meer, H. van der:

This gives an error:

\starttext
\setupbars[rulethickness=3D4pt]
\stoptext

! LuaTeX error <main ctx instance>:1: malfo= rmed number near '4pt'.
ConTeXt  ver: 2012.07.04 23:48 MKIV  fm= t: 2012.7.6  int: english/english

Elsewhere this is ok, as for example in: \framed[= rulethickness=3D4pt]{}
Strangely in node-rul.mkiv I see: \c!rulethicknes= s=3D2.5
whereas in pack-rul.mkiv:  \c!rulethickness= =3D\linewidth

I am inclined to spot an error here, or at least = an inconsistency in the API.


\setupbars[rulethickness=3D0.5]

\starttext

\setupbars[unit=3Dex]\underbar{ex}

\setupbars[unit=3Dem]\underbar{em}

\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 / <= a href=3D"http://www.ntg.nl/mailman/listinfo/ntg-context"> http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.= nl / http://tex.aanhet.net
archive  : = http://foundry.supelec.fr/projects/contextrev/
wiki     : http://= contextgarden.net
___________________________________________________________________________= ________

--_000_AD6EFEBBA73A4522B38C0BD20D638915uvanl_-- --===============2034455412== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============2034455412==--