This question already has an answer here:

This is a follow up question of this question: How to use siunitx and tabularx together?

Updating to texlive 2015 (with siunitx 2.6h) seems to have broken the accepted answer. So the question is

How to make siunitx and X column type work together for the very last modification introduced (possibly) in texlive 2015?

Broken MWE



% Allow `_` and `:` in macro names (LaTeX3 style)
% Internal code of `S`
    >{\siunitx_table_collect_begin:Nn S{} }%
    p{#1}%  <- this is different (is `c` in normal `S`)


\begin{tabularx}{\textwidth}{p{1.5cm} XXX}
     bla & 1.23 & 4.5  & 67.89 \\
     bla & 1.2  & 4.50 &  7.89 \\
     bla &  .2  &  .50 & 67.8 \\

Output error:

! Undefined control sequence.
<template> ...\TX@col@width }\siunitx_table_collect_begin:Nn 
                                                  S{} \ignorespaces 

If you consider that this is a duplicate, I will promptly delete this question as soon as someone will add an up-to-date answer to the other question.

marked as duplicate by Guilherme Zanotelli, Stefan Pinnow, ebosi, Mensch, Martin Schröder Dec 5 '16 at 21:54

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • Old answer edited: do you need an explanation of why the change is needed? – Joseph Wright Aug 25 '15 at 7:57
  • 1
    why would you use tabularx for numeric data? – David Carlisle Aug 25 '15 at 10:17
  • 1
    what should I use?. Please note that the example is a numeric-only data table, while my complete example is a mix of text and numbers. – Pierpaolo Aug 25 '15 at 23:38
  • Is your question answered by the edit of Joseph? If yes, this post would be a duplicate. – LaRiFaRi Aug 26 '15 at 10:17