在LaTeX中制作表格出现misplaced \noalign. \hline,\bottomrule,\midrule等错误
**解决方式:**制作三线表格等的表格横线时,我们需要在\hline,\bottomrule,\midrule等命令之前加上双反斜杠"\\"。
代码示例:
\begin{tabular}{l}
\toprule
\textbf{Algorithm 1}{} Experience replay \textbf{RL}\\
\hline
%\midrule
\textbf{Input:}{} underlyingRL algorithm LEARN,\\
\bottomrule
\end{tabular}
结果演示:
参考链接:(要技巧)
https://tex.stackexchange.com/questions/109206/misplaced-noalign