repo stringlengths 26 115 | file stringlengths 54 212 | language stringclasses 2
values | license stringclasses 16
values | content stringlengths 19 1.07M |
|---|---|---|---|---|
https://github.com/jaapgeurts/typst-templates | https://raw.githubusercontent.com/jaapgeurts/typst-templates/master/README.md | markdown | These are templates for [typst](http://typst.app).
to install copy each folder to: `$HOME/.local/share/typst/packages/personal`
In your typst file import as follows:
```typst
#import "@personal/recipe:0.0.1": *
```
Where `recipe` is the folder and `0.0.1` is the version.
See each subpackage for more information
| |
https://github.com/taooceros/CV | https://raw.githubusercontent.com/taooceros/CV/main/modules_en/award.typ | typst | // Imports
#import "@preview/brilliant-cv:2.0.2": cvSection, cvHonor
#let metadata = toml("../metadata.toml")
#let cvSection = cvSection.with(metadata: metadata)
#let cvHonor = cvHonor.with(metadata: metadata)
#cvSection("Awards")
#cvHonor(
date: [2024],
title: [Hilldale Research Fellowship: \$3000],
issuer: [... | |
https://github.com/mattyoung101/uqthesis_eecs_hons | https://raw.githubusercontent.com/mattyoung101/uqthesis_eecs_hons/master/pages/chapters/intro.typ | typst | ISC License | = Introduction
== Why use Typst?
#lorem(100)
Check out my citations:
- Quaternions @Shoemake1985
- Phong shading @Phong1975IlluminationFC
- Simplex noise @simplexNoise
- FFT @Cooley1965AnAF
=== An overview of typesetting
#lorem(200)
=== A novel approach to setting types
#lorem(100)
|
https://github.com/AnsgarLichter/light-cv | https://raw.githubusercontent.com/AnsgarLichter/light-cv/main/template/cv-de.typ | typst | MIT License | #import "@preview/light-cv:0.1.0": *
#import "@preview/fontawesome:0.1.0": *
#show: cv
#let icons = (
phone: fa-phone(),
homepage: fa-home(fill: colors.accent),
linkedin: fa-linkedin(fill: colors.accent),
github: fa-github(fill: colors.accent),
xing: fa-xing(),
mail: fa-envelope(fill: colors.accent)
)
#h... |
https://github.com/WinstonMDP/knowledge | https://raw.githubusercontent.com/WinstonMDP/knowledge/master/Kripke_scale.typ | typst | #import "cfg.typ": cfg
#show: cfg
= Шкала Крипке
Шкала Крипке $:=$ ограниченный ЧУМ по включению, элементами которого являются множества
переменных. Мир $:=$ элемент. $w forces x := $ $x$ истинна в мире $w := x in w$.
Индуктивное определение истинности формулы:
- $w forces A -> w forces B -> w forces A and B$.
- $ca... | |
https://github.com/WinstonMDP/knowledge | https://raw.githubusercontent.com/WinstonMDP/knowledge/master/determinants.typ | typst | #import "cfg.typ": cfg
#show: cfg
= Определители
$mat(delim: "|", a_(1 1), a_(1 2); a_(2 1), a_(2 2)) = a_(1 1) a_(2 2) - a_(2 1) a_(1 2)$
Для системы из двух уравнений $mat(delim: "|", a_(1 1), a_(1 2); a_(2 1), a_(2 2)) != 0
-> x_1 = mat(delim: "|", b_1, a_(1 2); b_2, a_(2 2))/mat(delim: "|", a_(1 1), a_(1 2);
a_(2... | |
https://github.com/matbesancon/modern-cv-academics | https://raw.githubusercontent.com/matbesancon/modern-cv-academics/master/README.md | markdown | MIT License | # A modern CV for academics
This is a CV template built in [Typst](https://typst.app) on top of the great [Modern CV](https://github.com/DeveloperPaul123/modern-cv) template.
I adapted the base template to be more suited towards the expectations of academia and in particular generated anything that's a long enough li... |
https://github.com/drupol/master-thesis | https://raw.githubusercontent.com/drupol/master-thesis/main/src/thesis/imports/preamble.typ | typst | Other | #import "@preview/diagraph:0.3.0": *
#import "@preview/codelst:2.0.1": sourcecode, sourcefile
#import "@preview/glossarium:0.5.0": make-glossary, register-glossary, print-glossary, gls, glspl
#show: make-glossary
#import "@preview/xarrow:0.3.1": xarrow, xarrowSquiggly, xarrowTwoHead
#import "@preview/hydra:0.4.0": *
#i... |
https://github.com/warab1moch1/MathmaticalFinance | https://raw.githubusercontent.com/warab1moch1/MathmaticalFinance/main/20240706.typ | typst | #import "manual_template.typ": *
#import "theorems.typ": *
#show: thmrules
// Define theorem environments
#let theorem = thmbox(
"theorem",
"Theorem",
fill: rgb("#e8e8f8")
)
#let lemma = thmbox(
"theorem", // Lemmas use the same counter as Theorems
"Lemma",
fill: rgb("#efe6ff")
)... | |
https://github.com/nixon-voxell/nixon_cover_letter_template | https://raw.githubusercontent.com/nixon-voxell/nixon_cover_letter_template/main/template.typ | typst | MIT License | // const color
#let color_darknight = rgb("#131A28")
#let color_darkgray = rgb("333333")
// layout utility
#let justify_align(left_body, right_body) = {
block[
#left_body
#box(width: 1fr)[
#align(right)[
#right_body
]
]
]
}
#let justify_align_3(left_body, mid_body, right_body) = {
... |
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/bytefield/0.0.5/lib/asserts.typ | typst | Apache License 2.0 | #import "@preview/oxifmt:0.2.0": strfmt
#let assert_dict(arg, var_name) = {
assert.eq(type(arg),dictionary, message: strfmt("expected {} to be a dictionary, found {}",var_name, type(arg)));
}
/// fail if field is not a bf-field
#let assert_bf-field(field) = {
assert_dict(field, "field")
let bf-type = field.at... |
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/minerva-report-fcfm/0.1.0/minerva-report-fcfm.typ | typst | Apache License 2.0 | /** minerva-article.typ
*
* Este archivo contiene la estructura y estilos usados por el template.
* Para definir tus propios comandos agrégalos a preamble.typ.
*
**/
/******************************************************************************
* Funciones base
*
* La idea es que si necesitas extend... |
https://github.com/sitandr/typst-examples-book | https://raw.githubusercontent.com/sitandr/typst-examples-book/main/src/snippets/pretty.md | markdown | MIT License | # Pretty things
## Set bar to the text's left
(also known as quote formatting)
```typ
#let line-block = rect.with(fill: luma(240), stroke: (left: 0.25em))
+ #lorem(10) \
#line-block[
*Solution:* #lorem(10)
$ a_(n+1)x^n = 2... $
]
```
## Text on box top
```typ
// author: gaiajack
#let todo(body) = block(... |
https://github.com/orkhasnat/resume | https://raw.githubusercontent.com/orkhasnat/resume/master/modern-1P/resume-lib.typ | typst | #import "fa-lib.typ": *
// font sizes
#let bf = 8pt
#let h1f = bf+4pt
#let h2f = bf+2pt
#let h2secf = bf+1pt
#let h3f = bf - 1pt
#let markerf = 7pt
#let sepf = markerf - 2pt
#let padf = 2pt
#let spf= 1em
// const color
// #let color-darknight = rgb("131A28")
#let color-darknight = rgb("141E1E")
#let color-darkgray =... | |
https://github.com/gekoke/resume | https://raw.githubusercontent.com/gekoke/resume/main/main.typ | typst | #import "lib.typ": resume, icon, experience, project, language, volunteering
#show: resume.with(
author: "<NAME>",
contacts: (
[#icon("icons/solid/envelope.svg") #link("mailto:<EMAIL>")],
[#icon("icons/solid/globe.svg") #link("https://www.grigorjan.net/")[grigorjan.net]],
[#icon("icons/brands/github.sv... | |
https://github.com/Enter-tainer/typstyle | https://raw.githubusercontent.com/Enter-tainer/typstyle/master/tests/assets/unit/op/binary.typ | typst | Apache License 2.0 | #{
let f(x) = x
f("Unsupported content type "+type(content)+"! "+
"Provide your own `draw-node` implementation.")
}
|
https://github.com/denizenging/site | https://raw.githubusercontent.com/denizenging/site/master/page/works/index.tr.typ | typst | #import "@local/pub-page:0.0.0": *
#show: template(
title: "Çalışmalar",
description: "Yayınlarım, konuşmalarım ve dahası!",
menu: (3, "certificate"),
)
ORCID iD (kimlikğimi) profil fotoğrafımının hemen altında bulabilirsiniz. Bilgisayarda iseniz sol tarafta, telefonda iseniz de üst tarafta bulunmaktadır. Ayrıca k... | |
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/grayness/0.1.0/README.md | markdown | Apache License 2.0 | # Grayness
A package providing simple image editing capabilities via a WASM plugin.
Available functionality includes converting images to grayscale, cropping and flipping the images.
Furthermore, this package supports adding transparency and bluring (very slow) as well as handling additional raster image formats.
Th... |
https://github.com/jgm/typst-hs | https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/compiler/field-03.typ | typst | Other | // Error: 9-16 function `assert` does not contain field `invalid`
#assert.invalid
|
https://github.com/sofianedjerbi/ResumeOld | https://raw.githubusercontent.com/sofianedjerbi/ResumeOld/main/modules/certificates.typ | typst | Apache License 2.0 | #import "../brilliant-CV/template.typ": *
#cvSection("Certifications")
#cvHonor(
date: [2024],
title: [AWS Certified Cloud Practitioner],
issuer: [#link("https://www.credly.com/badges/cf4d255c-4844-4a68-8c36-8b581cf26552")[AWS]]
)
#cvHonor(
date: [2024],
title: [AWS Certified Solutions Architect Associate]... |
https://github.com/FinleyGe/typst-profile | https://raw.githubusercontent.com/FinleyGe/typst-profile/main/example.typ | typst | #import "template/lib.typ": *
#show: conf.with(
pic: "placeholder.png",
name: "张三",
sex: "男",
birthday: "2001-01-01",
phone: "19999999999",
email: "<EMAIL>",
address: "xx省xx市xx区xx路xx号",
)
#container(
title: "校园经历",
[
#triple(
"2019.09 - 2023.06",
"xx大学",
"计算机科学与技术"
)
]
)
#con... | |
https://github.com/jgm/typst-hs | https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/text/tracking-spacing-03.typ | typst | Other | // Test tracking in arabic text (makes no sense whatsoever)
#set text(tracking: 0.3em)
النص
|
https://github.com/chilingg/kaiji | https://raw.githubusercontent.com/chilingg/kaiji/main/template/contents.typ | typst | Other | #import "main.typ": font_size_list
#columns(2)[
#align(center)[
#show outline.entry.where(
level: 1
): it => {
set text(size: font_size_list.at(1), weight: "medium")
block(below: 0em, above: 2em)[
#it.body <sans_font> #h(1fr) #text(size: font_size_list.at(2), it.page)
]
}
... |
https://github.com/Shuenhoy/modern-zju-thesis | https://raw.githubusercontent.com/Shuenhoy/modern-zju-thesis/master/utils/indent-first-par.typ | typst | MIT License | // Source from: https://github.com/nju-lug/modern-nju-thesis
#let empty-par = par[#box()]
#let fake-par = context empty-par + v(-measure(empty-par + empty-par).height)
#let indent-first-par(s) = {
show heading: it => {
it
fake-par
}
s
} |
https://github.com/curvenote/pubmatter | https://raw.githubusercontent.com/curvenote/pubmatter/main/validate-frontmatter.typ | typst | MIT License |
#let validateContent(raw, name, alias: none) = {
if (name in raw) {
assert(type(raw.at(name)) == str or type(raw.at(name)) == content, message: name + " must be a string or content")
return raw.at(name)
}
if (type(alias) != array) { return }
for a in alias { if (a in raw) { validateContent(raw, a) } }
... |
https://github.com/VisualFP/docs | https://raw.githubusercontent.com/VisualFP/docs/main/SA/design_concept/content/design/design_iteration_1_scratch_inspired.typ | typst | = Scratch-inspired design <scratch-inspired-design>
The proposal of the scratch-inspired design takes scratch's imperative block
style and converts it into the context of an expressional and declarative
setup.
Functions, variables, parameters, etc., are portrayed as colorful blocks that
can be dragged on top of each ... | |
https://github.com/SkytAsul/fletchart | https://raw.githubusercontent.com/SkytAsul/fletchart/main/src/logical.typ | typst | #import "declarative.typ": fc-declarative
#import "elements.typ": *
#import "utils.typ": map-auto
#let logic-action(type, content, ..node-options) = {
assert(node-options.pos().len() == 0, message: "Cannot pass non-named node options.")
metadata((
class: "action",
type: type,
content: content,
node... | |
https://github.com/fenjalien/metro | https://raw.githubusercontent.com/fenjalien/metro/main/tests/num/group-minimum-digits/test.typ | typst | Apache License 2.0 | #import "/src/lib.typ": num, metro-setup
#set page(width: auto, height: auto)
#num[1234]
#num[12345]
#num(group-minimum-digits: 4)[1234]
#num(group-minimum-digits: 4)[12345]
#num[1234.5678]
#num[12345.67890]
#num(group-minimum-digits: 4)[1234.5678]
#num(group-minimum-digits: 4)[12345.67890] |
https://github.com/Enter-tainer/m-jaxon | https://raw.githubusercontent.com/Enter-tainer/m-jaxon/master/mj.typ | typst | MIT License | #import "./typst-package/lib.typ" as m-jaxon
// Uncomment the following line to use the m-jaxon from the official package registry
// #import "@preview/m-jaxon:0.1.1"
#set page(height: auto, width: auto, margin: 2em, fill: white)
= M-Jaxon #m-jaxon.render(`\mathcal{M}-\mathrm{jaxon}`, inline: true)
Typst, now with *Ma... |
https://github.com/Myriad-Dreamin/typst.ts | https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/bugs/block-width-box_00.typ | typst | Apache License 2.0 |
#import "/contrib/templates/std-tests/preset.typ": *
#show: test-page
#block(width: 100%, fill: red, box("a box"))
#block(width: 100%, fill: red, [#box("a box") #box()])
|
https://github.com/csimide/SEU-Typst-Template | https://raw.githubusercontent.com/csimide/SEU-Typst-Template/master/seu-thesis/utils/states.typ | typst | MIT License | #let part-state = state("part") |
https://github.com/osbm/resume | https://raw.githubusercontent.com/osbm/resume/main/resume.typ | typst | #import "@preview/modern-cv:0.6.0": *
#show: resume.with(
author: (
firstname: "<NAME>.",
lastname: "Bayram",
email: "<EMAIL>",
// phone: "(+1) 111-111-1111",
github: "osbm",
twitter: "the_osbm",
website: "https://osbm.dev",
// scholar: "",
birth: "7 April 2001",
linkedin: "o... | |
https://github.com/GuilloteauQ/qcv | https://raw.githubusercontent.com/GuilloteauQ/qcv/main/qcv.typ | typst | MIT License | #let qcv_size_col_left = 20%
#let qcv_space_between_cols = 1%
#let qcv_color = blue
#let qcv_gray = rgb("#888888")
#let qcv_size_section_title = 20pt
#let qcv_size_entry_title = 15pt
#let qcv_size_entry_details = 12pt
#let qcv_size_years = 8pt
#let qcv(body) = {
set page(
fill: white,
margin: 3em,
header... |
https://github.com/AliothCancer/AppuntiUniversity | https://raw.githubusercontent.com/AliothCancer/AppuntiUniversity/main/latest_style.typ | typst | #let apply_my_style(title:str,body) = [
// CONFIGURATION
#let mode = "a4";
//#show strong: set text(blue)
#set par(justify: false, leading: 0.52em)
#let title = text(50pt,title)
#v(8cm)
#align(center, title)
#set par(justify: true, leading: 0.52em)
#let fs_1 = 27pt
#let fs_2 = 7*fs_1/8
#let fs_3 = 6... | |
https://github.com/rabotaem-incorporated/algebra-conspect-1course | https://raw.githubusercontent.com/rabotaem-incorporated/algebra-conspect-1course/master/sections/03-polynomials/06-principal-ideals.typ | typst | Other | #import "../../utils/core.typ": *
== Факториальность области главных идеалов
#def[
Пусть $R$ --- коммутативное кольцо.
Элемент $a$ называется _неприводимым_, если $a eq.not 0$, $a in.not R^*$ и $a = b c ==> b in R^*$ или $c in R^*$.
То есть неприводимый элемент --- необратимый элемент, который не расклад... |
https://github.com/Enter-tainer/zint-wasi | https://raw.githubusercontent.com/Enter-tainer/zint-wasi/master/typst-package/lib.typ | typst | MIT License | #let zint-wasm = plugin("./zint_typst_plugin.wasm")
// handles option conversion
#let _proc_options(options) = {
let result = options
let proc_color(opt, name) = {
let c = opt.at(name, default: none)
if c != none {
if type(c) == color {
return c.to-hex().slice(1)
} else if type(c) == s... |
https://github.com/jgm/typst-hs | https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/layout/stack-2-01.typ | typst | Other | #set page(height: 2cm)
#set text(white)
#rect(fill: red)[
#v(1fr)
#h(1fr) Hi you!
]
|
https://github.com/kaewik/pen_and_paper | https://raw.githubusercontent.com/kaewik/pen_and_paper/master/splittermond/Patalis/main.typ | typst | #set heading(numbering: "1.")
#set text(12pt, font: "HK Grotesk", lang: "de")
#set page(
numbering: "1",
background: locate(loc =>
if loc.page() > 1 {
if calc.odd(loc.page()) [
#grid(
columns: (90%, 10%),
rows: (90%, 10%),
[], [#rect(width: 100%, height: 100%, fill: g... | |
https://github.com/connachermurphy/typst-cv | https://raw.githubusercontent.com/connachermurphy/typst-cv/main/cv_sample.typ | typst | MIT License | #import "cv.typ": *
#show: cv.with(
name: "<NAME>",
email: [#link("mailto:<EMAIL>")[<EMAIL>]],
date: "11/21/2023",
)
= Education
#experience(
description: [University of School, Advanced Degree in Subject],
date: [2022-Present],
)[]
#experience(
description: [University of School, Undergraduate Degr... |
https://github.com/alexanderkoller/typst-blinky | https://raw.githubusercontent.com/alexanderkoller/typst-blinky/main/examples/README.md | markdown | MIT License | # Example for Blinky
See [main.typ](https://github.com/alexanderkoller/typst-blinky/blob/main/examples/main.typ) for an example of citing bibliographic entries of various types with Blinky. The compiled PDF is [main.pdf](https://github.com/alexanderkoller/typst-blinky/blob/main/examples/main.pdf).
The [CSL file](http... |
https://github.com/chendaohan/bevy_tutorials_typ | https://raw.githubusercontent.com/chendaohan/bevy_tutorials_typ/main/28_states_and_data_of_assets/states_and_data_of_assets.typ | typst | #set page(fill: rgb(35, 35, 38, 255), height: auto, paper: "a3")
#set text(fill: color.hsv(0deg, 0%, 90%, 100%), size: 22pt, font: "Microsoft YaHei")
#set raw(theme: "themes/Material-Theme.tmTheme")
= 1. 资产事件
如果你需要在资产创建、修改或删除时执行特定操作,可以创建一个系统来响应 AssetEvent 事件。
```rs
fn print_asset_event(mut asset_events: EventReader<As... | |
https://github.com/polarkac/MTG-Stories | https://raw.githubusercontent.com/polarkac/MTG-Stories/master/stories/058%20-%20Duskmourn%3A%20House%20of%20Horror/003_Episode%202%3A%20Don't%20Split%20the%20Party.typ | typst | #import "@local/mtgstory:0.2.0": conf
#show: doc => conf(
"Episode 2: Don't Split the Party",
set_name: "Duskmourn: House of Horror",
story_date: datetime(day: 20, month: 08, year: 2024),
author: "<NAME>",
doc
)
The hallway looked like it hadn't been cleaned in years, cobwebs choking the corners an... | |
https://github.com/wjwei-handsome/personal_poster_typst | https://raw.githubusercontent.com/wjwei-handsome/personal_poster_typst/main/example.typ | typst | #import "./poster.temp.typ": *
/// HERE START CONFIGURE YOUR POSTER
#show: poster.with(
title: [#text[TYPST: a #emph[rust] tool to compose essays faster, Maybe your looooonger title to 2 rows.]],
authors: (
(name: "<NAME>", staff: "1"),
(name: "<NAME>", staff: "2*")
),
departments: (
(id: "1", name... | |
https://github.com/Shedward/dnd-charbook | https://raw.githubusercontent.com/Shedward/dnd-charbook/main/dnd/game/proficiencies.typ | typst | #import "../core/core.typ"
#let toolsProficiency(
title,
source: none,
items: (),
actions: (),
skillsEffects: ()
) = (
title: title,
source: source,
items: items,
actions: actions,
skillsEffects: skillsEffects
)
#let any = "~"
#let toolsAction(
name,
dc: none,
..args
) = (
name: name,
d... | |
https://github.com/lrmrct/CADMO-Template | https://raw.githubusercontent.com/lrmrct/CADMO-Template/main/README.md | markdown | # CADMO thesis Template
My quick and dirty translation of the CADMO thesis template into Typst, which I will use for my own thesis.
## TODOs
- Add missing text.
- Exact margins and font sizes.
- Section headers.
- Insert Q.E.D. into math body.
- Showcase visualizations.
| |
https://github.com/frectonz/the-pg-book | https://raw.githubusercontent.com/frectonz/the-pg-book/main/book/105.%20maybe.html.typ | typst | maybe.html
Can You Buy a Silicon Valley? Maybe.
February 2009A lot of cities look at Silicon Valley and ask "How could we make
something like that happen here?" The
organic way to do it is to
establish a first-rate university in a place where rich people want
to live. That's how Silicon Valley happened. But could ... | |
https://github.com/Myriad-Dreamin/typst.ts | https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/layout/list_08.typ | typst | Apache License 2.0 |
#import "/contrib/templates/std-tests/preset.typ": *
#show: test-page
// Alignment shouldn't affect marker
#set align(horizon)
- ABCDEF\ GHIJKL\ MNOPQR
|
https://github.com/UntimelyCreation/typst-neat-cv | https://raw.githubusercontent.com/UntimelyCreation/typst-neat-cv/main/src/content/en/education.typ | typst | MIT License | #import "../../template.typ": *
#cvSection("Education")
#cvEntry(
title: [Master of Science in Computer Science],
organisation: [Same University],
logo: "",
date: [2016 - 2018],
location: [France],
description: list(
[#lorem(20)],
),
tags: ("Database Systems", "Computer Network... |
https://github.com/kdog3682/typkit | https://raw.githubusercontent.com/kdog3682/typkit/main/0.1.0/src/layout.typ | typst | #import "resolve.typ": *
#import "ao.typ": *
#import "misc.typ": wrap
#import "typography.typ": *
#import "validation.typ": *
#import "strokes.typ"
#import "lines.typ"
#import "typst.typ"
#let transpose(arr, width) = {
array.zip(..arr.chunks(width)).join()
}
#let apply-padding(c, ..sink) = {
let kwargs = sink... | |
https://github.com/Kasci/LiturgicalBooks | https://raw.githubusercontent.com/Kasci/LiturgicalBooks/master/GR_old/oktoich/Hlas1/0_Nedela.typ | typst | #let M_Ne = (
"HV": (
("", "", "Τάς εσπερινάς ημών ευχάς, πρόσδεξαι Άγιε Κύριε, καί παράσχου ημίν άφεσιν αμαρτιών, ότι μόνος εί ο δείξας εν κόσμω τήν Ανάστασιν."),
("", "", "Τάς εσπερινάς ημών ευχάς, πρόσδεξαι Άγιε Κύριε, καί παράσχου ημίν άφεσιν αμαρτιών, ότι μόνος εί ο δείξας εν κόσμω τήν Ανάστασιν."),
... | |
https://github.com/TypstApp-team/typst | https://raw.githubusercontent.com/TypstApp-team/typst/master/docs/overview.md | markdown | Apache License 2.0 | ---
description: |
Learn how to use Typst to compose documents faster. Get started with the
tutorial, or dive into the reference.
---
# Overview
Welcome to Typst's documentation! Typst is a new markup-based typesetting system
for the sciences. It is designed to be an alternative both to advanced tools
like LaTeX a... |
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/anatomy/0.1.0/sample.typ | typst | Apache License 2.0 | #import "lib.typ": metrics
#let typography = {
let multiplier = 1.5
(
size: 12pt,
line-march: multiplier * 1em,
line-across: (2 * multiplier - 1) * 1em,
leading: (multiplier - 1) * 1em,
)
}
#set text(
typography.size,
font: "American Typewriter",
)
#set par(
first-line-indent: 1.5em,
... |
https://github.com/danilasar/conspectuses-3sem | https://raw.githubusercontent.com/danilasar/conspectuses-3sem/master/Основы_теории_изучаемого_языка/3 семестр/240904_вводная.typ | typst | #set quote(block: true)
= Введение
= Основы теории изучаемого языка
== Организационные вопросы
<NAME>.
В конце семестра бует итоговая аттестация. Это может быть как зачёт, так и экзамен, точно неизвестно.
Будет 15 лекций, примерно к середине декабря кончим.
В прошлом году мы освоили фонетику, грамматику и морфоло... | |
https://github.com/Skimmeroni/Appunti | https://raw.githubusercontent.com/Skimmeroni/Appunti/main/Metodi%20Algebrici/Crittografia/Firma.typ | typst | Creative Commons Zero v1.0 Universal | #import "../Metodi_defs.typ": *
Nello scenario presentato nel precedente capitolo, due entitá sono in grado
di scambiarsi messaggi senza che terze parti siano in grado di leggerne il
contenuto. Si presenta peró un problema: per il ricevente non c'é modo di
sapere _davvero_ se il mittente del messaggio sia effettivamen... |
https://github.com/Myriad-Dreamin/typst.ts | https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/layout/par-justify-cjk_00.typ | typst | Apache License 2.0 |
#import "/contrib/templates/std-tests/preset.typ": *
#show: test-page
// Test Chinese text in narrow lines.
// In Chinese typography, line length should be multiples of the character size
// and the line ends should be aligned with each other.
// Most Chinese publications do not use hanging punctuation at line end.
#... |
https://github.com/typst-cn/typst-programming-tutorial | https://raw.githubusercontent.com/typst-cn/typst-programming-tutorial/master/examples/hello.typ | typst | #let content = "Hello Typst! \n 你好, Typst!"
#[
#content
] | |
https://github.com/TycheTellsTales/typst-pho | https://raw.githubusercontent.com/TycheTellsTales/typst-pho/main/tests/poster_tags/test.typ | typst | #import "../../lib.typ": pho, link
#pho(
viewer: "<NAME>",
poster: "<NAME>",
date: "January 1st 1001",
(topic, post) => {
topic(
title: "Hello World!",
board: "Announcements",
)[
Hello World!\
\
This is a post\
\
#link[[This is a link.jpg]]
]
post("Pro... | |
https://github.com/imkochelorov/ITMO | https://raw.githubusercontent.com/imkochelorov/ITMO/main/src/discrete-math/s2/main.typ | typst | #import "template.typ": *
#set page(margin: 0.55in, height: auto)
#set par(leading: 0.55em, first-line-indent: 0em, justify: false)
#set text(font: "New Computer Modern")
#set heading(numbering: "1.1.")
#show raw: set text(font: "New Computer Modern Mono")
#show par: set block(spacing: 0.55em)
#show heading: set block... | |
https://github.com/actions-marketplace-validations/yusancky_setup-typst | https://raw.githubusercontent.com/actions-marketplace-validations/yusancky_setup-typst/main/README.md | markdown | MIT License | # Setup Typst
Setup Typst in GitHub Actions (currently only supported for Windows).
## Inputs
### `token`
The token used to authenticate when fetching Typst distributions. When running this action on github.com, the default value is sufficient. When running on GHES, you can pass a personal access token for github.c... |
https://github.com/tingerrr/anti-matter | https://raw.githubusercontent.com/tingerrr/anti-matter/main/README.md | markdown | MIT License | # anti-matter
This typst packages allows you to simply mark the end and start of your front matter and back matter
to change style and value of your page number without manually setting and keeping track of inner
and outer page counters.
## Example
```typst
#import "@preview/anti-matter:0.1.1": anti-matter, fence, set... |
https://github.com/Myriad-Dreamin/typst.ts | https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/math/delimited_06.typ | typst | Apache License 2.0 |
#import "/contrib/templates/std-tests/preset.typ": *
#show: test-page
// Test manual scaling.
$ lr(]sum_(x=1)^n x], size: #70%)
< lr((1, 2), size: #200%) $
|
https://github.com/jeffa5/typst-todo | https://raw.githubusercontent.com/jeffa5/typst-todo/main/README.md | markdown | Apache License 2.0 | # Typst todo
Inspired by [todonotes](http://tug.ctan.org/macros/latex/contrib/todonotes/todonotes.pdf).
This demonstrates some useful commands for adding todo notes to typst documents.
## Progress
- [x] Inline todos
- [ ] Margin todos
- [x] Numbered todos
- [ ] List of todos
- [x] collect todos in the document ... |
https://github.com/typst-doc-cn/tutorial | https://raw.githubusercontent.com/typst-doc-cn/tutorial/main/src/intermediate/content-stateful-2.typ | typst | Apache License 2.0 | #import "mod.typ": *
#show: book.page.with(title: "查询文档状态 —— 制作页眉标题法一")
#import "/typ/embedded-typst/lib.typ": svg-doc, default-fonts, default-cjk-fonts
本节我们讲解制作页眉标题的第一种方法,即通过查询文档状态直接估计当前页眉应当填入的内容。
// #locate(loc => query(heading, loc))
// #locate(loc => query(heading.where(level: 2), loc))
== 「locate」<grammar-loc... |
https://github.com/Jollywatt/typst-fletcher | https://raw.githubusercontent.com/Jollywatt/typst-fletcher/master/tests/node-label-align/test.typ | typst | MIT License | #set page(width: auto, height: auto, margin: 1em)
#import "/src/exports.typ" as fletcher: diagram, node, edge
#diagram(
spacing: 5pt,
node((0,0), [Hi], height: 15mm, stroke: 1pt + red),
node((1,0), align(top)[Hi], height: 15mm, stroke: 1pt + green),
node((2,0), align(bottom)[Hi], height: 15mm, stroke: 1pt + blue),... |
https://github.com/polarkac/MTG-Stories | https://raw.githubusercontent.com/polarkac/MTG-Stories/master/stories/014%20-%20Khans%20of%20Tarkir/004_Taigam's%20Scheming.typ | typst | #import "@local/mtgstory:0.2.0": conf
#show: doc => conf(
"Taigam's Scheming",
set_name: "Khans of Tarkir",
story_date: datetime(day: 01, month: 10, year: 2014),
author: "<NAME>",
doc
)
#emph[The man called Taigam is known as Sidisi's Hand, the personal enforcer of the Sultai khan. But Taigam was n... | |
https://github.com/Isaac-Fate/booxtyp | https://raw.githubusercontent.com/Isaac-Fate/booxtyp/master/src/theorems/mod.typ | typst | Apache License 2.0 | #import "theorem.typ": theorem
#import "definition.typ": definition
#import "proposition.typ": proposition
#import "lemma.typ": lemma
#import "corollary.typ": corollary
#import "proof.typ": proof
#import "solution.typ": solution
#import "example.typ": example
#import "exercise.typ": exercise
#import "note.typ": note
... |
https://github.com/jamesrswift/ionio-illustrate | https://raw.githubusercontent.com/jamesrswift/ionio-illustrate/main/gallery/isobulelene_epoxide.typ | typst | MIT License | #set par(justify: true)
#set page(width: auto, height: auto, margin:1em)
#set text(size: 7pt)
#import "../src/lib.typ": *
#let data = csv("../assets/isobutelene_epoxide.csv")
#let massspec = data.slice(1)
#let ms = mass-spectrum(massspec, args: (range: (0,100),))
#(ms.display)() |
https://github.com/Myriad-Dreamin/tinymist | https://raw.githubusercontent.com/Myriad-Dreamin/tinymist/main/crates/tinymist-query/src/fixtures/semantic_tokens/for-loop.typ | typst | Apache License 2.0 | #for i in range(0) { i += 1 } |
https://github.com/TypstApp-team/typst | https://raw.githubusercontent.com/TypstApp-team/typst/master/docs/tutorial/3-advanced.md | markdown | Apache License 2.0 | ---
description: Typst's tutorial.
---
# Advanced Styling
In the previous two chapters of this tutorial, you have learned how to write a
document in Typst and how to change its formatting. The report you wrote
throughout the last two chapters got a straight A and your supervisor wants to
base a conference paper on it!... |
https://github.com/RafDevX/distinction-cybsoc | https://raw.githubusercontent.com/RafDevX/distinction-cybsoc/master/mod2-vulnerabilities-in-the-use-of-systems/analysis.typ | typst | #let title = [Equifax Data Breach: Incentives Analysis]
#let kthblue = rgb("#004791")
#set page("a4", header: {
set text(10pt)
smallcaps[#title]
h(1fr)
smallcaps[DD2510 - Module 2]
line(length: 100%, stroke: 0.5pt + rgb("#888"))
}, footer: {
set text(10pt)
line(length: 100%, stroke: 0.5pt + rgb("#888"))
... | |
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/acrotastic/0.1.0/acrotastic.typ | typst | Apache License 2.0 | // Acronym package for Typst
// Author: Julian
#let prefix = "acronym-state-"
#let acros = state("acronyms", none)
#let init-acronyms(acronyms) = {
acros.update(acronyms)
}
// Reset a specific acronym. It will be expanded on next use.
#let reset-acronym(acr) = {
state(prefix + acr, false).update(false)
}
// R... |
https://github.com/jgm/typst-hs | https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/compute/calc-08.typ | typst | Other | // Test the `even` and `odd` functions.
#test(calc.even(2), true)
#test(calc.odd(2), false)
#test(calc.odd(-1), true)
#test(calc.even(-11), false)
|
https://github.com/fenjalien/metro | https://raw.githubusercontent.com/fenjalien/metro/main/src/impl/qty.typ | typst | Apache License 2.0 | #import "num/num.typ": num
#import "unit.typ": unit as unit_
#import "/src/utils.typ": combine-dict
#let default-options = (
allow-quantity-breaks: false,
quantity-product: sym.space.thin,
separate-uncertainty: "bracket",
)
#let get-options(options) = combine-dict(options, default-options)
#let qty(
number,... |
https://github.com/VisualFP/docs | https://raw.githubusercontent.com/VisualFP/docs/main/SA/project_documentation/content/introduction.typ | typst | = Introduction
This document contains the project documentation for the VisualFP project. | |
https://github.com/ryuryu-ymj/mannot | https://raw.githubusercontent.com/ryuryu-ymj/mannot/main/examples/usage5.typ | typst | MIT License | #import "/src/lib.typ": *
#set page(width: auto, height: auto, margin: (x: 4cm, y: 1cm), fill: white)
#set text(24pt)
#show: mannot-init
#let rmark = mark.with(color: red)
#let gmark = mark.with(color: green)
#let bmark = mark.with(color: blue)
$
integral_rmark(0, tag: #<i0>)^bmark(1, tag: #<i1>)
mark(x^2 + 1, ... |
https://github.com/TechnoElf/mqt-qcec-diff-thesis | https://raw.githubusercontent.com/TechnoElf/mqt-qcec-diff-thesis/main/template/title.typ | typst | #import "colour.typ": *
#let title_page(
title: "",
author: "",
chair: "",
school: "",
degree: "",
examiner: "",
supervisor: "",
submitted: ""
) = {
page(
paper: "a4",
margin: (
top: 5cm,
bottom: 3cm,
x: 2cm,
),
header: [
#grid(
columns: (1fr, 1fr),
... | |
https://github.com/MLAkainu/Network-Comuter-Report | https://raw.githubusercontent.com/MLAkainu/Network-Comuter-Report/main/components/cover.typ | typst | Apache License 2.0 | #import "../metadata.typ": meta
#stack(
dir: ttb,
{
set align(center)
show text: it => upper(it)
stack(
dir: ttb,
spacing: 1.2em,
[Đại học Quốc gia Thành phố <NAME>],
[Trường Đại học Bách Khoa],
text(weight: "bold")[Khoa Khoa học và Kỹ thuật Máy tính]
)
},
1.5cm,
... |
https://github.com/ClazyChen/Table-Tennis-Rankings | https://raw.githubusercontent.com/ClazyChen/Table-Tennis-Rankings/main/history/2012/MS-05.typ | typst |
#set text(font: ("Courier New", "NSimSun"))
#figure(
caption: "Men's Singles (1 - 32)",
table(
columns: 4,
[Ranking], [Player], [Country/Region], [Rating],
[1], [MA Long], [CHN], [3467],
[2], [ZHANG Jike], [CHN], [3335],
[3], [XU Xin], [CHN], [3228],
[4], [WANG Hao], [CHN], [3... | |
https://github.com/julyfun/jfmfoi | https://raw.githubusercontent.com/julyfun/jfmfoi/main/240824-字符串/main.typ | typst | #import "@preview/touying:0.4.2": *
#import "@preview/cetz:0.2.2"
#import "@preview/ctheorems:1.1.2": *
#import "@preview/fletcher:0.5.0" as fletcher: diagram, node, edge, shapes
// cetz and fletcher bindings for touying
#let cetz-canvas = touying-reducer.with(reduce: cetz.canvas, cover: cetz.draw.hide.with(bounds: tr... | |
https://github.com/RiccardoTonioloDev/TypUrNotes | https://raw.githubusercontent.com/RiccardoTonioloDev/TypUrNotes/main/tun_template/appendix/glossary.typ | typst | MIT License | #set heading(numbering: none)
#import "@preview/glossarium:0.4.1": print-glossary
#show figure.caption : set text(font: "EB Garamond",size: 12pt)
= Glossary
#print-glossary(
(
(key: "ft", short: "first term", desc: "The first term in the glossary."),
(key: "st", short: "second term", desc: "The second term in... |
https://github.com/yhtq/Notes | https://raw.githubusercontent.com/yhtq/Notes/main/复变函数/作业/hw5.typ | typst | #import "../../template.typ": proof, note, corollary, lemma, theorem, definition, example, remark, proposition,der, partialDer, Spec, seqLimit, seqLimitn
#import "../../template.typ": *
// Take a look at the file `template.typ` in the file panel
// to customize this template and discover how it works.
#show: note.with(... | |
https://github.com/kotfind/hse-se-2-notes | https://raw.githubusercontent.com/kotfind/hse-se-2-notes/master/os/lectures/2024-09-16.typ | typst | Набор (пар) операций:
- одноразовые:
- создание -- завершение
- многоразовые:
- запуск -- приостановка
- блокирование -- разблокирование
- изменение приоритета процесса
=== Process Control Block и контекст процесса
Process Control Block --- структура (или набор структур) с информацией о
процессе; хран... | |
https://github.com/timetraveler314/Note | https://raw.githubusercontent.com/timetraveler314/Note/main/24Spring/LinearAlgebra/SideNote.typ | typst | #import "@local/MetaNote:0.0.1" : *
#import "@preview/commute:0.2.0": node, arr, commutative-diagram
#set text(font:("linux libertine", "FandolSong"), lang: "cn")
#let detm = math.mat.with(delim: "|")
#show: doc => MetaNote(
title: [
Linear Algebra Side Notes 2024
],
authors: (
(
name: "timetrave... | |
https://github.com/SWATEngineering/Docs | https://raw.githubusercontent.com/SWATEngineering/Docs/main/src/2_RTB/VerbaliInterni/VerbaleInterno_231107/meta.typ | typst | MIT License | #let data_incontro = "07-11-2023"
#let inizio_incontro = "16:00"
#let fine_incontro = "18:00"
#let luogo_incontro = "Discord" |
https://github.com/kairosiot/software.2024.11-Document_Template | https://raw.githubusercontent.com/kairosiot/software.2024.11-Document_Template/main/tests/part-style-1/test.typ | typst | Other | #import "../../typst-orange.typ": project, part, chapter, my-bibliography, appendices, make-index, index, theorem, mathcal
#set text(font: "Lato")
#show math.equation: set text(font: "Lato Math")
#show raw: set text(font: "Fira Code")
#show: project.with(
title: "Exploring the Physical Manifestation of Humanity’s S... |
https://github.com/lxl66566/my-college-files | https://raw.githubusercontent.com/lxl66566/my-college-files/main/信息科学与工程学院/嵌入式系统/实验/报告/1/1.typ | typst | The Unlicense | #import "../template.typ": *
#show: project.with(
title: "实验报告 1",
authors: (
"absolutex",
)
)
= 跑马灯实验(寄存器版本)
== 实验目的
通过代码控制 ALIENTEK 阿波罗 STM32 开发板上的两个 LED 灯 DS0 和 DS1 交替闪烁,实现类似跑马灯的效果。
修改代码,初步掌握 STM32F429 基本 IO 口的使用。
== 代码描述
#include_code_file("../代码/1.c","main.c", "c")
用到了两个 for 循环,外层循环控制占空比,内层循环起到延时... |
https://github.com/anntnzrb/ccpg1036 | https://raw.githubusercontent.com/anntnzrb/ccpg1036/main/asgmts/prac01/docs/main.typ | typst | #import "@preview/codly:1.0.0": *
#import "template.typ": *
#show: project.with(
title: "Práctica 1: Tiempo de ejecución de Insertion-Sort",
authors: (
(name: "<NAME>", email: "<EMAIL>", affiliation: "ESPOL (FIEC)"),
),
date: "Octubre 18, 2024",
)
#show: codly-init.with()
#codly(
languages: (
pytho... | |
https://github.com/jgm/typst-hs | https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/compiler/closure-05.typ | typst | Other | // Import bindings.
#{
let b = "module.typ"
let f() = {
import b: b
b
}
test(f(), 1)
}
|
https://github.com/patrick-kidger/typst_pyimage | https://raw.githubusercontent.com/patrick-kidger/typst_pyimage/main/typst_pyimage/pyimage.typ | typst | Apache License 2.0 | #let pyimage_counter = counter("pyimage")
#let pycontent_counter = counter("pycontent")
#let pyinit(program) = {}
#let pyimage(program, ..arguments) = {
pyimage_counter.step()
locate(loc => image(str(pyimage_counter.at(loc).at(0)) + ".png", ..arguments))
}
#let pycontent(program) = {
pycontent_counter.step()
lo... |
https://github.com/OverflowCat/BUAA-Digital-Image-Processing-Sp2024 | https://raw.githubusercontent.com/OverflowCat/BUAA-Digital-Image-Processing-Sp2024/master/chap11/util.typ | typst | #let problem(content) = {
set text(font: "<NAME> (technical preview)", size: 1.1em, fill: rgb(55, 55, 55))
content
}
| |
https://github.com/Critik-V/resume-tmpl-typst | https://raw.githubusercontent.com/Critik-V/resume-tmpl-typst/main/headers.typ | typst | MIT License | // for section header
#let SECTION(title) = {
block(width: 100%,stroke: (bottom: 1pt), above: 0.2em, below: 0.6em,inset: 4pt,align(left, text(stretch: 100%, size: 14pt, weight: 700, title)))
}
// for job header
#let JOB_HEADER(company, title, date, location) = {
block(width: 100%, below: 0.7em, text(stretch: 100%... |
https://github.com/LeoColomb/dotdocs | https://raw.githubusercontent.com/LeoColomb/dotdocs/main/packages/leocolomb/cv/1.0.0/src/lib.typ | typst | MIT License | #let primary_colour = rgb("#1F497D")
#let icon(
name,
shift: 1.2pt,
margin: 2pt,
) = {
box(
baseline: shift,
height: 9pt,
image("assets/" + name + ".svg"),
)
h(margin)
}
#let services(services) = {
set text(8pt)
let icon = icon.with(shift: 1.5pt, margin: 3pt)
services
.map(service =... |
https://github.com/MattiaOldani/Informatica-Teorica | https://raw.githubusercontent.com/MattiaOldani/Informatica-Teorica/master/capitoli/complessità/22_p_vs_np.typ | typst | #import "@preview/lemmify:0.1.5": *
#let (theorem, lemma, corollary, remark, proposition, example, proof, rules: thm-rules) = default-theorems(
"thm-group",
lang: "it",
)
#show: thm-rules
#show thm-selector("thm-group", subgroup: "theorem"): it => block(
it,
stroke: red + 1pt,
inset: 1em,
breakable: true... | |
https://github.com/f14-bertolotti/bedlam | https://raw.githubusercontent.com/f14-bertolotti/bedlam/main/src/measure-theory/figs/stitched-rectangles.typ | typst | #import "../../colors.typ":*
#import "@preview/cetz:0.2.2"
#cetz.canvas(length: 3cm, {
import cetz.draw: *
grid((-.8, -.8), (+.8, +.8), step: 0.1, stroke: darkgray2 + 0.1pt)
line((-.8, +0), (+.8, +0), fill:orange, stroke: 1pt + orange, mark: (end: "stealth", scale:.5))
line((+0, -.8), (+0, +.8), fill:... | |
https://github.com/pawarherschel/typst | https://raw.githubusercontent.com/pawarherschel/typst/main/README.md | markdown | Apache License 2.0 | <h1 align="center">
<img src='https://github.com/mintyfrankie/mintyfrankie/assets/77310871/64861d2d-971c-47cd-a5e8-5ad8659f2c2b'>
<br><br>
AwesomeCV-Typst
</h1>
<p align="center">
<img alt="Check Status Badge" src="https://github.com/mintyfrankie/awesomeCV-Typst/actions/workflows/compile.yml/badge.svg"/>
<a ... |
https://github.com/UntimelyCreation/typst-neat-cv | https://raw.githubusercontent.com/UntimelyCreation/typst-neat-cv/main/src/content/en/skills.typ | typst | MIT License | #import "../../template.typ": *
#cvSection("Technical Skills")
#cvSkill(
type: [Languages],
tags: ("Python", "TypeScript", "React", "HTML + CSS")
)
#divider()
#cvSkill(
type: [Technologies],
tags: ("Unix", "Git", "PostgreSQL")
)
|
https://github.com/mem-courses/linear-algebra | https://raw.githubusercontent.com/mem-courses/linear-algebra/main/note/8.特征值理论与相似对角化.typ | typst | #import "../template.typ": *
#show: project.with(
title: "Linear Algebra Note #8",
authors: (
(name: "<NAME>", email: "<EMAIL>", phone: "3230104585"),
),
date: "December 25, 2023",
)
#let xi = math.bold(math.xi)
#let theta = math.bold(math.theta)
#let AA = math.bold(math.italic("A"))
#let BB = math.bold(mat... | |
https://github.com/LDemetrios/TypstParserCombinators | https://raw.githubusercontent.com/LDemetrios/TypstParserCombinators/master/combinators-test.typ | typst | #import "combinators.typ" : force, delay, comp, partial, cons, conj, apply, constantly, stringify, reduce, reduce_v, result, fail-r, map-result, noparse, char-p, char-list, char-not-p, char-not-list, exactly, exactly-as, combine, either, map-p, ignore, iconj, seq, seqf, seqn, or-p, opt, star, plus, stringifing, whole_p... | |
https://github.com/miyaji255/Typst-Utilities | https://raw.githubusercontent.com/miyaji255/Typst-Utilities/main/exports.typ | typst | MIT License | #import "./src/lib.typ": fmt-float, display-era
|
https://github.com/polarkac/MTG-Stories | https://raw.githubusercontent.com/polarkac/MTG-Stories/master/stories/049%20-%20The%20Brothers'%20War/001_Episode%201%3A%20The%20End.typ | typst | #import "@local/mtgstory:0.2.0": conf
#show: doc => conf(
"Episode 1: The End",
set_name: "The Brothers' War",
story_date: datetime(day: 20, month: 10, year: 2022),
author: "<NAME>",
doc
)
#strong[69 AR]
It was snowing in Penregon.
Five years after the war that ended the world concluded, the surv... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.