Failed to build PDF with framed.sty 0.95

The framed.sty which ubuntu precise bundles does not uses \OuterFrameSep macro yet.
This commit is contained in:
Takeshi KOMIYA 2016-06-11 15:17:55 +09:00
parent 8fa890c5fd
commit d7dd00a898
2 changed files with 3 additions and 2 deletions

View File

@ -17,6 +17,7 @@ Bugs fixed
* latex: allow one more nesting depth for code-blocks (ref #777, PR #2624)
* #2635: Latex code directives produce inconsistent frames based on viewing resolution
* #2639: Sphinx now bundles iftex.sty
* Failed to build PDF with framed.sty 0.95
Release 1.4.3 (released Jun 5, 2016)

View File

@ -416,7 +416,7 @@
\newenvironment{SphinxShadowBox}
{\def\FrameCommand {\Sphinx@ShadowFBox }%
% configure framed.sty not to add extra vertical spacing
\OuterFrameSep \z@skip
\ifdefined\OuterFrameSep \OuterFrameSep\z@skip \fi
% the \trivlist will add the vertical spacing on top and bottom which is
% typical of center environment as used in Sphinx <= 1.4.1
% the \noindent has the effet of an extra blank line on top, to
@ -532,7 +532,7 @@
% configure framed.sty's parameters to obtain same vertical spacing
% as for "light" boxes. We need for this to manually insert parskip glue and
% revert a skip done by framed before the frame.
\setlength{\OuterFrameSep}{0pt}
\ifdefined\OuterFrameSep \OuterFrameSep\z@skip \fi
\vspace{\FrameHeightAdjust}
% copied/adapted from framed.sty's snugshade
\def\FrameCommand##1{\hskip\@totalleftmargin