On 2011-10-31, Pietro wrote:

> I would like to wrap text around figures when figures are positioned
> on the right (or left) hand side of the page (see the
> wouldlike-pdf.jpeg). The HTML output is ok (get-html.jpeg), instead
> the LaTex generate from sphinx code reach a different result
> (get-pdf.jpeg).

> Below you can find the ReST code, the Latex that has been generated
> from sphinx and the modified version to be coherent with the HTML
> output.

> How should I modify the reST file to generate the "right" latex code
> from sphinx?

Unfortunately, the only way (except patching the latex writer) is to use
raw latex: mark the figure directive as "html-only" and put the LaTeX
code in a "raw latex" block. Don't forget to add ``\usepackage{wrapfig}``
in the LaTeX preamble.

Günter

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To post to this group, send email to sphinx-dev@googlegroups.com.
To unsubscribe from this group, send email to 
sphinx-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en.

Reply via email to