我在 OS/X 上使用 XeLaTex。wrapfig
似乎运行正常。当我尝试以下操作时:
{\bf This closing line of a paragraph emphasized}
\begin{wraptable}{r}{0.8\textwidth}
\begin{tabular}{|c|c|c|c|}\hline\hline
table contents, which is all text and numbers
\end{tabular}
\label{exposure}
\end{wraptable}
{\bf This opening line of the next paragraph emphasized}
表格打印在周围文本之上。如果我删除周围段落开头和结尾的 {\bf text},它就可以正常工作。
答案1
如果没有示例文档,确实无法做出任何明确判断,但我猜 TeX 只是无法将文本拆分到剩余的极小空间中。使用sloppypar
是一种选择,但如果表格占据了文本宽度的 80%,则将其设置为标准全宽table
而不是可能wraptable
更合适。
请注意,原始版本中的第一行会叠印,但第二行不会,但会以拉伸空白为代价。
\documentclass{article}
\usepackage{wrapfig}
\begin{document}
\begin{wraptable}{r}{0.8\textwidth}
\begin{tabular}{|c|c|c|c|}
\hline\hline
1&2&3&4\\
1111&2222&3333&4444\\
\hline\hline
\end{tabular}
\label{exposure}
\end{wraptable}
one two three four one two three four
one two three four one two three four
one two three four one two three four
one two three four one two three four
\begin{sloppypar}
\begin{wraptable}{r}{0.8\textwidth}
\begin{tabular}{|c|c|c|c|}
\hline\hline
1&2&3&4\\
1111&2222&3333&4444\\
\hline\hline
\end{tabular}
\label{exposure}
\end{wraptable}
one two three four one two three four
one two three four one two three four
one two three four one two three four
one two three four one two three four
\end{sloppypar}
\end{document}