Extension figure
Include figures and images.
Figures are included by referring to their file. The source attribute refers to the image file, relative to the page. Usually it is a good idea to collect all images of a page or group of page in one folder, like shown below. Files are copied during the build process.
- site/
- pages/
- index.md
- hello.md
- unit-1/
- figures/
- image.png
- index.md
- preparation.md
- figures/
- pages/
Formats can be jpg
, png
, pdf
.
Captions are recommended.
Python type | Figure |
type | figure |
Language | YAML |
Required fields | source |
Optional fields | caption, link |
Post-Yaml Section | no |
Example 1
Source Code
--- type: figure source: _placeholder 800 x 200 caption: "The TCP protocol uses state machines to describe parts of its behavior." ---
---
type: figure
source: _placeholder 800 x 200
caption: "The TCP protocol uses state machines to describe parts of its behavior."
---