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

Richard Kimberly Heck via lyx-users <[email protected]> Mon, 3 Aug 2026 13:07:20 -0400
Newsgroups gmane.editors.lyx.general
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--===============5243960850493368323==
Content-Type: multipart/alternative;
 boundary="------------Y09aTc2QCyCEkErL3wkVaDdT"
Content-Language: en-US

This is a multi-part message in MIME format.
--------------Y09aTc2QCyCEkErL3wkVaDdT
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit

On 8/2/26 1:54 PM, Patrick Dupre wrote:
> *Sent: *Sunday, August 2, 2026 at 5:25 PM
> *From: *"Richard Kimberly Heck" <[email protected]>
> *To: *"Patrick Dupre" <[email protected]>, [email protected]
> *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

--------------Y09aTc2QCyCEkErL3wkVaDdT
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit

<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    <div class="moz-cite-prefix">On 8/2/26 1:54 PM, Patrick Dupre wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:trinity-db70e841-f428-4fcb-82f2-483da665e4be-1785693273902@trinity-msg-rest-gmx-gmx-live-75f46566bb-6rpd2">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div style="font-family: 'verdana'; font-size: 12px; color: #000;"> </div>
      <div id="sub-body-container"
style="margin: 10px 5px 5px 10px; padding: 10px 0px 10px 10px; border-left: 2px solid rgb(195, 217, 229);">
        <div style="margin: 0px 0px 10px;">
          <div><strong>Sent: </strong>Sunday, August 2, 2026 at 5:25 PM</div>
          <div><strong>From: </strong>"Richard Kimberly Heck"
            <a class="moz-txt-link-rfc2396E" href="mailto:[email protected]">&lt;[email protected]&gt;</a></div>
          <div><strong>To: </strong>"Patrick Dupre"
            <a class="moz-txt-link-rfc2396E" href="mailto:[email protected]">&lt;[email protected]&gt;</a>, <a class="moz-txt-link-abbreviated" href="mailto:[email protected]">[email protected]</a></div>
          <div><strong>Subject: </strong>Re: Aw: Re: from 2.5.0 to
            2.5.1</div>
        </div>
        <div>On 7/31/26 3:50 AM, Patrick Dupre wrote: </div>
        <blockquote>
          <div
style="background-color: #ffffff; font-size: 12.0px; font-family: verdana; color: #000000;">
            <div id="signature-container"
style="background-color: #ffffff; font-size: 12.0px; font-family: verdana; color: #000000;">This
              example shows that a newline is necessary, after a section
              <span style="background-color: #ffffff;">(subsection, etc)</span>
              title, to set a newline to avoid that the</div>
            <div
style="background-color: #ffffff; font-size: 12.0px; font-family: verdana; color: #000000;">equation
              be turned into the section title.</div>
            <div
style="background-color: #ffffff; font-size: 12.0px; font-family: verdana; color: #000000;">Actually,
              this newline is set automatically.</div>
            <div
style="background-color: #ffffff; font-size: 12.0px; font-family: verdana; color: #000000;">This
              does not happen with text with are in standard mode
              without extra newline.</div>
            <div
style="background-color: #ffffff; font-size: 12.0px; font-family: verdana; color: #000000;">I
              never noticed this behavior in the previous versions.</div>
          </div>
        </blockquote>
        <p>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?</p>
        <p>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.</p>
        <p>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.</p>
      </div>
    </blockquote>
    <blockquote type="cite">I do not think so. Text and equation must be
      treated the same way.</blockquote>
    <p>Sorry, I've been confused about where the newline is: In LyX or in the PDF output.
</p>
    <blockquote type="cite">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..).</blockquote>
    <p>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.</p>
    <p>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. </p>
    <p>Here is the LaTeX output:</p>
    <p>\section{This $$x=y&amp;=$$}</p>
    <p
style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">One two</p>
    <p
style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">
</p>
    <p
style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">\section{That}</p>
    <p
style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">
</p>
    <p
style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:1;">$$x=y$$ One two.</p>
    <p
style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">
</p>
    <p
style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Note that I've simplified this a bit, to make it easier to see what's happening.</p>
    <p>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.</p>
    <p>See</p>
    <p><a class="moz-txt-link-freetext" href="https://tex.stackexchange.com/questions/763938/correct-way-to-reduce-space-above-displayed-equation-which-shows-right-below-sec">https://tex.stackexchange.com/questions/763938/correct-way-to-reduce-space-above-displayed-equation-which-shows-right-below-sec</a></p>
    <p>for the way to do this. It is not trivial.</p>
    <p>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&gt; Display&gt; Mark end of paragraphs)</p>
    <p>Riki</p>
    <p>
</p>
    <p><style type="text/css">p, li { white-space: pre-wrap; }hr { height: 1px; border-width: 0; }li.unchecked::marker { content: "\2610"; }li.checked::marker { content: "\2612"</style></p>
  </body>
</html>

--------------Y09aTc2QCyCEkErL3wkVaDdT--

--===============5243960850493368323==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

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

--===============5243960850493368323==--