I want to use the X command from tabular X to evenly space a tables columns. However, the individual comulns are quite narrow, and this makes the justified spacing look really bad.
Is there anyway to force the X command to be raggedRight instead of justified? I think I could do this on a cell by cell basis, but I have a massive table, and I dont want to do this for every cell. So, is there an alternate command, or some way of creating a new command which would keep the columns spaced evenly, but ragged right?
\usepackage{array}\newcolumntype{R}{>{\raggedright\arraybackslash}X}and then usingRcolumn should do the trick. – yo' Feb 26 '15 at 01:05tabularxandXcolumns. You can use\renewcommand{\tabularxcolumn}[1]{>{\raggedright\arraybackslash}p{#1}}, or define a new column type altogether so and use that column instead ofX. – Werner Feb 26 '15 at 01:06>{\raggedright\arraybackslash}X, see section 4.2 of thetabularxdocumentation. – erik Feb 26 '15 at 01:07ragged2epackage (in addition to thetabularxpackage) and define\newcolumntype{R}{>{\RaggedRight\arraybackslash}X}. That way, hyphenation is enabled for the material in theRcolumns, which makes for less-ragged-looking appearance. – Mico Feb 26 '15 at 06:35tabularxpackage loads thearraypackage -- need to loadarrayexplicitly. :-) – Mico Feb 26 '15 at 06:36