尝试摆好桌子后,“这里没有队伍可以结束”

尝试摆好桌子后,“这里没有队伍可以结束”
\begin{table}
\begin{center}
\begin{singlespacing}
\scalebox{1}[.75]{
\begin{tabular}{||p{2cm} | p{2cm} | p{1.8cm} | p{3cm} | p{2.5cm} | p{1.7cm} | p{1.7cm} ||}%p{1.7cm}||}
\hline
\hline
Project & Aid & Operating range & Method & Authors & Publication year \\
\hline
\hline
& RFID sensor tags & Limited & GIS, MySQL & \cite{Fernandes14} & 2014\\
\hhline{|~|-|-|-|-|-|}  
Electronic white cane & Ultrasonic sensor & Limited & Logical map construction & \cite{Bhatlawande14} & 2014 \\
\hhline{|~|-|-|-|-|-|}
&& \(\le\)6mts & Radiometric calculations & \cite{Villanueva12} & 2012 \\
\hline
Mechanical & White cane & Limited & Manual & - & - \\
\hhline{|~|-|-|-|-|-|}
& Guide dog & Virtually unlimited & Human interaction & \cite{dog14} & - \\
\hline
& Kinect, White cane & \multirow{2}{*}{\(\le\)5mts} & Harris \& Stephens corner detector, Neural network & \cite{Nadia15}, \cite{Vitor12} & 2015\\
\hhline{|~|-|-|-|-|-|}
& CMOS camera & - & Coarse description & \cite{Mekhalfi15} & 2015 \\
\hhline{|~|-|-|-|-|-|}
& ToF camera & \(\le\)5mts & Depth estimation & \cite{Praveen13} & 2013\\
\hhline{|~|-|-|-|-|-|}
& Multiple cameras/camera array & - & Visual tracking/Parametric elipsoid representation & \cite{Limprasert13} & 2013 \\
\hhline{|~|-|-|-|-|-|}
Based on camera &  & \(\le\)2mts & Canny Edge Detector\cite{Canny86} & \cite{Moreno12} & 2012\\
\hhline{|~|~|-|-|-|-|}
&VGA camera & depends on application & SDK open architecture & \cite{Battaglia12} & 2012\\
\hhline{|~|-|-|-|-|-|}
& Extraocular camera, intraocular retinal prosthesis & - & Intrusive/wireless RF feedback & \cite{Weiland12} & 2012\\
\hhline{|~|-|-|-|-|-|}
& 3D camera & Virtually unlimited & Haptic rendering & \cite{Moustakas07} & 2007\\
\hhline{|~|-|-|-|-|-|}
& Camera & - & Image to sound mapping & \cite{Meijer92} & 1992\\ 
\hhline{|~|-|-|-|-|-|}
& RGB-D camera & - & 2D traversability map & \cite{Lee} & -\\
\hline
\emph{Microsoft Kinect for Xbox 360} & White cane & \multirow{2}{*}{\(\le\)5mts} & Harris \& Stephens corner detector & \cite{Nadia15}, \cite{Vitor12}& 2015\\
& & & Neural network & &\\
\hhline{|~|-|-|-|-|-|}
& RGB sensor, IR sensor & \(\le\)5mts & sonification, Color-Depth segmentation & \cite{Brock13}, \cite{Jose12} & 2013, 2012 \\
\hline
& Ultrasonic sensor & \(\le\)2mts & Ultrasonic echoes time stretching, Acoustic image processing & \cite{Dickstein15}, \cite{Shoval98} & 2015, 1998 \\
\hhline{|~|-|-|-|-|-|}
Signals & Sonar module and IR motion sensor & \(\le\)10mts & Smart signal processing & \cite{Ando08} & 2008 \\
\hline
Information tracking system & GPS, beacons & Virtually unlimited & XML databases & \cite{Cecilio15} & 2015 \\
\hhline{|~|-|-|-|-|-|}
& Webcam, white cane & Virtually unlimited & GIS & \cite{Serrao12} & 2012 \\ \hline \hline
\end{tabular}}
\end{singlespacing}
\label{tab:one}
\caption{\footnotesize{Table 1. State of art}} 
\end{center}
\end{table}

当我尝试在表格中放置标签和标题时,我一直收到错误消息“这里没有可以结束的行”,但如果我取出最后的这些命令,它就会编译...

