PasteZap
🌐 简体中文
免费 · 无需注册

免费 · 简历与文档

Typst 在线编辑器.

在浏览器中编写 Typst 文档并实时预览 PDF:标题、表格、数学公式、代码和图片,然后下载 PDF。无需注册,不上传文件。

开始之前

部分技术控件使用英语。支持 Unicode 文本;文件格式和输出语言取决于具体工具。

下面以英语列出技术限制。处理大型文件或使用结果之前,请先查看这些限制。

RUNS IN YOUR BROWSER · NO ACCOUNTDownloading the Typst compiler (about 28 MB the first time)…
Preview

Typst compiled to WebAssembly (typst.ts, Apache-2.0) with the Libertinus Serif, New Computer Modern, DejaVu Sans Mono and Noto fonts. Packages from Typst Universe (@preview/…) cannot be imported, and only images you add are available as files.

编写 Typst 文档

  1. 等待显示 Typst ready;首次访问会下载一次编译器(约 28 MB)。
  2. 在源码框中输入 Typst 标记,或在 Example 中选择:Article、Math、Letter、Code and figures、Many scripts。
  3. 输入时预览会实时更新。出错时列表会显示所在行,点击即可跳转。预览保留最后一次成功编译的版本。
  4. 用 Add images 添加图片,再按显示的文件名写 #image("photo.png")。点击 Download PDF,或用 Save .typ 保存源码。

示例:Math 示例会排出求根公式、前 n 个整数之和、高斯积分和矩阵乘法。$ x^2 $ 会变成公式,= 标题 会变成标题。

字体、文字与限制

内置 Libertinus Serif(正文)、New Computer Modern 及其数学字体、DejaVu Sans Mono(代码),以及用于阿拉伯文、天城文、中文和日文的 Noto 字体。只有文档用到某个字体时才会下载它。可用 #set text(font: ...) 选择字体。

由于不会从互联网获取任何内容,无法导入 Typst Universe 的包(@preview/...),且只有一个主文件。简单文档可改用 Markdown 转 PDF 或 文本转 PDF,可能更快。

限制与支持格式

输入内容在您的设备上处理。

英语技术说明

Packages from Typst Universe (@preview) cannot be imported and there is no multi-file project: only the main file and the images you add. The first start downloads about 28 MB. The preview shows up to 30 pages; the PDF contains all of them.

Uses the typst.ts web compiler (Apache-2.0, Typst 0.14 engine) in a background worker; the wasm, Libertinus Serif, New Computer Modern, DejaVu Sans Mono and Noto fonts are served by this site and fonts load only when a document uses them.

The Math example renders the quadratic formula, a sum, a Gaussian integral and a matrix product on one A4-width page.

常见问题

我的文档会被上传吗?

不会。Typst 在浏览器的后台 worker 中编译,PDF 在您的设备上生成。

这是 Typst 官方应用吗?

不是。这是基于开源 Typst 编译器(typst.ts,Apache-2.0)的独立编辑器,没有账号、协作或包下载功能。

为什么会出现关于包的错误?

#import "@preview/..." 这类导入需要 Typst 包注册中心,而本工具不会连接它。请把需要的代码复制到文档中。