
이 코드를 사용했습니다.
\usepackage{caption}
\usepackage{tabularx,ragged2e,booktabs,caption}
\begin{document}
\captionof{table}{GA parameters}\label{title}
\begin{tabular}{|p{3cm}||p{4cm}||p{5cm}||p{4cm}|}
\hline
%\multicolumn{2}{|c|}{Parameter of GA} \\
\hline
Technique & Aim & distinctive attribute & Limitations \\
\hline
Maximum iteration & Total result& house hold appliance & porpery \\
Population size & & & \\
$P_{c}$ &\& & \\
$P_{m}$ &\rmfamily 0.1& & \\
\hline
\end{tabular}
\end{center}
\end{document}
답변1
테이블이 한 열의 너비보다 넓기 때문에 두 열에 걸쳐 있습니다. 별표 버전을 사용 table*
하고 다음과 같이 필요한 열 사양을 사용할 수 있습니다.
\documentclass[12pt]{IEEEtran}
\usepackage{tabularx,ragged2e,booktabs}
\begin{document}
\begin{table*}\centering
\caption{GA parameters}\label{title}
\begin{tabular}{p{3cm}p{4cm}p{5cm}p{4cm}}
\toprule
Technique & Aim & distinctive attribute & Limitations \\ \midrule
Maximum iteration & 200 & house hold appliance & porpery \\
Population size & 30 & & \\
$P_{c}$ & 0.9 & & \\
$P_{m}$ & 0.1 & & \\ \bottomrule
\end{tabular}
\end{table*}
\end{document}
답변2
좋아, 설정은 모르지만 텍스트에서 추론하면 두 개의 열 환경/문서 클래스가 있다고 가정합니다. 이것이 문제를 재현할 수 있는 유일한 방법이기 때문입니다.
이는 코드를 수정하기 위한 제안입니다. 즉, table*
테이블을 조판하기 위해 환경을 사용하는 것입니다. 나는 여분의 구분 기호를 모두 제거했습니다.
\documentclass{article}
\usepackage{booktabs}
\usepackage{lipsum}
\usepackage{caption}
\usepackage{multicol}
\begin{document}
\begin{multicols}{2}
\lipsum
\begin{table*}
\centering
\caption{GA parameters}\label{title}
\begin{tabular}{@{}lccc@{}}
\toprule
Technique&Aim&distinctive attribute &limitations\\
\midrule
Maximum iteration & 300 &household appliance&porpery\\
Population size& 30& & \\
$P_{c}$& 0.9& & \\
$P_{m}$&0.1& & \\
\bottomrule
\end{tabular}
\end{table*}
\lipsum[50-76]
\section{sss}
\lipsum[10-55]
\end{multicols}
\end{document}
결과: