4

How can you instruct latex to use \int\limits as default for \int except when it's in inline math mode?

Example:

In display math: \int is replaced by \int\limits

In inline math: \int should stay \int

2
  • To use \int\limits where? In displayed formula? Please, add an example code.
    – Sigur
    Commented Jan 29, 2016 at 20:09
  • I've added an example that should answer your question.
    – ndrizza
    Commented Jan 29, 2016 at 20:12

1 Answer 1

9

Just load the amsmath package with the option intlimits.

A full MWE (minimum working example):

\documentclass{article}
\usepackage[intlimits]{amsmath}
\begin{document}
$\int_0^1 \quad \displaystyle \int_0^1$
\end{document}

enter image description here

3
  • 1
    Thanks that worked! Since I'm using mathtools too I had to add that option there too in order not to get a name clash with amsmath.
    – ndrizza
    Commented Jan 29, 2016 at 20:22
  • 1
    @ndrizza - The mathtools package loads the amsmath package automatically -- no need to load both explicitly.
    – Mico
    Commented Jan 29, 2016 at 20:23
  • Thank you! I was never sure about that. - That might explain the name clash. Indeed if I remove the import nothing changes.
    – ndrizza
    Commented Jan 29, 2016 at 20:24

You must log in to answer this question.

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