I would like to create a tabular table by using the following code.
\documentclass[journal]{IEEEtran}
\usepackage{tabularx}
\usepackage{booktabs}
\renewcommand{\arraystretch}{1.25}
\noindent\begin{tabularx}{\textwidth} { |
l |
>{\raggedright\arraybackslash}X |
c |
}
\hline
Place/Transition & Explanation & Time \\
\hline
$T_1$ and $T_{2(n+1)}$ & Robot operation which relates to loadlocks. Transition $T_1$ indicates that wafer unloading from the loadlocks and $T_{2(n+1)}$ means that the robot loads the wafer to the loadlocks. & w \\
\hline
item 31 & item 32 & item 33 \\
\hline
\end{tabularx}
Here is the result.
Questions: (1) How to make sure all the table fit in the two column template? (2) How can I add more row in the table?
Thank you.


\textwidthwith\linewidthas I suggested in the other thread. The difference is that\textwidthreturns the width of the text body spanning over both columns, while\linewidthreturns the width of the current box (in this case a the relevant column). Do you want to break the tabular over several columns? – Jasper Habicht Mar 01 '23 at 09:31\columnwidthworks too? – User23456234 Mar 01 '23 at 09:33\linewidthreturns the width of the current outer box, therefore it would also work inside a\parbox. In this case, both should return the same value. – Jasper Habicht Mar 01 '23 at 09:35