
有沒有辦法垂直調整下面兩個和的下限,使「p」和「q」垂直對齊?
\sum_{p=1}^{\mathcal{M}}\sum_{q\in\mathfrak{N}_p^+}
編輯:根據下面的egreg評論,我嘗試過
\sum_{p=1\vphantom{\mathfrak{N}_p^+}}^{\mathcal{M}}\sum_{q\in \mathfrak{N}_{p}^+}
這導致
但是,我更願意將第二個下限移至第一個下限,而不是相反。我試過
\sum_{p=1}^{\mathcal{M}}\sum_{q\in\mathfrak{N}_{p}^+\vphantom{p=1}},
但這沒有任何作用。
答案1
您可以使用幻象來均衡兩個下標。
我更喜歡(更複雜的)第二個建議,其中 + 在頂部被破壞,因此兩個下標更接近求和符號。
\documentclass{article}
\usepackage{amsmath,amssymb}
\begin{document}
Original
\[
\sum_{p=1}^{\mathcal{M}}\sum_{q\in\mathfrak{N}_p^+}
\]
First suggestion
\[
\sum_{p=1\vphantom{q\in\mathfrak{N}_p^+}}^{\mathcal{M}}\sum_{q\in\mathfrak{N}_p^+}
\]
Second suggestion
\[
\sum_{p=1\vphantom{q\in\mathfrak{N}_p^{\smash[t]{+}}}}^{\mathcal{M}}\sum_{q\in\mathfrak{N}_p^{\smash[t]{+}}}
\]
\end{document}
為了在基線上產生規則,我使用了上面程式碼中未顯示的技巧。