4

I wanted to use \mathclap (from mathtools) to make more compact the appearance of

\documentclass[12pt]{report}
\usepackage{mathtools}

\begin{document}
\[ \lim_{(x,y)\to (0,0)} f(x,y) \]
\end{document}

nomathclap

I decided to use \mathclap, so I replaced the above code with

\[ \lim_{\mathclap{(x,y)\to (0,0)}} f(x,y) \]

mathclap

but as can be seen in the resulting picture, f(x,y) dips a bit too low and brushes against the subscript of the limit. Are there any good ways to make the appearance compact without getting the overlapping of f(x,y) with the subscript?

1 Answer 1

5

You can lower that subscript by a little by adding an invisible rule via \mystrut:

\documentclass{article}
\usepackage{mathtools}
\newcommand{\mystrut}{\rule{0pt}{1.6ex}}   %% <-- adjust this
\begin{document}
  \[ \lim_{\mathclap{(x,y)\rightarrow (0,0)\mystrut}}  f(x,y) \]
\end{document}

enter image description here

1
  • oops, I must have edited my example after you started writing your solution. but the solution still works, of course :)
    – justin
    Aug 27, 2015 at 3:22

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .