repo stringlengths 26 115 | file stringlengths 54 212 | language stringclasses 2
values | license stringclasses 16
values | content stringlengths 19 1.07M |
|---|---|---|---|---|
https://github.com/onefact/letterhead-template | https://raw.githubusercontent.com/onefact/letterhead-template/main/onefact.org-letterhead-template.typ | typst | Apache License 2.0 | // This function gets your whole document as its `body`
// and formats it as a simple letter.
#let letter(
// The letter's sender, which is display at the top of the page.
sender: none,
// The letter's recipient, which is displayed close to the top.
recipient: none,
// The date, displayed to the right.
da... |
https://github.com/lublak/typst-spreet-package | https://raw.githubusercontent.com/lublak/typst-spreet-package/main/README.md | markdown | MIT License | # Spreet
Spreet is a spreadsheet decoder for typst (excel/opendocument spreadsheets).
The spreadsheet will be read and parsed into a dictonary of 2-dimensional array of strings:
Each workbook in the spreadsheet is mapped as an entry in the dictonary.
Each row of the workbook is represented as an array of strings, and ... |
https://github.com/juanppalacios/typst-gvsu-egr | https://raw.githubusercontent.com/juanppalacios/typst-gvsu-egr/main/main.typ | typst | // features added from typst's IEEE template
#import "template.typ": thesis
#show: doc => thesis(
title: [
A Working Thesis Title
],
authors: (
(
name: "<NAME>",
affiliation: "Grand Valley State University",
college: "Padnos College of Engineering",
degree: "Master of Science in E... | |
https://github.com/Kasci/LiturgicalBooks | https://raw.githubusercontent.com/Kasci/LiturgicalBooks/master/SK/casoslov/casy/cas1.typ | typst | #import "/style.typ": *
#import "/SK/texts.typ": *
#import "../styleCasoslov.typ": *
= Prvý čas
#show: rest => columns(2, rest)
#nacaloBezKnaza
#zalm(5)
#zalm(89)
#zalm(100)
#si
#lettrine("Aleluja, aleluja, aleluja, sláva tebe, Bože.") #note[(3x)]
#lettrine("Pane, zmiluj sa.") #note[(3x)]
== Tropáre
#note[Beri... | |
https://github.com/kiwiyou/algorithm-lecture | https://raw.githubusercontent.com/kiwiyou/algorithm-lecture/main/slide.typ | typst | #let style(body) = {
set page(paper: "presentation-16-9", margin: 2em)
set text(size: 25pt, font: "Pretendard", lang: "ko")
set footnote(numbering: "1)")
body
}
#let slide(title, body) = {
set page(header: [= #title], margin: (top: 4em))
body
}
#let problem(id, title) = link("https://www.acmicpc.net/probl... | |
https://github.com/polarkac/MTG-Stories | https://raw.githubusercontent.com/polarkac/MTG-Stories/master/stories/024%20-%20Shadows%20over%20Innistrad/004_Sacrifice.typ | typst | #import "@local/mtgstory:0.2.0": conf
#show: doc => conf(
"Sacrifice",
set_name: "Shadows Over Innistrad",
story_date: datetime(day: 23, month: 03, year: 2016),
author: "<NAME>",
doc
)
#emph[Dark and deep, Lake Zhava lies in the highlands of Nephalia, near the border with Gavony. Villagers who live... | |
https://github.com/isaacholt100/isaacholt100.github.io | https://raw.githubusercontent.com/isaacholt100/isaacholt100.github.io/master/maths-notes/2-durham%3A-year-2/math-phys/math-phys.typ | typst | #import "../../template.typ": template
#show: template
= The action principle
- For small $delta s in RR$, $f(s + delta s) = f(s) + (d f(s)) / (d s) delta s + R(s, delta s)$
- With $delta f := f(s + delta s) - f(s)$, $delta f = (d f(s)) / (d s) delta s + R(s, delta s)$, with $ lim_(delta s -> 0) R(s, delta s) / (delt... | |
https://github.com/LDemetrios/Typst4k | https://raw.githubusercontent.com/LDemetrios/Typst4k/master/src/test/resources/suite/scripting/destructuring.typ | typst | --- destructuring-group-1 ---
// This wasn't allowed.
#let ((x)) = 1
#test(x, 1)
--- destructuring-group-2 ---
// This also wasn't allowed.
#let ((a, b)) = (1, 2)
#test(a, 1)
#test(b, 2)
--- destructuring-dict-underscore ---
// Here, `best` was accessed as a variable, where it shouldn't have.
#{
(best: _) = (best: ... | |
https://github.com/SkytAsul/trombinoscope | https://raw.githubusercontent.com/SkytAsul/trombinoscope/main/pages/pageIntro.typ | typst | MIT License | #show: it => align(horizon + center, block(width: 90%, align(left, it)))
#align(center)[= Introduction]
#v(2em)
#set text(size: 1.2em)
#set par(justify: true)
Le projet du trombinoscope renaît de ses cendres !
Dès que tu auras tourné cette page tu découvriras les têtes des 1067 futurs ingénieurs humanistes de dema... |
https://github.com/typst-doc-cn/tutorial | https://raw.githubusercontent.com/typst-doc-cn/tutorial/main/typ/templates/side-notes.typ | typst | Apache License 2.0 |
#let side-attrs = state("tuturial-side-note-attrs", (:))
#let side-note(dy: -0.65em, content) = locate(loc => {
let attr = side-attrs.at(loc)
// side-notes.update(it => {
// let p = str(loc.page())
// let arr = it.at(p, default: ())
// arr.push((loc.position().y, content))
// it.insert(p, arr)
/... |
https://github.com/MrToWy/Bachelorarbeit | https://raw.githubusercontent.com/MrToWy/Bachelorarbeit/master/Chapters/1-Einleitung.typ | typst | #import "../Template/customFunctions.typ": *
= Einleitung <introduction>
== Hintergrund und Motivation <motivation>
Modulhandbücher begegnen vielen Menschen bereits vor dem Start des Studiums bei der Recherche nach interessanten Studiengängen @ects. In Modulhandbüchern befinden sich die wesentlichen Informationen und... | |
https://github.com/ClazyChen/Table-Tennis-Rankings | https://raw.githubusercontent.com/ClazyChen/Table-Tennis-Rankings/main/history/2004/MS-04.typ | typst |
#set text(font: ("Courier New", "NSimSun"))
#figure(
caption: "Men's Singles (1 - 32)",
table(
columns: 4,
[Ranking], [Player], [Country/Region], [Rating],
[1], [<NAME>], [CHN], [2618],
[2], [<NAME>], [CHN], [2560],
[3], [WANG Liqin], [CHN], [2554],
[4], [<NAME>], [GER], [2375... | |
https://github.com/SillyFreak/tu-wien-software-engineering-notes | https://raw.githubusercontent.com/SillyFreak/tu-wien-software-engineering-notes/main/template/template.typ | typst | #let notes(
title: none,
subtitle-lines: (),
authors: (),
doc,
) = {
set document(
title: title
)
// title page
{
set page(
paper: "a4",
margin: (x: 2.8cm, y: 8cm),
)
set align(center)
set heading(outlined: false)
[
#set text(size: 16pt)
= #title
... | |
https://github.com/ludwig-austermann/typst-ouset | https://raw.githubusercontent.com/ludwig-austermann/typst-ouset/main/README.md | markdown | MIT License | # ouset Package
[GitHub Repository including Examples and Changelog](https://github.com/ludwig-austermann/typst-ouset)
This is a small package providing over- and underset functions for math mode in [typst](https://typst.app/).
## Usage
To use this package simply `#import "@preview/ouset:{{PACKAGE VERSION}}"`. To imp... |
https://github.com/eliapasquali/typst-thesis-template | https://raw.githubusercontent.com/eliapasquali/typst-thesis-template/main/structure.typ | typst | Other | // Frontmatter
#include "./preface/firstpage.typ"
#include "./preface/copyright.typ"
#include "./preface/dedication.typ"
#include "./preface/summary.typ"
#include "./preface/acknowledgements.typ"
#include "./preface/table-of-contents.typ"
// Mainmatter
#counter(page).update(1)
#include "./chapters/introduction.typ"... |
https://github.com/soul667/typst | https://raw.githubusercontent.com/soul667/typst/main/复习/物理实验/0/temple/main.typ | typst | #import "template.typ": *
#let data=yaml("./data.yaml")
#import "@preview/tablex:0.0.8": tablex, rowspanx,
#show: doc => conf(
linespacing: 1em,
outlinedepth: 3,
blind: false,
listofimage: true,
listoftable: true,
listofcode: true,
alwaysstartodd: true,
doc
)
#import "@preview/color... | |
https://github.com/flaribbit/typst-tetris | https://raw.githubusercontent.com/flaribbit/typst-tetris/main/tetris.typ | typst | #let blocks_data=( // ZSLJTOI
((0,2),(1,2),(1,1),(2,1)),
((0,1),(1,1),(1,2),(2,2)),
((0,1),(1,1),(2,1),(2,2)),
((0,1),(1,1),(2,1),(0,2)),
((0,1),(1,1),(2,1),(1,2)),
((1,1),(2,1),(1,2),(2,2)),
((0,2),(1,2),(2,2),(3,2)),
)
#let block_center=((1,1),(1,1),(1,1),(1,1),(1,1),(1.5,1.5),(1.5,1.5))
#let kick_data1... | |
https://github.com/iceghost/typst-at-hcmut | https://raw.githubusercontent.com/iceghost/typst-at-hcmut/main/contents/03/00.typ | typst | Apache License 2.0 | = Sử dụng
Việc sử dụng trên web app đơn giản rồi. Mình hướng dẫn trên máy tính cá nhân.
== Compile và edit
Flow đơn giản là bạn treo lệnh này trong terminal:
```console
typst watch main.typ
```
Sau đó bạn sẽ đi edit các file thoải mái.
Cho đến khi có lỗi xảy ra hoặc file pdf không như ý muốn,
bạn mở terminal lên để ... |
https://github.com/drupol/ipc2023 | https://raw.githubusercontent.com/drupol/ipc2023/main/src/ipc2023/package-manager.typ | typst | #import "imports/preamble.typ": *
#focus-slide[
#set align(center + horizon)
#set text(size: 1.5em, fill: white, font: "Virgil 3 YOFF")
Nix is just#uncover("2-4")[.]#uncover("3-4")[.]#uncover("4-4")[.]
#uncover("5-")[a *package manager*]
#pdfpc.speaker-note(```md
A few slides back, I introduced NixOS;... | |
https://github.com/Myriad-Dreamin/tinymist | https://raw.githubusercontent.com/Myriad-Dreamin/tinymist/main/crates/tinymist-query/src/fixtures/completion/sig_dict_rest.typ | typst | Apache License 2.0 | // contains: paint,cap
#text(stroke: (paint: red, /* range after 1..2 */ ))[]
|
https://github.com/ern1/typiskt | https://raw.githubusercontent.com/ern1/typiskt/main/templates/util.typ | typst |
/*#show "ArtosFlow": name => box[
#box(image(
"assets/dog1.png",
height: 0.9em,
))
#name
]*/
// TODO: Bör använda sig av baseline istället för move?
#let imageIcon(path, h: 0.9em) = {
box(move(dy: h/6, image(
path,
height: h,
)))
}
#let iconWithText(iconPath, str, h: 1.0em) = box[
#imageI... | |
https://github.com/danbalarin/typst-templates | https://raw.githubusercontent.com/danbalarin/typst-templates/main/vse-assignment/README.md | markdown | # VSE Assignment template
Template used for assignments on University of Economics in Prague, Faculty of Informatics.
## Usage
Copy the content of `template.typ` and paste it into the Typst editor.
Copy `vse-fis.png` and paste it into the same directory as the `template.typ` file.
In the document entry point add fo... | |
https://github.com/PgBiel/typst-truthtable | https://raw.githubusercontent.com/PgBiel/typst-truthtable/main/examples/example.typ | typst | MIT License | #import "../truthtable.typ": truth-table, l-and, l-imp, l-iff, l-not, l-or, l-var, l-operator, l-logic-convert, l-parens-repr-if-composite, l-expr-tree
#set text(font: "Linux Libertine")
#align(center, text(17pt)[*Some truth table examples*])
Importing some names with:
```typ
#import "../truthtable.typ": truth-tabl... |
https://github.com/jamesrswift/dining-table | https://raw.githubusercontent.com/jamesrswift/dining-table/main/src/lib.typ | typst | The Unlicense | #import "note.typ" as note
#import "styles.typ": *
#import "impl.typ": make |
https://github.com/polarkac/MTG-Stories | https://raw.githubusercontent.com/polarkac/MTG-Stories/master/stories/021%20-%20Battle%20for%20Zendikar/014_Promises%20to%20Keep.typ | typst | #import "@local/mtgstory:0.2.0": conf
#show: doc => conf(
"Promises to Keep",
set_name: "Battle for Zendikar",
story_date: datetime(day: 02, month: 12, year: 2015),
author: "<NAME>",
doc
)
#emph[Weeks ago, <NAME> decided against getting involved with Zendikar's woes. She remains on the plane of Reg... | |
https://github.com/jgm/typst-hs | https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/layout/par-00.typ | typst | Other | // Test ragged-left.
#set align(right)
To the right! Where the sunlight peeks behind the mountain.
|
https://github.com/danbalarin/vse-typst-template | https://raw.githubusercontent.com/danbalarin/vse-typst-template/main/README.md | markdown | # VSE Diploma Thesis template
## Usage
```typst
#show: template.with(
// Thesis title
title: "Thesis Title",
// Thesis author
author: "Bc. <NAME>",
// Thesis submission date
date: "January 2025",
// University
university: "Prague University of Economics and Business",
// Faculty
faculty: "F... | |
https://github.com/LDemetrios/Typst4k | https://raw.githubusercontent.com/LDemetrios/Typst4k/master/src/test/resources/suite/layout/pagebreak.typ | typst | // Test forced page breaks.
--- pagebreak ---
// Just a pagebreak.
// Should result in two pages.
#pagebreak()
--- pagebreak-around-set-page ---
// Pagebreak, empty with styles and then pagebreak
// Should result in one auto-sized page and two conifer-colored 2cm wide pages.
#pagebreak()
#set page(width: 2cm, fill: c... | |
https://github.com/yhtq/Notes | https://raw.githubusercontent.com/yhtq/Notes/main/经济学原理/hw/hw11.typ | typst | #import "../../template.typ": *
#show: note.with(
title: "作业8",
author: "YHTQ ",
date: none,
logo: none,
withOutlined: false,
withTitle: true
)
=
+
总收入 $R = p q = q(a - b q) $\
边际收入 $M R = der(R, q) = a - b q - b q = a - 2 b q $
+
垄断时应有边际收入等于边际成本,也即:
$
a - 2 b q = c\
q_0 = (a ... | |
https://github.com/ParaN3xus/numblex | https://raw.githubusercontent.com/ParaN3xus/numblex/main/lib/parser.typ | typst | MIT License | #import "model.typ": ord, match_ord, ord_mod, const, match_const
/// -> (condition, element)
#let parse_case(s) = {
assert(type(s) == str)
let cond = (..args) => true
if ":" in s {
let (_s, cond_str) = s.split(":")
s = _s
cond = (..args) => eval(
cond_str,
mode: "code",
scope: (
... |
https://github.com/kajiLabTeam/ipsj-national-convention-typst-template | https://raw.githubusercontent.com/kajiLabTeam/ipsj-national-convention-typst-template/main/template/template.typ | typst | #import "head.typ": header_title
#import "functinos.typ": spacer
#let template(
title: (),
names: (),
affiliations: (),
paper-size: "a4",
fonts: (
sans-ja: "Noto Sans JP",
serif-ja: "Noto Serif JP",
),
ref-path: "",
body,
) = {
// ドキュメントの設定
set document(
title: title.join(""),
autho... | |
https://github.com/taooceros/CV | https://raw.githubusercontent.com/taooceros/CV/main/modules_en/education.typ | typst | // Imports
#import "@preview/brilliant-cv:2.0.2": cvSection, cvEntry, hBar
#let metadata = toml("../metadata.toml")
#let cvSection = cvSection.with(metadata: metadata)
#let cvEntry = cvEntry.with(metadata: metadata)
#cvSection("Education")
#cvEntry(
title: [*_B.S._* in Computer Science (Honors), Math and Data Scie... | |
https://github.com/taylorh140/typst-pintora | https://raw.githubusercontent.com/taylorh140/typst-pintora/main/package/lib.typ | typst | #import "./pintorita.typ": render, render-svg
| |
https://github.com/shiki-01/typst | https://raw.githubusercontent.com/shiki-01/typst/main/lib/component/comment.typ | typst | #let comment(title, type, body) = {
let color
let acsent
let icon
let content
let text_color
if type == "info" {color = "#ccf1ff"; text_color = "#31708f"; acsent = "#54a2df"; icon = "../image/info.svg"}
if type == "important" {color = "#ffdbdb"; text_color = "#a94442"; acsent = "#ff4d4d"; icon = "../image... | |
https://github.com/hei-templates/hevs-typsttemplate-thesis | https://raw.githubusercontent.com/hei-templates/hevs-typsttemplate-thesis/main/00-templates/boxes.typ | typst | MIT License | //
// Description: Creating nice looking information boxes with different logos
// Author : <NAME>
//
#import "constants.typ": *
#let iconbox(
width: 100%,
radius: 4pt,
border: 4pt,
inset: 10pt,
outset: -10pt,
linecolor: code-border,
icon: none,
iconheight: 1cm,
body
) = {
if body != none {
... |
https://github.com/piepert/typst-custombib | https://raw.githubusercontent.com/piepert/typst-custombib/main/typst-custombib.typ | typst | #import "typst-custombib-generator.typ": *
#let ifnotnone(elem, fn-true, fn-false: k => none) = if elem != none {
fn-true(elem)
} else {
fn-false(elem)
}
#let ifhaskey(elem, key, fn-true, ..k) = if elem.at(key, default: none) != none {
fn-true(elem)
} else if k.pos().len() > 0 {
k.pos().first()(elem)
... | |
https://github.com/GartmannPit/Praxisprojekt-II | https://raw.githubusercontent.com/GartmannPit/Praxisprojekt-II/main/Praxisprojekt%20II/PVA-Templates-typst-pva-2.0/template/acronymsList.typ | typst | #let createListofAcronyms() = {
set heading(numbering: none)
par[= Abkürzungsverzeichnis] // Edit heading here to change language
set terms(tight: false, separator: none)
include "../acronyms.typ"
} | |
https://github.com/alikindsys/aula | https://raw.githubusercontent.com/alikindsys/aula/master/readme.md | markdown | # `aula` - Um sistema de tipografia para anotações escolares.
## Features
- Separação entre código compartilhado e código relacionado a uma matéria especifica.
- Geração de glossário automática
- Facilidade de criação de uma matéria nova
## Como criar uma nova matéria
*Opcional:* Crie uma nova pasta com o nome dessa... | |
https://github.com/ojas-chaturvedi/typst-templates | https://raw.githubusercontent.com/ojas-chaturvedi/typst-templates/master/resume/yml.typ | typst | MIT License | #import "template.typ": resume, header, resume_heading, edu_item, exp_item, project_item, skill_item
#let yml_personal(data) = {
header(
name: data.name,
phone: data.phone,
email: data.email,
linkedin: data.linkedin,
site: data.site
)
}
#let yml_education(data) = {
resume_heading[Education]... |
https://github.com/jgm/typst-hs | https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/compiler/if-02.typ | typst | Other | // Test else if.
// Ref: false
#let nth(n) = {
str(n)
if n == 1 { "st" }
else if n == 2 { "nd" }
else if n == 3 { "rd" }
else { "th" }
}
#test(nth(1), "1st")
#test(nth(2), "2nd")
#test(nth(3), "3rd")
#test(nth(4), "4th")
#test(nth(5), "5th")
|
https://github.com/LDemetrios/Typst4k | https://raw.githubusercontent.com/LDemetrios/Typst4k/master/src/test/resources/suite/layout/grid/styling.typ | typst | // Test grid styling options.
--- grid-fill-func ---
#set page(height: 70pt)
#set grid(fill: (x, y) => if calc.even(x + y) { rgb("aaa") })
#grid(
columns: (1fr,) * 3,
stroke: 2pt + rgb("333"),
[A], [B], [C], [], [], [D \ E \ F \ \ \ G], [H],
)
--- grid-stroke-none ---
#grid(columns: 3, stroke: none, fill: gree... | |
https://github.com/jgm/typst-hs | https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/math/style-00.typ | typst | Other | // Test italic defaults.
$a, A, delta, ϵ, diff, Delta, ϴ$
|
https://github.com/nafkhanzam/typst-common | https://raw.githubusercontent.com/nafkhanzam/typst-common/main/src/km/lib.typ | typst | #import "../common/binary.typ": *
#import "../common/gray.typ": *
#import "../common/data.typ": *
#let zstack(
alignment: top + left,
..args,
) = (
context {
let width = 0pt
let height = 0pt
for item in args.pos() {
let size = measure(item.at(0))
width = calc.max(width, size.width)
... | |
https://github.com/dssgabriel/master-thesis | https://raw.githubusercontent.com/dssgabriel/master-thesis/main/src/titlepage.typ | typst | Apache License 2.0 | #grid(
columns: (1fr, 1fr),
align(top + center)[
#image("../figures/ups_logo.svg", width: 45%)
],
align(center)[
#image("../figures/cea_logo.svg", width: 40%)
]
)
#align(
center,
text(24pt)[
Paris-Saclay University
]
)
#align(
center,
text(18pt)[
Master 2 High Performance Computing,... |
https://github.com/rabotaem-incorporated/probability-theory-notes | https://raw.githubusercontent.com/rabotaem-incorporated/probability-theory-notes/master/sections/02-general/!sec.typ | typst | = Общая теория вероятностей
#include "01-kolmogorov.typ"
#include "02-random-variables.typ"
#include "03-joint-distribution.typ"
#include "04-expected-value-and-variance.typ"
#include "05-random-sequence-convergence.typ"
#include "06-generating-functions.typ"
| |
https://github.com/gianzamboni/cancionero | https://raw.githubusercontent.com/gianzamboni/cancionero/main/theme/legacy.typ | typst | // #import "@preview/cetz:0.2.1"
//
// #let chord = single-chord.with(
// font: "Arial",
// size: 10pt,
// weight: "semibold",
// background: color.silver)
#let project(title: "", authors: (), date: none, body) = {
show par: set block(spacing: 3em)
set par(first-line-indent: 0em, leading: 1.75em)
bo... | |
https://github.com/Lslightly/TypstTemplates | https://raw.githubusercontent.com/Lslightly/TypstTemplates/main/templates/theory.typ | typst | MIT License | #import "@preview/ctheorems:1.1.2": *
#show: thmrules
#let theorem = thmbox("theorem", "Theorem", fill: rgb("#eeffee"))
#let corollary = thmplain(
"corollary",
"Corollary",
base: "theorem",
titlefmt: strong
)
#let definition = thmbox("definition", "Definition", inset: (x: 1.2em, top: 1em))
#let example = thmp... |
https://github.com/FkHiroki/ex-D2 | https://raw.githubusercontent.com/FkHiroki/ex-D2/main/sections/section3.typ | typst | MIT No Attribution | = 問3 星の明るさと距離
== (1)
見かけの等級を$m$、絶対等級を$M$、星の地球からの距離を$d$とすると、
$ m - M = 5 log_(10) d - 5 $
の関係がある。まず、こと座α星の絶対等級は、
$ M &= m + 5 - 5 log_(10) d \
&= 0 + 5 - 5 log_(10) 7.67 \
&= 0 + 5 - 5 times 0.8848 \
&= 0 + 5 - 4.424 = 0.576 $
より、$0.58$ 等級である。次にわし座α星の絶対等級は、
$ M &= m + 5 - 5 log_(10) d \
... |
https://github.com/maxgraw/bachelor | https://raw.githubusercontent.com/maxgraw/bachelor/main/apps/document/src/2-theory/webxr-hit-test.typ | typst | Das Hauptziel der Augmented Reality-Anwendung besteht in der Integration virtueller und realer Inhalte. Im @webxr-chapter wurde das WebXR Spaces Interface vorgestellt, welche das Tracking von Position und Bewegung in einer XRSession ermöglichen. Das System kann jedoch nicht bestimmen, ob sich das platzierte virtuelle O... | |
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/cuti/0.1.0/demo-and-doc/demo-and-doc.typ | typst | Apache License 2.0 | #import "../lib.typ": *
#import "@preview/sourcerer:0.2.1": code
#set par(justify: true)
= Cuti Demo & Doc
== Introduction
Cuti is a package that simulates fake bold weight for fonts by utilizing the `stroke` attribute of `text`. This package is typically used on fonts that do not have a `bold` weight, such as "Sim... |
https://github.com/floriandejonckheere/utu-thesis | https://raw.githubusercontent.com/floriandejonckheere/utu-thesis/master/thesis/figures/07-proposed-solution/architecture.typ | typst | #import "@preview/cetz:0.2.2"
#v(2em)
#set text(font: "Fira Sans", size: 9pt)
#cetz.canvas(length: 1cm, {
import cetz.draw: *
set-style(
content: (padding: .2),
stroke: black
)
rect(
(0, 0), (3.5, -1.25),
radius: 0.1,
fill: green.lighten(60%),
stroke: 1pt + green.darken(20%),
na... | |
https://github.com/jassielof/typst-templates | https://raw.githubusercontent.com/jassielof/typst-templates/main/apa7/utils/addendum.typ | typst | MIT License | #import "languages.typ": *
// for supplement: either "Appendix" or "Annex"
#let addendum(
heading-numbering: "A.1.",
supplement: "Appendix",
body,
) = context {
show heading: set heading(
supplement: get-terms(text.lang).at(supplement),
numbering: heading-numbering
)
counter(heading).update(0)
... |
https://github.com/sitandr/typst-examples-book | https://raw.githubusercontent.com/sitandr/typst-examples-book/main/src/basics/math/index.md | markdown | MIT License | # Math
Math is a special environment that has special features related to... math.
## Syntax
To start math environment, `$`. The spacing around `$` will make it either
_inline_ math (smaller, used in text) or _display_ math (used on math equations on their own).
```typ
// This is inline math
Let $a$, $b$, and $c$ be... |
https://github.com/AU-Master-Thesis/thesis | https://raw.githubusercontent.com/AU-Master-Thesis/thesis/main/sections/3-methodology/study-1/factors.typ | typst | MIT License | #import "../../../lib/mod.typ": *
#v(-0.4em)
=== Factor Graph <s.m.factor-graph>
#v(-0.4em)
This section describes how the factor graph theory is used in the developed software. Thus, detailing each factor used in the #acr("GBP") algorithm, as was also done in the original work@gbpplanner. As touched on in @s.b.factor... |
https://github.com/Carraro-Riccardo/Thesis | https://raw.githubusercontent.com/Carraro-Riccardo/Thesis/main/template/coverPage.typ | typst | #let coverPage(
body
) = {
box(width: 100%, height: 100%, stroke: 0.5pt, outset: 50pt, clip: false)[
#v(1.5em)
#align(center, image("./assets/logo.png", width: 15em))
#v(4em)
#align(center, text("UNIVERSITÀ DEGLI STUDI DI PADOVA", size: 2em, weight: "bold"))
#align(center, text(smallcaps("Dipartimento DI ... | |
https://github.com/Skimmeroni/Appunti | https://raw.githubusercontent.com/Skimmeroni/Appunti/main/README.md | markdown | Creative Commons Zero v1.0 Universal | # Appunti
Appunti su alcuni corsi della facoltá di Informatica all'_Universitá degli Studi di Milano - Bicocca_.
## Compilare da sorgente
Nelle varie cartelle sono giá presenti i file PDF precompilati, quindi basta scaricare quelli (o clonare l'intera repo).
Se si volesse comunque compilare i file sorgente, questi ... |
https://github.com/7sDream/fonts-and-layout-zhCN | https://raw.githubusercontent.com/7sDream/fonts-and-layout-zhCN/master/chapters/05-features/adobe-fea-lang.typ | typst | Other | #import "/template/template.typ": web-page-template
#import "/template/components.typ": note
#import "/lib/glossary.typ": tr
#show: web-page-template
// ## The Adobe feature language
== Adobe 特性语言
// OpenType instructions - more usually known as "rules" - are normally written in a language that doesn't exactly have... |
https://github.com/piepert/logik-tutorium-wise2024-2025 | https://raw.githubusercontent.com/piepert/logik-tutorium-wise2024-2025/main/src/packages/inference.typ | typst | Creative Commons Zero v1.0 Universal | #let normalform(..arguments) = {
let lines = ()
for argument in arguments.pos() {
if type(argument) != "array" {
return normalform(arguments.pos())
} else {
let i = 0
for sentence in argument {
if i+1 >= argument.len() {
l... |
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/showybox/1.1.0/showy.typ | typst | Apache License 2.0 | /*
* ShowyBox - A package for Typst
* <NAME> and Showybox Contributors (c) 2023
*
* Main Contributors:
* - <NAME> (<https://github.com/jneug>)
*
* showy.typ -- The package's main file containing the
* public and (more) useful functions
*
* This file is under the MIT license. For more
* information see LICENS... |
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/algorithmic/0.1.0/test.typ | typst | Apache License 2.0 | #import "algorithmic.typ": algorithm
#import "algorithmic.typ"
#algorithm({
import algorithmic: *
Cmt[blah]
})
|
https://github.com/KrisjanisP/lu-icpc-notebook | https://raw.githubusercontent.com/KrisjanisP/lu-icpc-notebook/main/notebook.typ | typst | #set text(size: 8pt,font: "New Computer Modern",)
#set page(paper: "a4",flipped: true,margin: (x:1cm,y:1cm))
#set page(header: context [
#block(inset:5pt)[
*University of Latvia*
#h(1fr)
#counter(page).display(
"1/1",
both: true,
)
]
])
#set par(justify: true)
#set document(title: "LU ICPC kladīte ;)",... | |
https://github.com/jgm/typst-hs | https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/compute/construct-10.typ | typst | Other | // Error: 6-8 expected integer, float, label, or string, found content
#str([])
|
https://github.com/jneug/typst-codetastic | https://raw.githubusercontent.com/jneug/typst-codetastic/main/README.md | markdown | MIT License | # Codetastic (v0.2.2)
**Codetastic** is a [Typst](https://github.com/typst/typst) package for drawing barcodes and 2d codes.
## Usage
For Typst 0.6.0 or later, import the package from the Typst preview repository:
```typst
#import "@preview/codetastic:0.2.2"
```
After importing the package call any of the code gen... |
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/unichar/0.1.0/ucd/block-10B80.typ | typst | Apache License 2.0 | #let data = (
("PSALTER PAHLAVI LETTER ALEPH", "Lo", 0),
("PSALTER PAHLAVI LETTER BETH", "Lo", 0),
("PSALTER PAHLAVI LETTER GIMEL", "Lo", 0),
("PSALTER PAHLAVI LETTER DALETH", "Lo", 0),
("PSALTER PAHLAVI LETTER HE", "Lo", 0),
("PSALTER PAHLAVI LETTER WAW-AYIN-RESH", "Lo", 0),
("PSALTER PAHLAVI LETTER ZAYI... |
https://github.com/skriptum/diatypst | https://raw.githubusercontent.com/skriptum/diatypst/main/lib.typ | typst | MIT License | #let layouts = (
"small": ("height": 9cm, "space": 1.4cm),
"medium": ("height": 10.5cm, "space": 1.6cm),
"large": ("height": 12cm, "space": 1.8cm),
)
#let slides(
content,
title: none,
subtitle: none,
date: none,
authors: (),
layout: "medium",
ratio: 4/3,
title-color: none,
counter: true,
foo... |
https://github.com/SillyFreak/typst-scrutinize | https://raw.githubusercontent.com/SillyFreak/typst-scrutinize/main/src/grading.typ | typst | MIT License | /// Takes an array of _flattened_ task metadata and returns the sum of their points. Tasks without points count as zero points.
///
/// - tasks (array): a flat array of task metadata dictionaries
/// - field (string): the field in the metadata over which to calculate the sum
/// -> integer, float
#let total-points(task... |
https://github.com/jgm/typst-hs | https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/compute/calc-24.typ | typst | Other | // Error: 20-21 base may not be zero, NaN, infinite, or subnormal
#calc.log(1, base: 0)
|
https://github.com/7sDream/fonts-and-layout-zhCN | https://raw.githubusercontent.com/7sDream/fonts-and-layout-zhCN/master/chapters/05-features/ligature.typ | typst | Other | #import "/template/template.typ": web-page-template
#import "/template/components.typ": note
#import "/lib/glossary.typ": tr
#show: web-page-template
// ## Basic feature coding - substitutions and ligatures
== 编写基础特性——#tr[substitution]与#tr[ligature]
// Here is the simplest complete OpenType program:
这是一个最简单但完整的Open... |
https://github.com/jomaway/typst-gentle-clues | https://raw.githubusercontent.com/jomaway/typst-gentle-clues/main/README.md | markdown | MIT License | # gentle-clues
Simple admonitions for typst. Add predefined or define your own.
Inspired from [mdbook-admonish](https://tommilligan.github.io/mdbook-admonish/).
## Overview of all predefined clues:

## Usage
For full information, see the [docs.pdf](https://gith... |
https://github.com/kotfind/hse-se-2-notes | https://raw.githubusercontent.com/kotfind/hse-se-2-notes/master/edu/seminars/2024-09-18.typ | typst | = Домашнее задание
Дедлайн:
- загрузка таблицы -- 1 октября
- загрузка эссе -- 2 октября
Книга: "<NAME>" <NAME>
Прочитать, заполнить вопросы в таблице
Эссе пишется уже после семинара
= Постановка целей, задач, образовательные результаты
Типы занятий:
- Изучение нового материала
- Совершенствование знаний, умений,... | |
https://github.com/El-Naizin/cv | https://raw.githubusercontent.com/El-Naizin/cv/main/modules_fr/education.typ | typst | Apache License 2.0 | #import "../brilliant-CV/template.typ": *
#cvSection("Formation")
#cvEntry(
title: [Master en Science des Données],
society: [Université de Californie à Los Angeles],
date: [2018 - 2020],
location: [USA],
description: list(
[Thèse : Prédiction du taux de désabonnement des clients dans l'indu... |
https://github.com/jonsch318/rules_typst | https://raw.githubusercontent.com/jonsch318/rules_typst/main/examples/simple/simple.typ | typst | Apache License 2.0 | = Test
wow this really works.
|
https://github.com/NycRat/arduino-workshop | https://raw.githubusercontent.com/NycRat/arduino-workshop/main/slides_v2/main.typ | typst | #set page(width: 1920pt, height: 1080pt, fill: rgb("#fffbfc"))
#set page(footer: context [
#set text(30pt)
#h(1fr)
#counter(page).display(
"1/1",
both: true,
)
])
/*
#let x = 2.2
#set page(width: 11in * x, height: 8.5in * x, fill: rgb("#fffbfc"))
*/
#set text(40pt, font: "IBM Plex Mono")
#[
#set al... | |
https://github.com/Shuenhoy/modern-zju-thesis | https://raw.githubusercontent.com/Shuenhoy/modern-zju-thesis/master/pages/template-individual.typ | typst | MIT License | #import "../utils/fonts.typ": 字号, 字体
#import "../utils/datetime-display.typ": datetime-display
#import "../utils/twoside.typ": twoside-pagebreak
#let template-individual(
outlined: false,
titlelevel: 2,
bodytext-settings: (size: 字号.四号),
pagetitle,
s,
) = {
context {
twoside-pagebreak
set text(font... |
https://github.com/DaAlbrecht/thesis-TEKO | https://raw.githubusercontent.com/DaAlbrecht/thesis-TEKO/main/content/Research.typ | typst | #import "@preview/tablex:0.0.5": tablex, cellx
== RabbitMQ
RabbitMQ is an open-source message broker software that is widely used for
building scalable and robust messaging systems. It provides a messaging
middleware that facilitates communication between different parts of a
distributed application. RabbitMQ is ofte... | |
https://github.com/frectonz/the-pg-book | https://raw.githubusercontent.com/frectonz/the-pg-book/main/book/168.%20talk.html.typ | typst | talk.html
Write Like You Talk
October 2015Here's a simple trick for getting more people to read what you
write: write in spoken language.Something comes over most people when they start writing. They write
in a different language than they'd use if they were talking to a
friend. The sentence structure and even the wor... | |
https://github.com/jgm/typst-hs | https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/regression/issue3.typ | typst | Other | #let alpha=(named:(a:1,b:2))
#(..alpha.named, c: 3)
|
https://github.com/0x1B05/english | https://raw.githubusercontent.com/0x1B05/english/main/cnn10/content/20240425.typ | typst | #import "../template.typ": *
#pagebreak()
= 20240425
== Start
What's up sunshine? Hope you have a thoroughly thankful Thursday. Gratitude is good for the attitude. I'm Coy Wire, this is cnn 10.
== TikTok
We kick off today's show with some news could be #strike[an] #underline[of] particular interest to a lot of us,... | |
https://github.com/jijinbei/typst_template | https://raw.githubusercontent.com/jijinbei/typst_template/main/report/main.typ | typst | #import "template.typ": *
#import "@preview/physica:0.9.0": *
#show: project.with(
title: "",
authors: (
"",
),
date: true,
titlepage: false,
) | |
https://github.com/voXrey/cours-informatique | https://raw.githubusercontent.com/voXrey/cours-informatique/main/typst/18-diviser-pour-régner.typ | typst | #import "@preview/codly:0.2.1": *
#show: codly-init.with()
#codly()
#set text(font: "Roboto Serif")
= Diviser Pour Régner <diviser-pour-régner>
== Introduction aux algorithmes <introduction-aux-algorithmes>
Ce sont des techniques classiques pour résoudre un problème donné.
Par exemple : trier une liste d’éléments. O... | |
https://github.com/galaxia4Eva/galaxia4Eva | https://raw.githubusercontent.com/galaxia4Eva/galaxia4Eva/main/typst/Zelensky%20Patronus/document.typ | typst | #set text(font:"Arsenal", size:31pt)
#set page(width:1280pt, height:720pt)
#grid(
columns: (2fr, 128pt, 128pt),
rows: (128pt, 1fr, ..),
column-gutter: (0pt, 31pt, ..),
row-gutter:31pt,
align(center+horizon)[Class of 2023],[#image("images/Zelensky.jpeg")],[#image("images/Patronus.jpeg")],
align(horizon)[Brin... | |
https://github.com/coco33920/sqs | https://raw.githubusercontent.com/coco33920/sqs/mistress/sqs.typ | typst | #set page(footer:[#link("https://agh.nwa2coco.fr","Space Queer Station") © 2023 by
#link("https://me.nwa2coco.fr","<NAME>") is licensed under
#link("https://creativecommons.org/licenses/by-nc-sa/4.0/?ref=chooser-v1","CC BY-NC-SA 4.0")],numbering: "1/1",number-align: right + top)
#v(1fr)
#set text(size:24pt)
#set align... | |
https://github.com/RandomcodeDev/FalseKing-Design | https://raw.githubusercontent.com/RandomcodeDev/FalseKing-Design/main/game/concept.typ | typst | = Concept
== Gameplay overview
There are three main parts of the gameplay: combat, exploration, and puzzles. While exploring, the player can find NPCs, points of interest, and easter eggs. Some areas will feature traps and simplistic puzzles to open doors and reveal things. During both exploration and puzzles, the pla... | |
https://github.com/DashieTM/ost-5semester | https://raw.githubusercontent.com/DashieTM/ost-5semester/main/patterns/weeks/POSA.typ | typst | == Whole-Part Pattern
<whole-part-pattern>
Moderator: <NAME>
=== Intro
<intro>
Das Whole-Part Pattern ist nicht so bekannt, wie ein Singleton- oder
Factory-Pattern. Es ist eher eine Art, wie man seine Software
organisiert, bzw. strukturiert. Es geht darum, grosse, komplexe
Software, in kleinere Subprobleme aufzuteilen,... | |
https://github.com/505000677/2060-hw5 | https://raw.githubusercontent.com/505000677/2060-hw5/main/book.typ | typst |
#import "@preview/book:0.2.4": *
#show: book
#book-meta(
title: "2060 HW5",
summary: [
#prefix-chapter("sample-page.typ")[Hello, Prof<NAME>!]
]
)
// re-export page template
#import "/templates/page.typ": project
#let book-page = project
| |
https://github.com/DashieTM/ost-5semester | https://raw.githubusercontent.com/DashieTM/ost-5semester/main/experiment/weeks/week8.typ | typst | #import "../../utils.typ": *
#section("Random Variables")
A random variable in math is just a function that maps each result a number in
the result quantity.\
In fucktarded math notation:\
#set text(16pt)
#align(center, [
$X := {text("Event1, Event2")} in RR $\
\
$X(omega) := vec(
(1, text("if") omega text("... | |
https://github.com/donabe8898/typst-slide | https://raw.githubusercontent.com/donabe8898/typst-slide/main/opc/Algorithm/01/main.typ | typst | MIT License | #import "../template.typ": *
#set text(font: "Noto Sans CJK JP",size:11pt)
#show heading: set text(font: "Noto Sans CJK JP")
#show raw: set text(font: "0xProto Nerd Font")
#show raw.where(block: true): block.with(
fill: luma(245),
inset: 10pt,
radius: 10pt
)
// 表紙とか
#show: project.with(
title: "データ構造とアルゴリズム",
... |
https://github.com/Myriad-Dreamin/typst.ts | https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/layout/align_04.typ | typst | Apache License 2.0 |
#import "/contrib/templates/std-tests/preset.typ": *
#show: test-page
//
// // Error: 8-22 cannot add two horizontal alignments
// #align(center + right, [A]) |
https://github.com/brayevalerien/Learning-Typst | https://raw.githubusercontent.com/brayevalerien/Learning-Typst/main/tutorial/03_advanced_styling/advanced_styling.typ | typst | MIT License | Lets reproduce the style from the #link("https://typst.app/docs/tutorial/advanced-styling/", "Typst tutorial").
Here are the styling requirements:
- The font should be an 11pt serif font
- The title should be in 17pt and bold
- The paper contains a single-column abstract and two-column main text
- The abstract should ... |
https://github.com/binhtran432k/ungrammar-docs | https://raw.githubusercontent.com/binhtran432k/ungrammar-docs/main/contents/evaluation/plan.typ | typst | == Evaluation Plan
=== Objective
The primary objective of this evaluation plan is to ensure that the implemented
LSP ecosystem aligns with our expectations and delivers the desired
functionality.
=== Scope
- *Local and Cloud Environments*: We will conduct thorough testing of the
ecosystem across both local develo... | |
https://github.com/Myriad-Dreamin/typst.ts | https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/bugs/grid-3_00.typ | typst | Apache License 2.0 |
#import "/contrib/templates/std-tests/preset.typ": *
#show: test-page
#set page(height: 70pt)
#v(40pt)
The following:
+ A
+ B
|
https://github.com/frectonz/the-pg-book | https://raw.githubusercontent.com/frectonz/the-pg-book/main/book/204.%20own.html.typ | typst | own.html
A Project of One's Own
June 2021A few days ago, on the way home from school, my nine year old son
told me he couldn't wait to get home to write more of the story he
was working on. This made me as happy as anything I've heard him
say — not just because he was excited about his story, but because
he'd discover... | |
https://github.com/LDemetrios/Typst4k | https://raw.githubusercontent.com/LDemetrios/Typst4k/master/src/test/resources/suite/layout/flow/orphan.typ | typst | // Test that lines and headings doesn't become orphan.
--- flow-heading-no-orphan ---
#set page(height: 100pt)
#lines(4)
= Introduction
A
--- flow-par-no-orphan-and-widow-lines ---
#set page(width: 60pt, height: 140pt)
#set text(weight: 700)
// Fits fully onto the first page.
#set text(blue)
#lines(8)
// The first... | |
https://github.com/totikom/slides | https://raw.githubusercontent.com/totikom/slides/main/README.md | markdown | Creative Commons Attribution Share Alike 4.0 International | # Presentation slides monorepo
In this repository I store presentations for my talks.
Each directory is a separate presentation, that can be build by [typst](https://github.com/typst/typst) via `make`:
```bash
# build
make compile
# or just
make
# watch
make watch
# delete build artifacts
make clean
```
## [Что та... |
https://github.com/noahjutz/AD | https://raw.githubusercontent.com/noahjutz/AD/main/components/code.typ | typst | #let code(code, comments) = {
show table.cell.where(x: 0): set text(font: "Noto Sans Mono")
let lines = code.split("\n")
let i = 0
let j = 0
while i < lines.len() and j < comments.len() {
let (start, end, _) = comments.at(j)
if i < start {
comments.insert(j, (i, s - 1, ""))
}
i = end+1
... | |
https://github.com/polarkac/MTG-Stories | https://raw.githubusercontent.com/polarkac/MTG-Stories/master/stories/009%20-%20Born%20of%20the%20Gods/007_The%20Hero%20of%20Iroas.typ | typst | #import "@local/mtgstory:0.2.0": conf
#show: doc => conf(
"The Hero of Iroas",
set_name: "Born of the Gods",
story_date: datetime(day: 05, month: 03, year: 2014),
author: "<NAME>",
doc
)
In fairness, the giant had just been awakened. Still, not everyone would be able to bring down a brute twice the... | |
https://github.com/MrToWy/Bachelorarbeit | https://raw.githubusercontent.com/MrToWy/Bachelorarbeit/master/Code/appendStructureItems.typ | typst |
#import("../Template/customFunctions.typ"): *
#codly(
highlights:(
(line:6, fill:green, label: <appendStructureItemsTakeTwoColumns>),
(line:4, start:26, end:36, label: <getValueCall>)
)
)
```ts
private async appendStructureItems(items: any[], entity: any, languageAbbreviation: string): Promise<string> {
let l... | |
https://github.com/typst-community/glossarium | https://raw.githubusercontent.com/typst-community/glossarium/master/CHANGELOG.md | markdown | MIT License | # Changelog
## Unreleased
## 0.4.2
> [!TIP]
> For Typst v0.12.0 and later
> A new function is introduced `register-glossary`.
> Recommended usage is the following:
> ```diff
> #import "@preview/glossarium:0.4.0": make-glossary, register-glossary, print-glossary, gls, glspl
> #show: make-glossary
> + #let entry-lis... |
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/georges-yetyp/0.2.0/lib.typ | typst | Apache License 2.0 | #let trads = (
fr: (
summary: [Résumé],
student: [Étudiant⋅e],
year: [Année d'étude dans la spécialité],
year-value: year => [#year#super[ème] année],
company: [Entreprise],
address: [Adresse],
responsable: [Responsable administratif⋅ve],
tuteur: [Tuteur⋅ice de stage],
référent: [E... |
https://github.com/Lucas-Wye/tech-note | https://raw.githubusercontent.com/Lucas-Wye/tech-note/main/src/Kali.typ | typst | = Kali
#label("kali")
- Kali Linux是基于Debian的Linux发行版, 设计用于数字取证操作系统。由Offensive Security Ltd维护和资助。最先由Offensive Security的<NAME>和<NAME>通过重写BackTrack来完成,BackTrack是他们之前写的用于取证的Linux发行版。
- Kali Linux预装了许多渗透测试软件,包括nmap 、Wireshark 、John the Ripper,以及Aircrack-ng;用户可通过硬盘、live CD或live USB运行Kali Linux。Kali Linux既有32位和64位的镜像。可用于x86 指... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.