![너비가 고정된 두 개의 열이 있는 테이블](https://rvso.com/image/370295/%EB%84%88%EB%B9%84%EA%B0%80%20%EA%B3%A0%EC%A0%95%EB%90%9C%20%EB%91%90%20%EA%B0%9C%EC%9D%98%20%EC%97%B4%EC%9D%B4%20%EC%9E%88%EB%8A%94%20%ED%85%8C%EC%9D%B4%EB%B8%94.png)
다음 이미지와 같이 너비가 고정된 두 개의 열로 구성된 테이블을 만들고 싶습니다.
나는 다음 코드를 사용했습니다.
\begin{tabular}{c c}
\setlength\arraycolsep{10pt}
AVG & The average weight of a document is calculated as the sum of weights W(t,c) of its terms dithe document. \\
STD & The standard deviation of the weighted as of the snus the av\\
MIN & The minimum weight of a document is the l) in the document. \\
MAX & The weight of a term weight W(t,c) found \\
PROB & The overall weight of a docuvided by the total number the docu \\
PROP & The between the number of vocabulary terms of the docume
\end{tabular}
그런데 문제는 테두리가 없다는 것! 게다가 텍스트가 문서의 두 번째 열과 겹친다는 것입니다!!
답변1
이것을 사용하십시오:
\documentclass[twocolumn]{article}
\usepackage{tabularx, ragged2e, caption, lipsum}
\setlength{\extrarowheight}{2pt}
\begin{document}
\lipsum[1]
\begin{table}[!htb]
\caption{my caption} \label{some-label}% for cross references
\begin{tabularx}{\linewidth}{|l|>{\arraybackslash\RaggedRight}X|}
\hline
AVG & The average weight of a document is calculated as the sum of weights W(t,c) of its terms dithe document. \\
\hline
STD & The standard deviation of the weighted as of the snus the av\\
\hline
MIN & The minimum weight of a document is the l) in the document. \\
\hline
MAX & The weight of a term weight W(t,c) found \\
\hline
PROB & The overall weight of a docuvided by the total number the docu \\
\hline
PROP & The between the number of vocabulary terms of the document\\
\hline
\end{tabularx}
\end{table}
\end{document}