Is there a way to get the exact spacing between different parts of a document?
I know the question may sound a bit vague, so here's the context in which the question arose.
Here there is a code snippet to let ntheorem split a long theorem name in multiple lines. The code seems to be working fine, but introduces an extra spacing after the theorem name. On the other hand I tried to redefine the break theoremstyle using parbox. The spacing appears the same as in the default case but is smaller in case the theorem name is longer than a line. Here's a MWE of what I'm talking about
\documentclass[11pt]{article}
\usepackage[framed,thmmarks,thref, hyperref]{ntheorem}
\theoremstyle{break}
\theoremseparator{:}
\newtheorem{testt}{theorem}
\begin{document}
\begin{testt}[default style]
body
\end{testt}
\makeatletter
\let\nobreakitem\item
\let\@nobreakitem\@item
\patchcmd{\nobreakitem}{\@item}{\@nobreakitem}{}{}
\patchcmd{\nobreakitem}{\@item}{\@nobreakitem}{}{}
\patchcmd{\@nobreakitem}{\@itempenalty}{\@M}{}{}
\patchcmd{\@xthm}{\ignorespaces}{\nobreak\ignorespaces}{}{}
\patchcmd{\@ythm}{\ignorespaces}{\nobreak\ignorespaces}{}{}
\renewtheoremstyle{break}%
{\item{\theorem@headerfont
##1\ ##2\theorem@separator}\hskip\labelsep\relax\nobreakitem}%
{\item{\theorem@headerfont
##1\ ##2\ (##3)\theorem@separator}\hskip\labelsep\relax\nobreakitem}
\makeatother
\begin{testt}[short name]
solution I found online
\end{testt}
\begin{testt}[very very very very very very long theorem name, should be longer than one line]
solution I found online
\end{testt}
\makeatletter
\renewtheoremstyle{break}%
{\item[\rlap{\vbox{\hbox{\hskip\labelsep \theorem@headerfont
##1\ ##2\theorem@separator}\hbox{\strut}}}]}%
{\item[\parbox{\textwidth}{\leftskip\labelsep \theorem@headerfont
##1\ ##2\ (##3)\theorem@separator}\hbox{\strut}]}
\makeatother
\begin{testt}[short name]
my solution
\end{testt}
\begin{testt}[very very very very very very long theorem name, should be longer than one line]
my solution
\end{testt}
\end{document}
Now, I don't want to say "ok the spacing looks the same/looks different" but rather "ok the spacing is the same/is different". Is there a way to get the exact spacing between the lines without having to guess it?
