TikZ 项目切入表格

TikZ 项目切入表格

下图中,Ti 的文字Z 与表格标题重叠。如何修复此问题?

在此处输入图片描述

Overleaf如果不包含每个项目,我无法在另一个项目上重现它,所以这是我能做到的最好的。有什么建议吗?有没有类似这样的命令\nooverlap

\documentclass{article}
\usepackage[twocolumn,margin=2cm]{geometry}
\usepackage{amsmath}
\usepackage{float}
\usepackage{subfig}
\usepackage{graphicx}
\usepackage{tikz}% loads graphicx
\usetikzlibrary{calc}
\usetikzlibrary{chains}
\usepackage{tabularray}
\UseTblrLibrary{booktabs}

\begin{document}

\begin{table*}[t!]
\footnotesize
\setlength\tabcolsep{0pt} % let LaTeX figure out the best intercol. separation
\begin{tabular*}{\textwidth}{@{\extracolsep{\fill}} l *{15}{c} }
\toprule
& \multicolumn{3}{c}{Distractor (cm)} & \multicolumn{3}{c}{Contact (cm)} & \multicolumn{3}{c}{Overall (cm)} & \multicolumn{3}{c}{Accuracy (\%)} & \multicolumn{3}{c}{Human (cm)}   \\
\cmidrule{2-4} \cmidrule{5-7} \cmidrule{8-10} \cmidrule{11-13} \cmidrule{14-16} 
Method & $-1$:0 & 0:2 & 0:2* & $-1$:0 & 0:2 & 0:2* & $-1$:0 & 0:2 & 0:2* & $-1$:0 & 0:2 & 0:2* & $-1$:0 & 0:2 & 0:2* \\
\midrule
MTGCN & 23.2 & 35.7 & 35.1 & 41.8 & 62.9 & 61.1 & 22.5 & 50.1 & 49.3 & - & - & - & 25.8 & 41.22 & 39.2 \\
CAHMP & 19.3 & 33.2 & 32.4 & 38.2 & 59.4 & 58.0 & 19.6 & 45.7 & 44.2 & - & - & - & 21.3 & 36.1 & 35.5 \\
Mod & 18.8 & 32.8 & 31.9 & 36.4 & 56.6 & 54.6 & 17.7 & 44.3 & 42.1 & - & - & - & 20.2 & 35.6 & 34.6 \\
\midrule
Ours      & \textbf{3.39} & \textbf{10.8} & \textbf{10.2} & \textbf{21.0} & \textbf{45.0} & \textbf{42.2} & \textbf{8.7} & \textbf{25.8} & \textbf{24.4} & 84.0 & 86.5 & 88.6 & \textbf{16.4} & \textbf{31.9} & \textbf{29.8} \\
\midrule
\addlinespace
w/o clf   & 20.2 & 35.4 & 34.3 & 39.5 & 61.5 & 60.4 & 20.9 & 46.3 & 44.8 & - & - & - & 22.2 & 36.7 & 36.2 \\
w/ GT CT  & 0.0 & 0.0 & 0.0 & 18.3 & 40.4 & 38.1 & 10.3 & 24.1 & 23.1 & 100 & 100 & 100 & 15.8 & 27.1 & 25.8 \\
\bottomrule
\end{tabular*}
\caption{Our method continues to show improvements over the SOTA on the noisier KIT RGBD dataset.}
\label{fig:quantitative_kit_rgbd}
\end{table*}

\def\imagehspace{\hspace{-0.1em}}

\begin{figure*}[t!]
\centering

