Re: Auto-Correct and Delimiters Bug

2020-12-09 Thread Richard Kimberly Heck

On 12/9/20 10:10 AM, Rudi Gaelzer wrote:


On terça-feira, 8 de dezembro de 2020 20:22:04 -03 you wrote:

> At the moment, the * thing works with paired delimiters, but it only

> changes the first one, which is definitely a bug. It should obviously

> change both. I also don't know how hard that would be.

>

> Riki

>

Indeed. It works separately for "[" and for "]".

It also works separately for "[" and for ")", which is not a bad thing 
per se.


About my idea of browsing through the variable-sized delimiters, 
should I put it on the wishlist?


Sure. You can also play around with this yourself. There's a file, 
autocorrect, that you can find in your LyX system directory. (Here it is 
at /usr/share/lyx/autocorrect.) It's just a text file. The part that 
controls this behavior looks like:


( * \bigl( \bigl( * \Bigl( \Bigl( * \biggl( \biggl( * \Biggl( \Biggl( * 
( ) * \bigl) \bigl) * \Bigl) \Bigl) * \biggl) \biggl) * \Biggl) \Biggl) 
* ) The first thing is what's there already; the next is the 'trigger'; 
the latter is the result. So you could do e.g.


( / [ [ / { { / (

and similarly for the right side, and now slash cycles through delimiter 
types. You'd also have to do


\bigl( / \bigl[

etc for the sizes.

I think that if you copy the system autocorrect file to your local LyX 
user directory (so, here, I'd put it at $HOME/.lyx/autocorrect), then 
LyX will pick use your modified version. (This is generally true with 
configuration files.)


I was just looking throguh that file. There's all kinds of cool stuff in 
there!


Riki

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


Re: Auto-Correct and Delimiters Bug

2020-12-09 Thread Rudi Gaelzer
On terça-feira, 8 de dezembro de 2020 20:22:04 -03 you wrote:
> At the moment, the * thing works with paired delimiters, but it only
> changes the first one, which is definitely a bug. It should obviously
> change both. I also don't know how hard that would be.
> 
> Riki
> 

Indeed.  It works separately for "[" and for "]".
It also works separately for "[" and for ")", which is not a bad thing per se.

About my idea of browsing through the variable-sized delimiters, should I put 
it 
on the wishlist?

-- 
Rudi Gaelzer
Institute of Physics
Federal University of Rio Grande do Sul
BRAZIL
Registered linux user # 153741
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users


Auto-Correct and Delimiters Bug

2020-12-08 Thread Richard Kimberly Heck
On 12/8/20 6:18 PM, Rudi Gaelzer wrote:
>
> Worked.
>
> Interesting development. I usually employ variable-sized delimiters,
> but often need to use \big, \Big, ...
>
>  
>
> Another development that would be handy would be the possibility to
> browse through matched delimiters
>
> ( ), [ ], { }, | |, ...
>
> or to change them hierarchically using shortcuts.
>
Yes, that's a very good idea. I don't know how difficult that would or
wouldn't be.

At the moment, the * thing works with paired delimiters, but it only
changes the first one, which is definitely a bug. It should obviously
change both. I also don't know how hard that would be.

Riki

>  
>
>  
>
> On terça-feira, 8 de dezembro de 2020 15:42:00 -03 Richard Kimberly
> Heck wrote:
>
> > On 12/8/20 7:45 AM, Rudi Gaelzer wrote:
>
> > > Hi there.
>
> > >
>
> > > Where can I find a more detailed description of the following update
>
> > > listed in the announcement of LyX 2.3.6:
>
> > >
>
> > >  
>
> > >
>
> > > Update autocorrect in mathed so that pressing '*' after a
> delimiter will
>
> > >
>
> > > cycle through all sizes.
>
> >
>
> > There's not one, but here's how it works: Enter math by pressing Ctrl-M
>
> > (say). Then hit "[". Now hit "*". This will take you through different
>
> > sizes of [. (If math auto-correct is off, this will not work, but you
>
> > should get a message on the status bar about how to enable it. Usually
>
> > by pressing "!".)
>
> >
>
> > Riki
>
> >
>
> >    
>
>  
>
> -- 
>
> Rudi Gaelzer
>
> Institute of Physics
>
> Federal University of Rio Grande do Sul
>
> BRAZIL
>
> Registered linux user # 153741
>
>
-- 
lyx-users mailing list
lyx-users@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-users