What I'm trying to achieve is a fixed width (full width of the page or column) table with variable column widths. Here's what I've got:
\usepackage{tabulary}
% Table Environment
\newenvironment{dndcustomtable}[1]{
\vspace*{8pt}
\fontfamily{lmss}\selectfont %Select font
\rowcolors{1}{bgtan}{commentgreen} % Alternate colors
\noindent\tabulary{\textwidth}{#1}
}
{
\endtabulary
\vspace{8pt plus 1pt}
\noindent
}
% Usage
\begin{dndcustomtable}{LLL}
lorem ipsum & foo bar & baz \\
lorem ipsum lorem ipsum & foo bar & baz \\
lorem ipsum & foo bar & baz \\
lorem ipsum & foo bar lorem ipsum& baz \\
\end{dndcustomtable}
Any ideas?


tabularxfor that. B.t.w., use\linewidthrather than\textwidth, they may be different, and usually, it's the former one wants. – Bernard May 07 '16 at 17:49\noindentat the end of the environment looks very odd and will produce spurious results if you have a blank line in the source after the table. – David Carlisle May 07 '16 at 19:10