Horizontal fractional spacing in math mode?

#h(1fr) does not seem to work as I would expect in math mode – that is, consume as much space as available. Does someone know why, and could it work?

This question was already asked in How to add fractional spacing in equation? , and in that topic the intent was to easily get right-alignment for long lines:

$
  <long first line, left-aligned> \
  #h(1fr) <long second line, right-aligned>
$

I hae a different use-case for this, which is have a bunch of different mathematical formulas on the same line, with comfortable spacing between them: if there is a single formula, I want it centered, two formulas should be spread on the line (one middle-left one middle-right), etc. I would naively expect the following to work:

$
  #h(1fr)
  content on the left
  #h(1fr)
  content in the middle
  #h(1fr)
  content on the right
  #h(1fr)
$

Aside: do you know of a package that provides a convenient way to do this? (Ideally it would also be able to generate line splits, that is, I provide as many formulas as I want and it spreads them across several lines, with nice spacing in each line. But at least a line-level solution would be nice.) In LaTeX i use the mathpar environment of mathpartir (PDF) to do this, which describes itself as “a paragraph mode for formulas”.

This layout approach, with several formulas on the same line, is extremely common in my scientific field, see for example all the boxed figures in this paper from 2003. In that example, as in my use-cases, the formulas are “inference rules” (look like fractions) as produced by typst’s curryst package.

See Fractional units are broken in math · Issue #5780 · typst/typst · GitHub.