2

How do I type two lines of subscript as shown below?

enter image description here

Ingmar
  • 6,690
  • 5
  • 26
  • 47
ysk
  • 101
  • Welcome to TeX.SE! With substack, for example \[ \sum_{\substack{1\le\le n\\ 1<j<k}} \] – Zarko Dec 12 '20 at 01:08

1 Answers1

2

With use of the substack.

enter image description here

With using the amsmath package, you can simply define math operator for dist (it should be in upright letters):

\documentclass[varwidth, margin=3mm]{standalone}
\usepackage{amsmath}

\DeclareMathOperator{\dist}{dist}

\begin{document} [ C=\sum_{\substack{1\leq i\leq n\ 1 <j <k}}\dist(d_i,c_j) ] or

[ C=\sum\nolimits_{\substack{1\leq i\leq n\ 1 <j <k}}\dist(d_i,c_j) ] \end{document}

Zarko
  • 296,517