For the following, why did tabularx decide to break the second column cell entry instead of reducing the separation of the columns?
Additionally, how can I make \rowstyle{\bfseries} work to bold any cell content whether it is text or math?
\documentclass[a4paper]{article}
\usepackage{booktabs,tabularx,mathtools,siunitx,ragged2e}
\begin{document}
\newcolumntype{b}{>{\RaggedRight\hsize=1.5\hsize$}X<{$}}
\newcommand{\heading}[1]{\multicolumn{1}{c}{#1}}
\newcolumntype{m}{>{\RaggedLeft\hsize=0.5\hsize}X}
\newcommand{\rowstyle}[1]{\gdef\currentrowstyle{#1}#1\ignorespaces}
\begin{tabularx}{\linewidth}{@{}bm*{8}{%
S[table-format=2.2,round-precision=2,round-mode=places,
round-integer-to-decimal=true]%
}@{}}
\toprule
\rowstyle{\bfseries}
& $\delta$ [deg] & \heading{5} & \heading{10} & \heading{15} & \heading{20} & \heading{25} & \heading{30} & \heading{35} & \heading{40} \\
\midrule
\Gamma = x^2 & $\beta$ [deg] & 1 & 1 & 1 & 18 & 21 & 46 & 72 & 63 \\
\bottomrule
\end{tabularx}
\end{document}



@{\extracolsep{0pt plus 5pt minus 3pt}}means. Additionally, could you please give me a hint of why\rowstylefails in my code? – Diaa May 03 '19 at 20:30\extracolsepspace between columns, normally you can just use\fillbut here the table is too wide so actually you want to add negative space. there I added a space with natural width 0pt that can stretch to 5pt or shrink to -3pt which allows the table to be squeezed up a bit and fit. – David Carlisle May 03 '19 at 20:34@{\extracolsep{0pt plus 5pt minus 3pt}}only affects locally the inter-column spacing based on where I typed it among the columns alignment parameter. If what I found is true, is it possible to make this command affect globally all the columns without having to type manually? – Diaa May 04 '19 at 15:55\extracolsepaffects all columns from the point it is set within that table. – David Carlisle May 04 '19 at 16:29tabularxwith different column separations? For example, in my question, I need to globally set the separation to be0exwhile injecting some space of2exbetween the first and the second columns; is this possible? – Diaa Dec 21 '19 at 21:48\extracolsepas many times as you link between any columns, also add additional space with@\hspace{2cm}or several other possibilities (basically all the features of a standardtabular*are available intabularx) – David Carlisle Dec 21 '19 at 21:51@\hspace{5ex}between the first two columns, this document has this ugly output. – Diaa Dec 21 '19 at 22:12@– David Carlisle Dec 21 '19 at 22:13@{\hspace{}}and/or\extracolsep{}for tabularx while preserving the colored rows. – Diaa Dec 21 '19 at 22:21