Log InGet OrdStyle

How do I add a picture, and make the text flow around it?

`![A caption](photo.jpg){width=40% align=right wrap=image}`. The wrap setting is what makes text flow beside it, and it needs `align=left` or `align=right` to have a side to sit on.

![A caption](photo.jpg)
![](logo.svg)
![The site plan](plan.png){width=40% align=right wrap=image}

The file is looked for beside your document. A missing file prints a dashed placeholder with the file name rather than vanishing, so you can see what went wrong instead of wondering where the picture went. PNG, JPG and SVG are supported.

Format > Insert Image fills all of this in from a file picker, and reopens with the same fields when the cursor is on an existing picture — so the braces are only there if you want to type them.

Making the text flow beside it

wrap= is the setting that does it:

Value Text flows beside the picture…
image for as far down as the picture is tall
column all the way to the bottom of the column
a number, e.g. 120 for that many points

Wrap needs align=left or align=right. A centered picture has no side for text to run down, so wrap is ignored there.

One thing worth knowing: a width on its own sizes the picture, but once you add wrap, the width becomes the width of the zone the text flows around. Inside columns, a percentage is read against the column rather than the page.

The other figure settings

These are the same for pictures, diagrams, circuits, charts and Python blocks:

Setting Meaning
width= 40% of the column, 120pt, or auto for its natural size
height= A fixed height in points
scale= Zoom from natural size (0.5 is half)
fit= With both a width and a height: cover crops, contain letterboxes
margin= Space around it, or T,R,B,L for each side
border= 1 or 1:#888888 for a hairline frame
radius= / shadow= Rounded corners, drop shadow
gray / duo= Desaturate, or duotone in a given color
bleed Run to the page edge

Referring to it later

Label the caption and refer to it by name; the number is worked out when the document is rendered, so it stays right when you reorder:

![The site plan {#plan}](plan.png)

As @fig:plan shows, the layout is regional.

Use @tbl:name for a table. The number printed on the figure itself comes from the List of Figures, so turn that on in Settings > Front & Back.

See also