# Enlarge the integral sign proportional to its content

In LaTeX you have a command like \left(\right) to enlarge the brackets proportional to the content between the brackets.

for instance \left(a\right) will produce smaller brackets than \left(\displaystyle\frac{a}{b^n}\right)

Is there a similar trick for the integral sign?

• Please, don't: it's awful. May 28 '12 at 20:27
• @egreg: MS Office does that (if the OpenType math font supports it) and some people seem to think it makes it better than TeX... May 28 '12 at 20:28
• @egreg: It's not my idea (I'm asking this for someone I know :D). And perhaps this is indeed awful however one does expect LaTeX to have a general solution to this probem (so one can do this trick with other symbols) May 28 '12 at 20:29
• I agree there are some arguments against the idea. However I am wondering if there is a general solution to the problem. For instance what if someone makes his own backets? May 28 '12 at 20:38

## 1 Answer

A hacky solution using unicode-math that only works with fonts that have multiple integral sizes (e,g. Asana Math or Cambria Math), and xelatex or lualatex of course:

\documentclass{article}
\usepackage{unicode-math}
\setmathfont{Asana Math}

\def\delint{\Udelimiter 4 \symoperators "222B }
\def\extint#1{\left\delint #1\right.}
\begin{document}
$\extint{\frac{\sum^{a+b}}{\sum_{x+y}}} \int$
\end{document}


Integral indices are broken, though (needs more thought).