I have the following; however I want to add more space between the formula and the underbrackets so that it doesn't look so squished. How can I do that?
\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}


MathToolspackage documentation does not mention anything regarding that distance. This is the only thing provided:\underbracket[〈rule thickness〉] [〈bracket height〉]{〈arg〉}and\overbracket[〈rule thickness〉] [〈bracket height〉]{〈arg〉}. – Sina Ahmadi Nov 09 '18 at 14:12Tikzto manually add the brackets wherever you would like. It'll be a little bit messy but will do what you're looking for. – Sina Ahmadi Nov 09 '18 at 14:24