I want to indicate |D| as a subscript of a subscript, but its spacing changes on the subscript where it becomes more distant.
\documentclass[10pt,journal,compsoc]{IEEEtran}
\begin{document}
\phantom{} \\
$d_{\left|D\right|}$ \\
\(C_{H_{d_{\left|D\right|}}}^{j}\)
\end{document}
Here I observe that on the subscript of a subscript on the second line, more space is added in between | and D. Is it possible to use same spacing used on the first example on the subscript?



}– daleif Sep 19 '22 at 14:53\leftand\rightin these formulas? – Mico Sep 19 '22 at 15:34\left/\rightwas recommended – alper Sep 19 '22 at 16:04\leftand\rightwas acceptable -- note that using\leftand\rightwasn't really recomended -- is because, for once, the extra whitespace that\leftand\rightinsert just happened to be desirable for the use case at hand. I'd say that this is a classic exception that proves the rule... – Mico Sep 19 '22 at 16:51