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

This commit is contained in:
Takeshi KOMIYA
2016-10-25 20:08:06 +09:00
parent a79ea0fa95
commit 68de92042f
+1 -1
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.