![固定幅の2列の表](https://rvso.com/image/370295/%E5%9B%BA%E5%AE%9A%E5%B9%85%E3%81%AE2%E5%88%97%E3%81%AE%E8%A1%A8.png)
次の画像のように、固定幅の 2 列のテーブルを作成したいと思います。
私は次のコードを使用しました:
\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}
しかし、問題は境界線がないことです。また、テキストがドキュメントの 2 番目の列と重なっています。
答え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}