repo stringlengths 26 115 | file stringlengths 54 212 | language stringclasses 2
values | license stringclasses 16
values | content stringlengths 19 1.07M |
|---|---|---|---|---|
https://github.com/tfachmann/typst-as-library | https://raw.githubusercontent.com/tfachmann/typst-as-library/main/README.md | markdown | Apache License 2.0 | # Typst as Library
As of March 15th, 2024 (typst version `0.11.0`) it has finally been published to [crates.io](https://crates.io/crates/typst), so there is no more need for git dependencies.
This repository shows how to use [typst](https://github.com/typst/typst) as a library in Rust.
```rust
fn main() {
let co... |
https://github.com/gigu003/typst-templates | https://raw.githubusercontent.com/gigu003/typst-templates/main/factsheet/_extensions/fact/typst-template.typ | typst | MIT License |
// This is an example typst template (based on the default template that ships
// with Quarto). It defines a typst function named 'article' which provides
// various customization options. This function is called from the
// 'typst-show.typ' file (which maps Pandoc metadata function arguments)
//
// If you are creati... |
https://github.com/Jollywatt/typst-wordometer | https://raw.githubusercontent.com/Jollywatt/typst-wordometer/master/tests/word-count-of/test.typ | typst | MIT License | #import "/src/lib.typ": *
#set page(width: 15cm, height: auto)
#let el = [
One two _three_ four *five* six.
== Seven eight
#box[Nine #h(1fr) ten eleven $ sqrt(#[don’t mind me]) $ twelve.]
Thirteen #text(red)[fourteen]
- #highlight[fifteen]
- sixteen #box(rotate(-5deg)[seventeen])
- eighteen!
]
#rect(el)
#wo... |
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/game-theoryst/0.1.0/src/ul.typ | typst | Apache License 2.0 | // "Colored Underline": Underline numbers in game table
//Underlines value in table with colored line (`col`)
//The number itself remains black by default (`tcol`), but is boldfaced
/*
ToDo: check that `cont` is math, possibly increase functionality to text for convenience sake
- Normal text could just be underli... |
https://github.com/alexanderjophus/typstcv | https://raw.githubusercontent.com/alexanderjophus/typstcv/main/template.typ | typst | #show link: underline
#let primary_colour = rgb("#ff7f00") // orange
#let link_colour = rgb("#1E90FF") // blue
#let section_header(txt) = {
text(15pt, font: "IBM Plex Sans Medium", fill: primary_colour)[#underline(extent: 2pt)[#txt]]
}
#let dot_separator(array) = {
layout(size => style(styles => [
#let w = 0p... | |
https://github.com/tingerrr/masters-thesis | https://raw.githubusercontent.com/tingerrr/masters-thesis/main/src/de/chapters/3-non-solutions.typ | typst | #import "/src/util.typ": *
#import "/src/figures.typ"
Initial wurden zur Reduzierung der Latenzen im T4gl-Laufzeitsystem verschiedene Veränderungen auf Sprachebene, wie die Einführung von Move-Semantik oder neuer Syntax/Annotationen in T4gl-Arrays, in Erwägung gezogen.
In den folgenden Abschnitten werden diese kurz um... | |
https://github.com/jgm/typst-hs | https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/math/frac-00.typ | typst | Other | // Test that denominator baseline matches in the common case.
$ x = 1/2 = a/(a h) = a/a = a/(1/2) $
|
https://github.com/jgm/typst-hs | https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/compiler/recursion-03.typ | typst | Other | // Test capturing with unnamed function.
#let f = 10
#let f = () => f
#test(type(f()), "integer")
|
https://github.com/Mc-Zen/quill | https://raw.githubusercontent.com/Mc-Zen/quill/main/src/tequila.typ | typst | MIT License | #import "tequila-impl.typ": build, h, gate, mqgate, x, y, z, cx, cz, s, sdg, sx, sxdg, t, tdg, p, rx, ry, rz, u, barrier, swap, meter, graph-state, qft, ccx, ccz, cca, cccx, multi-controlled-gate |
https://github.com/huyufeifei/grad | https://raw.githubusercontent.com/huyufeifei/grad/master/docs/paper/src/thesis.typ | typst | #import "template/template.typ": *
#import "misc.typ": *
#show: doc => conf(
cauthor: "罗博文",
eauthor: "<NAME>",
studentid: "1120203276",
cheader: "",
ctitle: "操作系统的驱动隔离改进与实现",
etitle: "Driver Isolation Improvement and Implementation for Operating System",
school: "计算机学院",
cmajor: "计算机科学与技术",
csupervi... | |
https://github.com/ClazyChen/Table-Tennis-Rankings | https://raw.githubusercontent.com/ClazyChen/Table-Tennis-Rankings/main/history/2020/WS-03.typ | typst |
#set text(font: ("Courier New", "NSimSun"))
#figure(
caption: "Women's Singles (1 - 32)",
table(
columns: 4,
[Ranking], [Player], [Country/Region], [Rating],
[1], [CHEN Meng], [CHN], [3499],
[2], [SUN Yingsha], [CHN], [3402],
[3], [LIU Shiwen], [CHN], [3309],
[4], [WANG Manyu]... | |
https://github.com/rabotaem-incorporated/algebra-conspect-1course | https://raw.githubusercontent.com/rabotaem-incorporated/algebra-conspect-1course/master/utils/core.typ | typst | Other | #import "../config.typ"
#let chapter_state = state("chapter", "")
#let clabel(name) = {
[
$$#label(name)
]
}
#let notes(
name: none,
short-name: none,
lector: none,
info: none,
document_body,
) = {
set document(author: "Rabotaem Inc.", title: name)
set page(
paper: "a4",
margin: 6%,
... |
https://github.com/kilpkonn/CV | https://raw.githubusercontent.com/kilpkonn/CV/master/modules_en/education.typ | typst | // Imports
#import "@preview/brilliant-cv:2.0.3": cvSection, cvEntry, hBar
#let metadata = toml("../metadata.toml")
#let cvSection = cvSection.with(metadata: metadata)
#let cvEntry = cvEntry.with(metadata: metadata)
#cvSection("Education")
#cvEntry(
title: [Master of Computer Science],
society: [TalTech – Tallin... | |
https://github.com/RolfBremer/gloss-awe | https://raw.githubusercontent.com/RolfBremer/gloss-awe/main/sample-usage.typ | typst | Apache License 2.0 | #import "./gloss-awe.typ": *
// This typst file demonstrates the usage of the glossary package.
#set text(lang: "en", font: "Arial", size: 10pt)
#show raw: it => {set text(size: 1.1em); it}
// Format headings
#set heading(numbering: none)
#show heading: it => {
set block(above: 2em)
set text(blue)
[#it]
}... |
https://github.com/fyuniv/CornellNoteTemplate | https://raw.githubusercontent.com/fyuniv/CornellNoteTemplate/main/template.typ | typst | Other | // A cornell note template for creating worksheets.
#let left_column_width = 28%
#let cornellnote(
// college title or logo
college: "",
// subject title
course: "Precalculus",
//note date
date: "",
// topic/section of the note
topic: "",
//name of the instructor
instructor: "",
//semester
term... |
https://github.com/Kasci/LiturgicalBooks | https://raw.githubusercontent.com/Kasci/LiturgicalBooks/master/CSL_old/oktoich/Hlas4/3_Streda.typ | typst | #let V = (
"HV": (
("", "Jáko dóbľa", "Na krest vozdvizájem, i kopijém probodájem, i pérsty okrovavľájem Vladýko, svoboždénije podpisál jesí nám preblahíj, i rukopisánije Adáma prarodíteľa rasterzáv, svobodíl jesí čelovíčeskoje suščestvó. Sehó rádi vospivájem ščédre, júže páče umá tvojú blahostýňu."),
("", ""... | |
https://github.com/RodolpheThienard/typst-template | https://raw.githubusercontent.com/RodolpheThienard/typst-template/main/reports/2/example.typ | typst | MIT License | #import "template2.typ" : project
#show: project.with(
title: "Title",
subtitle: "Subtitle",
img: "images/logo.png",
authors: (
(
name: "Name",
affiliation: "Affiliation",
email: "Email",
),
),
)
|
https://github.com/polarkac/MTG-Stories | https://raw.githubusercontent.com/polarkac/MTG-Stories/master/stories/042%20-%20Strixhaven%3A%20School%20of%20Mages/010_A%20Silent%20Voice%20Calls.typ | typst | #import "@local/mtgstory:0.2.0": conf
#show: doc => conf(
"A Silent Voice Calls",
set_name: "Strixhaven: School of Mages",
story_date: datetime(day: 30, month: 04, year: 2021),
author: "<NAME>",
doc
)
Twenty-three students of Silverquill, the College of Eloquence, stood at attention along the outer... | |
https://github.com/ohmycloud/computer-science-notes | https://raw.githubusercontent.com/ohmycloud/computer-science-notes/main/Misc/proto2kafka.typ | typst | = 使用 Python 发送 protobuf 数据到 Kafka
```bash
pip install protobuf==3.1.0
pip install protobuf==3.20.0
# Windows
protoc iot-proto\src\main\resources\mqtt.proto --python_out=iot-proto\src\main\python
# Linux
protoc iot-proto/src/main/resources/mqtt.proto --python_out=iot-proto/src/main/python
```
脚本如下:
```python
import... | |
https://github.com/0xPARC/0xparc-intro-book | https://raw.githubusercontent.com/0xPARC/0xparc-intro-book/main/summer-notes-evan/src/0821-multilinear.typ | typst | #import "@local/evan:1.0.0":*
= Advanced math seminar for August 21: Multilinear polynomial commitment scheme (<NAME>)
== What is Binius and why is it important?
If you've seen PLONK before, it works in a field $FF_q$ where $q approx 2^256$ is a large prime.
In PLONK, values are packaged as the values of a polynomia... | |
https://github.com/bigskysoftware/hypermedia-systems-book | https://raw.githubusercontent.com/bigskysoftware/hypermedia-systems-book/main/ch07-a-dynamic-archive-ui.typ | typst | Other | #import "lib/definitions.typ": *
== A Dynamic Archive UI
Contact.app has come a long way from a traditional web 1.0-style web
application: we’ve added active search, bulk delete, some nice animations, and a
slew of other features. We have reached a level of interactivity that most web
developers would assume requires... |
https://github.com/rose-pine/typst | https://raw.githubusercontent.com/rose-pine/typst/main/src/template.typ | typst | MIT License | #let $id = (
base : rgb("$base"),
surface : rgb("$surface"),
overlay : rgb("$overlay"),
muted : rgb("$muted"),
subtle : rgb("$subtle"),
text : rgb("$text"),
love : rgb("$love"),
gold : rgb("$gold"),
rose : rgb("$rose"),
pine : rgb("$pine"),
foam : rgb(... |
https://github.com/fyuniv/TypstDevcontainerTesting | https://raw.githubusercontent.com/fyuniv/TypstDevcontainerTesting/main/README.md | markdown | # TypstDevcontainerTesting | |
https://github.com/next-generation-cartographers/ngc-code-of-conduct | https://raw.githubusercontent.com/next-generation-cartographers/ngc-code-of-conduct/main/README.md | markdown | # NGC Code of Conduct
This repository contains the Next Generation Cartographer's Code of Conduct document. The document is written in Typst, a modern typesetting system.
> [!WARNING]
> The code of conduct is still work in progress.
## Table of Contents
- [Introduction](#introduction)
- [Prerequisites](#prerequisite... | |
https://github.com/linhduongtuan/VNUHCM-typst-poster | https://raw.githubusercontent.com/linhduongtuan/VNUHCM-typst-poster/main/README.md | markdown | MIT License | # VNUHCM-Typst-Poster
This is an academic poster template designed for [Typst](https://github.com/typst/typst). Supports both horizontal and vertical posters.
# What does it look like?

# Getting Started
To get started, use the following code:
```typ
#import... |
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/leipzig-glossing/0.1.0/README.md | markdown | Apache License 2.0 | # Leipzig Glossing in Typst
`leipzig-glossing` is a [Typst](https://github.com/typst/typst) library for
creating interlinear morpheme-by-morpheme glosses according to the [Leipzig
glossing rules](https://www.eva.mpg.de/lingua/pdf/Glossing-Rules.pdf).
The canonical repository for this project is on the [Gitea
instanc... |
https://github.com/Myriad-Dreamin/typst.ts | https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/text/deco_03.typ | typst | Apache License 2.0 |
#import "/contrib/templates/std-tests/preset.typ": *
#show: test-page
// Test highlight.
This is the built-in #highlight[highlight with default color].
We can also specify a customized value
#highlight(fill: green.lighten(80%))[to highlight].
|
https://github.com/LDemetrios/Typst4k | https://raw.githubusercontent.com/LDemetrios/Typst4k/master/src/test/resources/suite/visualize/line.typ | typst | // Test lines.
--- line-basic ---
#set page(height: 60pt)
#box({
set line(stroke: 0.75pt)
place(line(end: (0.4em, 0pt)))
place(line(start: (0pt, 0.4em), end: (0pt, 0pt)))
line(end: (0.6em, 0.6em))
}) Hello #box(line(length: 1cm))!
#line(end: (70%, 50%))
--- line-positioning ---
// Test the angle argument and... | |
https://github.com/An-314/Notes-of-DSA | https://raw.githubusercontent.com/An-314/Notes-of-DSA/main/hash.typ | typst | = 词典Dictionary
我们希望可以通过*寻对象访问*键值对,这就是字典的想法。
```cpp
template <typename K, typename V> //key、 value
struct Dictionary {
virtual Rank size() = 0;
virtual bool put( K, V ) = 0;
virtual V* get( K ) = 0;
virtual bool remove( K ) = 0;
};
```
字典定义了接口(如获取、设置、删除键值对),而下面的散列和跳表提供了这些接口的具体实现。
哈希表通常提供更快的查找、插入和删除操作,... | |
https://github.com/lvignoli/typst-action | https://raw.githubusercontent.com/lvignoli/typst-action/main/tests/valid.typ | typst | MIT License | #set document(title: "Test file", author: "<NAME>")
= Test file
_Some_ *text*.
A function call: #lorem(20).
Math: $ a^2 + b^2 = c^2. $
|
https://github.com/rabotaem-incorporated/probability-theory-notes | https://raw.githubusercontent.com/rabotaem-incorporated/probability-theory-notes/master/utils/core.typ | typst | #import "../config.typ"
#import "@preview/cetz:0.2.0"
#import "@preview/finite:0.3.0": automaton
#let chapter_state = state("chapter", "")
#let clabel(name) = {
[
$zws$#label(name)
]
}
#let notes(
name: none,
short-name: none,
lector: none,
info: none,
document_body,
) = {
set document(author: "R... | |
https://github.com/jneug/typst-finite | https://raw.githubusercontent.com/jneug/typst-finite/main/cmd.typ | typst | MIT License | #import "@preview/t4t:0.3.2": is, assert, def
#import "@preview/cetz:0.1.1"
#import "./draw.typ"
#import "./layout.typ"
#import "./layout.typ": custom
#import "./util.typ": transpose-table, get-inputs, to-spec
/// Draw an automaton from a specification.
///
/// #arg[spec] is a dictionary with a specification for a
/... |
https://github.com/sergiodrd/analisis_real | https://raw.githubusercontent.com/sergiodrd/analisis_real/main/tarea1/main.typ | typst | #import "template.typ": *
#let title = "Tarea 1"
#let author = "<NAME>"
#let course_id = "MATE 5201"
#let instructor = "<NAME>"
#let semester = "C41"
#let due_time = "6 de septiembre"
#set enum(numbering: "a)")
#set math.equation(numbering: "(1)", supplement: "la ecuación")
#show: assignment_class.with(title, author, c... | |
https://github.com/gvallinder/KTHThesis_Typst | https://raw.githubusercontent.com/gvallinder/KTHThesis_Typst/main/README.md | markdown | MIT License | Unofficial Typst template for a KTH PhD Thesis, based on the [Latex template](https://www.overleaf.com/latex/templates/kth-phd-thesis-template-2024/kzrmpmhymhxq) by <NAME>.
|
https://github.com/polarkac/MTG-Stories | https://raw.githubusercontent.com/polarkac/MTG-Stories/master/stories/055%20-%20Murders%20at%20Karlov%20Manor/005_Episode%205%3A%20Chains%20of%20Expectation.typ | typst | #import "@local/mtgstory:0.2.0": conf
#show: doc => conf(
"Episode 5: Chains of Expectation",
set_name: "Murders at Karlov Manor",
story_date: datetime(day: 11, month: 01, year: 2024),
author: "<NAME>",
doc
)
The afternoon air was bright and crisp as the detective and the escaped fugitive made thei... | |
https://github.com/fuchs-fabian/typst-template-aio-studi-and-thesis | https://raw.githubusercontent.com/fuchs-fabian/typst-template-aio-studi-and-thesis/main/template/assets/assets.typ | typst | MIT License | // Hier können deine eigenen Assets stehen |
https://github.com/mariuslb/thesis | https://raw.githubusercontent.com/mariuslb/thesis/main/content/03-methodik.typ | typst | = Methodik
== Datenerhebung
In diesem Kapitel wird erläutert wie Fahrdaten erhoben werden, die in einem
darauffolgenden Schritt aggregiert und analysiert werden, um die Aussagen der Hypothesen H1 und H2 anhanddessen zu bewerten.
=== Zeitliche und räumliche Abgrenzung
Im Zeitraum von 4. - 6. März 2024 wurden in Ha... | |
https://github.com/Meisenheimer/Notes | https://raw.githubusercontent.com/Meisenheimer/Notes/main/README.md | markdown | MIT License | # 笔记/Notes
## 介绍/Introduction
大部分笔记来源于我本科以及研究生期间的课程,并由Typst排版。其中,我仅保留了(在我看来)常用的定义和定理,以便于我在需要时不需要关注证明等内容。
Most of the notes are from my undergraduate and postgraduate courses and written in Typst (https://typst.app/). There are only **useful** (in my opinion) definitions and theorems so that I can focus on coding or a... |
https://github.com/cadojo/correspondence | https://raw.githubusercontent.com/cadojo/correspondence/main/src/vita/src/cv.typ | typst | MIT License | //
// Preamble
//
#import "experience.typ": *
#import "research.typ": *
#import "references.typ": *
#import "presentations.typ": *
#import "publications.typ": *
#import "teaching.typ": *
#import "education.typ": *
#import "projects.typ": *
#import "skills.typ": *
#import "socials.typ": *
#import "awards.typ": *
#impo... |
https://github.com/Duolei-Wang/modern-sustech-thesis | https://raw.githubusercontent.com/Duolei-Wang/modern-sustech-thesis/main/template/configs/font.typ | typst | MIT License | // Font Size
#let Special-Large = 63pt
#let Special = 54pt
#let Initial = 42pt
#let Initial-Small = 36pt
#let No1 = 26pt
#let No1-Small = 24pt
#let No2 = 22pt
#let No2-Small = 18pt
#let No3 = 16pt
#let No3-Small = 15pt
#let No4 = 14pt
#let No4-Small = 12pt
#let No5 = 10.5pt
#let No6 = 7.5pt
#let No6-Small = 6.5pt
#let ... |
https://github.com/ad-si/invoice-maker | https://raw.githubusercontent.com/ad-si/invoice-maker/master/examples/custom-language.typ | typst | ISC License | #import "../invoice-maker.typ": *
#show: invoice.with(
hourly-rate: 1,
issuing-date: "2024-03-24", // Must be set to not break tests
language: (
id: "es",
country: "ES",
recipient: "Destinatario",
biller: "Emisor",
invoice: "Factura",
cancellation-invoice: "Factura de Cancelación",
ca... |
https://github.com/Nenuial/fnchJury | https://raw.githubusercontent.com/Nenuial/fnchJury/main/_extensions/nenuial/se-doc/typst-template.typ | typst |
// This is an example typst template (based on the default template that ships
// with Quarto). It defines a typst function named 'article' which provides
// various customization options. This function is called from the
// 'typst-show.typ' file (which maps Pandoc metadata function arguments)
//
// If you are creati... | |
https://github.com/Myriad-Dreamin/tinymist | https://raw.githubusercontent.com/Myriad-Dreamin/tinymist/main/crates/tinymist-query/src/fixtures/def_use/import_alias.typ | typst | Apache License 2.0 | #import "base.typ"
#base
#import "base.typ" as foo
#base, #foo |
https://github.com/DieracDelta/presentations | https://raw.githubusercontent.com/DieracDelta/presentations/master/polylux/book/src/themes/gallery/clean.typ | typst | #import "../../../../polylux.typ": *
#import themes.clean: *
#set text(font: "Inria Sans")
#show: clean-theme.with(
footer: [Author, institution],
short-title: [Short title],
logo: image("dummy-logo.png"),
)
#title-slide(
title: [Presentation title],
subtitle: [Presentation subtitle],
authors: ([Author ... | |
https://github.com/jamesrswift/typst-chem-par | https://raw.githubusercontent.com/jamesrswift/typst-chem-par/main/CHANGELOG.md | markdown | MIT License | # Changelog
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
### 0.0.1 (2023-10-29)
### Features
* added pseudo-elements ([6a9e3a5](https://github.com/JamesxX/typst-chem-par/commit/6a9e3a53... |
https://github.com/bpkleer/typst-modern-acad-cv | https://raw.githubusercontent.com/bpkleer/typst-modern-acad-cv/main/lib.typ | typst | MIT License | // import fontawesome & academicons
#import "@preview/fontawesome:0.4.0": *
#import "@preview/use-academicons:0.1.0": *
// Functions from moderner-cv with changes
// link: https://github.com/DeveloperPaul123/modern-cv
// author DeveloperPaul123 (github)
// Function _cv-cols: setting style and table
// Arguments:
// -... |
https://github.com/3w36zj6/textlint-plugin-typst | https://raw.githubusercontent.com/3w36zj6/textlint-plugin-typst/main/test/fixtures/Code/input.typ | typst | MIT License | `inline code`
aaa `inline code` bbb
What is ```rust fn main()``` in Rust
would be ```c int main()``` in C.
This has ``` `backticks` ``` in it
(but the spaces are trimmed). And
``` here``` the leading space is
also trimmed.
|
https://github.com/pncnmnp/typst-poster | https://raw.githubusercontent.com/pncnmnp/typst-poster/master/README.md | markdown | MIT License | # Typst-Poster
This is an academic poster template designed for [Typst](https://github.com/typst/typst). Supports both horizontal and vertical posters.
# What does it look like?

# Getting Started
To get started, use the following code:
```typ
#impor... |
https://github.com/kdog3682/mathematical | https://raw.githubusercontent.com/kdog3682/mathematical/main/0.1.0/src/components/time-travel-sidebar.typ | typst |
#let pat = pattern(size: (3pt, 6pt))[
#place(line(start: (0%, 0%), end: (100%, 100%)))
#place(line(start: (0%, 100%), end: (100%, 0%)))
]
#{
let b = {
place(rect(width: 100%, height: 100%))
let p = pattern(size: (3pt, 3pt), {
circle(radius: 1pt, fill: gray)
})
let p2 = pattern(size:... | |
https://github.com/songoffireandice03/simple-template | https://raw.githubusercontent.com/songoffireandice03/simple-template/main/templates/viettat.typ | typst | #import "@preview/physica:0.9.2": *
#let sc(it) = math.class("normal",
text(font: "", stylistic-set: 1, $cal(it)$) + h(0em)
)
#let dvs = "đối với"
#let qh = "quan hệ"
#let ltd = "lớp tương đương"
#let LTD = "Lớp tương đương"
#let ltt1 = "Giáo Trình Toán I"
#let ltt2 = "Giáo Trình Toán II"
#let dgl = "được... | |
https://github.com/gabrielluizep/typst-ifsc | https://raw.githubusercontent.com/gabrielluizep/typst-ifsc/main/template/exam.typ | typst | Creative Commons Zero v1.0 Universal | #let exam(
title: "Título",
professor: "Professor",
email: "<EMAIL>",
program: "Engenharia de Programação",
course: "Progrmação I",
semester: "2023.2",
doc,
) = {
set page(
margin: (top: 4.25cm, bottom: 3.25cm, left: 2.25cm, right: 2.25cm),
header: image("../assets/ifsc-header.png"),
footer:... |
https://github.com/kdog3682/typkit | https://raw.githubusercontent.com/kdog3682/typkit/main/0.1.0/src/typst.typ | typst | #import "fills.typ": *
#import "alignments.typ": *
#let scale = scale
#let rect = rect
#let circle = circle
#let box = box
#let length = length
#let measure = measure
#let table = table
#let text = text
#let range = range
#let place = place
#let underline = underline
#let stack = stack
| |
https://github.com/dantevi-other/kththesis-typst | https://raw.githubusercontent.com/dantevi-other/kththesis-typst/main/parts/5-body.typ | typst | MIT License | //-- Imports
//-- Configurations
#set page(
numbering: "1",
margin: (x: 100pt, y: 120pt)
)
#set text(12pt)
#counter(page).update(1)
#set heading(
numbering: "1.1 "
)
#set bibliography(style: "ieee")
#set math.equation(numbering: "(1)", supplement: "Eq." )
//-- Content
= Introduction
#lorem(200)
= Bac... |
https://github.com/ymgyt/blog | https://raw.githubusercontent.com/ymgyt/blog/main/lt/grafana-lt/presen.typ | typst | #import "@preview/polylux:0.3.1": *
#import themes.bipartite: *
#show: bipartite-theme.with(aspect-ratio: "16-9")
#show link: underline
#set text(
size: 25pt,
font: (
"Noto Sans CJK JP",
))
#title-slide(
title: [OpenTelemetryのSignalsを\
Grafana Cloudに送る],
author: [ymgyt],
date: [2024-10-10],
)
#west-... | |
https://github.com/frectonz/the-pg-book | https://raw.githubusercontent.com/frectonz/the-pg-book/main/book/195.%20earnest.html.typ | typst | earnest.html
Earnestness
December 2020Jessica and I have certain words that have special significance
when we're talking about startups. The highest compliment we can
pay to founders is to describe them as "earnest." This is not by
itself a guarantee of success. You could be earnest but incapable.
But when founders ar... | |
https://github.com/zyf722/typst-tabler-icons | https://raw.githubusercontent.com/zyf722/typst-tabler-icons/main/assets/splash.typ | typst | MIT License | #import "../src/lib.typ": *
#set page(width: 1280pt, margin: 0pt, height: auto)
#set text(size: 48pt, fill: white)
#let z-stack(..items) = {
grid(
columns: items.pos().len() * (1fr,),
column-gutter: -100%,
rows: 1,
..items
)
}
#rect(
width: 100%,
fill: gradient.linear(rgb(57, 140, 184), rgb(3... |
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/unichar/0.1.0/ucd/block-1C80.typ | typst | Apache License 2.0 | #let data = (
("CYRILLIC SMALL LETTER ROUNDED VE", "Ll", 0),
("CYRILLIC SMALL LETTER LONG-LEGGED DE", "Ll", 0),
("CYRILLIC SMALL LETTER NARROW O", "Ll", 0),
("CYRILLIC SMALL LETTER WIDE ES", "Ll", 0),
("CYRILLIC SMALL LETTER TALL TE", "Ll", 0),
("CYRILLIC SMALL LETTER THREE-LEGGED TE", "Ll", 0),
("CYRILLI... |
https://github.com/denizenging/site | https://raw.githubusercontent.com/denizenging/site/master/page/home/_index.en.typ | typst | #import "@local/pub-page:0.0.0": *
#show: template(title: "Home", menu: (1, "home")) | |
https://github.com/ToxicPie/NaOCl | https://raw.githubusercontent.com/ToxicPie/NaOCl/master/lib.typ | typst | #let preprocess_code(code) = {
code.split("\n").map(line =>
if regex("//(/| clang-format)") in line {
none
} else if regex("^#include") in line {
if "// keep-line" in line {
line.replace("// keep-line", "").trim(at: end)
}
} else {
... | |
https://github.com/N4tus/uf_algo | https://raw.githubusercontent.com/N4tus/uf_algo/main/README.md | markdown | MIT License | # uf_algo
An untra-flexible typst pseudo-algorithm library
|
https://github.com/caro3dc/typststuff | https://raw.githubusercontent.com/caro3dc/typststuff/main/jx-style.typ | typst | #let coll = json("irgot.json");
#import "jx-date.typ": *
#let docu(
// DETERMINES WHAT KIND OF DOCUMENT IT WILL BE. CHECK THE VARIABLE validDocTypes A BIT BELOW.
docutype: "blankhead",
// AUTHOR. CAN EITHER BE A STRING OR AN ARRAY. NOT USED FOR PAPERS.
author: "<NAME>",
// SECTION.
section: "",
// // ... | |
https://github.com/pal03377/master-thesis | https://raw.githubusercontent.com/pal03377/master-thesis/main/thesis_typ/acknowledgement.typ | typst | MIT License | #let acknowledgement() = {
set page(
margin: (left: 30mm, right: 30mm, top: 40mm, bottom: 40mm),
numbering: none,
number-align: center,
)
let body-font = "New Computer Modern"
let sans-font = "New Computer Modern Sans"
set text(
font: body-font,
size: 12pt,
lang: "en"
)
set pa... |
https://github.com/typst-community/guidelines | https://raw.githubusercontent.com/typst-community/guidelines/main/src/chapters/style/joining.typ | typst | Creative Commons Attribution Share Alike 4.0 International | #import "/src/util.typ": *
#import mantys: *
= Joining
Prefer statement joining over manual joining, this keeps code and markup similar in structure to the end document.
#do-dont[
```typst
// in a document this clearly communicates intent
#for x in ("a", "b", "c") [
- #x
]
```
][
```typst
// this is ... |
https://github.com/LucaCiucci/tesi-triennale | https://raw.githubusercontent.com/LucaCiucci/tesi-triennale/main/img/slide_2/image.typ | typst | Creative Commons Zero v1.0 Universal | #set page(paper: "a4", margin: 10pt)
#import "@preview/cetz:0.2.2"
#let fig(step) = cetz.canvas(length: 1mm, {
import cetz: draw
import cetz.draw: *
let i_min = -2
let i_max = 3
let j_min = -3
let j_max = 4
let k = 4
let dyon_charge(i, j) = (20 * j + k * i + 50, 20 * i + 50)
for i in range(i_min... |
https://github.com/antran22/typst-cv-builder | https://raw.githubusercontent.com/antran22/typst-cv-builder/main/lib/resume/layout.typ | typst | MIT License | #import "../common.typ": *
#import "./components.typ": *
#import "@preview/fontawesome:0.1.0": *
#import "@preview/linguify:0.4.0": *
#import "@preview/cmarker:0.1.0"
#let ResumeLayout(
basic_info: (:),
date: datetime.today().display("[month repr:long] [day], [year]"),
language: "en",
body,
) = {
let lang_da... |
https://github.com/Jacobgarm/typst_linalg | https://raw.githubusercontent.com/Jacobgarm/typst_linalg/master/README.md | markdown | The Unlicense | # Numerical linear algebra for Typst
Matrix and vector functions are written in pure Rust. Supports matrices with real, complex and rational entries.
Uses [wasm-minimal-protocol](https://github.com/astrale-sharp/wasm-minimal-protocol) for interfacing with Typst's plugin feature.
|
https://github.com/herbhuang/utdallas-thesis-template-typst | https://raw.githubusercontent.com/herbhuang/utdallas-thesis-template-typst/main/content/system_design.typ | typst | MIT License | #import "/utils/todo.typ": TODO
= System Design
#TODO[
This chapter follows the System Design Document Template in @bruegge2004object. You describe in this chapter how you map the concepts of the application domain to the solution domain. Some sections are optional, if they do not apply to your problem. Cite @bruegg... |
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/scholarly-tauthesis/0.7.0/template/content/tekoalyn-kaytto.typ | typst | Apache License 2.0 | Ilmoitukseni mukaan olen käyttänyt opinnäytteessäni tutkielmaprosessin aikana
seuraavia tekoälysovelluksia:
#table(
align: left,
columns : (70%,30%),
table.header(
[*Sovellus*],
[*Versio*]
),
[...],
[...],
[...],
[...],
)
== Tekoälyn käyttötarkoitus
Kuvaa tähän _yksityiskohtaisesti_, mihin tarkoitukseen ... |
https://github.com/j10ccc/zjut-social-practice-report-typst | https://raw.githubusercontent.com/j10ccc/zjut-social-practice-report-typst/main/main.typ | typst | #import "/layout/project.typ": project
#let meta = (
department: "$学院",
major: "$专业",
title: "$报告名称",
author: "$姓名",
id: "$学号",
teacher: "$指导老师",
date: "$完成日期"
)
#show: project.with(..meta)
| |
https://github.com/Myriad-Dreamin/typst.ts | https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/text/raw-align_02.typ | typst | Apache License 2.0 |
#import "/contrib/templates/std-tests/preset.typ": *
#show: test-page
//
// // Error: 17-20 expected `start`, `left`, `center`, `right`, or `end`, found top
// #set raw(align: top) |
https://github.com/ohmycloud/computer-science-notes | https://raw.githubusercontent.com/ohmycloud/computer-science-notes/main/Misc/serde_json.typ | typst | #import "@preview/splash:0.3.0": *
#let make-title(title: none, author: none, date: none, description: none) = [
#set align(center)
= #title
#v(1em)
#text(style: "italic", description)
#v(1em)
/ 设计者: #author
/ 日期: #date
#v(3em)
]
#make-title(
title: "Serde 序列化和反序列化",
author: "ohmycloud",
d... | |
https://github.com/TypstApp-team/typst | https://raw.githubusercontent.com/TypstApp-team/typst/master/tests/typ/math/vec.typ | typst | Apache License 2.0 | // Test vectors.
---
// Test wide cell.
$ v = vec(1, 2+3, 4) $
---
// Test alternative delimiter.
#set math.vec(delim: "[")
$ vec(1, 2) $
---
// Error: 22-25 expected "(", "[", "{", "|", "||", or none
#set math.vec(delim: "%")
|
https://github.com/Myriad-Dreamin/typst.ts | https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/layout/page-style_00.typ | typst | Apache License 2.0 |
#import "/contrib/templates/std-tests/preset.typ": *
#show: test-page
// Empty with styles
// Should result in one conifer-colored A11 page.
#set page("a11", flipped: true, fill: conifer)
|
https://github.com/polarkac/MTG-Stories | https://raw.githubusercontent.com/polarkac/MTG-Stories/master/stories/028%20-%20Kaladesh/002_A%20Time%20for%20Innovation.typ | typst | #import "@local/mtgstory:0.2.0": conf
#show: doc => conf(
"A Time for Innovation",
set_name: "Kaladesh",
story_date: datetime(day: 31, month: 08, year: 2016),
author: "<NAME>",
doc
)
#emph[On Kaladesh, the Inventors' Fair—the intersection of creativity and genius—has begun. Inventors have flocked t... | |
https://github.com/AHaliq/CategoryTheoryReport | https://raw.githubusercontent.com/AHaliq/CategoryTheoryReport/main/chapters/chapter2/notes.typ | typst | #import "../../preamble/lemmas.typ": *
#import "../../preamble/catt.typ": *
#import "@preview/fletcher:0.5.1" as fletcher: diagram, node, edge
#definition(name: "Monomorphisms and Epimorphisms")[
@sa[definition 2.1]
_monomorphisms_ have unique pre-composites from the same object.
$
"isMono"(mono(f,A,B)) = f... | |
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/unichar/0.1.0/ucd/block-1C50.typ | typst | Apache License 2.0 | #let data = (
("OL CHIKI DIGIT ZERO", "Nd", 0),
("OL CHIKI DIGIT ONE", "Nd", 0),
("OL CHIKI DIGIT TWO", "Nd", 0),
("OL CHIKI DIGIT THREE", "Nd", 0),
("OL CHIKI DIGIT FOUR", "Nd", 0),
("OL CHIKI DIGIT FIVE", "Nd", 0),
("OL CHIKI DIGIT SIX", "Nd", 0),
("OL CHIKI DIGIT SEVEN", "Nd", 0),
("OL CHIKI DIGIT ... |
https://github.com/augustebaum/petri | https://raw.githubusercontent.com/augustebaum/petri/main/tests/fletcher/label-placement/test.typ | typst | MIT License | #import "/src/lib.typ": *
#set page(width: auto, height: auto, margin: 1cm)
#import "@preview/fletcher:0.4.2" as fletcher
/// % Place 1
/// \node[place,
/// label=left:$P_1$] (place1) at (0,0) {};
///
/// % Place 2
/// \node[place,
/// label=above:$P_2$,
/// label=right:$P_2$,
/// label=left:$P_2$,
/// label=be... |
https://github.com/polarkac/MTG-Stories | https://raw.githubusercontent.com/polarkac/MTG-Stories/master/stories/013%20-%20Magic%202015/005_The%20Hunter%20Cannot%20Pity.typ | typst | #import "@local/mtgstory:0.2.0": conf
#show: doc => conf(
"The Hunter Cannot Pity",
set_name: "Magic 2015",
story_date: datetime(day: 16, month: 07, year: 2014),
author: "<NAME>",
doc
)
Vronos, Elite Inquisitor, steadied his silver-chased crossbow and took aim. The blessed bolt snapped away and dov... | |
https://github.com/antonWetzel/Masterarbeit | https://raw.githubusercontent.com/antonWetzel/Masterarbeit/main/packages/subfigure.typ | typst | #let subfigure = (
content,
width: 100%,
numbering: "(a)",
caption: none,
) => {
let last_figure = state("last_figure")
let sub_figure = counter("sub_figure")
let fig_counter = counter(figure)
locate(loc => {
let current = fig_counter.at(loc).at(0)
if last_figure.at(loc) != current {
sub_figure.update(0... | |
https://github.com/tymbalodeon/job-application | https://raw.githubusercontent.com/tymbalodeon/job-application/main/src/_content.typ | typst | #let settings = yaml("settings.yaml")
#let cover-letter = yaml(settings.cover-letter-content)
#let resume = yaml(settings.resume-content)
#let convert-to-array(item) = {
if type(item) == "array" {
item
} else {
(item,)
}
}
#let resume-tags = convert-to-array(settings.tags)
#let cover-let... | |
https://github.com/morel-olivier/template-typst | https://raw.githubusercontent.com/morel-olivier/template-typst/master/readme.md | markdown | # template-typst
Small collection of basic typst template.
Those templates are meant for french document but you can easily change that by modyifing the `lang` and `region` parameter of the `set text` function in the **conf.typ** file.
| |
https://github.com/AliothCancer/AppuntiUniversity | https://raw.githubusercontent.com/AliothCancer/AppuntiUniversity/main/capitoli_dispositivi/02ExeValvole.typ | typst | #import "../custom_functions.typ": *
= Esercitazione: Valvole
#def[Effective Orifice Area][
È la sezione efficace/effettiva della valvola, si usa per valutare il grado di ostruzione che la valvola provoca.
Si possono confrontare valvole dello stesso diametro per capire quale è migliore. Un EOA più grande implica... | |
https://github.com/TeunSpithoven/Signals-And-Embedded-Systems | https://raw.githubusercontent.com/TeunSpithoven/Signals-And-Embedded-Systems/main/components/terms.typ | typst | // CHANGE THIS TO THE CORRECT PATH
#import "../template/fhict-template.typ": *
#let term_list = (
(
key: "banaan",
short: [bn],
long: [banaan],
desc: [zo'n geel ding],
),
)
| |
https://github.com/maxgraw/bachelor | https://raw.githubusercontent.com/maxgraw/bachelor/main/apps/document/src/2-theory/webgl.typ | typst | WebGL 2.0 ist eine Programmierschnittstelle für 2D- und 3D-Grafiken, die das Rendering von Grafiken in Webbrowsern ermöglicht. Diese API basiert auf OpenGL ES 3.0 und wird von den meisten modernen Browsern unterstützt @webgl-spec @can-i-use-webgl. Die Integration von WebGL 2.0 erfolgt über das HTML-Canvas-Element, wodu... | |
https://github.com/TypstApp-team/typst | https://raw.githubusercontent.com/TypstApp-team/typst/master/tests/typ/bugs/math-realize.typ | typst | Apache License 2.0 | // Test that content in math can be realized without breaking
// nested equations.
---
#let my = $pi$
#let f1 = box(baseline: 10pt, [f])
#let f2 = style(sty => f1)
#show math.vec: [nope]
$ pi a $
$ my a $
$ 1 + sqrt(x/2) + sqrt(#hide($x/2$)) $
$ a x #link("url", $+ b$) $
$ f f1 f2 $
$ vec(1,2) * 2 $
---
$ x^2 #hide[... |
https://github.com/barrel111/readings | https://raw.githubusercontent.com/barrel111/readings/main/problems/external/1910SU/week1.typ | typst | #import "@local/preamble:0.1.0": *
#import "@preview/cetz:0.2.2": canvas, plot
#show: project.with(
course: "1910SU",
sem: "Summer",
title: "Group Discussion: Differentiation I",
subtitle: "Solutions",
contents: false,
)
#let tri = $triangle.t$
= Trigonometric Derivatives
== Prove the identity: $lim_(x ar... | |
https://github.com/EliasRothfuss/vorlage_typst_doku-master | https://raw.githubusercontent.com/EliasRothfuss/vorlage_typst_doku-master/main/pages/abkuerzungen.typ | typst | = Abkürzungsverzeichnis
/ #lorem(2): #lorem(10)
/ #lorem(2): #lorem(10)
/ #lorem(2): #lorem(10)
/ #lorem(2): #lorem(10)
/ #lorem(2): #lorem(10)
/ #lorem(2): #lorem(10)
/ #lorem(2): #lorem(10)
/ #lorem(2): #lorem(10)
/ #lorem(2): #lorem(10)
/ #lorem(2): #lorem(10)
/ #lorem(2): #lorem(10)
/ #lorem(2): #lorem(10)
/ #lore... | |
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/universal-hit-thesis/0.2.0/README.md | markdown | Apache License 2.0 | # HIT-Thesis-Typst
适用于哈尔滨工业大学学位论文的 Typst 模板

> [!WARNING]
> 本模板正处于积极开发阶段,存在一些格式问题,适合尝鲜 Typst 特性
>
> 本模板是民间模板,**可能不被学校认可**,正式使用过程中请做好随时将内容迁移至 Word 或 LaTeX 的准备
## 关于本项目
... |
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/chronos/0.1.0/gallery/readme/lifelines.typ | typst | Apache License 2.0 | #import "/src/lib.typ" as chronos
#set page(
width: auto,
height: auto,
margin: 0.5cm
)
#chronos.diagram({
import chronos: *
_par("A", display-name: "Alice")
_par("B", display-name: "Bob")
_par("C", display-name: "Charlie")
_par("D", display-name: "Derek")
_seq("A", "B", comment: "hello", enable-ds... |
https://github.com/Pablo-Gonzalez-Calderon/apuntes-botanica | https://raw.githubusercontent.com/Pablo-Gonzalez-Calderon/apuntes-botanica/main/src/months/september.typ | typst | Other | #import "../template.typ": new-class, examplebox, obsbox, figure-box, gloss
#import "@preview/showybox:2.0.1": *
#let clase-7-8 = [
#new-class(new-page: true, "Tipos celulares en plantas", "04 de septiembre de 2023")
#obsbox()[
Recordemos que todas las células parten indiferenciadas.
]
... |
https://github.com/max-niederman/MTH311 | https://raw.githubusercontent.com/max-niederman/MTH311/main/hw/5.typ | typst | #import "../lib.typ": *
#show: homework.with(title: "Math 311 Homework 5")
= 3.5.1
== 3.5.1 (a)
Let $epsilon > 0$ and $u, v in RR$ be given.
If $a = 0$, then
$
abs(f(u) - f(v))
&= abs((0)u + b - (0)v - b) \
&= abs(b - b) \
&= 0 \
&< epsilon "."
$
Otherwise, define $delta = epsilon / abs(a)$.
Then if $abs(u - v) <... | |
https://github.com/LDemetrios/Typst4k | https://raw.githubusercontent.com/LDemetrios/Typst4k/master/src/test/resources/suite/symbols/symbol.typ | typst | // Test symbols.
--- symbol ---
#emoji.face
#emoji.woman.old
#emoji.turtle
#set text(font: "New Computer Modern Math")
#sym.arrow
#sym.arrow.l
#sym.arrow.r.squiggly
#sym.arrow.tr.hook
#sym.arrow.r;this and this#sym.arrow.l;
--- symbol-constructor ---
#let envelope = symbol(
"🖂",
("stamped", "🖃"),
("stamped.... | |
https://github.com/flechonn/typst | https://raw.githubusercontent.com/flechonn/typst/main/output_file.typ | typst |
= New file : data/doc1.typ
= 1. Exercice : Appliquer la loi d'Ohm.
Solution : $V = I * R$
Niveau d'indice : Débutant
= 2. Exercice : Résoudre un problème de mouvement rectiligne uniformément accéléré.
Solution : $x(t) = x₀ + v₀t + (1/2)at²$
Niveau d'indice : Intermédiaire
= New file : data/doc2.typ
= 1.... | |
https://github.com/ivaquero/typst-fasvg | https://raw.githubusercontent.com/ivaquero/typst-fasvg/main/fontawesome.typ | typst | MIT License | #let fapath = (
// brands
brand-42-group: "fontawesome/brands/42-group.svg",
brand-500px: "fontawesome/brands/500px.svg",
brand-accessible-icon: "fontawesome/brands/accessible-icon.svg",
brand-accusoft: "fontawesome/brands/accusoft.svg",
brand-adn: "fontawesome/brands/adn.svg",
brand-adversal: "fontawesom... |
https://github.com/jgm/typst-hs | https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/visualize/shape-circle-02.typ | typst | Other | // Ensure circle directly in rect works.
#rect(width: 40pt, height: 30pt, fill: red,
circle(fill: green))
|
https://github.com/veilkev/jvvslead | https://raw.githubusercontent.com/veilkev/jvvslead/Typst/files/books.typ | typst | #import "../sys/packages.typ": *
#import "../sys/sys.typ": *
#import "../sys/header.typ": *
#import "@preview/bob-draw:0.1.0": *
// Space between header
#v(150pt)
// Shows heading
#text(size: 12pt
)[= Bookkeeping]
#note[
There are multiple ways that you are able to view operator numbers.
]
#grid(columns: (1fr,... | |
https://github.com/CodeHex16/documentazione | https://raw.githubusercontent.com/CodeHex16/documentazione/main/verbali/interni/source/2024-10-22_Discussione-Capitolati.typ | typst | #import "../../../template/verbale.typ": *
#show : doc => verbale(
titolo: "Conferme sulla scelta dei capitolati",
ordine-del-giorno: ("Seconda discussione sui capitolati","Comunicazione con le aziende", "Organizzazione incontri interni"),
data: [22/10/2024],
ora: [14:30-15:30],
tipo: "interno",
... | |
https://github.com/Fabioni/Typst-TUM-Thesis-Template | https://raw.githubusercontent.com/Fabioni/Typst-TUM-Thesis-Template/main/README.md | markdown | MIT No Attribution |
[The compiled demo main.pdf](./template/main.pdf)
# tum-exzellenz-thesis
This is a Typst template for a thesis at TU Munich. I made it for my thesis in the School CIT, but I think it can be adapted to other schools as well.
## Usage
You can use this template in the Typst web app by clicking "Start from template"
on ... |
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/touying/0.3.2/themes/default.typ | typst | Apache License 2.0 | #import "../slide.typ": s
// export default self
#let register(self: s, aspect-ratio: "16-9") = {
self.page-args += (
paper: "presentation-" + aspect-ratio,
)
self
}
|
https://github.com/sarahzeller/tud | https://raw.githubusercontent.com/sarahzeller/tud/main/_extensions/sarahzeller/tud/typst-show.typ | typst | MIT License | // Typst custom formats typically consist of a 'typst-template.typ' (which is
// the source code for a typst template) and a 'typst-show.typ' which calls the
// template's function (forwarding Pandoc metadata values as required)
//
// This is an example 'typst-show.typ' file (based on the default template
// that shi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.