=text solves the problem with no spaces
between value and unit in the math environment.
That is a terrific solution that doesn’t require any messing with
phys-dim.mkxl. You do not need to define a new unit. I got your result using
this line:
\setupunits[alternative=text]
This fixed the most
roblem with no spaces
> between value and unit in the math environment.
That is a terrific solution that doesn’t require any messing with
phys-dim.mkxl. You do not need to define a new unit. I got your result using
this line:
\setupunits[alternative=text]
This fixed the most significant pro
On 5/15/2015 9:43 PM, Maggyero wrote:
I've tried the unit interface today, and I've noticed two issues with
the following example:
\setupunits[alternative=text]
\starttext
$\unit{-4.6e-3 km s^-1}$
\stoptext
1. Minus superscripts for UNITS (so 's^-1' here—not 'e-3', which is
fine) are converted
I've tried the unit interface today, and I've noticed two issues with the
following example:
\setupunits[alternative=text]
\starttext
$\unit{-4.6e-3 km s^-1}$
\stoptext
1. Minus superscripts for UNITS (so 's^-1' here—not 'e-3', which is fine)
are converted to hyphens with the 'text' unit
setting - if I comment the next line I get the same
behaviour
\setupunits[method=3,order=reverse,separator=small]
\unit{11,1e-1 micro mol per second} \par %no effect if I change the separator
(holds also for cdot)
$\unit{11,1e-1 micro mol per second}$ \par %wrong spacing
\unit{11,1e-1 per second
work correctly:
% 3: decimal comma, digits space
% 4: decimal point, digits space
% English input (order=normal)
\setupunits[method=3]
\unit{11,122.13 micro mol per second} \par
\setupunits[method=4]
\unit{21,222.23 micro mol per second} \par
% French input (order
Hi,
The next beta will have some fixes, additional units and provide
\unit{35 kilogram cubic meter}\par
\setupunits[unit][space=normal] \unit{35 kilogram cubic meter}\par
\setupunits[unit][space=big]\unit{35 kilogram cubic meter}\par
\setupunits[unit][space
Dear Hans,
Many thanks for implementing space=small in \setupunits. It works nicely for me.
However in the latest beta, Hertz is typeset as hz not Hz. It looks like the
problem is line 154 of phys-dim.lua (it was typeset correctly a couple of days
ago).
Also the symbol for lux (line 198
to international standards, where they exist (but
a \setupunits override it probably called for).
Robin___
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl
and the °, or between the ° and the C.
I agree they vary, and no space before the °C is quite common (and
frequently my own practice too). However in setting default
behaviour for Context I am inclined to favour conforming to
international standards, where they exist (but a \setupunits
override
(but a \setupunits
override it probably called for).
I have no opinion as to what the default behaviour should be, but it
would certainly be useful to have spacing for ° temperature
configurable separately from that for other units.
so, best is that those asking for it come up with a list
Dear Context folks,
Could I request a parameter in \setupunits to control the space between the
number and the units that is placed by \unit{}.
In phys-dim.mkiv it looks like there is an intention to do so (parameter
space) but it's commented out.
I actually would like about half the space
\unit{35 kilogram cubic meter}
\stoptext
@Hans: Can you add a option to replace \cdot with \thinspace, e.g.
unitseparator=small|medium|...|cdot
ok, we will have (normal=cdot):
\starttext
\unit{35 kilogram cubic meter}
\setupunits[unit][separator=small]
\unit{35 kilogram cubic meter
13 matches
Mail list logo