Re: Incorrectly spaced feet and inches in \unit

Marco Patzer <[email protected]> Wed, 29 Apr 2026 21:27:13 +0200
Newsgroups gmane.comp.tex.context
Message-ID <20260429212713.60acd07d@homerow>
On Wed, 29 Apr 2026 15:48:57 +0200
Henning Hraban Ramm <[email protected]> wrote:

> \setupunit[name][separator=,space=,] (small, medium, big, normal…)

Can you provide an example how to configure the spacing? I can't get
this to work:

\setupunittext
  [foot=\math{^\prime},
   inch=\math{^\doubleprime}]

\starttext
  %% result: 1 ' 3 "
  \unit{1 foot} \unit{3 inch}

\setupunit
  [foot]
  [separator=,
   space=small,]

  %% result: 1 ' 3 " (still)
  \unit{1 foot} \unit{3 inch}

  %% desired:
  1\foot 3\inch
\stoptext

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
___________________________________________________________________________________