[NTG-context] Spacing in \unit - SOLVED

Hans Hagen j.hagen at freedom.nl
Fri Oct 14 10:12:58 CEST 2022


On 10/13/2022 1:52 PM, Gavin via ntg-context wrote:
> Hi Oli,
> 
>> Thank four your effort. I found out, that the following definition of a new unit, i called it SI, results also in a correct spaceing in the math environment:
>>
>> \defineunit[SI][alternative=text]
>>
>> It seems, that the option alternative=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 significant problems with \unit in most situations. I’m still applying some of my solutions as well.
I'll look into it (with Mikael as some relates to math) once you're done 
playing and provide suggestions and tests.

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------



More information about the ntg-context mailing list