公式与括号之间的垂直间距

公式与括号之间的垂直间距

我有以下内容;但是我想在公式和下括号之间添加更多空间,以便它看起来不那么拥挤。我该怎么做?

\documentclass[a4paper]{article}   
\usepackage{mathtools}
\begin{document}
   \begin{equation}\label{eq:reprojection_error_final}
        f=\min_{\hat{P}^i, \hat{X}_j}
        \sum_{ij} \Bigl[\underbracket[1.5pt][8pt]{d(\hat{P}^i \hat{X}_j, x^i_j)}_{\text{Projektionsdiff.}} + \underbracket[1.5pt][8pt]{d(L_k^m - L_{k+1}^m ,\hat{X}_k^m - \hat{X}_{k+1}^m)}_{\text{3D-Punkt-Differenz}} + \underbracket[1.5pt][8pt]{d(\hat{X}_0, 0)}_{\text{Ursprungsdiff.}}\Bigr]^2
        \end{equation}
\end{document}

目前结果: 在此处输入图片描述

答案1

您可以使用该bigstrut包:\bigstrut[b]在插入点下方添加垂直距离,该距离由以下值控制\bigstrutjot

\documentclass[a4paper]{article}
\usepackage{mathtools}
\usepackage{bigstrut}

\begin{document}

\begin{equation}\label{eq:reprojection_error_final}
    f=\min_{\hat{P}^i, \hat{X}_j}
    \sum_{ij} \Bigl[\underbracket[1.5pt][8pt]{\bigstrut[b]d(\hat{P}^i \hat{X}_j, x^i_j)}_{\text{Projektionsdiff.}} + \underbracket[1.5pt][8pt]{\bigstrut[b]d(L_k^m - L_{k+1}^m ,\hat{X}_k^m - \hat{X}_{k+1}^m)}_{\text{3D-Punkt-Differenz}} + \underbracket[1.5pt][8pt]{\bigstrut[b]d(\hat{X}_0, 0)}_{\text{\clap{Ursprungsdiff.}}}\Bigr]^2
\end{equation}

\begin{equation}\label{eq:reprojection_error_final}
\setlength{\bigstrutjot}{1.5ex}
    f=\min_{\hat{P}^i, \hat{X}_j}
    \sum_{ij} \Bigl[\underbracket[1.5pt][8pt]{\bigstrut[b]d(\hat{P}^i \hat{X}_j, x^i_j)}_{\text{Projektionsdiff.}} + \underbracket[1.5pt][8pt]{\bigstrut[b]d(L_k^m - L_{k+1}^m ,\hat{X}_k^m - \hat{X}_{k+1}^m)}_{\text{3D-Punkt-Differenz}} + \underbracket[1.5pt][8pt]{\bigstrut[b]d(\hat{X}_0, 0)}_{\text{\clap{Ursprungsdiff.}}}\Bigr]^2
\end{equation}

\end{document} 

在此处输入图片描述

答案2

另请查看\vphantom

\documentclass[a4paper]{article}   
\usepackage{mathtools}
\begin{document}
   \begin{equation}\label{eq:reprojection_error_final}
        f=\min_{\hat{P}^i, \hat{X}_j}
        \sum_{ij} \Bigl[\underbracket[1.5pt][8pt]{d_{\strut}(\hat{P}^i \hat{X}_j, x^i_j)}_{\text{Projektionsdiff.}} + \underbracket[1.5pt][8pt]{d_{\strut}(L_k^m - L_{k+1}^m ,\hat{X}_k^m - \hat{X}_{k+1}^m)}_{\text{3D-Punkt-Differenz}} + \underbracket[1.5pt][8pt]{d_{\strut}(\hat{X}_0, 0)}_{\text{Ursprungsdiff.}}\Bigr]^2
        \end{equation}
\end{document}

相关内容