我偶尔会使用 LaTex。我的问题与 longtable 的使用有关。如果我理解标准表格构造,那么“tabular”会定义包含内容的实际表格网格的布局,而“table”会为表格创建一个环境,该环境控制表格的放置,还包含相关文本,例如标题、注释等。现在,据我所知,“longtable”基本上取代了“tablular”,但它不能放入“table”环境中。
我需要一些与表格相关的文本,以便在其下方立即打印出来,但不知道该强制谁这样做:
\begin{center}
{\footnotesize
\begin{longtable}{lr}
\caption{Probit estimates for household matching, Burundi, 2006}\\
\hline
& \textbf{Public/WFP transfers} \\
\cline{2-2}
& \textbf{dF/dX} \\
\cline{2-2}
\endfirsthead
\multicolumn{2}{c}%
{\tablename\ \thetable\ -- \textit{Continued from previous page}} \\
\hline
& \textbf{Public/WFP transfers} \\
\cline{2-2}
& \textbf{dF/dX} \\
\cline{2-2}
\endhead
\hline \multicolumn{2}{r}{\textit{Continued on next page}} \\
\endfoot
\hline
\endlastfoot
\multirow{2}{*}{leave-out mean of beneficiaries h'hold in the PSU} & 0.7929*** \\
& [0.0479] \\
\multirow{2}{*}{household size} & -0.0093** \\
& [0.0037] \\
\multirow{2}{*}{h'hold head is female} & 0.0337 \\
& [0.0300] \\
… MANY MORE ROWS
Number of observations & 3203 \\
\% of correct predictions & 84.01 \\
\hline
\end{longtable}}
\end{center}
紧接着的是:
Robust standard errors in brackets.\\
*** p<0.01, ** p<0.05, * p<0.1\\
Authors’ estimations using 2006 QUIBB survey.\\
\textbf{Note}: For the impact analysis, the sample is restricted to
the relevant geographic area. i.e. only the PSU with at least one
household who have benefited from the WFP transfer
。
谢谢
答案1
longtable
环境不浮动,因此源中表格后面的文本将排版在表格后面。此外,环境对(技术上始终是全宽)center
没有影响。longtable
除了将其放置在表格后面之外,您还可以将其放置在\multicolumn
与列对齐的位置。
\documentclass{article}
\usepackage{multirow,longtable}
\begin{document}
{\footnotesize
\begin{longtable}{lr}
\caption{Probit estimates for household matching, Burundi, 2006}\\
\hline
& \textbf{Public/WFP transfers} \\
\cline{2-2}
& \textbf{dF/dX} \\
\cline{2-2}
\endfirsthead
\multicolumn{2}{c}%
{\tablename\ \thetable\ -- \textit{Continued from previous page}} \\
\hline
& \textbf{Public/WFP transfers} \\
\cline{2-2}
& \textbf{dF/dX} \\
\cline{2-2}
\endhead
\hline \multicolumn{2}{r}{\textit{Continued on next page}} \\
\endfoot
\hline
\endlastfoot
\multirow{2}{*}{leave-out mean of beneficiaries h'hold in the PSU} & 0.7929*** \\
& [0.0479] \\
\multirow{2}{*}{household size} & -0.0093** \\
& [0.0037] \\
\multirow{2}{*}{h'hold head is female} & 0.0337 \\
& [0.0300] \\
… MANY MORE ROWS
Number of observations & 3203 \\
\% of correct predictions & 84.01 \\
\hline
\end{longtable}}
\noindent
Robust standard errors in brackets.\\
*** $p<0.01$, ** $p<0.05$, * $p<0.1$\\
Authors’ estimations using 2006 QUIBB survey.
\noindent
\textbf{Note}: For the impact analysis, the sample is restricted to
the relevant geographic area. i.e. only the PSU with at least one
household who have benefited from the WFP transfer
\end{document}