Re: Behavior of overset inset creation on selection

2018-11-08 Thread Daniel
On 08/11/2018 04:42, Scott Kostyshak wrote: On Wed, Nov 07, 2018 at 04:53:16PM -1000, Jean-Marc Lasgouttes wrote: Indeed, it seems to me that adding the subscript automatically is a bit too much. Not everybody wants it, after all. For some reason it doesn't work like overset. I am not sure th

Re: Behavior of overset inset creation on selection

2018-11-07 Thread Scott Kostyshak
On Wed, Nov 07, 2018 at 04:53:16PM -1000, Jean-Marc Lasgouttes wrote: > Indeed, it seems to me that adding the subscript automatically is a bit too > much. Not everybody wants it, after all. For some reason it doesn't work like > overset. I am not sure that we should hide these differences in Ly

Re: Behavior of overset inset creation on selection

2018-11-07 Thread Jean-Marc Lasgouttes
Le 7 novembre 2018 16:23:41 GMT-10:00, Scott Kostyshak a écrit : >Nice. I don't know if the following is a good idea, but why not put the >cursor into the inset of the underbrace automatically? > >For example, if I select "x" and then click on "underbrace", I have to >press "_" to be able to writ

Re: Behavior of overset inset creation on selection

2018-11-07 Thread Scott Kostyshak
On Tue, Nov 06, 2018 at 11:55:42PM -1000, Jean-Marc Lasgouttes wrote: > Le 06/11/2018 à 23:34, Daniel a écrit : > > Haven't followed the thread, but does this solve > > > > https://www.lyx.org/trac/ticket/10077 > > > > ? > > It looks like it does. Nice. I don't know if the following is a good i

Re: Behavior of overset inset creation on selection

2018-11-07 Thread Scott Kostyshak
On Tue, Nov 06, 2018 at 11:13:41PM -1000, Jean-Marc Lasgouttes wrote: > Le 06/11/2018 à 07:37, Scott Kostyshak a écrit : > > On Tue, Nov 06, 2018 at 07:23:19AM -1000, Jean-Marc Lasgouttes wrote: > > > Le 06/11/2018 à 07:19, Scott Kostyshak a écrit : > > > > Tested and it works well! I tested a few

Re: Behavior of overset inset creation on selection

2018-11-07 Thread Jean-Marc Lasgouttes
Le 06/11/2018 à 23:34, Daniel a écrit : Haven't followed the thread, but does this solve https://www.lyx.org/trac/ticket/10077 ? It looks like it does. JMarc

Re: Behavior of overset inset creation on selection

2018-11-07 Thread Daniel
On 30/10/2018 17:39, Scott Kostyshak wrote: On Wed, Apr 04, 2018 at 06:36:26PM +0200, Jean-Marc Lasgouttes wrote: Le 31/03/2018 à 19:49, Scott Kostyshak a écrit : To see an issue that has long annoyed me, do the following: 1. In math mode, type "=". 2. Select the "=" you just typed. 3. Choose

Re: Behavior of overset inset creation on selection

2018-11-07 Thread Jean-Marc Lasgouttes
Le 06/11/2018 à 07:37, Scott Kostyshak a écrit : On Tue, Nov 06, 2018 at 07:23:19AM -1000, Jean-Marc Lasgouttes wrote: Le 06/11/2018 à 07:19, Scott Kostyshak a écrit : Tested and it works well! I tested a few different "Frame decorations". I also tested writing "x" in math mode, selecting it an

Re: Behavior of overset inset creation on selection

2018-11-06 Thread Scott Kostyshak
On Tue, Nov 06, 2018 at 07:23:19AM -1000, Jean-Marc Lasgouttes wrote: > Le 06/11/2018 à 07:19, Scott Kostyshak a écrit : > > Tested and it works well! I tested a few different "Frame decorations". > > I also tested writing "x" in math mode, selecting it and then writing > > "\cases". Now the cursor

Re: Behavior of overset inset creation on selection

2018-11-06 Thread Jean-Marc Lasgouttes
Le 06/11/2018 à 07:19, Scott Kostyshak a écrit : Tested and it works well! I tested a few different "Frame decorations". I also tested writing "x" in math mode, selecting it and then writing "\cases". Now the cursor is put in the second box of cases, and I think that is nice. I like it! I've go

Re: Behavior of overset inset creation on selection

2018-11-06 Thread Scott Kostyshak
On Mon, Nov 05, 2018 at 09:59:04PM -1000, Jean-Marc Lasgouttes wrote: > Le 05/11/2018 à 05:43, Scott Kostyshak a écrit : > > > Please try the attached and tell me if you like it. > > > > For me it doesn't make much of a difference for the use case I > > mentioned. I now get the attached screenshot

