pdf中出現的隨機實心方塊

pdf中出現的隨機實心方塊

我的 pdf 檔案中無緣無故地出現了這些隨機實心方塊。我嘗試隔離問題並將其與特定類型的命令相關聯。但是,無論我使用什麼命令,我仍然會時不時地看到它們。這是一個簡單的 TeX 輸入的範例。

\begin{itemize}
\item Outer item 1.
\begin{itemize}
\item The code is easy to read/understand given the comments/documentation.
\end{itemize}
\end{itemize}

下面是產生的 pdf 的快照。有趣的是,如果我使內部逐項中的文字句子變短,它就不會出現在這種情況下。

注意該行末尾的實心方塊

我在 OS X、El Capitan 上使用 Tex Live 2015。

答案1

如果設定了,黑框是由 overfull \hboxes產生的。\overfullrule這通常是透過類別選項來完成的draft

解決方案:

  • 解決es過滿的問題\hbox

    在這裡,\slash不是讓/TeX 更容易找到連字符點:

    comments\slash documentation.
    

    甚至

    comments\slash\hspace{0pt}documentation.
    

解決方法:

  • draft從類別選項清單中刪除選項。

  • 或設定\overfullrule為零:

    \setlength{\overfullrule}{0pt}
    

相關內容