On Sun, Oct 12, 2008 at 08:41:08PM +0200, Gael Varoquaux wrote:

> Hi Sphinx!

> I have the impression that the scale directive is not honored in the html
> writer. This puzzles me a bit, as I have had a look at the source code,
> and the writer calls the base docutils writer to do most of the work.
> However I have been unable to scale my images using the scale directive.

I should point out that I have PIL and docutils 0.5 installed. If I run
rst2html on the relevant file, I get a bunch of errors due to the
sphinx-specific directives, but the html code I am interested in looks
OK:

<table border="1" class="docutils">
<colgroup>
<col width="42%" />
<col width="58%" />
</colgroup>
<tbody valign="top">
<tr><td><img alt="plot3d.jpg"
src="images/enthought_mayavi_mlab_plot3d.jpg" style="width: 137.0px;
height: 113.0px;" /></td>
<td><img alt="points3d.jpg"
src="images/enthought_mayavi_mlab_points3d.jpg" style="width: 144.0px;
height: 137.0px;" /></td>
</tr>

With sphinx it look like:

<table border="1" class="docutils">
<colgroup>
<col width="42%" />
<col width="58%" />
</colgroup>
<tbody valign="top">
<tr><td><img alt="plot3d.jpg"
src="_images/enthought_mayavi_mlab_plot3d.jpg" /></td>
<td><img alt="points3d.jpg"
src="_images/enthought_mayavi_mlab_points3d.jpg" /></td>
</tr>

This is quite surprising, I must admit.

The rst code producing this behavior is:

+----------------+----------------------+
| |plot3d.jpg|   | |points3d.jpg|       |
+----------------+----------------------+
| :func:`plot3d` | :func:`points3d`     |
+----------------+----------------------+

.. |plot3d.jpg| image:: images/enthought_mayavi_mlab_plot3d.jpg
     :scale: 50

.. |points3d.jpg| image:: images/enthought_mayavi_mlab_points3d.jpg
     :scale: 50


Gaƫl

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

Reply via email to