1

I would like the subscript of my sum to look better:

$$
\sum_{d \mid p_j^{m_j}} f(d)
$$

creates the output

enter image description here

but i would like the exponent m_j to be further down and closer p_j.

Silenus
  • 13
  • 2

2 Answers2

2

I'd like to suggest that you \smash the subscript term j in p_j. Alternatively, you could \smash the j subscript term in m_j. Optionally, to remove any ambiguity as to where j in p_j belongs, snug it up to the p term via a \! ("negative thinspace") directive.

enter image description here

\documentclass{article}
\usepackage{amsmath} % for \smash[t] macro
\begin{document}
\[
\sum_{d \mid p_{j}^{m_j}} 
\quad\mbox{vs.}\quad
\sum_{d \mid p_{\smash[t]{\!j}}^{m_j}} 
\quad\mbox{vs.}\quad
\sum_{d \mid p_{\!j}^{m_{\smash{j}}}}
\]
\end{document}
Mico
  • 506,678
0

You can use the commands \left and \right to force something before and after a certain text. If you just want to use something to one side, use . to avoid the unwanted side.

\documentclass{article}

\usepackage{amsmath}

\begin{document}

\begin{equation} \sum_{\left.{d}\right|_{p_j}^{m_j}}f(d) \end{equation}

\end{document}

Here you go!

enter image description here

Mensch
  • 65,388
L Mascolo
  • 307
  • 1
  • 9