方程式環境におけるラベルの位置 2024-6-17 • 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} 関連情報