方程式環境中的標籤位置 2024-6-20 • equations vertical-alignment numbering 我正在尋找一種將方程式環境的標籤與公式文字的基線對齊的方法。預設行為 \begin{equation} \begin{array}{llr} \hat x &= \underset{x} {\text{arg\,min}} & f(x)+ \sum_i \lambda_i g_i(x) \end{array} \tag{SomeLabel} \end{equation} 似乎產生 在這裡,標籤實際上是整個方程式的垂直居中。我認為如果它與基線對齊會更好。有人知道怎麼修這個東西嗎? 答案1 為什麼array? \documentclass{article} \usepackage{amsmath} \DeclareMathOperator*{\argmin}{arg\,min} \begin{document} \begin{equation} \hat x = \argmin_{x} f(x)+ \sum_i \lambda_i g_i(x) \tag{SomeLabel} \end{equation} \end{document} 相關內容