154

I would like to put some text in math mode below a mathematical operator (or a symbol), similar to \substack in \sum, as the red text below the \max operator in the following image

example subscript

How to do this?

GiuTeX
  • 1,309
Yumyai
  • 1,643
  • 2
  • 11
  • 5

4 Answers4

125

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

seeker
  • 1,795
110

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

\documentclass{article}

\begin{document} \begin{itemize} \item \textbf{Display mode}: [\max_{1 \leq i \leq N}] \item \textbf{Inline mode}: version without \verb!\limits! would look like (\max_{1 \leq i \leq N}), version with \verb!\limits! would look like(\max\limits_{1 \leq i \leq N}) inside a text. \end{itemize} \end{document}

output of code

Note how \limits command force the subscript under operator in inline mode (if you think you need \limits, think again — maybe the defaults look better after all! cf. this answer here on TeX.se).

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

GiuTeX
  • 1,309
Andrey Vihrov
  • 22,325
16

I would solve it like this:

\documentclass{scrartcl}
\usepackage{amsmath}
\begin{document}  
\[
    \max\limits_{1\leq j\leq n}
\]  
\end{document}
meep.meep
  • 16,905
5

As someone suggest above. We should use \underset command:

\underset{1\leqslant j\leqslant n}{max}.

\underset{\substack{\rho\to 0\ n\to\infty}}{l.i.m.}

(for my question above).

Zarko
  • 296,517
  • 2
    I try to format code in your answer, however it suggest strange solution with wrong typography. Also is not clear what you mean with "(for my question above)." so I suggest to delete it. – Zarko May 14 '21 at 03:02
  • 1
    I would not delete it, it works like a charm for me. – ranchalp Jul 14 '22 at 04:38
  • Thanks for the \substack suggestion, it allows multiple lines. I was using simply \\ but it didn't work. – Yan King Yin Dec 17 '22 at 08:39