From: Ian Lawrence <physics.rooted@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Possible bug in \unit
Date: Thu, 8 Dec 2011 20:26:38 +0000 [thread overview]
Message-ID: <891E592D-325C-45D4-B1EB-D789C173A4C0@gmail.com> (raw)
In-Reply-To: <20111207222740.5ec7dc28@homerow>
I solved this = getting what I wanted by writing my own macro:
\define[3]\physicalquantitye{\hbox{#1 \times \unit{10^#2 #3}}}
% \physicalquantitye{number}{exponent}{unit} -- gives short form of unit
That makes sense to me and is working fine.
There are a few more like this on the wiki (units page), in case anyone finds them useful.
On 7 Dec 2011, at 21:27, Marco wrote:
>
>
> Another thing:
>
> \unit{3.4e-5} yields to 3.4⁻⁵ that's expected according to
> the manual. But how to get 3.4·10⁻⁵ (either with \cot or
> \times)?
>
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2011-12-08 20:26 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-07 21:27 Marco
2011-12-07 22:59 ` Mojca Miklavec
2011-12-07 23:12 ` Marco
2011-12-07 23:20 ` Mojca Miklavec
2011-12-08 5:51 ` Mikael P. Sundqvist
2011-12-08 20:26 ` Ian Lawrence [this message]
2011-12-09 19:22 ` Hans Hagen
2011-12-09 19:41 ` Marco
2011-12-09 19:54 ` Hans Hagen
2011-12-09 21:01 ` Marco
2011-12-09 21:15 ` Hans Hagen
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=891E592D-325C-45D4-B1EB-D789C173A4C0@gmail.com \
--to=physics.rooted@gmail.com \
--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).