Esta poderia ser uma pergunta boba, mas como você modificaria meu código para que a parte da linha indicada fosse removida?
\documentclass[]{article}
\usepackage[margin=0.5in]{geometry}
\usepackage{pgfplots}
\usepackage{caption}
\usepackage{multicol}
\usepackage{blkarray}
\usepackage{tikz}
\usepackage{amssymb}
\usetikzlibrary{patterns}
\usepackage{fancyhdr}
\usepackage{bigints}
\usepackage{color}
\usepackage{tcolorbox}
\usepackage{color,xcolor}
\usepackage{booktabs,array}
\usepackage{hyperref}
\usepackage{graphicx}
\usetikzlibrary{arrows}
\usepackage{polynom}
\usepackage{flexisym}
\usepackage{wallpaper}
\usepackage{blkarray}
\usepackage{caption}
\newenvironment{tightcenter}{
\setlength\topsep{0pt}
\setlength\parskip{0pt}
\begin{center}}{\end{center}}
\begin{document}
\begin{table}[htbp]
\begin{tabular}{lll|c|llll}
\multicolumn{3}{r}{\text{Group B}} & & \multicolumn{4}{r}{\text{Group A}}\\[0.124cm]
%\hline
& & 1 & 0 & & & & \\[0.024cm]
& 2 & 2 & 1 & 1 & 2 & 8 & \\[0.024cm]
7 & 5 & 3 & 2 & 2 & 3 & 9 & 4\\[0.024cm]
& 5 & 4 & 3 & 1 & 1 & 2 & 7\\[0.024cm]
& 2 & 5 & 4 & 4 & 6\\[0.024cm]
& & 2 & 5 & 1 & &\\[0.024cm]
& & & 6 & 2 & 4\\[0.024cm]
& & & 7 & 1 & \\[0.024cm]
%3 & 14 & 7 & 6\\
\end{tabular}
\centering
\caption*{$8|5$ means $8.5$ seconds}
\end{table}
\end{document}
Responder1
Basta adicionar um \multicolumn
que não possua nenhuma barra vertical na célula vazia. (Eu também expulsei muitos pacotes que não são necessários aqui.)
\documentclass[]{article}
\usepackage[margin=0.5in]{geometry}
\usepackage{amsmath}
\usepackage{caption}
\begin{document}
\begin{table}[htbp]
\begin{tabular}{lll|c|llll}
\multicolumn{3}{r}{\text{Group B}} & \multicolumn{1}{c}{} & \multicolumn{4}{r}{\text{Group A}}\\[0.124cm]
%\hline
& & 1 & 0 & & & & \\[0.024cm]
& 2 & 2 & 1 & 1 & 2 & 8 & \\[0.024cm]
7 & 5 & 3 & 2 & 2 & 3 & 9 & 4\\[0.024cm]
& 5 & 4 & 3 & 1 & 1 & 2 & 7\\[0.024cm]
& 2 & 5 & 4 & 4 & 6\\[0.024cm]
& & 2 & 5 & 1 & &\\[0.024cm]
& & & 6 & 2 & 4\\[0.024cm]
& & & 7 & 1 & \\[0.024cm]
%3 & 14 & 7 & 6\\
\end{tabular}
\centering
\caption*{$8|5$ means $8.5$ seconds}
\end{table}
\end{document}
Responder2
Se você substituir {tabular}
por {NiceTabular}
of nicematrix
, você só terá que colocar a chave first-row
(por design, as regras in {NiceTabular}
não são desenhadas na chamada ``primeira linha'').
\documentclass[]{article}
\usepackage[margin=0.5in]{geometry}
\usepackage{nicematrix}
\usepackage{caption}
\begin{document}
\begin{table}[htbp]
\begin{NiceTabular}{lll|c|llll}[first-row]
\multicolumn{3}{r}{\text{Group B}} & & \multicolumn{4}{r}{\text{Group A}}\\[0.124cm]
%\hline
& & 1 & 0 & & & & \\[0.024cm]
& 2 & 2 & 1 & 1 & 2 & 8 & \\[0.024cm]
7 & 5 & 3 & 2 & 2 & 3 & 9 & 4\\[0.024cm]
& 5 & 4 & 3 & 1 & 1 & 2 & 7\\[0.024cm]
& 2 & 5 & 4 & 4 & 6\\[0.024cm]
& & 2 & 5 & 1 & &\\[0.024cm]
& & & 6 & 2 & 4\\[0.024cm]
& & & 7 & 1 & \\[0.024cm]
%3 & 14 & 7 & 6\\
\end{NiceTabular}
\centering
\caption*{$8|5$ means $8.5$ seconds}
\end{table}
\end{document}