From e3e827ef7fb306683e484cd62384687606707b21 Mon Sep 17 00:00:00 2001 From: Takeshi KOMIYA Date: Sun, 29 May 2016 19:55:44 +0900 Subject: [PATCH] Fix #2350: got "Counter too large" error on building PDF if large numbered footnotes existed in admonitions --- CHANGES | 2 ++ sphinx/texinputs/sphinx.sty | 3 +++ 2 files changed, 5 insertions(+) diff --git a/CHANGES b/CHANGES index b58691a3f..a45cce69c 100644 --- a/CHANGES +++ b/CHANGES @@ -4,6 +4,8 @@ Release 1.4.3 (in development) Bugs fixed ---------- +* #2350: got "Counter too large" error on building PDF if large numbered footnotes existed in admonitions + Release 1.4.2 (released May 29, 2016) ===================================== diff --git a/sphinx/texinputs/sphinx.sty b/sphinx/texinputs/sphinx.sty index 38ec46d86..c53375a69 100644 --- a/sphinx/texinputs/sphinx.sty +++ b/sphinx/texinputs/sphinx.sty @@ -154,6 +154,9 @@ \newcommand*{\sphinxAtStartFootnote}{\mbox{ }} +% Support large numbered footnotes in minipage (cf. admonitions) +\def\thempfootnote{\arabic{mpfootnote}} + % Redefine the Verbatim environment to allow border and background colors % and to handle the top caption in a non separable by pagebreak way. % The original environment is still used for verbatims within tables.