From 3650663bb3712ec5994b07657484a7eba92c6f83 Mon Sep 17 00:00:00 2001 From: jfbu Date: Sun, 19 Jun 2016 20:50:50 +0200 Subject: [PATCH] Fix #2679: (latex) load package float for 'H' value of 'figure_align' --- CHANGES | 1 + sphinx/texinputs/sphinx.sty | 3 +++ 2 files changed, 4 insertions(+) diff --git a/CHANGES b/CHANGES index 50a66de922..deb1313fb5 100644 --- a/CHANGES +++ b/CHANGES @@ -15,6 +15,7 @@ Bugs fixed * #2676: (latex) Error with verbatim text in captions since Sphinx 1.4.4 * #2629: memoir class crashes LaTeX. Fixed ``by latex_keep_old_macro_names=False`` (ref 2675) * #2684: `sphinx.ext.intersphinx` crashes with six-1.4.1 +* #2679: ``float`` package needed for ``'figure_align': 'H'`` latex option Release 1.4.4 (released Jun 12, 2016) diff --git a/sphinx/texinputs/sphinx.sty b/sphinx/texinputs/sphinx.sty index 85fc492a7e..a049c504b0 100644 --- a/sphinx/texinputs/sphinx.sty +++ b/sphinx/texinputs/sphinx.sty @@ -59,6 +59,9 @@ \RequirePackage{alltt} % Display "real" single quotes in literal blocks. \RequirePackage{upquote} +% For the H specifier. Do not \restylefloat{figure}, it breaks Sphinx code +% for allowing figures in tables. +\RequirePackage{float} % Redefine these colors to your liking in the preamble. \definecolor{TitleColor}{rgb}{0.126,0.263,0.361}