LaTeX 试图通过这个做什么:
\documentclass{article}
\usepackage{floatflt}
\begin{document}
\begin{floatingtable}[r]{
\begin{tabular}{cc}
0 & 1 \\
1 & 0
\end{tabular}}
\end{floatingtable}
This is MWE.
\end{document}
我有
Underfull \hbox (badness 10000) in paragraph at lines 9--10
\raggedright
并且如果我在后面添加,消息就会消失\begin{document}
。如果我在“This is MWE.”段落中添加更多单词或添加更多段落,则没有任何区别。
答案1
\centering
如果在之前发出,则不会发出警告\begin{tabular}
:
\documentclass{article}
\usepackage{floatflt,lipsum}
\begin{document}
\begin{floatingtable}[r]{%
\centering
\begin{tabular}{cc}
0 & 1 \\
1 & 0
\end{tabular}}
\end{floatingtable}
\lipsum[1]
\end{document}