mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
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:
parent
2710d8e5b2
commit
454a4b9c65
@ -18,7 +18,13 @@
|
|||||||
\RequirePackage{makeidx}
|
\RequirePackage{makeidx}
|
||||||
\RequirePackage{framed}
|
\RequirePackage{framed}
|
||||||
\RequirePackage{ifthen}
|
\RequirePackage{ifthen}
|
||||||
\RequirePackage{color}
|
%The xcolor package draws better fcolorboxes
|
||||||
|
%around verbatim code
|
||||||
|
\IfFileExists{xcolor.sty}{
|
||||||
|
\RequirePackage[xcdraw]{xcolor}
|
||||||
|
}{
|
||||||
|
\RequirePackage{color}
|
||||||
|
}
|
||||||
% For highlighted code.
|
% For highlighted code.
|
||||||
\RequirePackage{fancyvrb}
|
\RequirePackage{fancyvrb}
|
||||||
% For table captions.
|
% For table captions.
|
||||||
|
Loading…
Reference in New Issue
Block a user