Re: Behavior of overset inset creation on selection

2018-11-05 Thread Jean-Marc Lasgouttes
Le 05/11/2018 à 05:43, Scott Kostyshak a écrit : Please try the attached and tell me if you like it. For me it doesn't make much of a difference for the use case I mentioned. I now get the attached screenshot with those steps. Either with this patch or without this patch, I need to click (or mo

Re: Behavior of overset inset creation on selection

2018-11-05 Thread Scott Kostyshak
On Sun, Nov 04, 2018 at 09:32:49PM -1000, Jean-Marc Lasgouttes wrote: > Le 04/11/2018 à 11:16, Scott Kostyshak a écrit : > > I see, sounds tricky. Perhaps we should leave things untouched? Would it > > be complicated to allow for the multi-cell inset to decide what the > > behavior is? I'm guessing

Re: Behavior of overset inset creation on selection

2018-11-04 Thread Jean-Marc Lasgouttes
Le 04/11/2018 à 11:16, Scott Kostyshak a écrit : I see, sounds tricky. Perhaps we should leave things untouched? Would it be complicated to allow for the multi-cell inset to decide what the behavior is? I'm guessing this would be too complicated and is not the best use of your time, but in case I

Re: Behavior of overset inset creation on selection

2018-11-04 Thread Scott Kostyshak
On Sun, Nov 04, 2018 at 08:42:42AM -1000, Jean-Marc Lasgouttes wrote: > Le 04/11/2018 à 18:38, Scott Kostyshak a écrit : > > > OK, so you would like to put the selection contents to the first cell, but > > > the cursor in the next one. Is that right? > > > > Yes, that is the most natural to me as

Re: Behavior of overset inset creation on selection

2018-11-04 Thread Jean-Marc Lasgouttes
Le 04/11/2018 à 18:38, Scott Kostyshak a écrit : OK, so you would like to put the selection contents to the first cell, but the cursor in the next one. Is that right? Yes, that is the most natural to me as a user. From the technical perspective (in the way you describe), it does appear unintuit

Re: Behavior of overset inset creation on selection

