%EC%97%90%EC%84%9C%20%EC%9D%B4%EC%83%81%ED%95%9C%20%EC%A4%84%20%EB%B0%94%EA%BF%88.png)
나는 테이블의 각주를 만들기 위해 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}