Development build 586e1bd4
Typst文档简体中文版v0.15.1 + dev 586e1bd4

frame元素
Question mark
0.13.0起可用
Feature toggle
Requires the html feature
Go to source

An element that lays out its content as an inline SVG.

Sometimes, converting Typst content to HTML is not desirable. This can be the case for plots and other content that relies on positioning and styling to convey its message.

This function allows you to use the Typst layout engine that would also be used for PDF, SVG, and PNG export to render a part of your document exactly how it would appear when exported in one of these formats. It embeds the content as an inline SVG.

参数
Question mark

html.frame(content) → content

body
content
必需参数
Question mark
位置参数
Question mark

The content that shall be laid out.