From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/15263 Path: main.gmane.org!not-for-mail From: Giuseppe Bilotta Newsgroups: gmane.comp.tex.context Subject: Re[2]: Known nath bugs? Date: Sat, 29 May 2004 16:13:17 +0200 Sender: ntg-context-admin@ntg.nl Message-ID: <899876099.20040529161317@iol.it> References: <8F2B73AE-B0BD-11D8-A6BA-0003939959D2@t-online.de> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1085840203 21348 80.91.224.253 (29 May 2004 14:16:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 29 May 2004 14:16:43 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Sat May 29 16:16:36 2004 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BU4dY-0000WA-00 for ; Sat, 29 May 2004 16:16:36 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 474DB10B9A; Sat, 29 May 2004 16:11:45 +0200 (MEST) Original-Received: from smtp2.libero.it (smtp2.libero.it [193.70.192.52]) by ref.ntg.nl (Postfix) with ESMTP id BD3B910B86 for ; Sat, 29 May 2004 16:09:40 +0200 (MEST) Original-Received: from ppp-251-140.29-151.libero.it (151.29.140.251) by smtp2.libero.it (7.0.027-DD01) id 406C250400E300E8 for ntg-context@ntg.nl; Sat, 29 May 2004 16:14:56 +0200 X-Priority: 3 (Normal) Original-To: ntg-context@ntg.nl In-Reply-To: Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:15263 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:15263 Saturday, May 29, 2004 Sebastian Sturm wrote: > Hi, > the delimiter sizing is working now; i had to load the module directly > before \starttext. Yes, this is generally true. All modules should get loaded before \starttext. > However, the units module still isn't working when nath is > loaded. Is it supposed to? Well, I had never tested them together, and given the very extensive changes nath enacts, I'm not surprised it doesn't work. Anyway, it looks like the fix is easy: the problem is that dimension commands are not protected (unexpandable). In m-units.tex, look for the lines \def\dimensionprefix#1% {\gdef\thedimensionprefix{#1}} \def\dimensionaddfix#1% {\unskip %\mathematics{\umathematicstypeface#1}% \ustartmathmode\umathematicstypeface#1\ustopmathmode \nobreak \hskip\dimensionaddfixsignal} \def\dimensionnopfix#1% {\dontbreakdimension \ifdim\scratchdimen=\dimensionpowersignal\relax \ustartmathmode \else \ustartmathmode \udimensionhalfspace \nobreak \fi \umathematicstypeface#1% \ustopmathmode \nobreak \hskip\dimensionsignal} \def\dimensionmidfix#1% {\dontbreakdimension \ifdim\scratchdimen=\dimensionpowersignal\relax \ustartmathmode \udimensionbackspace \nobreak \else \ustartmathmode \fi \umathematicstypeface#1% \ustopmathmode \nobreak \hskip\dimensionmidfixsignal} \def\dimensionpower#1% {\gdef\thedimensionpower{#1}} and change each \def\dimension... into \unexpanded\def\dimension.... This should solve the problem. I'm not 100% sure this is the best solution, though. An alternative could be to keep those definition as they are and instead make unexpandable the actual commands (\Micro etc). Hans, what do you think? -- Giuseppe "Oblomov" Bilotta