Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f2eb287

Browse files
committed
LaTeX: fix a glitch from recent internal renamings
On a system with LaTeX package pict2e unavailable it would lead to an infinite loop. Caused by forgotten update of a macro name which has changed meaning.
1 parent e39949f commit f2eb287

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

sphinx/texinputs/sphinx.sty

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,7 @@ will be set to white}%
733733
It does not seem to be available on your system.\MessageBreak
734734
Options for setting radii will be ignored}%
735735
\sphinxbuildwarning{nopict2e}%
736-
\def\spx@boxes@fcolorbox@rounded{\spx@boxes@fcolorbox}%
736+
\def\spx@boxes@fcolorbox@rounded{\spx@boxes@fcolorbox@rectangle}%
737737
}%
738738
}%
739739
\AtBeginDocument{%

sphinx/texinputs/sphinxlatexshadowbox.sty

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626
% At 5.1.0 the code formerly here has been refactored and incorporated
2727
% into more powerful \spx@boxes@fcolorbox from sphinxpackageboxes.sty
28+
% (which not only has a @rectangle variant but also @rounded)
2829
\long\def\spx@ShadowFBox#1{%
2930
\leavevmode
3031
\setbox\z@\hbox{#1}%

sphinx/texinputs/sphinxpackageboxes.sty

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@
5151
%%%%%%%%%%%%%%%%
5252
% "setup" macro
5353
%
54-
% It must be called prior to \spx@boxes@fcolorbox{@rounded,@insetshadow} for
55-
% initializing its parameters.
54+
% It must be called prior to \spx@boxes@fcolorbox for parameters of the latter
55+
% to be initialized.
5656
%
5757
% It also prepares \spx@boxes@fcolorbox to expand to one of
5858
% \spx@boxes@fcolorbox@rectangle or \spx@boxes@fcolorbox@rounded depending on

0 commit comments

Comments
 (0)