| 1 |
.. |
| 2 |
Copyright (c) 2021 Pradyun Gedam |
| 3 |
Licensed under Creative Commons Attribution-ShareAlike 4.0 International License |
| 4 |
SPDX-License-Identifier: CC-BY-SA-4.0 |
| 5 |
|
| 6 |
================ |
| 7 |
Images & Figures |
| 8 |
================ |
| 9 |
|
| 10 |
Images |
| 11 |
------ |
| 12 |
|
| 13 |
An image: |
| 14 |
|
| 15 |
.. image:: https://picsum.photos/200/200 |
| 16 |
:height: 200 |
| 17 |
:width: 200 |
| 18 |
|
| 19 |
A clickable image: |
| 20 |
|
| 21 |
.. image:: https://picsum.photos/200/200 |
| 22 |
:target: https://picsum.photos/ |
| 23 |
:height: 200 |
| 24 |
:width: 200 |
| 25 |
|
| 26 |
.. image:: https://picsum.photos/200/200 |
| 27 |
:align: right |
| 28 |
:height: 200 |
| 29 |
:width: 200 |
| 30 |
|
| 31 |
This is a lot of text to go along with a right-aligned image, that is |
| 32 |
helping make this content feel less linear. It is important to have such |
| 33 |
a body of text, since the image is meant to be "floated" to the right, |
| 34 |
which would interfere with the rest of the document otherwise. |
| 35 |
|
| 36 |
Lorem ipsum dolor sit amet consectetur adipisicing elit. Blanditiis |
| 37 |
sapiente veritatis doloribus accusantium molestiae modi recusandae |
| 38 |
excepturi facere, corrupti expedita sit nihil temporibus eius sequi |
| 39 |
animi, illo libero labore fuga. |
| 40 |
|
| 41 |
Lorem ipsum dolor sit amet consectetur adipisicing elit. Blanditiis |
| 42 |
sapiente veritatis doloribus accusantium molestiae modi recusandae |
| 43 |
excepturi facere, corrupti expedita sit nihil temporibus eius sequi |
| 44 |
animi, illo libero labore fuga. |
| 45 |
|
| 46 |
.. image:: https://picsum.photos/200/200 |
| 47 |
:align: left |
| 48 |
:height: 200 |
| 49 |
:width: 200 |
| 50 |
|
| 51 |
This is a lot of text to go along with a left-aligned image, that is |
| 52 |
helping make this content feel less linear. It is important to have such |
| 53 |
a body of text, since the image is meant to be "floated" to the right, |
| 54 |
which would interfere with the rest of the document otherwise. |
| 55 |
|
| 56 |
Lorem ipsum dolor sit amet consectetur adipisicing elit. Blanditiis |
| 57 |
sapiente veritatis doloribus accusantium molestiae modi recusandae |
| 58 |
excepturi facere, corrupti expedita sit nihil temporibus eius sequi |
| 59 |
animi, illo libero labore fuga. |
| 60 |
|
| 61 |
Lorem ipsum dolor sit amet consectetur adipisicing elit. Blanditiis |
| 62 |
sapiente veritatis doloribus accusantium molestiae modi recusandae |
| 63 |
excepturi facere, corrupti expedita sit nihil temporibus eius sequi |
| 64 |
animi, illo libero labore fuga. |
| 65 |
|
| 66 |
Figures |
| 67 |
------- |
| 68 |
|
| 69 |
.. figure:: https://picsum.photos/200/200 |
| 70 |
:alt: reStructuredText, the markup syntax |
| 71 |
|
| 72 |
A figure is an image with a caption and/or a legend: |
| 73 |
|
| 74 |
+------------+-----------------------------------------------+ |
| 75 |
| re | Revised, revisited, based on 're' module. | |
| 76 |
+------------+-----------------------------------------------+ |
| 77 |
| Structured | Structure-enhanced text, structuredtext. | |
| 78 |
+------------+-----------------------------------------------+ |
| 79 |
| Text | Well it is, isn't it? | |
| 80 |
+------------+-----------------------------------------------+ |
| 81 |
|
| 82 |
This paragraph is also part of the legend. |
| 83 |
|
| 84 |
A figure directive with center alignment |
| 85 |
|
| 86 |
.. figure:: https://picsum.photos/200/200 |
| 87 |
:align: center |
| 88 |
|
| 89 |
This caption should be centered. |