Como excluir tabela de colunas não utilizadas?

Como excluir tabela de colunas não utilizadas?

Escrevo látex com IEEEtrans com TexLive versão 2022.

Gostaria de ter uma tabela no meio de duas colunas como segue (célula combinada T3, célula combinada T4 e largura do texto)

expectativa

Aqui está o código:

\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}

Aqui está o resultado (há colunas extras não utilizadas no lado direito).

resultado

O que preciso para modificar o código?

Obrigado.

Responder1

Acho que só é possível colocar a tabela no topo da próxima página (impossível no meio da página). E o tabularxenv precisa de algumas Xcolunas com largura variável para ocupar a largura total do texto.

\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}

insira a descrição da imagem aqui

informação relacionada