The only way is to include the text in the figure, possibly in SVG format.
Another possibility is wrapping text and figure in a <div> and giving it a "page-break-inside: avoid" CSS property. But it seems few readers (if any) actually respect this, and it won't resize the image in any case, just send the whole lot to a new page (where it might not fit, anyway).
|