>>> When in a math display equation, if you press "ctrl + return", LyX will
>>> turn it into a multi-line equation. I think the default is an "align"
>>> environment. To do this, LyX tries "split" your current equation into
>>> two parts. For example, if the equation is:
>>> 
>>>  y = 3x + 5
>>> 
>>> LyX guesses that you want "y" on the left box, and "= 3x + 5" in the
>>> right box. In other words, it splits on the "=" sign.
>>> 
>>> Do you use this feature? Are there any improvements that you can think
>>> of? I haven't looked at the code yet, but I'm considering trying to
>>> improve the algorithm for splitting. My personal use case is that I
>>> often have expressions of the form
>>> 
>>>  P(X < 3) = 2
>>> 
>>> Currently LyX splits this on the "<". I would like to have the algorithm
>>> prioritize a relation character that is outside of delimiters.
>>> 
>>> Before I look at the code, I want to see if anyone else has a desired
>>> improvement to how LyX currently splits.
>>> 
>>> Scott

> Begin forwarded message:
> 
> From: Scott Kostyshak <skost...@lyx.org>
> Subject: Re: Improvements to splitting math equation for multi-line?
> Date: May 18, 2018 at 10:44:12 PM MST
> To: lyx-users@lists.lyx.org
> 
> On Sat, May 19, 2018 at 05:39:09AM +0000, Baris Erkus wrote:
> 
>> I may recommend to develop a tool where you can slide the location of "&" in 
>> the equation. Something like tab sign in Word.
> 
> I can see how that would be useful, especially for when there are many
> lines. I think it is too ambitious for what I'm planning on working on
> (hopefully I can limit my edits to the function that does the
> splitting), but I think I would like the feature you mention also.
> 
> Thanks,
> 
> Scott

I use this all the time. The slider would be useful as I often end up cutting 
and pasting. But I do not need the graphics; an easy way to insert the “&” at 
the right place would be great.

Reply via email to