58 lines
1.3 KiB
Typst
58 lines
1.3 KiB
Typst
#set document(
|
|
title: "tyty",
|
|
author: "test ",
|
|
)
|
|
#set page(numbering: "1")
|
|
#set heading(numbering: "1.1")
|
|
#set par(justify: true)
|
|
|
|
#align(center)[
|
|
#text(size: 22pt, weight: "bold")[tyty] \
|
|
#v(0.4em)
|
|
test · June 2026
|
|
]
|
|
|
|
= Introduction
|
|
|
|
Welcome to *Typst* in Verso. Typst is a modern typesetting system that
|
|
compiles in milliseconds — edit `main.typ` and hit *Recompile* to see the PDF
|
|
update. This example shows off math, figures, tables and lists.
|
|
|
|
= Mathematics
|
|
|
|
Inline math such as $e^(i pi) + 1 = 0$ sits naturally in the text, while block
|
|
equations are centred and can be numbered:
|
|
|
|
$ integral_(-oo)^(oo) e^(-x^2) dif x = sqrt(pi) $
|
|
|
|
= Figures
|
|
|
|
Images stored in the project are included with the `image` function:
|
|
|
|
#figure(
|
|
image("frog.jpg", width: 50%),
|
|
caption: [A friendly frog, loaded from a project file.],
|
|
)
|
|
|
|
= Tables
|
|
|
|
#figure(
|
|
table(
|
|
columns: 3,
|
|
align: (left, center, left),
|
|
[*Engine*], [*Output*], [*Best for*],
|
|
[Typst], [PDF], [Fast, modern layout],
|
|
[Quarto], [PDF / HTML], [Reproducible documents],
|
|
[LaTeX], [PDF], [Classic STEM articles],
|
|
),
|
|
caption: [Verso compiles three source formats side by side.],
|
|
)
|
|
|
|
= Lists
|
|
|
|
- Write documents in concise, readable markup
|
|
- Get near-instant PDF output
|
|
- Script your layout with a real programming language
|
|
|
|
Now make this document your own!
|