From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/72523 Path: news.gmane.org!not-for-mail From: Robin Kirkham Newsgroups: gmane.comp.tex.context Subject: \unit and Hertz, lux, and degrees/minutes/seconds Date: Fri, 18 Nov 2011 13:05:12 +1100 Message-ID: <40B58B5E-0738-438E-AEA5-47D06097E8BA@csiro.au> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1321581935 30639 80.91.229.12 (18 Nov 2011 02:05:35 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 18 Nov 2011 02:05:35 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Fri Nov 18 03:05:31 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 1RRDpa-0005ca-MT for gctc-ntg-context-518@m.gmane.org; Fri, 18 Nov 2011 03:05:30 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1B5D3CB0DE; Fri, 18 Nov 2011 03:05: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 Hg0bgwdvcVgi; Fri, 18 Nov 2011 03:05:26 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BA02ACB0BD; Fri, 18 Nov 2011 03:05:25 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1953DCB0BD for ; Fri, 18 Nov 2011 03:05:24 +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 z2jVWLoyoF7j for ; Fri, 18 Nov 2011 03:05:20 +0100 (CET) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by balder.ntg.nl (Postfix) with ESMTP id 7FA9FCA680 for ; Fri, 18 Nov 2011 03:05:20 +0100 (CET) Original-Received: from act-MTAout5.csiro.au (act-MTAout5.csiro.au [150.229.7.42]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id pAI25FS5009307 for ; Fri, 18 Nov 2011 03:05:18 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=csiro.au; i=robin.kirkham@csiro.au; q=dns/txt; s=email; t=1321581919; x=1353117919; h=from:content-transfer-encoding:subject:date:message-id: to:mime-version; bh=iOgK92FcYiE+M5VHiP5JZ1KbmfUXhXwDV/SHBurmEMM=; b=VfrF2tlhLkJDBSfvN1K9oeJQOYJTxOlb6RxubuTABIi8SU2CNC+X2f7q IAFUJ6AhfkhRyAYWzv5oDfm/EEEfGQj6MzJXTNZCkv+gi/Wv08c+jMDgh 6FY4zkuVCHAptnm; X-IronPort-AV: E=Sophos;i="4.69,529,1315144800"; d="scan'208";a="34669952" Original-Received: from exnsw-htca02.nexus.csiro.au ([130.155.117.127]) by act-ironport-int.csiro.au with ESMTP/TLS/RC4-MD5; 18 Nov 2011 13:05:12 +1100 Original-Received: from kir092m.clayton.csiro.au (138.194.25.80) by EXNSW-HTCA02.nexus.csiro.au (130.155.117.127) with Microsoft SMTP Server id 8.3.213.0; Fri, 18 Nov 2011 13:05:12 +1100 X-Mailer: Apple Mail (2.1084) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=150.229.7.42; country=AU; region=01; city=Canberra; latitude=-35.2833; longitude=149.2167; http://maps.google.com/maps?q=-35.2833,149.2167&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 06FWq5gQ2 - 46862ea9eef6 - 20111118 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 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:72523 Archived-At: Dear Hans, Many thanks for implementing space=small in \setupunits. It works nicely for me. However in the latest beta, Hertz is typeset as hz not Hz. It looks like the problem is line 154 of phys-dim.lua (it was typeset correctly a couple of days ago). Also the symbol for lux (line 198) should be lx [2]. Degrees, minutes and seconds of arc (also degrees Celsius) are an exception and are not supposed to have any space between the digits and the degree symbol [1], so to be correct, I think Context should by default veto any space between digits and numbers, in these cases only. BTW, NIST has a handy reference for anyone typesetting physical quantities [1], although the BIPM documentation is the canonical reference. Robin \starttext \unit{1 Hz} (should be Hz)\par \unit{180 deg} (should be no space)\par \stoptext [1] http://www.bipm.org/en/si/si_brochure/chapter5/5-3-2.html [2] http://physics.nist.gov/cuu/Units/ ___________________________________________________________________________________ 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 ___________________________________________________________________________________