Created attachment 128626 [details]
Exaggerated spacing in inline equations
LO Writer has a problem when wtiting inline equations: There is a big spacing before and after the equaion that makes it impossible to use inline equations separated by commas.
The solution is to set the default value of the left and right Object->Wrap->Spacing to zero. This will make possible using inline equations separated by commas or even in a sentence finishing with a fullstop (see attachment).
Build ID: 8a2a3f1032b4e60f7607e3ecb1ff99a6bb9af7f9
CPU Threads: 4; OS Version: Linux 4.2; UI Render: GL; VCL: gtk2; Layout Engine: new;
Locale: ca-ES (ca_ES.UTF-8); Calc: group
No, the current default spacing is reasonable for general input of formulas.
In line on a common base with a string of text is a special case that is simply handled per formula object with the Wrap value as in comment 0 (or/and possibly setting the formula's internal spacing with edit Format -> Spacing -> Category:Borders)
Setting different defaults is done by modifying the Frame style -> Formula where tighter left/right wrap can be set.
And within the Math editor the Format -> Spacing -> Category:Borders can be set to take a new default to produce more appealing in line spacing. The two becomes a per-user default for new formulas.
Imagine it would be possible to develop a new Frame style -> FormulaInline style to simplify what is currently a per-user customization.
*** Bug 103865 has been marked as a duplicate of this bug. ***
@Regina, thoughts on what would be a good way to compose a new Frame -> Formula style for equations in line with text--mix of Wrap and Spacing:Borders?
Would we need two? FormulaInline, and FormulaInlinePunct for positioning at end of sentence?
After the procedure 'right Object->Wrap->Spacing to zero' under comment0 was used for delta t sub 0 in the attached screenshot, it still looks different in terms of spacing compared the spacing in the next regular text c=2, and h=3,
Created attachment 128669 [details]
Created attachment 128672 [details]
example with Wrap and Borders
In this clip of inline OLE formula objects. The right side Wrap for the Frame -> Formula style has been reduced to 0, and each formulas Spacing -> Borders right value reduced to 0.50 mm.
Trivial to set, but would be better it we can capture a better default to apply with a Frame style for the inline formulas. It would be more consistent and only require assignment of the style rather than directly formatting each formula object.
(In reply to Ben from comment #6)
> Created attachment 128669 [details]
> space differences
If you want the glyphs for the operators to match, you'll need to set the text font to match the formula font, or vice versa. Formula editor will use glyphs from OpenSymbol and a few from Libreation Serif by default.
The current outer margin given by the wrap property of the formula frame style is _always_ wrong. It should always be 0, not only for inline formulas. The defaults have to be changed. I work around the problem by using my own document template as default. I think, the reporter is right.
There is no need for a special frame style for equations followed by a full stop.
(In reply to V Stuart Foote from comment #7)
> In this clip of inline OLE formula objects. The right side Wrap for the
> Frame -> Formula style has been reduced to 0, and each formulas Spacing ->
> Borders right value reduced to 0.50 mm.
Both margins in Frame > Formula style need to be zero.
For the OLE formula itself, I would not change the setting in Format -> Spacing -> borders with this issue, because that is a different problem. Currently these settings go to settings.xml, although MathML is the normative part of the equation. Before changing something there, you have to investigate, what defaults for these spacing in MathML other application e.g. browsers use.
The left right spacing for the "Formula" frame type is set to 114 twips. It would be simple to change that to 0. Great for an inline formula. But what of when a complex multi-line formula is inserted it has to use the same spacing.
Formulas can of course be styled the generic OLE frame, but that anchors and aligns differently.
Why not additional frame style formats?
(In reply to V Stuart Foote from comment #11)
> The left right spacing for the "Formula" frame type is set to 114 twips. It
> would be simple to change that to 0. Great for an inline formula. But what
> of when a complex multi-line formula is inserted it has to use the same
The default, when inserting an equation, is a Math-OLE anchored "as character" with assigned frame style "Formula". So an equation is initially always "inline" and you need to take additional steps to make it floating.
A margin of 0 is correct too, in case you put the equation as first and only item in a line. I do not see why complex multi-line formulas would need a horizontal margin.
> Why not additional frame style formats?
This issue is about the default style. Additional frame styles would not solve this problem.
*** Bug 111766 has been marked as a duplicate of this bug. ***
*** This bug has been marked as a duplicate of bug 65067 ***