[Tex/LaTex] Vertical lines in table

rulestables

I have the next code, but I want that the vertical line be complete (it's cut off near to horizontal line):

\begin{table} [H] \footnotesize 
\sisetup{output-decimal-marker = {,}}

\centering
\caption{Massas e percentuais das frações separadas.}

\label{peneiramento}
%\begin{threeparttable}[b]
\begin{tabular}{S[input-symbols = {>},table-format=>2.3]
                S[table-format=4]
                S[table-format=2.1]|
                S[table-format=2]
                S[table-format=2.2,separate-uncertainty=true,table-figures-uncertainty=1]
                S[table-format=1.3,separate-uncertainty=true,table-figures-uncertainty=1]}

\toprule 
\multicolumn{3}{c|}{\makecell[tc]{Peneiramento}} & \multicolumn{3}{c}{\makecell[tc]{Elutriação}} \\
\midrule
{\makecell[tc]{Abertura \\ da peneira \\($\mu m$)}} & {\makecell[tc]{Fração \\ mássica \\ ($g$)}} & {\makecell[tc]{\% \\ massa }} & {\makecell[tc]{Velocidade \\ separação  \\ ($m/s$)}} & {\makecell[tc]{Fração \\ mássica \\ ($g$)}} & {\makecell[tc]{$\%$ \\ massa }}  
\\ 
\midrule

4000 & 26,72 & 34 \\
2830 & 8,79 & 11 \\
1900 & 8,88 & 11 \\
595 & 18,19 & 23 \\
297 & 9,74 & 13 \\
149 & 3,96 & 5 \\
Pan & 1,24 & 2 \\

\bottomrule 
\end{tabular} 
\end{table}

enter image description here

Best Answer

The table does not require vertical line between columns 3 and 4. Just be more deliberate in the way you structure the header material, say, by providing two separate \cmidrule statements.

enter image description here

\documentclass{article}
\usepackage[portuguese]{babel}
\usepackage{makecell,booktabs,float,siunitx}
\usepackage[skip=0.333\baselineskip]{caption}
\sisetup{per-mode=symbol,output-decimal-marker = {,}}

\begin{document}
\begin{table}[H] 
%\footnotesize   % not needed, right?
\centering
\caption{Massas e percentuais das frações separadas.}
\label{peneiramento}

\begin{tabular}{@{}
                S[table-format=4.0]
                S[table-format=2.2]           
                S[table-format=2.0]
                c  % ?
                S[table-format=2.2,
                  separate-uncertainty=true,
                  table-figures-uncertainty=1]
                S[table-format=1.3,
                  separate-uncertainty=true,
                  table-figures-uncertainty=1]
                @{}}

\toprule 
\multicolumn{3}{c}{Peneiramento} & 
\multicolumn{3}{c}{Elutriação} \\
\cmidrule(r){1-3} \cmidrule(l){4-6}
{\makecell[tc]{Abertura \\ da peneira \\(\si{\micro\meter})}} & 
{\makecell[tc]{Fração \\ mássica \\ (\si{\gram})}} & 
{\makecell[tc]{\% \\ massa }} & 
{\makecell[tc]{Velocidade \\ separação  \\ 
    (\si{\meter\per\second})}} & 
{\makecell[tc]{Fração \\ mássica \\ (\si{\gram})}} & 
{\makecell[tc]{\% \\ massa }}  
\\ 
\midrule
4000 & 26,72 & 34 \\
2830 &  8,79 & 11 \\
1900 &  8,88 & 11 \\
 595 & 18,19 & 23 \\
 297 &  9,74 & 13 \\
 149 &  3,96 &  5 \\
{Pan}&  1,24 &  2 \\
\bottomrule 
\end{tabular} 
\end{table}
\end{document}