8

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?

  • 3
    Perhaps related: How can I have a bigger integral (\int) delimiter? – Werner May 28 '12 at 20:26
  • 2
    Please, don't: it's awful. – egreg 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... – Khaled Hosny 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) – Willem Van Onsem May 28 '12 at 20:29
  • 1
    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? – Willem Van Onsem May 28 '12 at 20:38
4

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}

enter image description here

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.