Use xcolor over color where available

The boxes drawn around verbatim code (fcolorbox) with the color package seem to display poorly on-screen in some PDF readers (e.g. Adobe Reader). Boxes drawn with xcolor display much better, hence the xcolor package will be used if available.
This commit is contained in:
kieranh5511 2015-05-27 17:40:41 +01:00
parent 2710d8e5b2
commit 454a4b9c65

View File

@ -18,7 +18,13 @@
\RequirePackage{makeidx}
\RequirePackage{framed}
\RequirePackage{ifthen}
\RequirePackage{color}
%The xcolor package draws better fcolorboxes
%around verbatim code
\IfFileExists{xcolor.sty}{
\RequirePackage[xcdraw]{xcolor}
}{
\RequirePackage{color}
}
% For highlighted code.
\RequirePackage{fancyvrb}
% For table captions.