I'm trying to make a table with S columns embedded into X columns. The MNWE is the following.
\documentclass[a4paper,12pt]{article}
\usepackage{array,tabu}
\usepackage{siunitx}
\begin{document}
\newcolumntype W{X[c]{S[round-mode=places, round-precision=2, round-integer-to-decimal=true]}}
\begin{tabu} to \linewidth {WW}
1 &2,356\\
4,567 &1234\\
\end{tabu}
\end{document}
I get the following error:
Package array Error: Illegal pream-token (S[round-mode=places, round-recision=2, round-integer-to-decimal=true]): `c' used. \begin{tabu} to \linewidth {WW}
As soon as I remove the X column type like that:
\documentclass[a4paper,12pt]{article}
\usepackage{array,tabu}
\usepackage{siunitx}
\begin{document}
\newcolumntype W{S[round-mode=places, round-precision=2, round-integer-to-decimal=true]}
\begin{tabu} to \linewidth {WW}
1&2,356\\
4,567&1234\\
\end{tabu}
\end{document}
it works. But in that case I'm not getting X column formatting. What am I doing wrong? I've read some topics on similar matters but never found the solution to that problem.

Sand any other columns type since they have different approach to defining column width. – Zarko Jul 12 '16 at 13:53\multicolumn{1}{p{.4\linewidth}}{Header A} & \multicolumn{1}{p{.4\linewidth}}{Header B} \\or something similar. – CarLaTeX Jul 13 '16 at 06:40tabudocumentation learn me, that I'm (partially) wrong.tabusupport S column type, however not as you expected and it is advertised. It is known, that package is not maintained and buggy, so it seems that your first example has bug, the second one is actually standard table withScolumn types. – Zarko Jul 13 '16 at 17:51