[NTG-context] Automatic thousands separation in \unit

Marco Patzer lists at homerow.info
Thu Jan 31 13:28:00 CET 2019


I'm wondering if there's a way to have automatic thousands separation in the
\unit command? \spaceddigits does that, but it doesn't work inside \unit. And
using both would be quite verbose to write. Example:

  %% no thousands separation
  \unit{123456789 volt}

  %% manual thousands separation works
  \unit{123,456,789 volt}

  %% automatic thousands separation, but not using \unit

  %% fails, no output
  \unit{\spaceddigits{123456789} volt}


More information about the ntg-context mailing list