On 8/5/26 1:46 PM, Udi Fogiel wrote:
On Wednesday, August 5th, 2026 at 7:35 PM, Richard Kimberly Heck via lyx-users 
<[email protected]> wrote:

There is
additional space above the displayed equation in the latter case. I take
it that this is in the inter-paragraph spacing. Please correct me if the
additional space is coming from somewhere else. But I get the same in
the latter case as if I'd written:

test

~
$$x=y$$

[....]

Since you used $ in vertical mode, LuaTeX started an indented paragraph, i.e. a 
paragraph with a hbox node, so LuaTeX does not discard it, but it is visually 
empty and might seem like a vertical space.

You can see the difference with \noindent $$x=y$$. In this case there is no 
indent box in the paragraph, so LuaTeX will discard it.

Indeed! And PDFLaTeX does the same thing.

So that means that the OP's original problem can be solved by using "Do not indent paragraph" under Edit> Paragraph Settings. Strangely enough, this works even immediately following a section heading, when the paragraph wouldn't be indented anyway.

The attached demonstrates this. Note the extra space in the first case: there's the empty line there. In the second (\noindent'ed) case, the displayed equation appears at the same position as the text in the third.

Riki

Attachment: noindent.lyx
Description: application/lyx

-- 
lyx-users mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-users

Reply via email to