I would like to use the method \adjustlimits from the mathtools package in conjunction with the \smashoperator method. In the MWE I don't know how and where to use the \adjustlimits method. Trying to write it at the beginning with and without parentheses always produces errors.
MWE
\documentclass{article}
\usepackage{mathtools}
\begin{document}
\[
\smashoperator{\sum_{i \in X \colon i \neq 5}} \, x_i - \smashoperator{\sum_{i \in \bar{X} \colon i \neq 8}} \, y_i
\]
\end{document}


\adjustlimitsalong with\smashoperator. – egreg Mar 07 '15 at 10:17Xin the first sum to be the same height as the\bar{X}in the second sum. – user2653422 Mar 07 '15 at 10:20