I am trying to make simple tables that span the width of my body text with the \newcolumntype
command in LaTeX.
In the left column, I would like the text to be right-aligned (within the column). However, I'd like the left-hand side of this column to align with my left margin.
In the right column, I'd like the text to be left-aligned, and continue until it reaches the right margin.
I'd like there to be a small bit of padding between the two columns.
My current code is as follows:
\newcolumntype{L}{>{\raggedleft}p{0.2\textwidth}}
\newcolumntype{R}{p{0.7\textwidth}}
Tables are:
\begin{tabular}{L!{}R}
...
\end{tabular}
The problem I am having is that the left-hand column will not align with my left margin in my document. Instead, it severely indents. I cannot figure out how to fix it. Any advice is greatly appreciated!
\begin{tabular}{@{}LR@{}}
should do what you want.xltabular
environment (homonymous package), which nrings the functionalities oflongtable
totabularx
. The table should begin with\begin{xltabular}{@{}>{\hsize=0.5\hsize}X>{\hsize=1.5\hsize\arraybackslash}X@{}}
longtable
environment so that the content of my tables automatically continues on the next page, if they end up being long (which I expect they will, for this paper). However, if you have an alternative suggestion that might be better, I would appreciate any advice!