2018-11-04 Thread Scott Kostyshak
On Sun, Nov 04, 2018 at 08:07:51AM -1000, Jean-Marc Lasgouttes wrote: > Le 04/11/2018 à 17:58, Scott Kostyshak a écrit : > > If I do the following steps: > > > > 1. In math mode, type "=". > > 2. Select the "=" you just typed. > > 3. Choose "Overset" from the math toolbar (alternatively, just type

Re: Behavior of overset inset creation on selection

2018-11-04 Thread Jean-Marc Lasgouttes
Le 04/11/2018 à 17:58, Scott Kostyshak a écrit : If I do the following steps: 1. In math mode, type "=". 2. Select the "=" you just typed. 3. Choose "Overset" from the math toolbar (alternatively, just type "\overset"). 4. Type "def". OK, so you would like to put the selection contents to the

Re: Behavior of overset inset creation on selection

2018-11-04 Thread Jean-Marc Lasgouttes
Le 30/10/2018 à 16:39, Scott Kostyshak a écrit : The issue is now fixed in master. I have another feature request: I think the cursor should be put in the newly created box (just like with superscript, for example). Should I make a trac ticket for this enhancement? I am not sure of what you mea

Re: Behavior of overset inset creation on selection

2018-10-30 Thread Scott Kostyshak
On Wed, Apr 04, 2018 at 06:36:26PM +0200, Jean-Marc Lasgouttes wrote: > Le 31/03/2018 à 19:49, Scott Kostyshak a écrit : > > To see an issue that has long annoyed me, do the following: > > > > 1. In math mode, type "=". > > 2. Select the "=" you just typed. > > 3. Choose "Overset" from the math to

Re: Behavior of overset inset creation on selection

2018-04-09 Thread Kornel Benko
Am Montag, 9. April 2018 17:38:37 CEST schrieb Jean-Marc Lasgouttes : > Le 09/04/2018 à 17:10, Kornel Benko a écrit : > > Instead of searching for the biggest char in an inset, we could always use > > 'f'. Am I missing something? > > I am not really searching for the biigest char. The fact is, th

Re: Behavior of overset inset creation on selection

2018-04-09 Thread Jean-Marc Lasgouttes
Le 09/04/2018 à 17:10, Kornel Benko a écrit : Instead of searching for the biggest char in an inset, we could always use 'f'. Am I missing something? I am not really searching for the biigest char. The fact is, that for example $\sqrt{a}$ does not have the same height as $\sqrt{f}$. I do not

Re: Behavior of overset inset creation on selection

2018-04-09 Thread Kornel Benko
Am Montag, 9. April 2018 16:39:19 CEST schrieb Jean-Marc Lasgouttes : > Le 09/04/2018 à 16:17, Pavel Sanda a écrit : > > The current master situation seems indeed the best from all the patches > > I've been testing so far. > > But shouldn't $a$ have the same cursor as $f$? > > JMarc Instead of

Re: Behavior of overset inset creation on selection

2018-04-09 Thread Pavel Sanda
Jean-Marc Lasgouttes wrote: > Le 09/04/2018 ?? 16:17, Pavel Sanda a écrit : >> The current master situation seems indeed the best from all the patches >> I've >> been testing so far. > > But shouldn't $a$ have the same cursor as $f$? I do not see why cursor must have the same height for all of th

Re: Behavior of overset inset creation on selection

2018-04-09 Thread Jean-Marc Lasgouttes
Le 09/04/2018 à 16:17, Pavel Sanda a écrit : The current master situation seems indeed the best from all the patches I've been testing so far. But shouldn't $a$ have the same cursor as $f$? JMarc

Re: Behavior of overset inset creation on selection

2018-04-09 Thread Pavel Sanda
Jean-Marc Lasgouttes wrote: > Le 07/04/2018 ?? 12:18, Enrico Forestieri a écrit : >> They seem to be fine, but time will tell. I am rather concerned with the >> cursor height in mathed. Seemingly, it is proportional to the height of the >> tallest character in a cell, so that the cursor almost disa

Re: Behavior of overset inset creation on selection

2018-04-09 Thread Jean-Marc Lasgouttes
Le 07/04/2018 à 12:18, Enrico Forestieri a écrit : They seem to be fine, but time will tell. I am rather concerned with the cursor height in mathed. Seemingly, it is proportional to the height of the tallest character in a cell, so that the cursor almost disappears when only a minus sign is prese

Re: Behavior of overset inset creation on selection

2018-04-07 Thread Pavel Sanda
Enrico Forestieri wrote: > They seem to be fine, but time will tell. I am rather concerned with the > cursor height in mathed. Seemingly, it is proportional to the height of > the tallest character in a cell, so that the cursor almost disappears when > only a minus sign is present. This is very ugl

Re: Behavior of overset inset creation on selection

2018-04-07 Thread Enrico Forestieri
On Thu, Apr 05, 2018 at 11:27:17AM +0200, Jean-Marc Lasgouttes wrote: > > Enrico, I would appreciate if you could take a quick look at the changes in > Cursor.cpp. I change the defaults for some important macros, and I do not > want to break something unrelated to what I was trying to change. The

Re: Behavior of overset inset creation on selection

2018-04-05 Thread Jean-Marc Lasgouttes
Le 05/04/2018 à 04:51, Scott Kostyshak a écrit : On Wed, Apr 04, 2018 at 04:36:26PM +, Jean-Marc Lasgouttes wrote: Comments welcome. Tested and works well! I actually wasn't very hopeful that someone would make a patch when I posted this issue. I am glad to be surprised. Thank you for yo

Re: Behavior of overset inset creation on selection

2018-04-04 Thread Scott Kostyshak
On Wed, Apr 04, 2018 at 04:36:26PM +, Jean-Marc Lasgouttes wrote: > Comments welcome. Tested and works well! I actually wasn't very hopeful that someone would make a patch when I posted this issue. I am glad to be surprised. Thank you for your work on it, Scott signature.asc Description:

Re: Behavior of overset inset creation on selection

2018-04-04 Thread Jean-Marc Lasgouttes
Le 31/03/2018 à 19:49, Scott Kostyshak a écrit : To see an issue that has long annoyed me, do the following: 1. In math mode, type "=". 2. Select the "=" you just typed. 3. Choose "Overset" from the math toolbar (alternatively, just type "\overset"). The "=" is put in the "above" box, because t

Re: Behavior of overset inset creation on selection

2018-03-31 Thread Joel Kulesza
On Sat, Mar 31, 2018 at 11:49 AM, Scott Kostyshak wrote: > To see an issue that has long annoyed me, do the following: > > 1. In math mode, type "=". > 2. Select the "=" you just typed. > 3. Choose "Overset" from the math toolbar (alternatively, just type > "\overset"). > > The "=" is put in the

Behavior of overset inset creation on selection

2018-03-31 Thread Scott Kostyshak
To see an issue that has long annoyed me, do the following: 1. In math mode, type "=". 2. Select the "=" you just typed. 3. Choose "Overset" from the math toolbar (alternatively, just type "\overset"). The "=" is put in the "above" box, because that is the first LaTeX argument. From the user pers