I have a document that is split into two columns of different width. In one of the two columns, I would like to add a table that is large exactly as the width of that column. Is there an automatic way to set the table width exactly as the column width where it appears?
In the following example I use paracol to split the document into two columns. In particular, I set the width of the left column as \columnratio{0.6}. Now, instead of writing \begin{tabularx}{0.4\textwidth}{|X|X|X|} for the width of the table in the right column, is there an automatic way (like a way to assign the variable "width") to the table? Something like \begin{tabularx}{{1-\columnratio{0.6}}\textwidth}{|X|X|X|}?
\documentclass{article} \usepackage[a4paper,margin=0.1cm]{geometry} \usepackage{paracol} \usepackage{lipsum} \usepackage{tabularx} \begin{document} \columnratio{0.6} \begin{paracol}{2} \lipsum[1] \switchcolumn \lipsum[1] \\ \begin{tabularx}{0.395\textwidth}{|X|X|X|} \hline item 11 & item 12 & item 13 \\ \hline item 21 & item 22 & item 23 \\ \hline \end{tabularx} \end{paracol} \end{document} 

\begin{tabularx}{\columnwidth}{|X|X|X|}?