Skip to content

Commit

Permalink
LaTeX: fix a glitch from recent internal renamings
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jfbu committed Mar 7, 2023
1 parent e39949f commit f2eb287
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sphinx/texinputs/sphinx.sty
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,7 @@ will be set to white}%
It does not seem to be available on your system.\MessageBreak
Options for setting radii will be ignored}%
\sphinxbuildwarning{nopict2e}%
\def\spx@boxes@fcolorbox@rounded{\spx@boxes@fcolorbox}%
\def\spx@boxes@fcolorbox@rounded{\spx@boxes@fcolorbox@rectangle}%
}%
}%
\AtBeginDocument{%
Expand Down
1 change: 1 addition & 0 deletions sphinx/texinputs/sphinxlatexshadowbox.sty
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

% At 5.1.0 the code formerly here has been refactored and incorporated
% into more powerful \spx@boxes@fcolorbox from sphinxpackageboxes.sty
% (which not only has a @rectangle variant but also @rounded)
\long\def\spx@ShadowFBox#1{%
\leavevmode
\setbox\z@\hbox{#1}%
Expand Down
4 changes: 2 additions & 2 deletions sphinx/texinputs/sphinxpackageboxes.sty
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@
%%%%%%%%%%%%%%%%
% "setup" macro
%
% It must be called prior to \spx@boxes@fcolorbox{@rounded,@insetshadow} for
% initializing its parameters.
% It must be called prior to \spx@boxes@fcolorbox for parameters of the latter
% to be initialized.
%
% It also prepares \spx@boxes@fcolorbox to expand to one of
% \spx@boxes@fcolorbox@rectangle or \spx@boxes@fcolorbox@rounded depending on
Expand Down

0 comments on commit f2eb287

Please sign in to comment.