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
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
-
- 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