2017-02-01 1 views
0

LaTeX에서 일반적인 페이지 여백에 맞고 각 열 머리글 아래에 데이터 센터가있는 6 열 테이블을 그리려합니다. 열 제목의 줄이는 것은 좋습니다. 지난 3 시간 동안 다양한 답변을 읽는 데 보냈습니다. 테이블을 그리는 것과 관련된 각 질문마다 다른 해결책이있는 것 같습니다. 결과적으로 나는 그 일을하는 길을 잃어 버렸습니다. 내 테이블은 현재 오른쪽의 페이지 여백에서 벗어납니다. 나는 tabularx와 같은 패키지를 사용할 수 없으므로 테이블을 표 환경에서 그려야하며 begin 테이블 호출 위의 문서에 추가 패키지가로드되지 않아야합니다. 여기에 테이블을 그리는 데 사용 본 코드 :LaTeX 테이블 그림에 좌절했습니다.

\begin{tabular}{l*{6}{c}r} 
: 나는 열이 동일로 취급 될 수있는대로 위키 도움말 페이지에서 구문의 다음과 같은 형식을 사용하려고 시도

\begin{table} 
\caption{Experimental Details for PRE1} 
\centering 
\begin{tabular}{cccccc} 
\hline 
PRE1 Interval & Elapsed Time (min) & Flow (lps) & Sediment Feed (kg/min) & Avg. Flux (kg/min) & DEM/Photo\\ 
\hline 
1 & 19 & 42 & 0.50 & 0.009 & yes\\ 
2 & 50 & 42 & 0.50 & 0.027 & yes \\ 
3 & 110 & 42 & 0.50 & 0.064 & yes \\ 
4 & 230 & 42 & 0.50 & 0.048 & yes \\ 
5 & 470 & 42 & 0.50 & 0.027 & yes \\ 
6 & 710 & 42 & 0.50 & 0.050 & yes \\ 
7 & 950 & 42 & 0.50 & 0.030 & yes \\ 
8 & 1190 & 42 & 0.50 & 0.016 & yes \\ 
9 & 1430 & 42 & 0.50 & 0.099 & yes \\ 
10 & 1670 & 42 & 0.50 & 0.058 & yes \\ 
11 & 1910 & 42 & 0.50 & 0.055 & yes \\ 
12 & 2150 & 42 & 0.50 & 0.031 & yes \\ 
13a & 2180 & 60 & 0.50 & 4.284 & no \\ 
13b & 2195 & 60 & 0.80 & 7.113 & no \\ 
13c & 2225 & 60 & 0.80 & 3.670 & yes \\ 
14a & 2270 & 60 & 0.80 & 2.296 & no \\ 
14b & 2390 & 60 & 0.80 & 0.917 & yes \\ 
15a & 2405 & 80 & 1.00 & 3.848 & no \\ 
15b & 2429 & 80 & 1.00 & 3.840 & no \\ 
15c & 2450 & 80 & 1.00 & 3.303 & yes \\ 
16a & 2480 & 80 & 1.00 & 2.554 & no \\ 
16b & 2525 & 80 & 1.00 & 1.336 & no \\ 
16c & 2570 & 80 & 1.00 & 0.927 & yes \\ 
17 & 2630 & 80 & 1.00 & 1.067 & yes \\ 
18 & 2870 & 42 & 0.50 & 0.033 & yes \\ 
19 & 3110 & 42 & 0.50 & 0.016 & yes \\ 
20 & 3350 & 42 & 0.50 & 0.013 & yes \\ 
21 & 3590 & 42 & 0.50 & 0.018 & yes \\ 
22 & 3830 & 42 & 0.50 & 0.022 & yes \\ 
23 & 4070 & 42 & 0.50 & 0.143 & yes \\ 
24 & 4310 & 42 & 0.50 & 0.509 & yes \\ 
25a & 4336 & 60 & 0.80 & 4.488 & no \\ 
25b & 4351 & 60 & 0.80 & 9.622 & no \\ 
25c & 4370 & 60 & 0.80 & 5.479 & no \\ 
25d & 4385 & 60 & 0.80 & 4.527 & yes \\ 
26a & 4430 & 60 & 0.80 & 2.436 & no \\ 
26b & 4550 & 60 & 0.80 & 0.595 & yes \\ 
27a & 4565 & 80 & 0.80 & 2.231 & no \\ 
27b & 4589 & 80 & 0.80 & 6.212 & no \\ 
27c & 4610 & 80 & 0.80 & 5.062 & yes \\ 
28a & 4640 & 80 & 0.80 & 2.069 & no \\ 
28b & 4685 & 80 & 0.80 & 1.132 & no \\ 
28c & 4730 & 80 & 0.80 & 0.892 & yes \\ 
29 & 4790 & 80 & 0.80 & 0.600 & yes \\ 
\hline 
\multicolumn{2}{l}{$^{a}$The repeat phase of PRE1 began at elapse time 2630 minutes.}\\ 
\multicolumn{2}{l}{$^{b}$The elapse time indicates the end time for the specified experimental interval.} 
\label{tab1} 
\end{tabular} 
\end{table} 

