![Таблица с двумя столбцами фиксированной ширины](https://rvso.com/image/370295/%D0%A2%D0%B0%D0%B1%D0%BB%D0%B8%D1%86%D0%B0%20%D1%81%20%D0%B4%D0%B2%D1%83%D0%BC%D1%8F%20%D1%81%D1%82%D0%BE%D0%BB%D0%B1%D1%86%D0%B0%D0%BC%D0%B8%20%D1%84%D0%B8%D0%BA%D1%81%D0%B8%D1%80%D0%BE%D0%B2%D0%B0%D0%BD%D0%BD%D0%BE%D0%B9%20%D1%88%D0%B8%D1%80%D0%B8%D0%BD%D1%8B.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}