Typst language preview
1. Document with headings and markup
headings, #let bindings, emphasis, and math mode
horizon-dark
= Introduction
#let title = "Typst Guide"
#let version = 0.1
This document introduces *Typst*, a modern markup-based typesetting
system. It combines the simplicity of _Markdown_ with the power of
LaTeX.
== Motivation
Typst compiles documents incrementally and reports errors clearly.
See @intro for background, or check the `typst compile` command.
$ sum_(i=1)^n i = (n(n+1)) / 2 $
More info at <intro>. atom-one-dark
= Introduction
#let title = "Typst Guide"
#let version = 0.1
This document introduces *Typst*, a modern markup-based typesetting
system. It combines the simplicity of _Markdown_ with the power of
LaTeX.
== Motivation
Typst compiles documents incrementally and reports errors clearly.
See @intro for background, or check the `typst compile` command.
$ sum_(i=1)^n i = (n(n+1)) / 2 $
More info at <intro>. github-dark
= Introduction
#let title = "Typst Guide"
#let version = 0.1
This document introduces *Typst*, a modern markup-based typesetting
system. It combines the simplicity of _Markdown_ with the power of
LaTeX.
== Motivation
Typst compiles documents incrementally and reports errors clearly.
See @intro for background, or check the `typst compile` command.
$ sum_(i=1)^n i = (n(n+1)) / 2 $
More info at <intro>. dracula
= Introduction
#let title = "Typst Guide"
#let version = 0.1
This document introduces *Typst*, a modern markup-based typesetting
system. It combines the simplicity of _Markdown_ with the power of
LaTeX.
== Motivation
Typst compiles documents incrementally and reports errors clearly.
See @intro for background, or check the `typst compile` command.
$ sum_(i=1)^n i = (n(n+1)) / 2 $
More info at <intro>. nord
= Introduction
#let title = "Typst Guide"
#let version = 0.1
This document introduces *Typst*, a modern markup-based typesetting
system. It combines the simplicity of _Markdown_ with the power of
LaTeX.
== Motivation
Typst compiles documents incrementally and reports errors clearly.
See @intro for background, or check the `typst compile` command.
$ sum_(i=1)^n i = (n(n+1)) / 2 $
More info at <intro>. github
= Introduction
#let title = "Typst Guide"
#let version = 0.1
This document introduces *Typst*, a modern markup-based typesetting
system. It combines the simplicity of _Markdown_ with the power of
LaTeX.
== Motivation
Typst compiles documents incrementally and reports errors clearly.
See @intro for background, or check the `typst compile` command.
$ sum_(i=1)^n i = (n(n+1)) / 2 $
More info at <intro>. 2. Templates and show rules
#import, #show rules, and a #let function
horizon-dark
#import "template.typ": conf
#show: conf.with(
title: "Report",
authors: ("Ada Lovelace",),
)
#set text(size: 11pt, font: "New Computer Modern")
#set heading(numbering: "1.1")
#show heading: it => {
set text(fill: blue)
it
}
= Results
#let summary(value) = {
if value > 50% [
Above average.
] else [
Below average.
]
}
#summary(75%)
#{
let total = 100
let passed = 82
[Pass rate: #(passed / total * 100)%]
} atom-one-dark
#import "template.typ": conf
#show: conf.with(
title: "Report",
authors: ("Ada Lovelace",),
)
#set text(size: 11pt, font: "New Computer Modern")
#set heading(numbering: "1.1")
#show heading: it => {
set text(fill: blue)
it
}
= Results
#let summary(value) = {
if value > 50% [
Above average.
] else [
Below average.
]
}
#summary(75%)
#{
let total = 100
let passed = 82
[Pass rate: #(passed / total * 100)%]
} github-dark
#import "template.typ": conf
#show: conf.with(
title: "Report",
authors: ("Ada Lovelace",),
)
#set text(size: 11pt, font: "New Computer Modern")
#set heading(numbering: "1.1")
#show heading: it => {
set text(fill: blue)
it
}
= Results
#let summary(value) = {
if value > 50% [
Above average.
] else [
Below average.
]
}
#summary(75%)
#{
let total = 100
let passed = 82
[Pass rate: #(passed / total * 100)%]
} dracula
#import "template.typ": conf
#show: conf.with(
title: "Report",
authors: ("Ada Lovelace",),
)
#set text(size: 11pt, font: "New Computer Modern")
#set heading(numbering: "1.1")
#show heading: it => {
set text(fill: blue)
it
}
= Results
#let summary(value) = {
if value > 50% [
Above average.
] else [
Below average.
]
}
#summary(75%)
#{
let total = 100
let passed = 82
[Pass rate: #(passed / total * 100)%]
} nord
#import "template.typ": conf
#show: conf.with(
title: "Report",
authors: ("Ada Lovelace",),
)
#set text(size: 11pt, font: "New Computer Modern")
#set heading(numbering: "1.1")
#show heading: it => {
set text(fill: blue)
it
}
= Results
#let summary(value) = {
if value > 50% [
Above average.
] else [
Below average.
]
}
#summary(75%)
#{
let total = 100
let passed = 82
[Pass rate: #(passed / total * 100)%]
} github
#import "template.typ": conf
#show: conf.with(
title: "Report",
authors: ("Ada Lovelace",),
)
#set text(size: 11pt, font: "New Computer Modern")
#set heading(numbering: "1.1")
#show heading: it => {
set text(fill: blue)
it
}
= Results
#let summary(value) = {
if value > 50% [
Above average.
] else [
Below average.
]
}
#summary(75%)
#{
let total = 100
let passed = 82
[Pass rate: #(passed / total * 100)%]
}