LyX ⇒ Shortcut for custom text style
Shortcut for custom text style
But applying the styles often is a lot of mouse work, and I should like to be able to affect a key shortcut, like CTRL + e for Emph, to both of these styles.
When I apply them via the menu, the status bar at the bottom of my interface shows
flex-insert "menuitem"
or
flex-insert "code"
So I tried binding these lines to keyboard shortcuts via the Tools - Preferences - Editing - Shortcuts menu. (Yes, I did RTFM.)
Everything compiled ok, but this does not have the desired effect. The selected text just appears in italics. For the record, "code" should put it into the typewriter font and "menuitem" should put it into a small caps sans serif. Neither is italics. I used the shortcut CTRL + m after removing the math mode shortcut which I never use.
Thanks to anyone who can help.
EFR
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
-
scottkosty
- Site Moderator
- Posts: 542
- Joined: Sat Sep 01, 2012 6:38 am
Re: Shortcut for custom text style
Also, if you start lyx with -dbg action, it will show all of the lyx functions, which can be used to discover the short cut.
Finally, you might need to use 'command-sequence' which lets you run several LFUNS at once. See Help > LyX Functions for a list of many LFUNS.
Scott