\begin{singlespacing}
\scalebox{1}[.75]{
\begin{tabular}{||p{2cm} | p{2cm} | p{1.8cm} | p{3cm} | p{2.5cm} | p{1.7cm} | p{1.7cm} ||}%p{1.7cm}||}
\hline
\hline
Project & Aid & Operating range & Method & Authors & Publication year \\
\hline
\hline
& RFID sensor tags & Limited & GIS, MySQL & \cite{Fernandes14} & 2014\\
\hhline{|~|-|-|-|-|-|}  
Electronic white cane & Ultrasonic sensor & Limited & Logical map construction & \cite{Bhatlawande14} & 2014 \\
\hhline{|~|-|-|-|-|-|}
&& \(\le\)6mts & Radiometric calculations & \cite{Villanueva12} & 2012 \\
\hline
Mechanical & White cane & Limited & Manual & - & - \\
\hhline{|~|-|-|-|-|-|}
& Guide dog & Virtually unlimited & Human interaction & \cite{dog14} & - \\
\hline
& Kinect, White cane & \multirow{2}{*}{\(\le\)5mts} & Harris \& Stephens corner detector, Neural network & \cite{Nadia15}, \cite{Vitor12} & 2015\\
\hhline{|~|-|-|-|-|-|}
& CMOS camera & - & Coarse description & \cite{Mekhalfi15} & 2015 \\
\hhline{|~|-|-|-|-|-|}
& ToF camera & \(\le\)5mts & Depth estimation & \cite{Praveen13} & 2013\\
\hhline{|~|-|-|-|-|-|}
& Multiple cameras/camera array & - & Visual tracking/Parametric elipsoid representation & \cite{Limprasert13} & 2013 \\
\hhline{|~|-|-|-|-|-|}
Based on camera &  & \(\le\)2mts & Canny Edge Detector\cite{Canny86} & \cite{Moreno12} & 2012\\
\hhline{|~|~|-|-|-|-|}
&VGA camera & depends on application & SDK open architecture & \cite{Battaglia12} & 2012\\
\hhline{|~|-|-|-|-|-|}
& Extraocular camera, intraocular retinal prosthesis & - & Intrusive/wireless RF feedback & \cite{Weiland12} & 2012\\
\hhline{|~|-|-|-|-|-|}
& 3D camera & Virtually unlimited & Haptic rendering & \cite{Moustakas07} & 2007\\
\hhline{|~|-|-|-|-|-|}
& Camera & - & Image to sound mapping & \cite{Meijer92} & 1992\\ 
\hhline{|~|-|-|-|-|-|}
& RGB-D camera & - & 2D traversability map & \cite{Lee} & -\\
\hline
\emph{Microsoft Kinect for Xbox 360} & White cane & \multirow{2}{*}{\(\le\)5mts} & Harris \& Stephens corner detector & \cite{Nadia15}, \cite{Vitor12}& 2015\\
& & & Neural network & &\\
\hhline{|~|-|-|-|-|-|}
& RGB sensor, IR sensor & \(\le\)5mts & sonification, Color-Depth segmentation & \cite{Brock13}, \cite{Jose12} & 2013, 2012 \\
\hline
& Ultrasonic sensor & \(\le\)2mts & Ultrasonic echoes time stretching, Acoustic image processing & \cite{Dickstein15}, \cite{Shoval98} & 2015, 1998 \\
\hhline{|~|-|-|-|-|-|}
Signals & Sonar module and IR motion sensor & \(\le\)10mts & Smart signal processing & \cite{Ando08} & 2008 \\
\hline
Information tracking system & GPS, beacons & Virtually unlimited & XML databases & \cite{Cecilio15} & 2015 \\
\hhline{|~|-|-|-|-|-|}
& Webcam, white cane & Virtually unlimited & GIS & \cite{Serrao12} & 2012 \\ \hline \hline
\end{tabular}}
\end{singlespacing}

有人可以让我知道我做错了什么或者为什么当我的其他表格正常工作时我不能在该表格上放置任何标签/标题......

答案1

您给出的代码没有显示您提到的错误,但显示了很多您应该避免的错误。

因此我最小化了您给出的代码并添加了您在问题标题中提到的错误(参见行<====== causing the error!!!!)。

最后,我建议不要在表格中使用这些行,请检查包booktabstexdoc booktabs以获取文档)以获得布局更好的表格...

我猜想了一下,将您给出的代码编译为可编译的,并删除了几行(评论中已经提到不好)。请将以下 MWE 与您的代码进行比较,以找出所有差异。重要更改已用 标记。请注意,和<=======的正确顺序是这个,按照您的顺序,您将得到错误的引用。请查看我的 MWE 中的正确顺序和我添加到 MWE 的正确工作引用。\caption\label

由于您没有提供 bib 文件,因此我删除了命令\cite并将键用作表格该列的文本。请注意,我删除了您的代码未使用的一列。

编译 MWE 显示您提到的错误(!):

\documentclass[10pt]{article}

\usepackage{hhline,multirow}
\usepackage[margin=1cm]{geometry}

\begin{document}

\begin{table}
\centering % <==========================================================
\begin{tabular}{||p{2cm}|p{2cm}|p{1.8cm}|p{3cm}|p{2.5cm}|p{1.7cm}||}
\hline
\hline
Project & Aid & Operating range & Method & Authors & Publication year \\
\hline
\hline
& RFID sensor tags & Limited & GIS, MySQL & Fernandes14 & 2014\\
\hhline{|~|-|-|-|-|-|}  
Electronic white cane & Ultrasonic sensor & Limited & Logical map construction & Bhatlawande14 & 2014 \\
\hhline{|~|-|-|-|-|-|}
% left out several lines, not interesting for problem ...
& Webcam, white cane & Virtually unlimited & GIS & Serrao12 & 2012 \\ 
\hline \hline 
\end{tabular}
\caption{State of art}% <===============================================
\label{tab:one} % <=====================================================
\end{table} \\ % <================================ causing the error!!!!

See table~\ref{tab:one}.
\end{document}

这导致了你在问题标题中给出的错误......

如果你将注释符号移到前面\\或者最好直接删除\\,MWE 就可以编译而不会出现任何错误:

\end{table} 

现在您应该能够自己消除代码中提到的错误了......

最后我得到的结果是:

在此处输入图片描述

相关内容