summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docutils/tools/stylesheets/latex.tex6
1 files changed, 4 insertions, 2 deletions
diff --git a/docutils/tools/stylesheets/latex.tex b/docutils/tools/stylesheets/latex.tex
index c76171e1f..d94be959d 100644
--- a/docutils/tools/stylesheets/latex.tex
+++ b/docutils/tools/stylesheets/latex.tex
@@ -895,6 +895,8 @@
}%
}
\Dprovidelength{\Dfloatimagevmargin}{0pt}
+\providecommand{\Dfloatimagetopmargin}{\Dfloatimagevmargin}
+\providecommand{\Dfloatimagebottommargin}{\Dfloatimagevmargin}
\providecommand{\Dwidthimage}[2]{%
% Image with specified width.
% Parameters:
@@ -907,12 +909,12 @@
% Compensate for space previously added in \Dhalign, but not
% entirely.
\vspace*{2.5pt}%
- \vspace*{\Dfloatimagevmargin}%
+ \vspace*{\Dfloatimagetopmargin}%
}{}%
\includegraphics[width=\linewidth,height=\textheight,keepaspectratio]{#2}%
\ifthenelse{\equal{\Dinsidehalign}{true}}{%
\vspace*{1.5pt}%
- \vspace*{\Dfloatimagevmargin}%
+ \vspace*{\Dfloatimagebottommargin}%
}{}%
\end{minipage}%
}