Aw: Re: Aw: Re: from 2.5.0 to 2.5.1

Richard Kimberly Heck rikiheck at gmail.com
Mon Aug 3 17:07:20 UTC 2026


On 8/2/26 1:54 PM, Patrick Dupre wrote:
> *Sent: *Sunday, August 2, 2026 at 5:25 PM
> *From: *"Richard Kimberly Heck" <rikiheck at gmail.com>
> *To: *"Patrick Dupre" <pdupre at gmx.com>, lyx-users at lists.lyx.org
> *Subject: *Re: Aw: Re: from 2.5.0 to 2.5.1
> On 7/31/26 3:50 AM, Patrick Dupre wrote:
>
>     This example shows that a newline is necessary, after a section
>     (subsection, etc) title, to set a newline to avoid that the
>     equation be turned into the section title.
>     Actually, this newline is set automatically.
>     This does not happen with text with are in standard mode without
>     extra newline.
>     I never noticed this behavior in the previous versions.
>
> I'm still not entirely sure I understand what the issue is. But the 
> displayed equation that follows the subsection title is part of that 
> title. That's normal and correct. Imagine that you wanted to have a 
> displayed equation as part of the title. Shouldn't you be able to do that?
>
> How else would you do it? If you put the cursor after the displayed 
> equation and type something, you'll see that you're still in the 
> subsection environment.
>
> So if you want the very first thing in the section to be a displayed 
> equation, then you need to have a line break, so the displayed 
> equation can be in Standard.
>
> I do not think so. Text and equation must be treated the same way.

Sorry, I've been confused about where the newline is: In LyX or in the 
PDF output.

> Note that there is not point to have an equation in a full math mode 
> in a title (etc..). Only the inline formula mode is acceptable in a 
> title (etc..).

This is precisely what you have in the document: A displayed equation as 
part of the title of the section. I agree that it's unclear why one 
would ever want to do this, but LaTeX does allow it, and so LyX allows 
it, too. Maybe if you had a really long equation that needed to be part 
of the title, you'd want to do it that way.

I do see the difference you are talking about now, though. In both 
cases, it looks like a displayed equation immediately follows the 
section title. However, in one case, it is actually part of the section 
title. In the other case, it is not, but is in a separate paragraph.

Here is the LaTeX output:

\section{This $$x=y&=$$}

One two

\section{That}

$$x=y$$ One two.

Note that I've simplified this a bit, to make it easier to see what's 
happening.

The result, in the PDF output, is that there is additional whitespace 
above the equation in the second case. This is LaTeX's doing, and has 
nothing to do with LyX itself. If you wanted to counteract this, then 
you'd have to put some negative vertical space in there somewhere.

See

https://tex.stackexchange.com/questions/763938/correct-way-to-reduce-space-above-displayed-equation-which-shows-right-below-sec

for the way to do this. It is not trivial.

The difference is not completely obvious in the LyX display. But if you 
look closely, you'll see that there is additional whitespace above the 
equation there as well. If you had pilcrows displayed, then it would be 
clearer. (Preferences> Display> Mark end of paragraphs)

Riki
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20260803/700625a0/attachment-0001.htm>


More information about the lyx-users mailing list