File tree Expand file tree Collapse file tree 5 files changed +24
-19
lines changed Expand file tree Collapse file tree 5 files changed +24
-19
lines changed Original file line number Diff line number Diff line change 685
685
% % FRAMED ENVIRONMENTS
686
686
%
687
687
\RequirePackage {sphinxpackageboxes}
688
+ % This macro is possibly executed at begin document if the check
689
+ % whether radii setting options have been used turns out positive
690
+ \def\spx@RequirePackage@PictIIe {%
691
+ \IfFileExists {pict2e.sty}
692
+ {\RequirePackage {pict2e}}
693
+ {\PackageWarningNoLine {sphinx}{%
694
+ The package pict2e is required for rounded boxes.\MessageBreak
695
+ It does not seem to be available on your system.\MessageBreak
696
+ Options for setting radii will thus be ignored}%
697
+ \AtEndDocument {\PackageWarningNoLine {sphinx}{%
698
+ I issued a warning which may have gotten lost in the\MessageBreak
699
+ gigantic console output: pict2e.sty was not found,\MessageBreak
700
+ and radii setting options have been ignored}}%
701
+ \def\spx@boxes@fcolorbox@rounded {\spx@boxes@fcolorbox }%
702
+ }%
703
+ }%
704
+ % This at begin document will be executed after \spx@RequirePackage@PictIIe
705
+ \AtBeginDocument {%
706
+ \@ifpackageloaded {pict2e}{\let\spx@ifpackageloaded@pictiie\@firstoftwo }%
707
+ {\let\spx@ifpackageloaded@pictiie\@secondoftwo }%
708
+ }%
688
709
\input {sphinxlatexadmonitions.sty }
689
710
\input {sphinxlatexliterals.sty }
690
711
\input {sphinxlatexshadowbox.sty }
Original file line number Diff line number Diff line change 162
162
\ifdim \spx@boxes@radius@bottomleft >\z@ 0\fi
163
163
1\spx@boxes@fcolorbox {##1}%
164
164
\else
165
- \@ifpackageloaded {pict2e} %
165
+ \spx @ifpackageloaded@pictiie
166
166
{\ifspx@boxes@insetshadow
167
167
\spx@boxes@fcolorbox {##1}%
168
168
\else
Original file line number Diff line number Diff line change 164
164
\ifdim \spx@pre@radius@bottomleft >\z@ 0\fi
165
165
1\spx@boxes@fcolorbox {\box\z@ }%
166
166
\else
167
- \@ifpackageloaded {pict2e} %
167
+ \spx @ifpackageloaded@pictiie
168
168
{\ifspx@pre@insetshadow
169
169
\spx@boxes@fcolorbox {\box\z@ }%
170
170
\else
Original file line number Diff line number Diff line change 79
79
\ifdim \spx@topic@radius@bottomleft >\z@ 0\fi
80
80
1\spx@boxes@fcolorbox {\box\z@ }%
81
81
\else
82
- \@ifpackageloaded {pict2e} %
82
+ \spx @ifpackageloaded@pictiie
83
83
{\ifspx@topic@insetshadow
84
84
\spx@boxes@fcolorbox {\box\z@ }%
85
85
\else
Original file line number Diff line number Diff line change 72
72
% if nothing else is changed (perhaps in future the title itself could be also
73
73
% rendered in a rounded box?)
74
74
75
- \def\spx@RequirePackage@PictIIe {%
76
- \IfFileExists {pict2e.sty}
77
- {\RequirePackage {pict2e}}
78
- {\PackageWarningNoLine {sphinx}{%
79
- The package pict2e is required for rounded boxes.\MessageBreak
80
- It does not seem to be available on your system.\MessageBreak
81
- Options for setting radii will thus be ignored}%
82
- \AtEndDocument {\PackageWarningNoLine {sphinx}{%
83
- I issued a warning which may have gotten lost in the\MessageBreak
84
- gigantic console output: pict2e.sty was not found,\MessageBreak
85
- and radii setting options have been ignored}}%
86
- \def\spx@boxes@fcolorbox@rounded {\spx@boxes@fcolorbox }%
87
- }%
88
- }%
89
-
90
-
91
75
% //// \spx@boxes@fcolorbox
92
76
% This box will have the same baseline as its argument (which is typeset in
93
77
% horizontal mode). It takes into account four border widths parameters, four
You can’t perform that action at this time.
0 commit comments