On 2020-08-15 18:20, Richard Kimberly Heck wrote:
On 8/15/20 12:05 PM, Daniel wrote:
On 2020-08-15 17:52, Richard Kimberly Heck wrote:
On 8/15/20 11:30 AM, Daniel wrote:
On 2020-08-15 17:22, Jean-Marc Lasgouttes wrote:
Le 15 août 2020 17:09:45 GMT+02:00, Daniel <xraco...@gmx.de> a écrit :
On 2020-08-15 16:58, Jean-Marc Lasgouttes wrote:
Short answer from my phone : this is not an empty line issue. There
is a problem reported about space above formula. I have not looked
atit yet.

Concerning the bullet case, we could handle it like I did the proof
box case.

More on that when I return.

Okay, I would have thought that both of these problems are handled
(and
correctly so) if a line (not a paragraph!) before a display
formula was
allowed to be empty. Because that seems exactly what LaTeX is doing.
--
Daniel

The spacing is created by LaTeX, not by the user, if I understand
correctly.

In LaTeX the user creates the spacing by adding an extra empty line or
\item.

As JMarc said, I think the problem here is just that LyX doesn't display
the extra space about the display formula. Basically, what we have is a
paragraph break immediately before the displayed formula. So there is
the space for that break in the LaTeX.

The space does not take care of the bullet/numbering. An empty line
would take care of both problems. If the line contains a character,
then LyX does exactly the right thing. So, I thought allowing an empty
line in this case would make LyX do exactly the right thing. So, LyX
would do this: remove an empty line only if it is empty by current
standards *or contains a display formula* (which actually could kind
of qualify as non-empty since the line continues with a display formula).

The problem is that the following is perfectly valid LaTeX:

test test

$$a=b$$

And, as a general rule, we want to allow the user to write that in LyX
if they want to do so. Or, as people here will sometimes say: Don't try
to outsmart the user. This is a pretty fundamental LyX principle---one
it took me a while to appreciate---and magically removing empty lines
before display formulas violates it. So that's no go.

The problem, as I see it, is that it is very easy to write what's above
when what you wanted was:

test test
$$a = b$$

and LyX doesn't give enough indication of this difference. So we either
need to display more space or, as you suggest, to display a pilcrow in
the former case. The latter is probably not terribly easy to do, though,
since the pilcrow would attach to the paragraph before the one in which
the displayed formula lives. But maybe there's something else we could
display in the space above the displayed equation, just to make it more
obvious.

I agree. I suggested to add an empty line in LyX not to remove it in the LaTeX output.

The LaTeX spacing seems to behave exactly as if an empty line contained a character, i.e. in

test test

$$a=b$$

and

test test
x
$$a=b$$

the spacing between test test and the display formula is exactly the same.

The same with

\item

$$a=b$$

and

\item x

$$a=b$$

That's why I thought an empty line would be the solution.

And adding a special character to the empty line might be easier too. I take back my pilcrow suggestion though because this would be an empty line *without* a paragraph break. Maybe a right pointing arrow or so might be more suitable.
--
Daniel

--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to