I work with the IEEEtran.cls
class. I need a way format my table with contains few columns but with longer texts in some columns.
MWE:
\documentclass[conference]{IEEEtran}
\IEEEoverridecommandlockouts
\usepackage{booktabs}
\usepackage{lipsum}
\usepackage{tabularx,ragged2e}
\usepackage{lipsum}
\def\BibTeX{{\rm B\kern-.05em{\sc i\kern-.025em b}\kern-.08em
T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}
\begin{document}
\title{Conference Paper Title (IEEEtran)}
\maketitle
\begin{abstract}
This document is a model and instructions for \LaTeX.
This and the IEEEtran.cls ...
\end{abstract}
\begin{IEEEkeywords}
keyword1, keyword2
\end{IEEEkeywords}
\section{Introduction}
\lipsum[1]
\begin{table}[!hbtp]
\caption{datasets' characteristics}
\label{tab:datasets}
\centering
\setlength\tabcolsep{0pt} %%% optional
\begin{tabularx}{\linewidth}{@{\extracolsep{\fill}} lcc}
\toprule
& Dataset1 & Dataset2 \\
\midrule
Time span of data collection & 1 month (July 2010) & 5 years (February 2007 - April 2012 \\
Number of participants & 235 & 173 (54 user annotated) \\
\bottomrule
\end{tabularx}
\end{table}
\end{document}
Output: