# Does option xcdraw to package xcolor do any good nowadays?

Package xcolor has an option xcdraw whose documentation is:

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.


And indeed making use of it confuses xdvi viewer (naturally, ps file from dvips will be ok).

\documentclass{article}

\usepackage[xcdraw]{xcolor}

\begin{document}

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


Here is when compiling with latex and viewing the dvi file:

As the graphicx drivers for various engines are actively maintained (xetex, pdftex), is using xcdraw option still a good thing nowadays ?

• No, it was only for special cases, years ago. – user2478 Feb 17 '16 at 11:21
• @Herbert could you make this into an answer ? (I need to link back to it from elsewhere) – user4686 Feb 17 '16 at 12:00

• +1 I suspected that... too bad for my other issue with xcolor which is about \fbox not usable in moving arguments (try \section{\fbox{A}} with and without xcolor). – user4686 Feb 17 '16 at 12:57