When I put X in column specifier, how can I define column formatting? How can I get center alignment? Currently I am putting \centering, but that is not a proper solution.
This is my code:
\documentclass{article}
\usepackage{pgfplots}
\usetikzlibrary{patterns}
\usepackage{booktabs,tabularx}
\usepackage[margin=1in]{geometry}% http://ctan.org/pkg/geometry
\begin{document}
\begin{table}[t]
\caption{Case studies}
\centering
\begin{tabularx}{\textwidth}{p{4cm}*{5}{X}}
\toprule
\centering Nature of unreliability & \centering Sender SST & \centering Receiver SST & \centering Implementation SST & Retransmission Bound \\
\midrule
Noisy (Single fixed error message) & DSST & DSST & DSST & Unbounded \\
\bottomrule
\end{tabularx}
\label{case-studies}
\end{table}
\end{document}

\centeringis the proper solution. But if you use it in the last column you should use\tabularnewlineto end the row of the tabular. – Ulrike Fischer Feb 07 '13 at 12:27>{\centering \arraybackslash}Xas it suggests in the tabularx manual. – David Carlisle Feb 07 '13 at 12:41>{\centering \arraybackslash}Xdoes not suffice. – lockstep Feb 07 '13 at 14:20