2014-12-23 2 views
0

저는 신참입니다. 다음과 같이 PDF 테이블로 컴파일하는 데 사용되는 다음과 같은 라텍스 코드가 생성되었습니다. 그러나 컴파일 된 테이블은 두 번째 페이지부터 시작하여 첫 번째 페이지를 비워두고 테이블 아래쪽에 텍스트가 일부 겹쳐서 표시됩니다. 이 두 가지 문제를 해결하기위한 제안? 나는이 하나를 둘러보고되었다두 번째 페이지부터 테이블 시작 (및 아래쪽에서 잘림)

\usepackage{graphicx} 
\usepackage{tabularx} 
\usepackage{booktabs} 
%------------------------------------- 
\begin{document}  
\begin{center} 
\footnotesize 
\newcolumntype{Y}{>{\raggedleft\arraybackslash}X} 
\begin{tabularx} {11cm} {@{} l Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y [email protected]{}} \\ 
\toprule 
& \multicolumn{3}{c}{\textbf{Local Hukou}} \\ 
\cmidrule(l{.75em}){2-4} 
&\textbf{yes}&\textbf{No}&\textbf{Total} \\ 
\midrule 
\textbf{Education}&&& \\ 
Not College graduates&1,530&759&2,289\\ 
College graduates&858&316&1,174\\ 
\textbf{Total}&2,388&1,075&3,463\\ 
& & & \\ 
Not College graduates&66.8\%&33.2\%&100.0\% \\ 
College graduates&73.1\%&26.9\%&100.0\% \\ 
\textbf{Total}&69.0\%&31.0\%&100.0\% \\ 
& & & \\ 
Not College graduates&64.10\%&70.60\%&66.10\% \\ 
College graduates&35.90\%&29.40\%&33.90\% \\ 
\textbf{Total}&100.0\%&100.0\%&100.0\% \\ 
\midrule 
\textbf{Marriage}&&& \\ 
No&299&70&369 \\ 
Yes&1,975&964&2,939\\ 
\textbf{Total}&2,274&1,034&3,308\\ 
& & & \\ 
No&81.0\%&19.0\%&100.0\% \\ 
Yes&67.2\%&32.8\%&100.0\% \\ 
\textbf{Total}&68.7\%&31.3\%&100.0\% \\ 
& & & \\ 
No&13.1\%&6.8\%&11.2\% \\ 
Yes&86.9\%&93.2\%&88.8\% \\ 
\textbf{Total}&100.0\%&100.0\%&100.0\% \\ 

\midrule 
\textbf{Employ Status}&&& \\ 
have a job&2,040&935&2,975\\ 
No job&348&140&488\\ 
\textbf{Total}&2,388&1,075&3,463\\ 
& & & \\ 
have a job&68.6\%&31.4\%&100.0\% \\ 
No job&71.3\%&28.7\%&100.0\% \\ 
\textbf{Total}&69.0\%&31.0\%&100.0\% \\ 
& & & \\ 
have a job&85.4\%&87.0\%&85.9\% \\ 
No job&14.6\%&13.0\%&14.1\% \\ 
\textbf{Total}&100.0\%&100.0\%&100.0\% \\ 
\midrule 
\textbf{Works character}&&& \\ 
Not be employed&746&332&1,078 \\ 
Be employed&1,642&743&2,385\\ 
\textbf{Total}&2,388&1,075&3,463\\ 
& & & \\ 
Not be employed&69.2\%&30.8\%&100.0\% \\ 
Be employed&68.8\%&31.2\%&100.0\% \\ 
\textbf{Total}&69.0\%&31.0\%&100.0\% \\ 
& & & \\ 
Not be employed&31.2\%&30.9\%&31.1\% \\ 
Be employed&68.8\%&69.1\%&68.9\% \\ 
\textbf{Total}&100.0\%&100.0\%&100.0\% \\ 
\midrule 
\textbf{Employer's character}&&& \\ 
other job&1,991&950&2,941\\ 
state sectors job&397&125&522\\ 
\textbf{Total}&2,388&1,075&3,463 \\ 
& & & \\ 
other job&67.7\%&32.3\%&100.0\% \\ 
state sectors job&76.1\%&23.9\%&100.0\% \\ 
\textbf{Total}&69.0\%&31.0\%&100.0\% \\ 
& & & \\ 
other job&83.4\%&88.4\%&84.9\% \\ 
state sectors job&16.6\%&11.6\%&15.1% \\ 
\textbf{Total}&100.0\%&100.0\%&100.0\% \\ 
\bottomrule 
\addlinespace[.75ex] 
\end{tabularx} 
\par 
\scriptsize{\emph{Source: }CHFS} 
\normalsize 
\end{center} 

\end{document} 

답변

0

은 여러 페이지를 스팬하고 \usepackage{ltablex}했다 tabularx 테이블에 대한 답변이 있었다. 그러면 tabularx에 표 줄 사이에 페이지 구분선이있을 수 있습니다. 당신이 당신의 전문에이 줄을 추가하면

당신은 당신의 문서가 현재 2 페이지이고 테이블이 1 페이지에 시작하고 2 페이지

당신이 \을 놓친 마지막 줄에 대한 문제에가는 것을 발견 할 것이다 :

state sectors job&16.6\%&11.6\%&15.1% \\ 

는해야

state sectors job&16.6\%&11.6\%&15.1\% \\ 
관련 문제