Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

share|improve this question
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) –  CommuSoft May 28 '12 at 20:29
    
@Werner: true but then the author needs to take care of the size of the integral sign himself. What for instance if the content depends on some external commands he will fill in later. –  CommuSoft May 28 '12 at 20:30
show 5 more comments

1 Answer 1

up vote 4 down vote accepted

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).

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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