#8895·typst

Export to JATS-family XML (JATS and BITS)

Author: domoritzCreated Sep 26, 2026Updated Sep 26, 2026
Labelsfeature request

Description

Add an export target for JATS XML (ANSI/NISO Z39.96), with BITS as a follow-on.

JATS is the standard XML format for journal articles. BITS extends JATS for books (chapters, parts, book front matter).

Suggested scope

  • Map document structure to JATS: sections, paragraphs, lists, figures, tables, footnotes, cross-references, and math (as MathML).
  • Map document metadata (title, authors, affiliations, abstract, keywords) to <front>.
  • Output bibliography entries as structured <ref> elements.
  • Let users add JATS-specific metadata that has no Typst equivalent (for example, article type or journal metadata), for example through metadata or a set rule.
  • Later: BITS output for book-length documents.

This could build on the same semantic output work as HTML export (#5512).

References

Use Case

Many journals and archives require JATS XML as part of their internal formats. With JATS export, they could adopt Typst as a production tool, with PDF and JATS from one source. See also https://github.com/typst/typst/discussions/3799#discussioncomment-12228317.