mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #3316 from jfbu/fix3315
Fix #3315: Bibliography crashes on latex build with docclass 'memoir'
This commit is contained in:
commit
c9204ea95a
@ -1090,8 +1090,14 @@
|
|||||||
|
|
||||||
% make commands known to non-Sphinx document classes
|
% make commands known to non-Sphinx document classes
|
||||||
\providecommand*{\sphinxtableofcontents}{\tableofcontents}
|
\providecommand*{\sphinxtableofcontents}{\tableofcontents}
|
||||||
\providecommand*{\sphinxthebibliography}{\thebibliography}
|
\spx@ifundefined{sphinxthebibliography}
|
||||||
\providecommand*{\sphinxtheindex}{\theindex}
|
{\newenvironment
|
||||||
|
{sphinxthebibliography}{\begin{thebibliography}}{\end{thebibliography}}%
|
||||||
|
}
|
||||||
|
{}% else clause of ifundefined
|
||||||
|
\spx@ifundefined{sphinxtheindex}
|
||||||
|
{\newenvironment{sphinxtheindex}{\begin{theindex}}{\end{theindex}}}%
|
||||||
|
{}% else clause of ifundefined
|
||||||
|
|
||||||
% remove LaTeX's cap on nesting depth if 'maxlistdepth' key used.
|
% remove LaTeX's cap on nesting depth if 'maxlistdepth' key used.
|
||||||
% This is a hack, which works with the standard classes: it assumes \@toodeep
|
% This is a hack, which works with the standard classes: it assumes \@toodeep
|
||||||
|
Loading…
Reference in New Issue
Block a user