From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/4087 Path: main.gmane.org!not-for-mail From: Taco Hoekwater Newsgroups: gmane.comp.tex.context Subject: Re: special math minus Date: Thu, 15 Feb 2001 15:22:36 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <3A8BE62C.512611BB@elvenkind.com> 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 Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1035394776 22756 80.91.224.250 (23 Oct 2002 17:39:36 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 17:39:36 +0000 (UTC) Original-To: ntg-context@ntg.nl Xref: main.gmane.org gmane.comp.tex.context:4087 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:4087 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 should work: \def\doneg{\mathord{{#1\raise.2ex\hbox{{#1 -}}}}} \def\negative{\mathchoice{\doneg{\tf}}{\doneg{\tf}}{\doneg{\tfx}}{\doneg{\tfxx}}} -- groeten, Taco