表格中有更多内容,请帮我在 Latex 中创建此表格

表格中有更多内容,请帮我在 Latex 中创建此表格

在此处输入图片描述在此处输入图片描述 我怎样才能创建这样的表格?我尝试了很多方法,但还是无法创建这样的表格。请朋友们帮帮我。

\begin{tabular}{|l|c|c|r|r|r|}\hline

Comparative methods & Guolin,Deyun and Jason (2008) & Sushmitha and Malviya (2013) & Raad, Ghazali and Loay (2014) & Mukesh Tiwari and Dr. Rakesh (2017) & Proposed method\\\hline

Types of vehicles studied & Cars & Cars and Trucks & Cars & Cars, Bikes and Trucks & Cars, Bikes and trucks\\ \hline

Segmentation method & Frame subtraction and background update & Background subtraction & Background subtraction & Optical flow & Background subtraction with Discrete cosine transform \\ \hline

Classification method & X & Centroid  method & Contour Tracking method & Silhouette tracking & Multi-SVM classification\\ \hline

Vehicle counting accuracy & 88.6\% & 91\% & 92.04\% & 93\% & 95.18\% \\ \hline


\end{tabular}

答案1

评论太长了。

一开始,有一些 LaTeX 表格生成器可以为您提供帮助。

此外,据我了解,关于您的问题*已经有很多疑问:

*LaTeX 表格单元格中的换行符

答案2

在此处输入图片描述

\documentclass{article}

\usepackage{array}
\begin{document}

\begin{center}
\setlength\extrarowheight{3pt}
\begin{tabular}{@{}*{6}{>{\centering\arraybackslash\leavevmode\nobreak\hspace{0pt}}p{1.6cm}}@{}}\hline
Comparative methods & Guolin, Deyun and Jason (2008) & Sushmitha and Malviya (2013) & Raad, Ghazali and Loay (2014) & Mukesh Tiwari and Dr. Rakesh (2017) & Proposed method\\\hline
Types of vehicles studied & Cars & Cars and Trucks & Cars & Cars, Bikes and Trucks & Cars, Bikes and trucks\\ \hline
Segmentation method & Frame subtraction and background update & Background subtraction & Background subtraction & Optical flow & Background subtraction with Discrete cosine transform \\ \hline
Classification method & X & Centroid  method & Contour Tracking method & Silhouette tracking & Multi-SVM classification\\ \hline
Vehicle counting accuracy & 88.6\% & 91\% & 92.04\% & 93\% & 95.18\% \\ \hline


\end{tabular}

\end{center}

\end{document}

我复制了所示的布局,所有 6 列均使用相同的居中格式,但特别是最后一列可能看起来更好\raggedright,并且可能更宽。

相关内容