Wie lösche ich eine nicht verwendete Spaltentabelle?

Wie lösche ich eine nicht verwendete Spaltentabelle?

Ich schreibe Latex mit IEEEtrans mit TexLive Version 2022.

Ich hätte gerne eine Tabelle in der Mitte mit zwei Spalten wie folgt (kombinierte Zelle T3, kombinierte Zelle T4 und Textbreite)

Erwartung

Hier ist der Code:

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

Hier ist das Ergebnis (auf der rechten Seite gibt es zusätzliche, nicht verwendete Spalten).

Ergebnis

Was benötige ich um den Code zu ändern?

Danke schön.

Antwort1

Ich glaube, es ist nur möglich, die Tabelle oben auf der nächsten Seite zu platzieren (in der Mitte einer Seite ist das nicht möglich). Und die tabularxUmgebung benötigt einige XSpalten mit variabler Breite, um die gesamte Textbreite einzunehmen.

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

Bildbeschreibung hier eingeben

verwandte Informationen