title: Sphinx to Latex Figure Placement
body: <p>I'm trying to used Sphinx to generate a manual in latex and HTML, but I'm having issues with the figure placement within latex. In Sphinx my figures are as follows:</p>
  
  <pre><code>.. figure:: _images/somepicture.png
      :figwidth: 100 %
      :width: 100 %
      :align: center
  
      some caption
  </code></pre>
  
  <p>So that when it writes to HTML, the figures span the whole width of the page. This works fine.</p>
  
  <p>The trouble comes in latex, where a typical figure in latex writes as:</p>
  
  <pre><code>\begin{figure}[htbp]
  \centering
  
  \includegraphics[width=1.000\linewidth]{reset.png}
  \end{figure}
  </code></pre>
  
  <p>The trouble is the [htbp] placement option. Since the images are \linewidth in length, they are very large and end up floating to the next page, and any often the order of text and figures in the document is not preserved in the the pdf output. I want to change [htbp] to [H].</p>
  
  <p>I found an option to put into the conf.py file under latex elements section called 'figure_align', but when I use it, it doesn't work. The link is here <a href="http://sphinx.readthedocs.org/en/latest/config.html#options-for-latex-output" rel="noreferrer">http://sphinx.readthedocs.org/en/latest/config.html#options-for-latex-output</a></p>
  
  <p>in my conf.py document, I have the following:</p>
  
  <pre><code>latex_elements = {
  # The paper size ('letterpaper' or 'a4paper').
  #'papersize': 'letterpaper',
  
  # The font size ('10pt', '11pt' or '12pt').
  #'pointsize': '10pt',
  
  # Additional stuff for the LaTeX preamble.
  #'preamble':'',
  
  #Figure placement within LaTeX paper NOT WORKING
  'figure_align': 'H'
  
  }
  </code></pre>
  
  <p>My question is, why isn't this option working and what can I do to make it work?</p>