# How to change the position of underset?

In the command:

\underset{t \rightarrow x}{\limsup} f(t) = \underset{t \rightarrow x}{\liminf} f(t)


I get the {t \rightarrow x} lower under the limsup then the liminf (due to the "p" in limsup).

How can I change the position of the underset?

-
A tip: If you indent lines by 4 spaces, then they are marked as a code sample. You can also highlight the code and click the "code" button (with "101010" on it). –  Caramdir Mar 10 '11 at 19:18
Shouldn't that be written as \limsup_{t \rightarrow x} f(t) = \liminf_{t \rightarrow x} f(t)? Doesn't solve the problem though. –  Caramdir Mar 10 '11 at 19:23
I tried that first, but it placed the {t \rightarrow x} to the right of limsup. –  milcak Mar 10 '11 at 19:24
That is usually by design in inline mode. You can override that behavior with \limsup\limits_{t \rightarrow x} f(t). –  Caramdir Mar 10 '11 at 19:27
Very much related: Supremum of the infimum (possible duplicate). –  Hendrik Vogt Mar 11 '11 at 7:45

A phantom could be useful:

\documentclass{article}
\usepackage{amsmath}

\begin{document}

$\underset{t \rightarrow x}{\limsup} f(t) = \underset{t \rightarrow x}{\liminf\vphantom{p}} f(t)$

\end{document}

-
Yes that works thank you! Is there a general way of adjusting the position though? –  milcak Mar 10 '11 at 19:17
you can also use a \mathstrut in lieu of the phantom, nothing wrong with your solution either. –  Yiannis Lazarides Mar 10 '11 at 19:22
How does the \mathstrut work? –  milcak Mar 10 '11 at 19:23
@Yiannis: yes. That will also work. –  Gonzalo Medina Mar 10 '11 at 19:30