When I insert an inline cell into a text cell that is too long for the whole inline cell to fit on the current line, Mathematica pushes the whole inline cell to the beginning of the next line. That is, Mathematica seems to prefer dropping the inline cell to the next line over inserting a line break within it. Can I force Mathematica to fit as much of an inline cell on a line as possible and put as little as possible on the next line?
I have played around with
LinebreakAdjustments for the inline cell and the containing cell by setting various values to 0, but have not been able to produce the behavior I would like.
If I do not modify
LinebreakAdjustments for the inline cell or modify any element besides the first (leaving the first element untouched), I get results like this (blue is an inline cell):
If I set the first element of
LinebreakArguments (of the inline cell) to 0 I obtain somewhat predictable behavior:
Below is the behavior I am trying to produce. I've just styled the text rather than use an inline cell: