On 2012-08-20, Boris Kheyfets wrote:

> [-- Type: text/plain, Encoding:  --]

> I have two figure in a table:

> +----------------------------------------+-----------------------------------+
>|.. _SuperCompArch:                      |.. 
> _ClustArch:                     |

>|                                   |
>|.. figure:: _static/SuperCompArch.jpg   |.. figure:: 
> _static/ClustArch.jpg  |
>|   :width: 80%                          |   :width: 
> 80%                     |
>|   :alt: Supercomputer archeticture     |   :alt: Cluster 
> archeticture      |
>|   :align: center                       |   :align: 
> center                  |

>|                                   |
>|   Super computer archeticture          |   Cluster 
> archticture             |
> +----------------------------------------+-----------------------------------+

> but they are of different heigh. And I would like them to be sticked to the 
> bottom of the table. In other words I want them to be centerd and bottomed 
> in the same time.

> I've read the docs, but it looks like `figure`  doesn't have `bottom` 
> option at all.

There are two image directives: "image" and "figure".
If you don't need a caption and legend, use "image".

See http://docutils.sourceforge.net/docs/ref/rst/directives.html#images

There you also see:

align : "top", "middle", "bottom", "left", "center", or "right"
    The alignment of the image, equivalent to the HTML <img> tag's
    "align" attribute. The values "top", "middle", and "bottom" control
    an image's vertical alignment (relative to the text baseline); they
    are only useful for inline images (substitutions). The values "left",
    "center", and "right" control an image's horizontal alignment,
    allowing the image to float and have the text flow around it. The
    specific behavior depends upon the browser or rendering software
    used.
    
which means you need to define your images as inline, e.g. via

.. |left-image| 
    .. image:: _static/SuperCompArch.jpg
       :width: 80%
       :alt: Supercomputer archeticture
       :align: bottom
       
and use the tag(s) in the table

  ===================  ================
  |left-image|         |right-image|

  left caption         right caption
  ===================  ================
  
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 [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