Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sphinx-doc/sphinx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjfbu <jfbu@free.fr>2021-02-06 15:43:12 +0300
committerjfbu <jfbu@free.fr>2021-02-06 15:43:12 +0300
commit6275a7756f5a19ecf6968d4a7f18485f733cc94d (patch)
treeb2a96287e7e808d60a5c4c9f44361a4a03b3d245 /sphinx/texinputs
parentc55216858e59f805a5655d026db6d647bff3412d (diff)
Use \thesphinxscope mark-up (shorter, and may help trick for page scope)
Diffstat (limited to 'sphinx/texinputs')
-rw-r--r--sphinx/texinputs/footnotehyper-sphinx.sty8
1 files changed, 4 insertions, 4 deletions
diff --git a/sphinx/texinputs/footnotehyper-sphinx.sty b/sphinx/texinputs/footnotehyper-sphinx.sty
index b5babc279..f8a153c3e 100644
--- a/sphinx/texinputs/footnotehyper-sphinx.sty
+++ b/sphinx/texinputs/footnotehyper-sphinx.sty
@@ -176,7 +176,7 @@
\@footnotemark
% Sphinx addition: store internal hyperref anchor reference to allow
% multiple clickable reference to same numbered footnote
- \expandafter\xdef\csname FNH!\number\value{sphinxscope}!#1\endcsname{\Hy@footnote@currentHref}%
+ \expandafter\xdef\csname FNH!\thesphinxscope!#1\endcsname{\Hy@footnote@currentHref}%
\def\FNH@endfntext@fntext{\@footnotetext}%
\FNH@startfntext
}%
@@ -345,18 +345,18 @@
% this <number> as argument and taking into account current <scope>.
\protected\def\sphinxfootref#1{% #1 always explicit number in Sphinx usage
\spx@opt@BeforeFootnote
- \ifcsname FNH!\number\value{sphinxscope}!#1\endcsname
+ \ifcsname FNH!\thesphinxscope!#1\endcsname
\gdef\@thefnmark{#1}% \@thefnmark always redefined globally by latex
\let\spx@saved@makefnmark\@makefnmark
\edef\@makefnmark{% we pre-expand the sphinxscope value, to be safe
- \noexpand\hyper@linkstart{link}{\@nameuse{FNH!\number\value{sphinxscope}!#1}}%
+ \noexpand\hyper@linkstart{link}{\@nameuse{FNH!\thesphinxscope!#1}}%
\noexpand\spx@saved@makefnmark
\noexpand\hyper@linkend
}%
\H@@footnotemark
\let\@makefnmark\spx@saved@makefnmark
\else
- \xdef\@thefnmark{\noexpand\ref{\number\value{sphinxscope}.#1}}% #1 = number
+ \xdef\@thefnmark{\noexpand\ref{\thesphinxscope.#1}}% #1 = number
\H@@footnotemark
\fi
}%