다음은 패키지를 사용한 테이블입니다 ltablex
. 누군가 내가 이것을 어떻게 포함 caption
하고 사용할 수 있는지 말해 줄 수 있습니까 ? threeparttable
참고로 제가 사용한 때는 다음과 같습니다.
\begin{table}
begin{tabularx}
...
\end{tabularx}
\end{table}`
페이지가 깨지지 않았습니다. 제안은 매우 도움이 될 것입니다. 이 예에 제공된 대로 캡션과 각주를 포함하고 싶습니다.테이블 형식.
\documentclass{article}
\usepackage{ltablex}
\usepackage{threeparttable}
\usepackage{booktabs}
\title{Document}
\begin{document}
\maketitle
\begin{tabularx}{\textwidth}{Xc}
\toprule\toprule
Some random text & 1,75,650\\\midrule
\multicolumn{2}{l}{\textbf{Panel A1: AAA}} \\\midrule
Number of observations ... & 1,75,650\\
Delete: ... & (78,420)\\
Delete: ... & (7,104)\\
Final sample & 90,126\\
Delete: & (2,143)\\
Delete: & (8,345)\\
Final sample & 79,638\\\midrule
\multicolumn{2}{l}{\textbf{Panel A2: AAA}} \\\midrule
Number of observations & 79,638\\
Delete: & (39,540)\\
Delete: & (7,979) \\
Final sample & 32,119 \\\midrule
\multicolumn{2}{l}{\textbf{Panel B1: BBB }} \\\midrule
Number of observations & 1,75,650\\
Delete: & (78,420)\\
Delete: & (47,136)\\
Delete: & (7,178)\\
Delete: & (32)\\
Delete: & (32)\\
Delete: & (32)\\
Delete: & (32)\\
Delete: & (32)\\
Delete: & (32)\\
Delete: & (32)\\
Delete: & (32)\\
Final sample & 42,884\\\midrule
\multicolumn{2}{l}{\textbf{Panel B2: BBB}} \\\midrule
Number of observations & 1,75,650\\
Delete: & (78,420)\\
Delete: & (47,136)\\
Delete: & (7,178)\\
Delete: & (32)\\
Delete: & (32)\\
Delete: & (32)\\
Delete: & (32)\\
Delete: & (32)\\
Delete: & (32)\\
Delete: & (32)\\
Delete: & (32)\\
Number of observations & 1,75,650\\
Delete: & (78,420)\\
Delete: & (47,136)\\
Delete: & (7,178)\\
Delete: & (32)\\
Delete: & (32)\\
Delete: & (32)\\
Delete: & (32)\\
Delete: & (32)\\
Delete: & (32)\\
Delete: & (32)\\
Delete: & (32)\\
Final sample & 42,884\\\midrule\bottomrule
\end{tabularx}
\end{document}
답변1
이 방법이 threeparttablex
저에게 맞는 것 같습니다. 다음에서는 긴 표 내부와 끝에 표 메모를 삽입했습니다. 캡션에도 문제가 없습니다. 바로 뒤에 테이블 노트를 작성 \begin{ThreePartTable}
하고 두 번 컴파일해야 합니다.
\documentclass{article}
\usepackage{ltablex}
\usepackage{threeparttablex}
\usepackage{booktabs}
\usepackage[bf,tablename=TABLE,labelsep=newline,aboveskip=0pt]{caption}
\title{Document}
\begin{document}
\maketitle
\begin{ThreePartTable}
\begin{TableNotes}
\item[a] \label{tn:a}1st lovely note.
\item[b] \label{tn:b}2nd lovely note.
\end{TableNotes}
\begin{tabularx}{\textwidth}{Xc}
\caption{A Fine Caption}\\
\toprule\toprule
Some random text & 1,75,650\\\midrule
\multicolumn{2}{l}{\textbf{Panel A1: AAA}} \\\midrule
Number of observations ...\tnote{tn:a} & 1,75,650\\
Delete: ... & (78,420)\\
Delete: ... & (7,104)\\
Final sample & 90,126\\
Delete: & (2,143)\\
Delete: & (8,345)\\
Final sample\tnote{tn:b} & 79,638\\\midrule
\multicolumn{2}{l}{\textbf{Panel A2: AAA}} \\\midrule
Number of observations & 79,638\\
Delete: & (39,540)\\
Delete: & (7,979) \\
Final sample & 32,119 \\\midrule
\insertTableNotes\\[12pt]\midrule
\multicolumn{2}{l}{\textbf{Panel B1: BBB }} \\\midrule
Number of observations & 1,75,650\\
Delete: & (78,420)\\
Delete: & (47,136)\\
Delete: & (7,178)\\
Delete: & (32)\\
Delete: & (32)\\
Delete: & (32)\\
Delete: & (32)\\
Delete: & (32)\\
Delete: & (32)\\
Delete: & (32)\\
Delete: & (32)\\
Final sample & 42,884\\\midrule
\multicolumn{2}{l}{\textbf{Panel B2: BBB}} \\\midrule
Number of observations & 1,75,650\\
Delete: & (78,420)\\
Delete: & (47,136)\\
Delete: & (7,178)\\
Delete: & (32)\\
Delete: & (32)\\
Delete: & (32)\\
Delete: & (32)\\
Delete: & (32)\\
Delete: & (32)\\
Delete: & (32)\\
Delete: & (32)\\
Number of observations & 1,75,650\\
Delete: & (78,420)\\
Delete: & (47,136)\\
Delete: & (7,178)\\
Delete: & (32)\\
Delete: & (32)\\
Delete: & (32)\\
Delete: & (32)\\
Delete: & (32)\\
Delete: & (32)\\
Delete: & (32)\\
Delete: & (32)\\
Final sample & 42,884\\\midrule\bottomrule
\insertTableNotes
\end{tabularx}
\end{ThreePartTable}
\end{document}
답변2
이 시도:
\documentclass{article}
\usepackage{ltablex}
\usepackage{threeparttablex}
\usepackage{booktabs}
\usepackage{caption}
\title{Document}
\begin{document}
\maketitle
\captionof{table}{TITLE}
\begin{ThreePartTable}
\begin{tabularx}{\textwidth}{Xc}
\toprule\toprule
Some random text\tnote{a} & 1,75,650\\\midrule
\multicolumn{2}{l}{\textbf{Panel A1: AAA}} \\\midrule
Number of observations ... & 1,75,650\\
Delete: ... & (78,420)\\
Delete: ... & (7,104)\\
Final sample & 90,126\\
Delete: & (2,143)\\
Delete: & (8,345)\\
Final sample & 79,638\\\midrule
\multicolumn{2}{l}{\textbf{Panel A2: AAA}} \\\midrule
Number of observations & 79,638\\
Delete: & (39,540)\\
Delete: & (7,979) \\
Final sample & 32,119 \\\midrule
\multicolumn{2}{l}{\textbf{Panel B1: BBB }} \\\midrule
Number of observations & 1,75,650\\
Delete: & (78,420)\\
Delete: & (47,136)\\
Delete: & (7,178)\\
Delete: & (32)\\
Delete: & (32)\\
Delete: & (32)\\
Delete: & (32)\\
Delete: & (32)\\
Delete: & (32)\\
Delete: & (32)\\
Delete: & (32)\\
Final sample & 42,884\\\midrule
\multicolumn{2}{l}{\textbf{Panel B2: BBB}} \\\midrule
Number of observations & 1,75,650\\
Delete: & (78,420)\\
Delete: & (47,136)\\
Delete: & (7,178)\\
Delete: & (32)\\
Delete: & (32)\\
Delete: & (32)\\
Delete: & (32)\\
Delete: & (32)\\
Delete: & (32)\\
Delete: & (32)\\
Delete: & (32)\\
Number of observations & 1,75,650\\
Delete: & (78,420)\\
Delete: & (47,136)\\
Delete: & (7,178)\\
Delete: & (32)\\
Delete: & (32)\\
Delete: & (32)\\
Delete: & (32)\\
Delete: & (32)\\
Delete: & (32)\\
Delete: & (32)\\
Delete: & (32)\\
Final sample & 42,884\\\midrule\bottomrule
\end{tabularx}
\begin{tablenotes}
\item[a] TEXT-TEXT
\end{tablenotes}
\end{ThreePartTable}
\end{document}
다음 환경에서 시도해 보세요 longtabu
.
\documentclass[a4,12pt]{article}
\usepackage{caption}
\usepackage{longtable}
\usepackage{tabu}
\usepackage{threeparttablex}
\title{Document}
\begin{document}
\maketitle
Text-Text
\captionof{table}{TITLE.}
\begin{ThreePartTable}
\begin{longtabu}{cc}
\tabucline[2pt]{-}
Some random text\tnote{a} & 1,75,650\\
\tabucline[1pt]{-}
\multicolumn{2}{l}{\textbf{Panel A1: AAA}} \\
\tabucline[1pt]{-}
Number of observations ... & 1,75,650\\
Delete: ... & (78,420)\\
Delete: ... & (7,104)\\
Final sample & 90,126\\
Delete: & (2,143)\\
Delete: & (8,345)\\
Final sample & 79,638\\
%\tabucline[1pt]{-}
\multicolumn{2}{l}{\textbf{Panel A2: AAA}} \\
\tabucline[1pt]{-}
Number of observations & 79,638\\
Delete: & (39,540)\\
Delete: & (7,979) \\
Final sample & 32,119 \\
\tabucline[1pt]{-}
\multicolumn{2}{l}{\textbf{Panel B1: BBB }} \\
\tabucline[1pt]{-}
Number of observations & 1,75,650\\
Delete: & (78,420)\\
Delete: & (47,136)\\
Delete: & (7,178)\\
Delete: & (32)\\
Delete: & (32)\\
Delete: & (32)\\
Delete: & (32)\\
Delete: & (32)\\
Delete: & (32)\\
Delete: & (32)\\
Delete: & (32)\\
Final sample & 42,884\\
\tabucline[1pt]{-}
\multicolumn{2}{l}{\textbf{Panel B2: BBB}} \\
\tabucline[1pt]{-}
Number of observations & 1,75,650\\
Delete: & (78,420)\\
Delete: & (47,136)\\
Delete: & (7,178)\\
Delete: & (32)\\
Delete: & (32)\\
Delete: & (32)\\
Delete: & (32)\\
Delete: & (32)\\
Delete: & (32)\\
Delete: & (32)\\
Delete: & (32)\\
Number of observations & 1,75,650\\
Delete: & (78,420)\\
Delete: & (47,136)\\
Delete: & (7,178)\\
Delete: & (32)\\
Delete: & (32)\\
Delete: & (32)\\
Delete: & (32)\\
Delete: & (32)\\
Delete: & (32)\\
Delete: & (32)\\
Delete: & (32)\\
Final sample & 42,884\\
\tabucline[2pt]{-}
\end{longtabu}
\begin{tablenotes}
\item[a] TEXT-TEXT
\end{tablenotes}
\end{ThreePartTable}
\end{document}