From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/4088 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: special math minus Date: Thu, 15 Feb 2001 16:52:38 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <3.0.6.32.20010215165238.01658800@server-1> References: <3.0.6.32.20010215141710.0195d810@server-1> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: main.gmane.org 1035394777 22763 80.91.224.250 (23 Oct 2002 17:39:37 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 17:39:37 +0000 (UTC) Cc: ntg-context@ntg.nl Original-To: Taco Hoekwater In-Reply-To: <3A8BE62C.512611BB@elvenkind.com> Xref: main.gmane.org gmane.comp.tex.context:4088 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:4088 At 03:22 PM 2/15/01 +0100, Taco Hoekwater wrote: >Hans Hagen wrote: >> >> Hi, >> >> Sometimes a special minus sign is used to distinguish between a - b and -b. >> In the second case, the sign is alightly raised and looks more like a >> hyphen than a math minus. >> >> Is there a pre-coocked macro for that? [the problem is that \hbox's are not >> zware of superscript status and therefore cannot be used, > >Not one I know of, so you need a mathchoice instead. Something like this if you don't know it, then there is no -) >should work: > >\def\doneg{\mathord{{#1\raise.2ex\hbox{{#1 -}}}}} > >\def\negative{\mathchoice{\doneg{\tf}}{\doneg{\tf}}{\doneg{\tfx}}{\doneg{\t fxx}}} Thanks, I now have: \def\domminus#1#2% {\mathord{{#2\raise.#1ex\hbox{#2-}}}} \def\mminus {\mathchoice {\donegative5\tf} {\donegative5\tf} {\donegative4\tfx} {\donegative3\tfxx}} $\negative10^{\negative10^{\negative10}}$ Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com -------------------------------------------------------------------------