現在打包 xcolor 的 xcdraw 選項有什麼好處嗎?

現在打包 xcolor 的 xcdraw 選項有什麼好處嗎?

包裹顏色有一個選項xcdraw,其文件是:

Option xcdraw uses PostScript commands to draw frames and color boxes in case
of the dvips driver and PDF code to draw frames in case of the pdftex and
dvipdfm drivers. This is still experimental code that may confuse .dvi viewers.

事實上,使用它會讓xdvi觀眾感到困惑(當然,來自的 ps 檔案dvips就可以了)。

\documentclass{article}

\usepackage[xcdraw]{xcolor}

\begin{document}

\fcolorbox{red}{white}{\phantom{\rule{\linewidth}{1cm}}}
\end{document}

這是編譯latex和查看dvi文件時的情況:

區塊引用

由於各種引擎的 Graphicx 驅動程式都得到了積極維護(xetex、pdftex),xcdraw現在使用選項仍然是一件好事嗎?

答案1

不,多年前這只是針對特殊情況。然而,該軟體包的作者 Uwe Kern 也不再活躍多年,並且該選項仍將按原樣存在,直到沒有人接管維護工作。

相關內容