Hi,
Probably not a good solution (I expect it can break in many situations,
e.g. if something else in the document changes the space before units), but
maybe something like this can work in simple cases? (The ‘0.25em’ may need
to be adapted.)
\newdimen\negativeSpaceFoot
\negativeSpaceFoot=-0.25em
\setupunittext
[foot=\kern\negativeSpaceFoot ',
inch=\kern\negativeSpaceFoot "]
\starttext
\unit{1 foot} \unit{3 inch}
\stoptext
Cheers,
Florent
Le mer. 29 avr. 2026 à 12:52, Marco Patzer <[email protected]> a écrit :
> Hi!
>
> How can I configure \unit to correctly space feet and inches?
>
> \setupunittext
> [foot=',
> inch="]
>
> \starttext
> %% result: 1 ' 3 "
> \unit{1 foot} \unit{3 inch}
>
> %% desired: 1' 3"
> \stoptext
>
> LMTX 2026.04.27
>
> Marco
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : [email protected] /
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
>
> ___________________________________________________________________________________
>
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] /
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________