10

I wish I could override the \ int command, so that each integral is rendered this way.

enter image description here

Yes, I know the command to display it this way is \int\displaylimits_a^b, but I would like to overwrite the original command. Some idea?

2
  • 3
    \let\oldint\int and \def\int{\oldint\displaylimits_a^b}
    – koleygr
    Commented Aug 1, 2022 at 20:33
  • Are you actually trying to fix the limits to be “a” and “b”? Or are you trying to change the integral to always have \displaylimits? Commented Aug 2, 2022 at 7:54

2 Answers 2

8

\int is defined as

\DeclareRobustCommand\int{\intop\nolimits}

so you could simply use \intop otherwise \let\int\intop if you want to use \int

23

Use the relevant option in amsmath:

\documentclass{article}
\usepackage[intlimits]{amsmath}

\begin{document}

\[
\int_{a}^{b} f(x)\,dx
\]

\end{document}

enter image description here

You must log in to answer this question.

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