Revirt aa06495b61: Remove unneeded \phantomsection (refs: review comment of #3064)

This commit is contained in:
Takeshi KOMIYA 2016-10-25 14:25:18 +09:00
parent 41609f15b8
commit 0ad54208d3
2 changed files with 8 additions and 0 deletions

View File

@ -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}}

View File

@ -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}}