I am creating a table using the tabular environment. The first column of the data section begins with the \multirow
command. I would like to remove the border on the left side of the first column, and remove the thicker vertical line on the right of the first column over rows 2-6. I have looked at this answer, but I could not figure out how to translate the solution to the multirow
context. I have also consulted a multirow help file but came up empty. I do not want to use the booktabs
package because the journal where I will submit the article does not want authors to use extra packages. Here is the code for the table.
\begin{table}[h!]
\caption{Statistics for the 1Hz bedload flux time series}\vspace{1ex}
\centering
\scalebox{0.75}{
\begin{tabular}{c c c c c c}
& & \multicolumn{2}{c}{\large{\textbf{Steady-state}}} & \multicolumn{2}{c}{\large{\textbf{Transient}}} \\
\cline{3-6}
& & t1910min & t4070min & t2150min & t4310min \\
\hline
\multicolumn{2}{c}{Total Time Series Duration (seconds)} & 14,396 & 14,245 & 4,582 & 4,529 \\
\hline
\multirow{7}{*}{Total Particle Count} &
\multicolumn{1}{ |c| }{4 mm} & 21,631 & 28,803 & 80,049 & 97,680 \\
\multicolumn{1}{ |c| }{} &
\multicolumn{1}{ |c| }{5.6 mm} & 11,423 & 18,043 & 38,782 & 47,241 \\
\multicolumn{1}{ |c| }{} &
\multicolumn{1}{ |c| }{8 mm} & 5,262 & 9,370 & 17,662 & 21,673 \\
\multicolumn{1}{ |c| }{} &
\multicolumn{1}{ |c| }{11.3 mm} & 3,303 & 5,710 & 9,630 & 11,626 \\
\multicolumn{1}{ |c| }{} &
\multicolumn{1}{ |c| }{16 mm} & 935 & 1,719 & 2,695 & 3,087 \\
\multicolumn{1}{ |c| }{} &
\multicolumn{1}{ |c| }{22.6 mm} & 92 & 278 & 410 & 568 \\
\multicolumn{1}{ |c| }{} &
\multicolumn{1}{ c| }{\textbf{Total}} & \textbf{42,646} & \textbf{63,923} & \textbf{149,228} & \textbf{181,875} \\
\hline
\label{Table1}
\end{tabular}
}
\end{table}
Here is the output of the minimal working example, using the \multirow package:
Thanks for your help in advance.
\multicolumn{1}{ |c| }{
you don't want a multicolumn and the left|
is making the left border in the first column and the double thickness in the second column. Just usec|c|cccc
as the array preamble.\scalebox
to tables (if you do don't forget the%
in\scalebox{0.75}{%
but far better not to do it\scalebox
in the future. I tried your suggestion and it did not quite work, but I may have implemented it incorrectly. But, your suggestions led to an output that is close to what I was after. I deleted the` \multicolumn` calls in each line that lists out data, but left these intervening\multicolumn
calls:\multicolumn{1}{ |c| }{}
. Removing the vertical lines from|c|
removed all the vertical lines within the table. I left the array in the preamble as it was because changing it added vertical lines in weird ways.