LyXShortcut for Subscript and Superscript

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
katrinbhausen
Posts: 2
Joined: Mon Aug 01, 2011 4:58 pm

Shortcut for Subscript and Superscript

Post by katrinbhausen »

Hi,

I just want to know, if there is a possibility to create my own shortcuts and how it is working if it's possible. I'm writing a text and I have to subscribe and superscribe some numbers and I don't want to use the math-option. But it is really time consuming to click each time in the menu.

Thanks for your answers

KatrinBhausen

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

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

kaiserkarl13
Posts: 707
Joined: Tue Mar 25, 2008 5:02 pm

Re: Shortcut for Subscript and Superscript

Post by kaiserkarl13 »

I suspect this may be what you're looking for:
http://wiki.lyx.org/Tips/Symbols

If you want further customization, check out
http://wiki.lyx.org/LyX/KeyboardShortcuts

Google is wonderful sometimes.
katrinbhausen
Posts: 2
Joined: Mon Aug 01, 2011 4:58 pm

Re: Shortcut for Subscript and Superscript

Post by katrinbhausen »

Thank you for your fast answer. For sure, I googled a lot, before I have asked my question. And I also visited the pages you've posted. I think it wasn't completely clear what my problem is: I don't want to use the math mode.
I also tried to modify the .bind file by adding \bind "C-+" "superscript" and \bind "C-#" "subscript" but it didn't work. I modified it by a normal text editor, renamed it and loaded the new file in Lyx.

Perhaps I did something wrong? If so, or if you have an other idea how I can use these funktions without the math-mode, that will be great!
kaiserkarl13
Posts: 707
Joined: Tue Mar 25, 2008 5:02 pm

Re: Shortcut for Subscript and Superscript

Post by kaiserkarl13 »

I haven't tested it, but I suspect the second link I sent could be used to bind LaTeX's \textsuperscript and \textsubscript commands to a keyboard shortcut for easy insertion.
drmCA
Posts: 31
Joined: Mon Aug 13, 2012 12:18 am

Re: Shortcut for Subscript and Superscript

Post by drmCA »

I am surprised by the lack of interest from the developer to including subscript and superscript shortcuts into the distribution of LyX.

Writing an article about 3d world and going Ctrl-L \ all the time kind of defeats the purpose of using WYSYWYG tool.

Hoping I am making sense to the devs (hoping they visit this forum)
lyxrocks
Posts: 91
Joined: Sat Oct 23, 2010 5:59 pm

Shortcut for Subscript and Superscript

Post by lyxrocks »

if you don't want to use the math mode because of the font, you can insert normal text within a math environment. and then whenever you want to type a word with superscript/subscript, you can just paste the correct one and modify it, like this
SS.lyx
(1.52 KiB) Downloaded 499 times
drmCA
Posts: 31
Joined: Mon Aug 13, 2012 12:18 am

Re: Shortcut for Subscript and Superscript

Post by drmCA »

Still don't understand the reluctance to provide rudimentally simple function used by every writer all the time.
Post Reply