From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/79497 Path: news.gmane.org!not-for-mail From: Romain Diss Newsgroups: gmane.comp.tex.context Subject: Re: A problem with units Date: Sat, 24 Nov 2012 08:50:28 +0100 Message-ID: <201211240850.29120.romain.diss@yahoo.fr> References: <20121123235619.40993358@aga-netbook> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1353743440 17019 80.91.229.3 (24 Nov 2012 07:50:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 24 Nov 2012 07:50:40 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Nov 24 08:50:51 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 1TcAVn-0006Ea-G1 for gctc-ntg-context-518@m.gmane.org; Sat, 24 Nov 2012 08:50:51 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7A3E110236; Sat, 24 Nov 2012 08:50:40 +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 PhC+kDhle7cd; Sat, 24 Nov 2012 08:50:38 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id C219410224; Sat, 24 Nov 2012 08:50:38 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 815E010224 for ; Sat, 24 Nov 2012 08:50:37 +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 aKAbiqfT+k3h for ; Sat, 24 Nov 2012 08:50:31 +0100 (CET) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id B22141021D for ; Sat, 24 Nov 2012 08:50:31 +0100 (CET) Original-Received: from nm5-vm0.bullet.mail.ukl.yahoo.com (nm5-vm0.bullet.mail.ukl.yahoo.com [217.146.183.232]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id qAO7hgek005965 for ; Sat, 24 Nov 2012 08:43:43 +0100 Original-Received: from [217.146.183.208] by nm5.bullet.mail.ukl.yahoo.com with NNFMP; 24 Nov 2012 07:50:29 -0000 Original-Received: from [77.238.184.59] by tm1.bullet.mail.ukl.yahoo.com with NNFMP; 24 Nov 2012 07:50:29 -0000 Original-Received: from [127.0.0.1] by smtp128.mail.ukl.yahoo.com with NNFMP; 24 Nov 2012 07:50:29 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.fr; s=s1024; t=1353743429; bh=rEFmEGNYzXqVJ/8goIR/2BLBCgruI8pLQHmvvtusbZc=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:From:To:Subject:Date:User-Agent:References:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id; b=tQ+GALQBJahVmFYcUmg0ajDG48aZ5qQ0hnGisAwZ4QvjNcbrGJzNVPYF6U8I1QqMN2slmL0rsiF2/QoWGHFaqGG6vXNSxNw5sLagwCn/VOqGEAki9cx0kk7VfJP/gvIqGfhfuortelEaSRxBvGcwRFRioZ0hgXsfgdkiVYTEOv4= X-Yahoo-Newman-Id: 968026.5974.bm@smtp128.mail.ukl.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: sM4.63UVM1nukEe9MqMKnyygqtipfF1iPSs2tneKySxufP. 5pccnefG40aDDMHl11ETjBAesN1QUKnBhIFTlR27lPdArcj30faslJWc9Uwc yeRAYh9z2yEIo0dPHCyJDAIZUyFUr9tudNFOJc2EW_4L57LV8eTY1zpEccx4 2BVTdkqIaNqLO_JrQ5uuOmPTglgQpzVkuDsnQHzu1cGuTp1YlTqEVk103vmm GKxiIfTCdxDaOuj_OTZvzEB5Rk_LkBq.ekkRHBs0Mq1mNaa8oa032xQjXGBb 5LtWtFg3jYeE_UzQBmIKu8cF.ihgyxWzAHiZEq8LXavrmfQnDo1xqb3egMoA 0.i_8h_4d60fdQAe_JAHBTpHGDPR6D46A_LspBJ8v1kTJ7O7Ke3TbNGZ7v2D Nj5O4GxJ9TQ-- X-Yahoo-SMTP: S1hYNv6swBAmdDgiTrR1jsHHwRWtJLYt Original-Received: from nereid.localnet (romain.diss@89.226.19.105 with plain) by smtp128.mail.ukl.yahoo.com with SMTP; 24 Nov 2012 07:50:29 +0000 GMT User-Agent: KMail/1.13.7 (Linux/3.2.0-4-amd64; KDE/4.8.4; x86_64; ; ) In-Reply-To: <20121123235619.40993358@aga-netbook> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=217.146.183.232; country=GB; latitude=54.0000; longitude=-2.0000; http://maps.google.com/maps?q=54.0000,-2.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0WIrjHGdv - e92975fea565 - 20121124 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 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:79497 Archived-At: Hi, Le vendredi 23 novembre 2012, Marcin Borkowski a =E9crit : > being quite happy with things like \unit{10 km/h}, once I did \unit{45 > min}, only to get "45 m" in the resulting file. I suspect that \unit > does not know about minutes; is there any way to teach it;)? One can add units with \registerunit[unit] and \setupunittext (see line 652= in = phys-dim.mkiv): \starttext \registerunit [unit] [minute=3Dminute] \setupunittext [minute=3Dmin] \unit{45 minute} \stoptext However, I'm unable to explain what exactly \registerunit or \setupunittext = does. -- = Romain Diss ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________