Salto de línea extraño en notas de tabla (de ThreePartTable)

Salto de línea extraño en notas de tabla (de ThreePartTable)

Estoy usando los paquetes threeparttableand tablenotespara crear notas al pie de tablas. Descubrí que para obtener el diseño que quiero (símbolos colgantes, no superíndices), puedo simplemente usar la paraopción e ingresar manualmente mis notas a pie de página, en lugar de usar la \item[]sintaxis convencional. Sin embargo, hacerlo de esta manera produce un espacio extraño entre el símbolo y el texto (incluso si lo envuelvo entre llaves o uso una línea de texto muy corta). Poner un mboxalrededor de la nota resuelve el problema, pero el texto se queda sin el ancho de la tabla. Ponerle un pboxrodeo tampoco resuelve el problema.

Tengo curiosidad por saber por qué sucede esto y qué solución simple puede haber. Consulte la imagen y el código a continuación para obtener una explicación.

ingrese la descripción de la imagen aquí

MWE

\documentclass{scrartcl}

\usepackage{booktabs}
\usepackage[para]{threeparttable}
\usepackage{tablefootnote}
\renewcommand{\TPTnoteSettings}{\footnotesize}
\newcommand{\tabfnote}[2]{\llap{#1. }#2}

\begin{document}
\begin{table}[tbph]
    \begin{threeparttable}[t]
        \begin{tabular}{ll} \toprule
            Alpha & Beta \\
            Gamma & Delta \\ \bottomrule
        \end{tabular}
        \begin{tablenotes}
            \tabfnote{a}{Why is there space above?}\\
            \tabfnote{b}{But not above this one...}\\
            \tabfnote{c}{Or this one}
        \end{tablenotes}
    \end{threeparttable}
\end{table}
\end{document}

Respuesta1

Algo sucede vertical modeal principio de tablenotes, que realmente no entiendo, pero agregar \leavevmodeal comienzo de la definición de \tabfnoteresuelve el problema:

\documentclass{scrartcl}

\usepackage{booktabs}
\usepackage[para]{threeparttable}
\usepackage{tablefootnote}
\renewcommand{\TPTnoteSettings}{\footnotesize}
\newcommand{\tabfnote}[2]{\leavevmode\llap{#1. }#2}

\begin{document}

\begin{table}[tbph]
    \begin{threeparttable}[t]
        \begin{tabular}{ll} \toprule
            Alpha & Beta \\
            Gamma & Delta \\ \bottomrule
        \end{tabular}
        \begin{tablenotes}
            \tabfnote{a}{Why is there space above?}\\
            \tabfnote{b}{But not above this one...}\\
            \tabfnote{c}{Or this one}
        \end{tablenotes}
    \end{threeparttable}
\end{table}

\end{document} 

ingrese la descripción de la imagen aquí

información relacionada