\subfloat{
\begin{tikzpicture}[remember picture,lbl/.style = {draw, outer sep=2\pgflinewidth, fill=white, anchor=#1}]
    \node[anchor=south west,inner sep=0] (imagea) at (0,0) {\includegraphics[width=0.5\columnwidth]{example-image-a}};
    \begin{scope}[anchor=north west]
        \node[draw,fill=white,rotate=90] at (0,0) {Mod};
    \end{scope}
    \node[lbl=north west,draw,fill=white] at (imagea.north west) {\tiny{1}};
\end{tikzpicture}
}\imagehspace
\subfloat{
\begin{tikzpicture}[remember picture,lbl/.style = {draw, outer sep=2\pgflinewidth, fill=white, anchor=#1}]
    \node[anchor=south west,inner sep=0] (imageb) at (0,0) {\includegraphics[width=0.5\columnwidth]{example-image-a}};
    \begin{scope}[anchor=north west]
        \node[draw,fill=white,rotate=90] at (0,0) {Mod};
    \end{scope}
    \node[lbl=north west,draw,fill=white] at (imageb.north west) {\tiny{1}};
\end{tikzpicture}
}


\begin{tikzpicture}[overlay,remember picture]
\begin{scope}
    
\draw[line width=0.3mm] ([xshift=0.25cm,yshift=0.1cm]imagea.north west) -- ([xshift=-0.25cm,yshift=0.1cm]imageb.north east)node[midway,above] {\strut Reconstruction};

\end{scope}
\end{tikzpicture}

\label{fig:qualitative_kit_mocap}
\end{figure*}

\end{document}

我试图“画出那条线,并将那个节点放置在与其他东西相同的 tikzpicture 中”

\documentclass{article}
\usepackage[twocolumn,margin=2cm]{geometry}
\usepackage{amsmath}
\usepackage{float}
\usepackage{subfig}
\usepackage{graphicx}
\usepackage{tikz}% loads graphicx
\usetikzlibrary{calc}
\usetikzlibrary{chains}
\usepackage{tabularray}
\UseTblrLibrary{booktabs}

\begin{document}

\begin{table*}[t!]
\footnotesize
\setlength\tabcolsep{0pt} % let LaTeX figure out the best intercol. separation
\begin{tabular*}{\textwidth}{@{\extracolsep{\fill}} l *{15}{c} }
\toprule
& \multicolumn{3}{c}{Distractor (cm)} & \multicolumn{3}{c}{Contact (cm)} & \multicolumn{3}{c}{Overall (cm)} & \multicolumn{3}{c}{Accuracy (\%)} & \multicolumn{3}{c}{Human (cm)}   \\
\cmidrule{2-4} \cmidrule{5-7} \cmidrule{8-10} \cmidrule{11-13} \cmidrule{14-16} 
Method & $-1$:0 & 0:2 & 0:2* & $-1$:0 & 0:2 & 0:2* & $-1$:0 & 0:2 & 0:2* & $-1$:0 & 0:2 & 0:2* & $-1$:0 & 0:2 & 0:2* \\
\midrule
MTGCN & 23.2 & 35.7 & 35.1 & 41.8 & 62.9 & 61.1 & 22.5 & 50.1 & 49.3 & - & - & - & 25.8 & 41.22 & 39.2 \\
CAHMP & 19.3 & 33.2 & 32.4 & 38.2 & 59.4 & 58.0 & 19.6 & 45.7 & 44.2 & - & - & - & 21.3 & 36.1 & 35.5 \\
Mod & 18.8 & 32.8 & 31.9 & 36.4 & 56.6 & 54.6 & 17.7 & 44.3 & 42.1 & - & - & - & 20.2 & 35.6 & 34.6 \\
\midrule
Ours      & \textbf{3.39} & \textbf{10.8} & \textbf{10.2} & \textbf{21.0} & \textbf{45.0} & \textbf{42.2} & \textbf{8.7} & \textbf{25.8} & \textbf{24.4} & 84.0 & 86.5 & 88.6 & \textbf{16.4} & \textbf{31.9} & \textbf{29.8} \\
\midrule
\addlinespace
w/o clf   & 20.2 & 35.4 & 34.3 & 39.5 & 61.5 & 60.4 & 20.9 & 46.3 & 44.8 & - & - & - & 22.2 & 36.7 & 36.2 \\
w/ GT CT  & 0.0 & 0.0 & 0.0 & 18.3 & 40.4 & 38.1 & 10.3 & 24.1 & 23.1 & 100 & 100 & 100 & 15.8 & 27.1 & 25.8 \\
\bottomrule
\end{tabular*}
\caption{Our method continues to show improvements over the SOTA on the noisier KIT RGBD dataset.}
\label{fig:quantitative_kit_rgbd}
\end{table*}

\def\imagehspace{\hspace{-0.1em}}

\begin{figure*}[t!]
\centering

\subfloat{
\begin{tikzpicture}[remember picture,lbl/.style = {draw, outer sep=2\pgflinewidth, fill=white, anchor=#1}]
    \node[anchor=south west,inner sep=0] (imagea) at (0,0) {\includegraphics[width=0.5\columnwidth]{example-image-a}};
    \begin{scope}[anchor=north west]
        \node[draw,fill=white,rotate=90] at (0,0) {Mod};
    \end{scope}
    \node[lbl=north west,draw,fill=white] at (imagea.north west) {\tiny{1}};
\end{tikzpicture}
}\imagehspace
\subfloat{
\begin{tikzpicture}[remember picture,lbl/.style = {draw, outer sep=2\pgflinewidth, fill=white, anchor=#1}]
    \node[anchor=south west,inner sep=0] (imageb) at (0,0) {\includegraphics[width=0.5\columnwidth]{example-image-a}};
    \begin{scope}[anchor=north west]
        \node[draw,fill=white,rotate=90] at (0,0) {Mod};
    \end{scope}
    \node[lbl=north west,draw,fill=white] at (imageb.north west) {\tiny{1}};
    \draw[line width=0.3mm] ([xshift=0.25cm,yshift=0.1cm]imagea.north west) -- ([xshift=-0.25cm,yshift=0.1cm]imageb.north east)node[midway,above] {\strut Reconstruction};
\end{tikzpicture}
}


\begin{tikzpicture}[overlay,remember picture]
\begin{scope}
    
\draw[line width=0.3mm] ([xshift=0.25cm,yshift=0.1cm]imagea.north west) -- ([xshift=-0.25cm,yshift=0.1cm]imageb.north east)node[midway,above] {\strut Reconstruction};

\end{scope}
\end{tikzpicture}

\label{fig:qualitative_kit_mocap}
\end{figure*}

\end{document}

并导致了此问题。我该如何修复此问题?

在此处输入图片描述

我的代码中不再有任何“覆盖”,但它仍然看起来不对。我该怎么办?

\documentclass{article}
\usepackage[twocolumn,margin=2cm]{geometry}
\usepackage{amsmath}
\usepackage{float}
\usepackage{subfig}
\usepackage{graphicx}
\usepackage{tikz}% loads graphicx
\usetikzlibrary{calc}
\usetikzlibrary{chains}
\usepackage{tabularray}
\UseTblrLibrary{booktabs}

\begin{document}

\begin{table*}[t!]
\footnotesize
\setlength\tabcolsep{0pt} % let LaTeX figure out the best intercol. separation
\begin{tabular*}{\textwidth}{@{\extracolsep{\fill}} l *{15}{c} }
\toprule
& \multicolumn{3}{c}{Distractor (cm)} & \multicolumn{3}{c}{Contact (cm)} & \multicolumn{3}{c}{Overall (cm)} & \multicolumn{3}{c}{Accuracy (\%)} & \multicolumn{3}{c}{Human (cm)}   \\
\cmidrule{2-4} \cmidrule{5-7} \cmidrule{8-10} \cmidrule{11-13} \cmidrule{14-16} 
Method & $-1$:0 & 0:2 & 0:2* & $-1$:0 & 0:2 & 0:2* & $-1$:0 & 0:2 & 0:2* & $-1$:0 & 0:2 & 0:2* & $-1$:0 & 0:2 & 0:2* \\
\midrule
MTGCN & 23.2 & 35.7 & 35.1 & 41.8 & 62.9 & 61.1 & 22.5 & 50.1 & 49.3 & - & - & - & 25.8 & 41.22 & 39.2 \\
CAHMP & 19.3 & 33.2 & 32.4 & 38.2 & 59.4 & 58.0 & 19.6 & 45.7 & 44.2 & - & - & - & 21.3 & 36.1 & 35.5 \\
Mod & 18.8 & 32.8 & 31.9 & 36.4 & 56.6 & 54.6 & 17.7 & 44.3 & 42.1 & - & - & - & 20.2 & 35.6 & 34.6 \\
\midrule
Ours      & \textbf{3.39} & \textbf{10.8} & \textbf{10.2} & \textbf{21.0} & \textbf{45.0} & \textbf{42.2} & \textbf{8.7} & \textbf{25.8} & \textbf{24.4} & 84.0 & 86.5 & 88.6 & \textbf{16.4} & \textbf{31.9} & \textbf{29.8} \\
\midrule
\addlinespace
w/o clf   & 20.2 & 35.4 & 34.3 & 39.5 & 61.5 & 60.4 & 20.9 & 46.3 & 44.8 & - & - & - & 22.2 & 36.7 & 36.2 \\
w/ GT CT  & 0.0 & 0.0 & 0.0 & 18.3 & 40.4 & 38.1 & 10.3 & 24.1 & 23.1 & 100 & 100 & 100 & 15.8 & 27.1 & 25.8 \\
\bottomrule
\end{tabular*}
\caption{Our method continues to show improvements over the SOTA on the noisier KIT RGBD dataset.}
\label{fig:quantitative_kit_rgbd}
\end{table*}

\def\imagehspace{\hspace{-0.1em}}

\begin{figure*}[t!]
\centering

\subfloat{
\begin{tikzpicture}[remember picture,lbl/.style = {draw, outer sep=2\pgflinewidth, fill=white, anchor=#1}]
    \node[anchor=south west,inner sep=0] (imagea) at (0,0) {\includegraphics[width=0.5\columnwidth]{example-image-a}};
    \begin{scope}[anchor=north west]
        \node[draw,fill=white,rotate=90] at (0,0) {Mod};
    \end{scope}
    \node[lbl=north west,draw,fill=white] at (imagea.north west) {\tiny{1}};
\end{tikzpicture}
}\imagehspace
\subfloat{
\begin{tikzpicture}[remember picture,lbl/.style = {draw, outer sep=2\pgflinewidth, fill=white, anchor=#1}]
    \node[anchor=south west,inner sep=0] (imageb) at (0,0) {\includegraphics[width=0.5\columnwidth]{example-image-a}};
    \begin{scope}[anchor=north west]
        \node[draw,fill=white,rotate=90] at (0,0) {Mod};
    \end{scope}
    \node[lbl=north west,draw,fill=white] at (imageb.north west) {\tiny{1}};
    \draw[line width=0.3mm] ([xshift=0.25cm,yshift=0.1cm]imagea.north west) -- ([xshift=-0.25cm,yshift=0.1cm]imageb.north east)node[midway,above] {\strut Reconstruction};
\end{tikzpicture}
}

\label{fig:qualitative_kit_mocap}
\end{figure*}

\end{document}

在此处输入图片描述

相关内容