From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/11901 Path: main.gmane.org!not-for-mail From: Simon Pepping Newsgroups: gmane.comp.tex.context Subject: Re: Nath, and problems smashing Date: Sat, 12 Apr 2003 22:37:52 +0200 Sender: ntg-context-admin@ntg.nl Message-ID: <20030412203752.GB5029@scaprea> References: <3445877568.20030411224228@iol.it> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1050180002 20006 80.91.224.249 (12 Apr 2003 20:40:02 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 12 Apr 2003 20:40:02 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Sat Apr 12 22:40:00 2003 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 194Rn6-0005CK-00 for ; Sat, 12 Apr 2003 22:40:00 +0200 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 971A410B22; Sat, 12 Apr 2003 22:40:35 +0200 (MEST) Original-Received: from hgatenl.hobby.nl (ns.hobby.nl [212.72.224.8]) by ref.ntg.nl (Postfix) with ESMTP id 576E510B18 for ; Sat, 12 Apr 2003 22:37:43 +0200 (MEST) Original-Received: from hgatenl.hobby.nl (localhost [127.0.0.1]) by hgatenl.hobby.nl (8.12.6/8.12.2) with ESMTP id h3CKbg38095329 for ; Sat, 12 Apr 2003 22:37:42 +0200 (CEST) (envelope-from spepping@scaprea.hobby.nl) Original-Received: (from uucp@localhost) by hgatenl.hobby.nl (8.12.6/8.12.2/Submit) with UUCP id h3CKbgOQ095328 for ntg-context@ntg.nl; Sat, 12 Apr 2003 22:37:42 +0200 (CEST) Original-Received: from simon by scaprea.salix.nl with local (Exim 3.35 #1 (Debian)) id 194Rl2-0001M1-00; Sat, 12 Apr 2003 22:37:52 +0200 Original-To: ntg-context@ntg.nl Mail-Followup-To: ntg-context@ntg.nl Content-Disposition: inline In-Reply-To: <3445877568.20030411224228@iol.it> User-Agent: Mutt/1.3.28i 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:11901 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:11901 Hi, On Fri, Apr 11, 2003 at 10:42:28PM +0200, Giuseppe Bilotta wrote: > Hello, > > as I might have mentioned before, I'm working on a ConTeXt module > that would give part of the functionality available in the LaTeX > package Nath; as I'm not really an expert in either of the topics > involved, I'm going at it slowly, starting with the simple things; > the first thing I implemented was a natural way to write > extensible arrows. It came up pretty fine and works quite good, > but there seems to be a sizing problem. A good idea. > As you may notice if you compile the nathtest document, sub and > superscripts to the single-line arrows are much to high or low; > browsing about I noticed that in AMS-LaTeX the minus that extends > the single-line arrows is "smashed", to prevent this problem; I > did try to smash it (replacing \mathop- with \mathop{\smash-}), > but it didn't seem to help. You require two smashes to get the height and depth equal to that of rightarrow. \usemodule[nath] \starttext Arrowfiller: \setbox0\hbox to 6pt{\arrowfiller \hfill } height: \the\ht0, depth: \the\dp0. Smash in arrowfiller: \def\arrowfiller {\cleaders \hbox {\mathematics {\mkern -3mu\mathord {\smash -}\mkern -3mu}}} \setbox0\hbox to 6pt{\arrowfiller \hfill } height: \the\ht0, depth: \the\dp0. Another smash in the opening minus: \setbox0\hbox {$\mathop {\mathopen {\smash -}\mkern -6mu \doarrowfill {\ifsuper \the \supertoks \fi }{\ifsuber \the \subertoks \fi } \mkern -6mu\mathclose {\rightarrow }}$} height: \the\ht0, depth: \the\dp0. Rightarrow: \setbox0\hbox {$\rightarrow$} height: \the\ht0, depth: \the\dp0. \stoptext Regards, Simon -- Simon Pepping email: spepping@scaprea.hobby.nl