테이블노트(ThreePartTable의)에서 이상한 줄 바꿈

테이블노트(ThreePartTable의)에서 이상한 줄 바꿈

나는 테이블의 각주를 만들기 위해 threeparttable및 패키지를 사용하고 있습니다. tablenotes내가 원하는 디자인(위 첨자가 아닌 매달린 기호)을 얻으려면 para기존 구문을 사용하는 대신 옵션을 사용하고 수동으로 각주를 입력하면 됩니다 \item[]. 그러나 이렇게 하면 기호와 텍스트 사이에 이상한 공간이 생깁니다(중괄호로 묶거나 매우 짧은 텍스트 줄을 사용하더라도). 메모 주위에 를 넣으면 mbox문제가 해결되지만 텍스트가 표 너비를 초과합니다. 주변에 놓아도 pbox문제가 해결되지 않습니다.

왜 이런 일이 발생하는지, 그리고 어떤 간단한 해결책이 있는지 궁금합니다. 설명은 아래 이미지와 코드를 참고해주세요.

여기에 이미지 설명을 입력하세요

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}

답변1

vertical mode의 맨 처음 부분 에서 문제가 발생하는데 tablenotes, 이는 실제로 이해가 안 되지만 \leavevmode정의의 시작 부분에 a를 추가하면 \tabfnote문제가 해결됩니다.

\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} 

여기에 이미지 설명을 입력하세요

관련 정보