From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/80001 Path: news.gmane.org!not-for-mail From: Andreas Mang Newsgroups: gmane.comp.tex.context Subject: Re: spacing: units in math Date: Fri, 21 Dec 2012 19:36:56 +0100 Message-ID: <35FA66AF-F284-41CA-BD5C-C63806A9937F@imt.uni-luebeck.de> References: <736FF04E-8816-4868-B06F-1F41434CA0BE@imt.uni-luebeck.de> <201211302043.16609.romain.diss@yahoo.fr> <2ACD0816-86A3-4A01-A1EF-1D0816845172@imt.uni-luebeck.de> <50D4A33E.6060402@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1356115028 698 80.91.229.3 (21 Dec 2012 18:37:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 21 Dec 2012 18:37:08 +0000 (UTC) Cc: mailing list for ConTeXt users To: Hans Hagen Original-X-From: ntg-context-bounces@ntg.nl Fri Dec 21 19:37:23 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 1Tm7TG-00027M-CS for gctc-ntg-context-518@m.gmane.org; Fri, 21 Dec 2012 19:37:22 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 449111020A; Fri, 21 Dec 2012 19:37:08 +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 6OQHBWFhWfF4; Fri, 21 Dec 2012 19:36:59 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 76E83101F5; Fri, 21 Dec 2012 19:36:59 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6CCE1101F5 for ; Fri, 21 Dec 2012 19:36:58 +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 upa42P8foc2h for ; Fri, 21 Dec 2012 19:36:57 +0100 (CET) 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 73E03101F3 for ; Fri, 21 Dec 2012 19:36:57 +0100 (CET) Original-Received: from ip2.rz.uni-luebeck.de (ip2.rz.uni-luebeck.de [141.83.100.72]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id qBLIauT4028541 for ; Fri, 21 Dec 2012 19:36:56 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgEFANyq1FCNU3BB/2dsb2JhbABFgmy3QYNNFnOCHgEBBAF5BQsCAQgOCi4yJQEBBA4gh3IHA7ZJjFeDYmEDiC2eJoJ1 Original-Received: from mail.imt.uni-luebeck.de ([141.83.112.65]) by ip2.rz.uni-luebeck.de with ESMTP; 21 Dec 2012 19:36:56 +0100 Original-Received: from mail.imt.uni-luebeck.de ([fe80::5194:66e8:27c3:6165]) by mail.imt.uni-luebeck.de ([fe80::5194:66e8:27c3:6165%10]) with mapi; Fri, 21 Dec 2012 19:36:55 +0100 Thread-Topic: [NTG-context] spacing: units in math Thread-Index: Ac3fqiatvEhOBnuHTH+RrO+8Wn4j2Q== In-Reply-To: <50D4A33E.6060402@wxs.nl> Accept-Language: en-US, de-DE Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US, de-DE X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.83.100.72; country=DE; latitude=51.0000; longitude=9.0000; http://maps.google.com/maps?q=51.0000,9.0000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 06ICiAUry - f7ec1803320c - 20121221 (trained as not-spam) 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:80001 Archived-At: Dear Hans, > On 12/19/2012 7:18 PM, Andreas Mang wrote: >> Hi there, >> >> sorry for being such a pain in the neck. >> >> Is there going to be a solution considering the spacing problems with the use of units (native mkiv command) in near future (within 2-3 weeks)? If there is none and I am not doing something wrong, I'll add a local work around every time I use units. As this is much work, I'd appreciate if someone told me if this is something that might be fixed soon. If not I'm good - I just need to know. >> >> Explanation of my problem: Maybe I am doing something wrong, but in the resulting document the spacing is bigger in math mode then in the text mode in case I use \units{...}. In particular, the distance for the decimal separator is as if I would type $1,2$ instead of $1{,}2$ (example: $\units{1,2}$).. > > can you try > > \appendtoks > \disablemathpunctuation > \to \everyunits Thanks for looking into this. The problem with the decimal separator is solved. You made my day with just 4 commands! Just that you know: I still observe a tiny difference in the blank space between numbers and times symbol (\times) when comparing math mode to standard text mode (minimal example below). AFAIK this does not make a difference. If I find the time i might just put every unit stuff into math mode (for consistency reasons). So my document is ready for being published (in this respect). It just still lacks content :) Happy holidays to all of you. Andreas % MINIMAL EXAMPLE \appendtoks \disablemathpunctuation \to \everyunits \starttext \unit{1,2e3 meter} $\unit{1,2e3 meter}$ \stoptext % MINIMAL EXAMPLE ___________________________________________________________________________________ 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 ___________________________________________________________________________________