Re: [NTG-context] Spacing in \unit - SOLVED

2022-10-14 Thread Hans Hagen via ntg-context
=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

Re: [NTG-context] Spacing in \unit - SOLVED

2022-10-13 Thread Gavin via ntg-context
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

Re: [NTG-context] 2 issues in phys-dim.mkiv

2015-05-16 Thread Hans Hagen
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

[NTG-context] 2 issues in phys-dim.mkiv

2015-05-15 Thread Maggyero
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

[NTG-context] problems with units

2012-11-29 Thread Andreas Mang
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

Re: [NTG-context] \unit and french

2012-10-10 Thread Sietse Brouwer
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

[NTG-context] units

2011-11-17 Thread Hans Hagen
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

[NTG-context] \unit and Hertz, lux, and degrees/minutes/seconds

2011-11-17 Thread Robin Kirkham
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

Re: [NTG-context] \unit and Hertz, lux, and degrees/minutes/seconds

2011-11-17 Thread Robin Kirkham
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

Re: [NTG-context] \unit and Hertz, lux, and degrees/minutes/seconds

2011-11-17 Thread Pontus Lurcock
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

Re: [NTG-context] \unit and Hertz, lux, and degrees/minutes/seconds

2011-11-17 Thread Hans Hagen
(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

[NTG-context] space between number and units in \unit

2011-11-15 Thread Robin.Kirkham
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

Re: [NTG-context] Missing space between digit and unit with the new unit-command

2011-07-01 Thread Hans Hagen
\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