未使用の列テーブルを削除するにはどうすればいいですか?

未使用の列テーブルを削除するにはどうすればいいですか?

私はTexLiveバージョン2022を使用してIEEEtransでLaTeXを書いています。

次のように2つの列の中央に表を配置したいと思います(結合セル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

テーブルを次のページの上部に配置することしかできないと思います (ページの中央には配置できません)。また、tabularxenv には、テキスト全体の幅を占める可変幅の列がいくつか必要です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}

ここに画像の説明を入力してください

関連情報