I have a question with respect to the tabularx environment and the addition of new columns. Currently I have the code for a 2-column table as
[![enter image description here][1]][1]
However when I try to add additional columns, such as using the following code, I seem to get an error. The code is as follows, for example:
\documentclass{article}
\usepackage{tabularx}
\usepackage{booktabs}
\newcolumntype{L}{ >{\RaggedRight}X }
\usepackage{siunitx}
\noindent
\newcolumntype{Y}{ >{\Centering}X}
\begin{tabularx}{\textwidth}{@{} l L S[table-format=1.4] @{}}
\toprule
Category & & {Market Index} & & {Barclay's Event Driven}
& & {Hedge Fund Index} \\
\midrule
Momentum & & 0 & & 0 & & 0 \\ \addlinespace
Size & & 0 & & 0 & & 0 \\ \addlinespace
Value & & 0 & & 0 & & 0 \\ \addlinespace
Market Index & & 0.498 & & 0 & & 0 \\ \addlinespace
\bottomrule
\end{tabularx}
\enddocument
But I end up getting an error that says "extra alignment tab has been changed to \cr". Could someone please advise me with respect to this ? If anyone else has any additional formatting tips for me, I would greatly appreciate it. Thank you.