Images

Created on Oct. 25, 2012, 2:57 p.m. by Hevok & updated by Hevok on May 2, 2013, 5:10 p.m.

The image directive can be used to define an image, which takes either an file path or an URL:

.. image:: http://dgallery.s3.amazonaws.com/rst.png
http://dgallery.s3.amazonaws.com/rst.png

Additional attributes can be specified:

.. image:: http://dgallery.s3.amazonaws.com/rst.png
   :height: 100
   :width: 200
   :scale: 50
   :alt: alternative text
alternative text

A panel can be created by listening multiple images:

.. image:: http://dgallery.s3.amazonaws.com/denigma_pos.png
   :width: 200
   :height: 100

.. image:: http://dgallery.s3.amazonaws.com/denigma_pos.png
   :width: 200
   :height: 100
http://dgallery.s3.amazonaws.com/denigma_pos.png http://dgallery.s3.amazonaws.com/denigma_pos.png

Figures can have even a title and legend:

.. image:: http://dgallery.s3.amazonaws.com/denigma_pos.png
    :width: 200
    :height: 100

.. figure:: http://dgallery.s3.amazonaws.com/denigma_pos.png
    :width: 200
    :height: 100

    **Figure 1: Testing Denigma markup.**
    This tests Denigma image rendering.
http://dgallery.s3.amazonaws.com/denigma_pos.png
http://dgallery.s3.amazonaws.com/denigma_pos.png

Figure 1: Testing Denigma markup. This tests Denigma image rendering.


Tags: tutorial, rest
Categories: Tutorial
Parent: reStructuredText
Children: Image Formats, Images Inline

Update entry (Admin) | See changes

Comment on This Data Unit