Examples
Each example page shows its source and its result in HTML. Its “Other Formats” links give the same page as a PDF through LaTeX, a PDF through Typst, and a Word file. The slides and dashboard examples are HTML only.
| Title | Description |
|---|---|
| A captioned image | A markdown image with a caption and an id floats to the right. |
| A figure div on the left | A figure div with its caption as the last paragraph floats to the left. |
| An image with no caption | An image with no caption floats to the right and keeps its alt text. |
| A figure from a code cell | A knitr code cell makes a figure that floats to the right. |
| Figures on both sides | One figure floats to the right and a later one to the left. |
| Width and gap | A figure sets an absolute width and a wider gap. |
| Document defaults | The wrapped key in the YAML header sets the width and gap for every figure. |
| Stop a wrap early | An empty wrap-clear div ends the wrap before the next paragraph. |
| Slides | A wrapped figure on a revealjs slide. |
| Dashboard | A wrapped figure in a dashboard card. |
No matching items