Atreyagaurav / litex-mode

LiTeX mode for emacs; A minor mode to convert valid lisp expressions to LaTeX
GNU General Public License v3.0
43 stars 4 forks source link

Double Subscript #25

Closed Atreyagaurav closed 2 years ago

Atreyagaurav commented 2 years ago

If a variable is named: h-L-III or something similar with more than one -, then it gets translated into h_{L}_{III}, which is error in LaTeX and won't compile.

Had this for a while now, thought I'd leave it be as I can't choose whether to do {h_{L}}_{III} or h_{{L}_{III}}.

So either I need to put this in documentation so people are aware, or I should fix it one way so that LiTeX doesn't generate invalid LaTeX.