LaTeX comments

This commit is contained in:
Jean-François B 2022-06-29 10:57:14 +02:00
parent 099d40805e
commit 9741d1341d
2 changed files with 8 additions and 5 deletions

View File

@ -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}
}{

View File

@ -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