I've recently asked Why is the label set too high in an \xrightarrow
?. Here's another \xrightarrow
question.
As you probably know, but I didn't until I Googled it, \xrightarrow
accepts an optional argument that specifies a subscript. For example, \log(R_i) \xrightarrow[i \to \infty]{} -\infty?
$$\log(R_i) \xrightarrow[i \to \infty]{} -\infty?$$
However, as you can see (if you're using my set-up, anyway: Firefox 131.0.3 on macOS 15.0.1, with HTML-CSS renderer, MathJax v2), the subscript gets cut off:
The same does not happen in a local TeX installation:
I "fixed" this in the actual post I was editing by inserting \vphantom{\rule{0em}{-2ex}}
, which works in my particular view, but is very far from being adaptive, or reactive, or whatever the proper terminology is (although hopefully using ex
rather than absolute units makes it not too bad):
$$\log(R_i)\vphantom{\rule{0em}{-2ex}}\xrightarrow[i\to\infty]{}-\infty?$$
How can one use the subscript on an \xrightarrow
without having to manually and kludge-ily fix spacing?