\linespread{1.6}
\begin{table}[Htb]
\centering
\begin{tabular}{|l|l|}
\hline
model& MMSE\\ \hline
Outcome Network & 0.0794\\\hline
+Propensity Score Encoder & 0.0654\\\hline
+Propensity Dropout & 0.0593\\\hline
\end{tabular}
\caption{MMSE of each component}
\label{tab:42result}
\end{table}
该表格位于 中的一段文字之后\subsection
,我犯了两个错误,\caption 外部浮动和 输入行 437 上的 \begin{table} 以 \end{tableorg} 结束。
相关:
\documentclass[sn-mathphys,fleqn]{sn-jnl}
\usepackage[caption=false]{subfig}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage[ruled,linesnumbered,boxed,commentsnumbered,algo2e,vlined]{algorithm2e}
错误信息:
! LaTeX Error: \caption outside float. See the LaTeX manual or LaTeX Companion for explanation. Type H <return> for immediate help. ...
l.446 \caption {MMSE of each component} You're in trouble here. Try typing <return> to proceed. If that doesn't work, type X <return> to quit. ! Extra }, or forgotten \endgroup. \sf@endfloatbox ...gefalse \outer@nobreak \egroup \color@endbox l.448 \end{table}
I've deleted a group-closing symbol because it seems to be spurious, as in `$x}$'. But perhaps the } is legitimate and you forgot something else, as in `\hbox{$x}'. In such cases the way to recover is to insert both the forgotten and the deleted material, e.g., by typing `I$}'. ! Extra }, or forgotten \endgroup. \color@endbox ->\color@endgroup \egroup
l.448 \end{table}
I've deleted a group-closing symbol because it seems to be spurious, as in `$x}$'. But perhaps the } is legitimate and you forgot something else, as in `\hbox{$x}'. In such cases the way to recover is to insert both the forgotten and the deleted material, e.g., by typing `I$}'.
! LaTeX Error: \begin{table} on input line 437 ended by \end{tableorg}. See the LaTeX manual or LaTeX Companion for explanation. Type H <return> for immediate help. ...
l.448 \end{table}
Your command was ignored. Type I <command> <return> to replace it with another command, or <return> to continue without it. Underfull \vbox (badness 10000) has occurred while \output is active [] Overfull \hbox (9.8355pt too wide) has occurred while \output is active \OT1/cmr/m/n/10 16 \OT1/cmr/m/it/10 Learning Counterfactual Outcome Of MOOC Mul tiple Learning Behaviors [] Overfull \vbox (1.44444pt too high) has occurred while \output is active [] [16] No file sn-article.bbl. Package natbib Warning: There were undefined citations. Package atveryend Info: Empty hook `BeforeClearDocument' on input line
511. Underfull \vbox (badness 10000) has occurred while \output is active []
当我使用时\begin{table}[H]
,出现另一个错误而不是第一个错误:
! LaTeX Error: \begin{table} on input line 437 ended by \end{document}.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.476 \end{document}
Your command was ignored.
Type I <command> <return> to replace it with another command,
or <return> to continue without it.
Package atveryend Info: Empty hook `BeforeClearDocument' on input line
476.
Underfull \vbox (badness 10000) has occurred while \output is active []
Overfull \hbox (9.8355pt too wide) has occurred while \output is active
\OT1/cmr/m/it/10 Learning Counterfactual Outcome Of MOOC Multiple
Learning Beh
aviors \OT1/cmr/m/n/10 17
[]
Overfull \vbox (1.44444pt too high) has occurred while \output is active
[]