Skip to content

Commit 476f809

Browse files
committed
Merge pull request #1906 from kieranh5511/master
Use xcolor over color for \fcolorbox where available for LaTeX output
2 parents ddf6acd + 454a4b9 commit 476f809

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

sphinx/texinputs/sphinx.sty

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,13 @@
1919
\RequirePackage{makeidx}
2020
\RequirePackage{framed}
2121
\RequirePackage{ifthen}
22-
\RequirePackage{color}
22+
%The xcolor package draws better fcolorboxes
23+
%around verbatim code
24+
\IfFileExists{xcolor.sty}{
25+
\RequirePackage[xcdraw]{xcolor}
26+
}{
27+
\RequirePackage{color}
28+
}
2329
% For highlighted code.
2430
\RequirePackage{fancyvrb}
2531
% For table captions.

0 commit comments

Comments
 (0)