I see that the figure function in typst supports these two modes of figure placement:
placement: none: typst will insert the figure immediately; if it doesn’t fit in the current page, it will send it to the next page. Text after the figure will also be sent to the next page, after the figure.placement: auto: typst will readjust the content so that:- the figure ends at either the top or the bottom of the page
- the text surrounding the figure will be used to fill any gaps
This is almost, but not quite, like LaTeX’s placement of figures; one can tell LaTeX where to put it, and what options to try first: here, top (of a page), bottom (of a page), and even page (a separate page reserved only for figures).
Is it possible to get typst to place figures in a similar way to LaTeX? what I mean by that is:
- try to put it
here - if that leaves too large a gap, put it at either
toporbottomof a page, and use the text before/after the figure to fill the gap.
Right now I have to do that manually: write the whole document, then check where are gaps, and adjust the figure’s placement accordingly.
Are there any better alternatives?
thanks!