Как удалить неиспользуемую таблицу столбцов?

Как удалить неиспользуемую таблицу столбцов?

Я пишу латекс с помощью IEEEtrans с TexLive версии 2022.

Я хотел бы иметь таблицу посередине из двух столбцов следующим образом (объединенная ячейка T3, объединенная ячейка T4 и ширина текста)

ожидание

Вот код:

\documentclass[journal]{IEEEtran}
\usepackage{tabularx,caption}
\begin{document}

\begin{table*}[!ht]

\captionof{table}{Comparison}

\label{tab:sequence comparison} 
\noindent\begin{tabularx}{\textwidth} { |c | c |c |c |c |}
\hline
  \textbf{\makecell{Place/Transition}} & \textbf{\makecell{Explanation}} & \textbf{\makecell{Holding  time}}  & \textbf{\makecell{X}} & \textbf{\makecell{A}} \\ 
  \hline
  $T_1$  & Unloading wafers from LL & $w$ & $xxxxxxxxxxxxx$ & $aaaaaaaaa$ \\
  \hline
  $T_2$ & Unloading wafers from step 5 & $w$ & $x$ & $a$\\
  \hline
  $T_3$ &  Loading wafers to step 1 & $w$ & $x$ & $a$\\
  \hline
  $T_4$ & Unloading wafers from step 2 & $w$ & $x$ & $a$\\
  \hline
  $T_5$ & Loading wafers to step 3 & $w$ & $x$ & $a$\\
  \hline
  $T_6$ & Unloading wafers from step 4 & $w$ & $x$ & $a$\\
  \hline
  \end{tabularx}
\end{table*}
\end{document}

Вот результат (справа есть лишние неиспользованные столбцы).

результат

Что мне нужно для изменения кода?

Спасибо.

решение1

Я думаю, что таблицу можно разместить только в верхней части следующей страницы (в середине страницы это невозможно). А env tabularxнужны Xстолбцы переменной ширины, чтобы занять всю ширину текста.

\documentclass{IEEEtran}
\usepackage{tabularx}
\usepackage{multirow}
\usepackage{caption}
\usepackage{lipsum}
\begin{document}
\lipsum[1-6]
\begin{table*}[!ht]
\renewcommand{\arraystretch}{1.5}
\captionof{table}{Comparison}
\label{tab:sequence comparison} 
\noindent\begin{tabularx}{\textwidth} { | c | >{\centering\arraybackslash} X | c |  >{\centering\arraybackslash} X  | >{\centering\arraybackslash} X |}
\hline
  \textbf{Place/Transition} & \textbf{Explanation} & \textbf{Holding  time}  & \textbf{X} & \textbf{A} \\ 
  \hline
  $T_1$  & Unloading wafers from LL & $w$ & $xxxxxxxxxxxxx$ & $aaaaaaaaa$ \\
  \hline
  $T_2$ & Unloading wafers from step 5 & $w$ & $x$ & $a$\\
  \hline
  \multirow{2}{*}{$T_3$} &  Loading wafers to step 1 & $w$ & $x$ & $a$\\
  \cline{2-5}
   & Unloading wafers from step 2 & $w$ & $x$ & $a$\\
  \hline
  \multirow{2}{*}{$T_4$} & Loading wafers to step 3 & $w$ & $x$ & $a$\\
  \cline{2-5}
   & Unloading wafers from step 4 & $w$ & $x$ & $a$\\
  \hline
  \end{tabularx}
\end{table*}
\lipsum[1-13]
\end{document}

введите описание изображения здесь

Связанный контент