latex: Use \refname if \bibname not defined in sphinxhowto.cls

This commit is contained in:
Takeshi KOMIYA 2016-10-19 23:36:47 +09:00
parent a79ea0fa95
commit 68de92042f

View File

@ -92,7 +92,7 @@
% so no page break before it.
\newenvironment{sphinxthebibliography}[1]{%
\begin{thebibliography}{1}%
\addcontentsline{toc}{section}{\bibname}}{\end{thebibliography}}
\addcontentsline{toc}{section}{\ifdefined\refname\refname\else\ifdefined\bibname\bibname\fi\fi}}{\end{thebibliography}}
% Same for the indices.