Is it possible to use subscript and superscript in LyX without entering into math mode or inserting TeX code? For example, can I get H2O to be displayed properly without \ce{H_{2}O} or Tex code box with \textsuperscript{th} etc.?
Asked
Active
Viewed 2,673 times
1
Sparkler
- 929
1 Answers
6
Type 'H', then Insert > Formatting > Subscript, then press the right arrow (this gets you out of the subscript), then type '0'.
You can assign this operation to a key shortcut such as [Ctrl]+[,] using script-insert subscript (see also: lyx shortcut for superscript and subscript).
scottkosty
- 13,164
H\textsubscript{2}O, but I'm not sure it's easier than\ce{H2O}– egreg Dec 02 '15 at 17:06H\textsubscript{2}Ogives "Undefined control sequence". (and I updated the question in the context of LyX) – Sparkler Dec 02 '15 at 17:09\ce{H_{2}O}? – Mico Dec 03 '15 at 01:27\ce{H2O}is the correct notation for themhchempackage in LaTeX I don't use LyX, but I would assume it's correct there to. – PTNobel Dec 04 '15 at 03:59