Skip to main content
Oops, missed the link to the actual post
Source Link
LSpice
  • 12.9k
  • 19
  • 25

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:

Rendered image from post, with subscript cut off

The same does not happen in a local TeX installation:

Compiled image from TeX, with subscript visible

I "fixed" this in the actual postactual 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?

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:

Rendered image from post, with subscript cut off

The same does not happen in a local TeX installation:

Compiled image from TeX, with subscript visible

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?

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:

Rendered image from post, with subscript cut off

The same does not happen in a local TeX installation:

Compiled image from TeX, with subscript visible

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?

Source Link
LSpice
  • 12.9k
  • 19
  • 25

Why is the subscript on an `\xrightarrow` cut off, and how can I work around it?

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:

Rendered image from post, with subscript cut off

The same does not happen in a local TeX installation:

Compiled image from TeX, with subscript visible

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?