Sean Wendt <wendt.sean <at> gmail.com> writes:
> I like to write the text and style it afterwards, so I tried:
>
> command-sequence cut; ert-insert; self-insert \textsubscript{;
> char-forward; paste; ert-insert; self-insert }; char-backward;
> char-backward;
>
> This one however doesn't work when the marked section is empty.
I'm not sure there's a way around that, other than by binding both the "empty"
and "selection" versions to two different key combos. Incidentally, you might
want to change the last two char-backward commands to a single char-forward for
the "selection" version (I'm guessing there's no reason to put the cursor inside
the selection).
Paul