The textimage directive

.. textimage::

Insert a text and an image side by side.

Usage:

.. textimage:: 0114a.jpg
  :scale: 40 %

  **This is a test**.
  We start by including a .py file:

  .. literalinclude:: 0116a.py

  Here are some explanations.

This directive will generate the following intermediate rst markup:

+-----------------------------------+----------------------+
| **This is a test**.               | .. image:: 0114a.jpg |
| We start by including a .py file: |   :scale: 40 %       |
|                                   |                      |
| .. literalinclude:: 0116a.py      |                      |
|                                   |                      |
| Here are some explanations.       |                      |
+-----------------------------------+----------------------+

… leading to the final result:

This is a test. We start by including a .py file:

# test
for i in range(10):
    print(i)

Here are some explanations.

../_images/0114a.jpg

0114a.jpg

Implemented by rstgen.sphinxconf.complex_tables.InsertInputDirective)