latex: fixed group rendering, added \textsubscript and \textsuperscript