Re: Shortcuts dedicated to math mode

2018-08-01 Thread Daniel

On 30/07/2018 00:09, Paul A. Rubin wrote:

On 07/29/2018 04:44 PM, Daniel wrote:

On 29/07/2018 10:44, Ricardo Berlasso wrote:
2018-07-27 11:21 GMT+02:00 Daniel >:


    On 26/07/2018 15:31, Jean-Marc Lasgouttes wrote:

    Le 26/07/2018 à 09:19, Jürgen Spitzmüller a écrit :

    Am Donnerstag, den 26.07.2018, 08:53 +0200 schrieb Daniel:

    Is it possible to have a keyboard shortcut dedicated to
    math mode so
    that it only works in matn mode but does something else
    (or its
    normal
    function) when not in math mode?


    You can use
    command-alternatives math-function ; text-function


    You can also use autocorrect in math mode. Example: <= gives 
\leq.



    Never heard about it? Where can I set it up?


Tools → Preferences → Editing → Input completion: check 
"autocorrection" under "In Math"


Thanks. I did but it still does not replace <= with \leq.


It's a little funky to work with. After making the change in 
preferences, go into a math inset and type anything, watching the status 
line at the bottom of the window. You will probably see the 
(short-lived) message 'Autocorrect Off ("!" to enter)'. Type a bang 
character (exclamation point), and then try typing <=.


When you turn on autocorrect with the bang character, you'll see another 
(short-lived) message saying that typing a space takes you out of 
autocorrect mode.


Thanks, that works. I wonder whether anyone is using it given how hidden 
it is.


Daniel




Re: Shortcuts dedicated to math mode

2018-07-29 Thread Paul A. Rubin

On 07/29/2018 04:44 PM, Daniel wrote:

On 29/07/2018 10:44, Ricardo Berlasso wrote:
2018-07-27 11:21 GMT+02:00 Daniel >:


    On 26/07/2018 15:31, Jean-Marc Lasgouttes wrote:

    Le 26/07/2018 à 09:19, Jürgen Spitzmüller a écrit :

    Am Donnerstag, den 26.07.2018, 08:53 +0200 schrieb Daniel:

    Is it possible to have a keyboard shortcut dedicated to
    math mode so
    that it only works in matn mode but does something else
    (or its
    normal
    function) when not in math mode?


    You can use
    command-alternatives math-function ; text-function


    You can also use autocorrect in math mode. Example: <= gives 
\leq.



    Never heard about it? Where can I set it up?


Tools → Preferences → Editing → Input completion: check 
"autocorrection" under "In Math"


Thanks. I did but it still does not replace <= with \leq.


It's a little funky to work with. After making the change in 
preferences, go into a math inset and type anything, watching the status 
line at the bottom of the window. You will probably see the 
(short-lived) message 'Autocorrect Off ("!" to enter)'. Type a bang 
character (exclamation point), and then try typing <=.


When you turn on autocorrect with the bang character, you'll see another 
(short-lived) message saying that typing a space takes you out of 
autocorrect mode.


Paul



Re: Shortcuts dedicated to math mode

2018-07-29 Thread Daniel

On 29/07/2018 10:44, Ricardo Berlasso wrote:
2018-07-27 11:21 GMT+02:00 Daniel >:


On 26/07/2018 15:31, Jean-Marc Lasgouttes wrote:

Le 26/07/2018 à 09:19, Jürgen Spitzmüller a écrit :

Am Donnerstag, den 26.07.2018, 08:53 +0200 schrieb Daniel:

Is it possible to have a keyboard shortcut dedicated to
math mode so
that it only works in matn mode but does something else
(or its
normal
function) when not in math mode?


You can use
command-alternatives math-function ; text-function


You can also use autocorrect in math mode. Example: <= gives \leq.


Never heard about it? Where can I set it up?


Tools → Preferences → Editing → Input completion: check "autocorrection" 
under "In Math"


Thanks. I did but it still does not replace <= with \leq.



Regards,
Ricardo


Daniel








Re: Shortcuts dedicated to math mode

2018-07-29 Thread Ricardo Berlasso
2018-07-27 11:21 GMT+02:00 Daniel :

> On 26/07/2018 15:31, Jean-Marc Lasgouttes wrote:
>
>> Le 26/07/2018 à 09:19, Jürgen Spitzmüller a écrit :
>>
>>> Am Donnerstag, den 26.07.2018, 08:53 +0200 schrieb Daniel:
>>>
 Is it possible to have a keyboard shortcut dedicated to math mode so
 that it only works in matn mode but does something else (or its
 normal
 function) when not in math mode?

>>>
>>> You can use
>>> command-alternatives math-function ; text-function
>>>
>>
>> You can also use autocorrect in math mode. Example: <= gives \leq.
>>
>
> Never heard about it? Where can I set it up?
>

Tools → Preferences → Editing → Input completion: check "autocorrection"
under "In Math"

