From: Hans Hagen <pragma@wxs.nl>
Cc: ntg-context@ntg.nl
Subject: Re: special math minus
Date: Thu, 15 Feb 2001 16:52:38 +0100 [thread overview]
Message-ID: <3.0.6.32.20010215165238.01658800@server-1> (raw)
In-Reply-To: <3A8BE62C.512611BB@elvenkind.com>
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
-------------------------------------------------------------------------
prev parent reply other threads:[~2001-02-15 15:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-02-15 13:17 Hans Hagen
2001-02-15 14:22 ` Taco Hoekwater
2001-02-15 15:52 ` Hans Hagen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3.0.6.32.20010215165238.01658800@server-1 \
--to=pragma@wxs.nl \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).