mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Revirt aa06495b61
: Remove unneeded \phantomsection (refs: review comment of #3064)
This commit is contained in:
parent
41609f15b8
commit
0ad54208d3
@ -90,7 +90,11 @@
|
|||||||
% Contents.
|
% Contents.
|
||||||
% For an article document class this environment is a section,
|
% For an article document class this environment is a section,
|
||||||
% so no page break before it.
|
% so no page break before it.
|
||||||
|
%
|
||||||
|
% Note: \phantomsection is required for TeXLive 2009
|
||||||
|
% http://tex.stackexchange.com/questions/44088/when-do-i-need-to-invoke-phantomsection#comment166081_44091
|
||||||
\newenvironment{sphinxthebibliography}[1]{%
|
\newenvironment{sphinxthebibliography}[1]{%
|
||||||
|
\phantomsection
|
||||||
\begin{thebibliography}{1}%
|
\begin{thebibliography}{1}%
|
||||||
\addcontentsline{toc}{section}{\bibname}}{\end{thebibliography}}
|
\addcontentsline{toc}{section}{\bibname}}{\end{thebibliography}}
|
||||||
|
|
||||||
|
@ -107,8 +107,12 @@
|
|||||||
% Fix the bibliography environment to add an entry to the Table of
|
% Fix the bibliography environment to add an entry to the Table of
|
||||||
% Contents.
|
% Contents.
|
||||||
% For a report document class this environment is a chapter.
|
% For a report document class this environment is a chapter.
|
||||||
|
%
|
||||||
|
% Note: \phantomsection is required for TeXLive 2009
|
||||||
|
% http://tex.stackexchange.com/questions/44088/when-do-i-need-to-invoke-phantomsection#comment166081_44091
|
||||||
\newenvironment{sphinxthebibliography}[1]{%
|
\newenvironment{sphinxthebibliography}[1]{%
|
||||||
\if@openright\cleardoublepage\else\clearpage\fi
|
\if@openright\cleardoublepage\else\clearpage\fi
|
||||||
|
\phantomsection
|
||||||
\begin{thebibliography}{1}%
|
\begin{thebibliography}{1}%
|
||||||
\addcontentsline{toc}{chapter}{\bibname}}{\end{thebibliography}}
|
\addcontentsline{toc}{chapter}{\bibname}}{\end{thebibliography}}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user