는하지만 운

나는 어떤 도움을 주셔서 감사하겠습니다. 미리 감사드립니다.

답변

1

내 문제가 발생했습니다. 어려움은 각주와 함께있었습니다. 각주에는 첫 번째 다중 열 인수에 대해 2 값만 지정 했으므로 각주 a 및 b에 얼마나 많은 텍스트가 있는지에 따라 3-6 열이 오른쪽으로 밀려났습니다. 다음은 수정 된 작업 코드입니다.

\begin{table} 
\caption{Experimental Details for PRE1} 
\centering 
\begin{tabular}{l*{5}{c}r} 
\hline 
PRE1 Interval & Elapsed Time (min) & Flow (lps) & Sediment Feed (kg/min) & Avg. Flux (kg/min) & DEM/Photo\\ 
\hline 
0 & 0 & - & - & - & yes\\ 
1 & 19 & 42 & 0.50 & 0.009 & yes\\ 
2 & 50 & 42 & 0.50 & 0.027 & yes \\ 
3 & 110 & 42 & 0.50 & 0.064 & yes \\ 
4 & 230 & 42 & 0.50 & 0.048 & yes \\ 
5 & 470 & 42 & 0.50 & 0.027 & yes \\ 
6 & 710 & 42 & 0.50 & 0.050 & yes \\ 
7 & 950 & 42 & 0.50 & 0.030 & yes \\ 
8 & 1190 & 42 & 0.50 & 0.016 & yes \\ 
9 & 1430 & 42 & 0.50 & 0.099 & yes \\ 
10 & 1670 & 42 & 0.50 & 0.058 & yes \\ 
11 & 1910 & 42 & 0.50 & 0.055 & yes \\ 
12 & 2150 & 42 & 0.50 & 0.031 & yes \\ 
13a & 2180 & 60 & 0.50 & 4.284 & no \\ 
13b & 2195 & 60 & 0.80 & 7.113 & no \\ 
13c & 2225 & 60 & 0.80 & 3.670 & yes \\ 
14a & 2270 & 60 & 0.80 & 2.296 & no \\ 
14b & 2390 & 60 & 0.80 & 0.917 & yes \\ 
15a & 2405 & 80 & 1.00 & 3.848 & no \\ 
15b & 2429 & 80 & 1.00 & 3.840 & no \\ 
15c & 2450 & 80 & 1.00 & 3.303 & yes \\ 
16a & 2480 & 80 & 1.00 & 2.554 & no \\ 
16b & 2525 & 80 & 1.00 & 1.336 & no \\ 
16c & 2570 & 80 & 1.00 & 0.927 & yes \\ 
17 & 2630 & 80 & 1.00 & 1.067 & yes \\ 
18 & 2870 & 42 & 0.50 & 0.033 & yes \\ 
19 & 3110 & 42 & 0.50 & 0.016 & yes \\ 
20 & 3350 & 42 & 0.50 & 0.013 & yes \\ 
21 & 3590 & 42 & 0.50 & 0.018 & yes \\ 
22 & 3830 & 42 & 0.50 & 0.022 & yes \\ 
23 & 4070 & 42 & 0.50 & 0.143 & yes \\ 
24 & 4310 & 42 & 0.50 & 0.509 & yes \\ 
25a & 4336 & 60 & 0.80 & 4.488 & no \\ 
25b & 4351 & 60 & 0.80 & 9.622 & no \\ 
25c & 4370 & 60 & 0.80 & 5.479 & no \\ 
25d & 4385 & 60 & 0.80 & 4.527 & yes \\ 
26a & 4430 & 60 & 0.80 & 2.436 & no \\ 
26b & 4550 & 60 & 0.80 & 0.595 & yes \\ 
27a & 4565 & 80 & 0.80 & 2.231 & no \\ 
27b & 4589 & 80 & 0.80 & 6.212 & no \\ 
27c & 4610 & 80 & 0.80 & 5.062 & yes \\ 
28a & 4640 & 80 & 0.80 & 2.069 & no \\ 
28b & 4685 & 80 & 0.80 & 1.132 & no \\ 
28c & 4730 & 80 & 0.80 & 0.892 & yes \\ 
29 & 4790 & 80 & 0.80 & 0.600 & yes \\ 
\hline 
\multicolumn{6}{l}{$^{a}$The repeat phase of PRE1 began at elapse time 2630 minutes.}\\ 
\multicolumn{6}{l}{$^{b}$The elapse time indicates the end time for the specified experimental interval.} 
\label{tab1} 
\end{tabular} 
\end{table} 

\ begin {tabular} 호출에서 여러 개의 동일한 열 솔루션을 사용했음을 유의하십시오. here is an image of the corrected table. 이 질문은 답변되었습니다.