Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

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.

Edit: 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):

enter image description here

If I set the first element of LinebreakArguments (of the inline cell) to 0 I obtain somewhat predictable behavior:

enter image description here

Below is the behavior I am trying to produce. I've just styled the text rather than use an inline cell:

enter image description here

share|improve this question
    
It seems an inline cell must be in a rectangle area, so the format you want might not be able to achieve by a single inline cell. –  Silvia Apr 19 '13 at 15:12
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.