summaryrefslogtreecommitdiff
path: root/sphinx/texinputs
diff options
context:
space:
mode:
authorjfbu <jfbu@free.fr>2021-02-06 13:57:07 +0100
committerjfbu <jfbu@free.fr>2021-02-06 13:57:07 +0100
commitff305ec25857bab34fa4aac797ea32466655b15f (patch)
tree5210136b4c3605094e9be517ce472cb6c16df198 /sphinx/texinputs
parent6275a7756f5a19ecf6968d4a7f18485f733cc94d (diff)
downloadsphinx-git-ff305ec25857bab34fa4aac797ea32466655b15f.tar.gz
Be extra cautious to not use \@arabic in \thesphinxscope
Diffstat (limited to 'sphinx/texinputs')
-rw-r--r--sphinx/texinputs/sphinx.sty5
1 files changed, 5 insertions, 0 deletions
diff --git a/sphinx/texinputs/sphinx.sty b/sphinx/texinputs/sphinx.sty
index cfe2164c1..d74e6360b 100644
--- a/sphinx/texinputs/sphinx.sty
+++ b/sphinx/texinputs/sphinx.sty
@@ -847,6 +847,11 @@
% Support scopes for footnote numbering
\newcounter{sphinxscope}
\newcommand{\sphinxstepscope}{\stepcounter{sphinxscope}}
+% Some babel/polyglossia languages fiddle with \@arabic, so let's be extra
+% cautious and redefine \thesphinxscope with \number not \@arabic.
+% Memo: we expect some subtle redefinition of \thesphinxscope to be a part of page
+% scoping for footnotes, when we shall implement it.
+\renewcommand{\thesphinxscope}{\number\value{sphinxscope}}
% Support large numbered footnotes in minipage
% But now obsolete due to systematic use of \savenotes/\spewnotes
% when minipages are in use in the various macro definitions next.