mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
LaTeX comments
This commit is contained in:
parent
099d40805e
commit
9741d1341d
@ -34,11 +34,14 @@
|
||||
%% OPTION HANDLING
|
||||
%
|
||||
|
||||
% We first handle options then load packages, but we need \definecolor from
|
||||
% xcolor/color.
|
||||
% We generally first handle options then load packages, but we need
|
||||
% \definecolor from xcolor/color to handle the options.
|
||||
|
||||
% FIXME: we should \RequirePackage{xcolor} always now
|
||||
% The xcolor package draws better fcolorboxes around verbatim code
|
||||
% MEMO: xcolor \fcolorbox coloured boxes render better in some PDF viewers
|
||||
% than with color package \fcolorbox. Since 1.6.3, Sphinx uses only its own
|
||||
% custom variant of \fcolorbox when handling verbatim code. Currently (last
|
||||
% checked at 5.0.0) \fcolorbox is used for admonitions (sphinxheavybox)
|
||||
% and appears also in Pygmentize output mark-up.
|
||||
\IfFileExists{xcolor.sty}{
|
||||
\RequirePackage{xcolor}
|
||||
}{
|
||||
|
@ -105,7 +105,7 @@
|
||||
\long\def\spx@fcolorbox #1#2#3#4#5{%
|
||||
\hskip\@totalleftmargin
|
||||
\hskip-\fboxsep\hskip-\fboxrule
|
||||
% use of \color@b@x here is compatible with both xcolor.sty and color.sty
|
||||
% MEMO: \color@b@x from xcolor.sty is identical with the one from color.sty
|
||||
\color@b@x {\color{#1}\spx@CustomFBox{#3}{#4}}{\color{#2}}{#5}%
|
||||
\hskip-\fboxsep\hskip-\fboxrule
|
||||
\hskip-\linewidth \hskip-\@totalleftmargin \hskip\columnwidth
|
||||
|
Loading…
Reference in New Issue
Block a user