TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I was trying to make something like this

(something similar to \substack in \sum) in equation. How to do this ?

share|improve this question
up vote 47 down vote accepted

You should place the expression in the subscript, as shown below. Most LaTeX books explain this.



Display mode: \[ \max_{1 \leq j \leq n} \]

Inline mode: $\max_{1 \leq j \leq n}$, $\max\limits_{1 \leq j \leq n}$.


Note how I used \limits to force the subscript under the operator in inline mode (if you think you need \limits, think again — maybe the defaults look better after all!).

If you find that the subscripted expression is too long and introduces excessive whitespace, use the \smashoperator macro from the mathtools package.

share|improve this answer
ah thanks, I thought it was limited to \sum command only. Silly me. – Yumyai Mar 11 '11 at 10:07

Solved this for Inline mode by using $\underset{1 \leq j \leq n}{\max}$, however this approach requires the amsmath package.

share|improve this answer
This is particularly useful when using user defined operators. $\operatorname{Res}\limits_{z=z_{0}}$ will not give you the desired result, whilst $\underset_{z=z_{0}}{\operatorname{Res}}$ will. – Alfredo Hernández Oct 23 '14 at 17:56
This is also useful when you want to put a subscript under something LaTeX doesn't think is a math operator (like that's a meaningful distinction), and therefore prevents the use of \limits. – Richard Rast Nov 14 '14 at 14:45
@AlfredoHernández I think \operatorname* is the way to go for \limits-compatible custom math operators. – Andras Deak Feb 21 at 20:01

I would solve it like this:

    \max\limits_{1\leq j\leq n}
share|improve this answer
In display math, there's no need to use \limits. – Hendrik Vogt Mar 11 '11 at 9:07
@Hendrik Vogt: That's good to know. – meep.meep Mar 11 '11 at 9:12

Your Answer


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.