如何在乳胶中将表格转换为这种形式?

如何在乳胶中将表格转换为这种形式?

在此处输入图片描述

我有以下 latex 代码,如何将其转换为上述格式?谢谢~

% Table generated by Excel2LaTeX from sheet 'Sheet1'
\begin{table*}[htbp]
  \centering
  \caption{Detailed performance comparision of our .}
  \resizebox{1.02\textwidth}{!}{
    \begin{tabular}{l|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c}
    \hline
    \hline
    Method & Building & Tree & Sky & Car & Sign & Road & Pedestrain & Fence & Pole  & Sidewalk & Bicyclist & Mean IOU(\%)  & FPS \\
    \hline
 SegNet-Basic & 67.4  & 92.6  & 81.9  & 37.5  & 80.0  & 60.8  & 68.3  & 82.4  & 80.1  & 81.6  & 31.1  & 65.9  &  FPS \\
 SegNet & 67.4  & 92.6  & 81.9  & 37.5  & 80.0  & 60.8  & 68.3  & 82.4  & 80.1  & 81.6  & 31.1  & 65.9  &  FPS \\
 ENet & 67.4  & 92.6  & 81.9  & 37.5  & 80.0  & 60.8  & 68.3  & 82.4  & 80.1  & 81.6  & 31.1  & 65.9  &  FPS \\
 BiseNet & 67.4  & 92.6  & 81.9  & 37.5  & 80.0  & 60.8  & 68.3  & 82.4  & 80.1  & 81.6  & 31.1  & 65.9  &  FPS \\
    \hline
    \hline
    \end{tabular}%
    }
  \label{tab:align_voc}%
\end{table*}%

答案1

如果问题是如何获得水平线和旋转文本,一个答案可能是“使用booktabs规则和graphicx旋转”。

\documentclass{article}
\usepackage{booktabs}
\usepackage{graphicx}
\begin{document}
\begin{table*}[htbp]
  \centering
  \caption{Detailed performance comparision of our .}
  \resizebox{1.02\textwidth}{!}{
    \begin{tabular}{lccccccccccccccc}
    \toprule 
    \raisebox{3pt}{Method} & \rotatebox[origin=l]{90}{Building} &
    \rotatebox[origin=l]{90}{Tree} & \rotatebox[origin=l]{90}{Sky} &
    \rotatebox[origin=l]{90}{Car} & \rotatebox[origin=l]{90}{Sign} &
    \rotatebox[origin=l]{90}{Road} & \rotatebox[origin=l]{90}{Pedestrain} &
    \rotatebox[origin=l]{90}{Fence} & \rotatebox[origin=l]{90}{Pole } &
    \rotatebox[origin=l]{90}{Sidewalk} & \rotatebox[origin=l]{90}{Bicyclist}
    & \rotatebox[origin=l]{90}{Mean IOU(\%) } &
    \rotatebox[origin=l]{90}{FPS} \\
    \midrule
 SegNet-Basic & 67.4  & 92.6  & 81.9  & 37.5  & 80.0  & 60.8  & 68.3  & 82.4  & 80.1  & 81.6  & 31.1  & 65.9  &  FPS \\
 SegNet & 67.4  & 92.6  & 81.9  & 37.5  & 80.0  & 60.8  & 68.3  & 82.4  & 80.1  & 81.6  & 31.1  & 65.9  &  FPS \\
 ENet & 67.4  & 92.6  & 81.9  & 37.5  & 80.0  & 60.8  & 68.3  & 82.4  & 80.1  & 81.6  & 31.1  & 65.9  &  FPS \\
 BiseNet & 67.4  & 92.6  & 81.9  & 37.5  & 80.0  & 60.8  & 68.3  & 82.4  & 80.1  & 81.6  & 31.1  & 65.9  &  FPS \\
    \bottomrule
    \end{tabular}%
    }
  \label{tab:align_voc}%
\end{table*}%
\end{document}

在此处输入图片描述

相关内容