3

I want to make a shortcut at LyX that if I press it I'll get what the \displaystyle does (in math mode).

e.g.: If I'll press Ctrl+I I'll get an integral...

Is there a way to do this?

3

You can at least make a shortcut to insert just \displaystyle, if that is OK. Go to Tools --> Preferences --> Editing --> Shortcuts (see Shortcuts for Lemma, Claim, Theorem etc for a screenshot). Click New, and in the Function field write

math-size \displaystyle

Enter whichever shortcut you would like. If the shortcut already exists, LyX will inform you of this, and you have to either choose a new shortcut, or edit the existing command.

  • Thank you!! And I can make a shortcut to insert to math mode at \displaystyle? – heblyx Nov 15 '13 at 23:48
  • 1
    @YoavFridman Ctrl + M will enter inline math mode, so you could do Ctrl + M followed by your new shortcut. To make a shortcut that enters inline math mode and inserts \displaystyle, use the function command-sequence math-mode; math-size \displaystyle, but that will not be ideal if you use it when already in math-mode. – Torbjørn T. Nov 15 '13 at 23:54
  • Thank you so much!! You helped me a lot!! LyX is really great software!! – heblyx Nov 16 '13 at 0:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.