Regards,
Ricardo



>
> Daniel
>
>
>


Re: Shortcuts dedicated to math mode

2018-07-27 Thread Daniel

On 26/07/2018 14:06, Scott Kostyshak wrote:

On Thu, Jul 26, 2018 at 06:53:21AM +, Daniel wrote:

Hi

Is it possible to have a keyboard shortcut dedicated to math mode so that it
only works in matn mode but does something else (or its normal function)
when not in math mode?


I think you're talking about the following enhancement, which has not
been implemented:

   https://www.lyx.org/trac/ticket/5286


Yes, that looks like what I had in mind. Good to know.

Daniel




Re: Shortcuts dedicated to math mode

2018-07-27 Thread Daniel

On 26/07/2018 15:31, Jean-Marc Lasgouttes wrote:

Le 26/07/2018 à 09:19, Jürgen Spitzmüller a écrit :

Am Donnerstag, den 26.07.2018, 08:53 +0200 schrieb Daniel:

Is it possible to have a keyboard shortcut dedicated to math mode so
that it only works in matn mode but does something else (or its
normal
function) when not in math mode?


You can use
command-alternatives math-function ; text-function


You can also use autocorrect in math mode. Example: <= gives \leq.


Never heard about it? Where can I set it up?

Daniel




Re: Shortcuts dedicated to math mode

2018-07-27 Thread Jürgen Spitzmüller
Am Donnerstag, den 26.07.2018, 09:29 +0200 schrieb Daniel:
> Thanks. So far I have been setting shortcuts through the Preferences 
> dialog. I don't know how to follow your description exactly.
> 
> Maybe you can exemplify it? For example, I want to set "(" (or
> Shift+9) 
> in math mode to the math delimiter "(" but want to keep the normal 
> brackets in normal mode.

Alas, I have no idea with this, since math-delim is also active in text
mode.

Jürgen

> 
> Daniel
> 
> > 
> > HTH
> > Jürgen
> > 
> > > 
> > > Daniel
> > > 
> 
> 


signature.asc
Description: This is a digitally signed message part


Re: Shortcuts dedicated to math mode

2018-07-26 Thread Jean-Marc Lasgouttes

Le 26/07/2018 à 09:19, Jürgen Spitzmüller a écrit :

Am Donnerstag, den 26.07.2018, 08:53 +0200 schrieb Daniel:

Is it possible to have a keyboard shortcut dedicated to math mode so
that it only works in matn mode but does something else (or its
normal
function) when not in math mode?


You can use
command-alternatives math-function ; text-function


You can also use autocorrect in math mode. Example: <= gives \leq.

JMarc



Re: Shortcuts dedicated to math mode

2018-07-26 Thread Scott Kostyshak
On Thu, Jul 26, 2018 at 06:53:21AM +, Daniel wrote:
> Hi
> 
> Is it possible to have a keyboard shortcut dedicated to math mode so that it
> only works in matn mode but does something else (or its normal function)
> when not in math mode?

I think you're talking about the following enhancement, which has not
been implemented:

  https://www.lyx.org/trac/ticket/5286

Scott


signature.asc
Description: PGP signature


Re: Shortcuts dedicated to math mode

2018-07-26 Thread Daniel

On 26/07/2018 09:19, Jürgen Spitzmüller wrote:

Am Donnerstag, den 26.07.2018, 08:53 +0200 schrieb Daniel:

Is it possible to have a keyboard shortcut dedicated to math mode so
that it only works in matn mode but does something else (or its
normal
function) when not in math mode?


You can use
command-alternatives math-function ; text-function

This will try the first function, and if it is disabled (as most math
functions are outside math), it will try the second.

The "normal function" needs to be reconstructed, e.g.
self-insert §


Thanks. So far I have been setting shortcuts through the Preferences 
dialog. I don't know how to follow your description exactly.


Maybe you can exemplify it? For example, I want to set "(" (or Shift+9) 
in math mode to the math delimiter "(" but want to keep the normal 
brackets in normal mode.


Daniel



HTH
Jürgen



Daniel






Re: Shortcuts dedicated to math mode

2018-07-26 Thread Jürgen Spitzmüller
Am Donnerstag, den 26.07.2018, 08:53 +0200 schrieb Daniel:
> Is it possible to have a keyboard shortcut dedicated to math mode so 
> that it only works in matn mode but does something else (or its
> normal 
> function) when not in math mode?

You can use
command-alternatives math-function ; text-function

This will try the first function, and if it is disabled (as most math
functions are outside math), it will try the second.

The "normal function" needs to be reconstructed, e.g.
self-insert §

HTH
Jürgen

> 
> Daniel
> 


signature.asc
Description: This is a digitally signed message part


Shortcuts dedicated to math mode

2018-07-26 Thread Daniel

Hi

Is it possible to have a keyboard shortcut dedicated to math mode so 
that it only works in matn mode but does something else (or its normal 
function) when not in math mode?


Daniel