As discussed for example here:
Should subscripts in math mode be upright?
subscripts should usually be typeset upright. Is there a possibility to this automatically e.g. inserting something to the document-header? Or, if not possible in LaTeX, is there an option in LyX? Until now I do it like this: Q _ Alt Z R test
which is quite slow.
[Tex/LaTex] Typeset subscript material automatically in upright font shape
lyxmath-mode
Best Answer
If you have a lot of subscripts, it might be helpful to put the following code in your preamble:
Then you can write, say,
$A_|p|$
and getp
in upright text mode.MWE