Merge pull request #2651 from jfbu/latex_avoidtoodeeplynestedI

Fix #777 (part Ia): Latex output "too deeply nested"
This commit is contained in:
Jean-François B 2016-06-11 16:46:57 +02:00 committed by GitHub
commit 7fd7d29b2a

View File

@ -342,6 +342,8 @@
}%
% go around fancyvrb's check of @currenvir (for case of minipage below)
\renewcommand*{\VerbatimEnvironment}{\gdef\FV@EnvironName{Verbatim}}%
% go around fancyvrb's check of current list depth
\def\@toodeep {\advance\@listdepth\@ne}%
% Allow breaks at special characters using \PYG... macros.
\Sphinxbreaksatspecials
% The list environment is needed to control perfectly the vertical space.