repo stringlengths 26 115 | file stringlengths 54 212 | language stringclasses 2
values | license stringclasses 16
values | content stringlengths 19 1.07M |
|---|---|---|---|---|
https://github.com/saffronner/15122-notes | https://raw.githubusercontent.com/saffronner/15122-notes/main/main.typ | typst | // START PREAMBLE ///////////////////////////////////////////////////
#import "@preview/fletcher:0.5.0" as fletcher: diagram, node, edge
#set page(
numbering: "1 / 1",
paper: "us-letter"
)
#show raw.where(block: true): it => {
v(-0.6em)
it
}
// END PREAMBLE ///////////////////////////////////////////////////... | |
https://github.com/FrightenedFoxCN/typst-langpack | https://raw.githubusercontent.com/FrightenedFoxCN/typst-langpack/main/bilingural.typ | typst | #let find-paragraph(body) = {
let res = ()
let s = ""
for i in body.children {
if i.has("text") {
s += i.text
}
if i == parbreak() {
if (s != "") {
res.push(s)
}
s = ""
}
}
res.push(s)
return res
}... | |
https://github.com/OverflowCat/typecharts | https://raw.githubusercontent.com/OverflowCat/typecharts/neko/example.typ | typst | #import "lib.typ": render, evalRender
#import "themes.typ": vintageTheme, romaTheme
#render((
width: 390,
height: 280,
), (
xAxis: (
type: "category",
boundaryGap: false,
),
yAxis: (
type: "value"
),
series: (
data: (114, 514, 191, 98, 10),
type: "line",
areaStyle: ()
)
), theme... | |
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/scholarly-tauthesis/0.4.1/template/code/README.md | markdown | Apache License 2.0 | # code/
This is where you should add any code files you want to display in your thesis.
You can then include the code into your thesis with a combination of the
[`read`][read] and [`raw`][raw] functions:
```typst
#let code = read("relative/path/to/code/filename.jl")
#raw(code, lang:"julia")
```
If you place the `raw` ... |
https://github.com/polarkac/MTG-Stories | https://raw.githubusercontent.com/polarkac/MTG-Stories/master/stories/050%20-%20Phyrexia%3A%20All%20Will%20Be%20One/001_Cinders.typ | typst | #import "@local/mtgstory:0.2.0": conf
#show: doc => conf(
"Cinders",
set_name: "Phyrexia: All Will Be One",
story_date: datetime(day: 12, month: 01, year: 2023),
author: "<NAME>",
doc
)
Neyali looked over her resistance cell and took inventory of what she saw. Mentally, she noted whose shields were... | |
https://github.com/jgm/typst-hs | https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/layout/grid-5-00.typ | typst | Other | // Test that trailing linebreak doesn't overflow the region.
#set page(height: 2cm)
#grid[
Hello \
Hello \
Hello \
World
]
|
https://github.com/Wh4rp/Presentacion-Typst | https://raw.githubusercontent.com/Wh4rp/Presentacion-Typst/master/ejemplos/8_modulo-fabuloso.typ | typst | #let faboloso(term, color: blue) = {
text(color, box[||| #term |||])
} | |
https://github.com/Myriad-Dreamin/tinymist | https://raw.githubusercontent.com/Myriad-Dreamin/tinymist/main/crates/tinymist-query/src/fixtures/def_use/base2.typ | typst | Apache License 2.0 | #import "base.typ": *
#let y = 2; |
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/fh-joanneum-iit-thesis/1.2.2/template/chapters/2-intro.typ | typst | Apache License 2.0 | #import "global.typ": *
= Introduction
#v(1em)
#quote(
[Privacy matters; privacy is what allows us to determine who we are and who we
want to be. I don't want to live in a world where there's no privacy, and
therefore no room for intellectual exploration and creativity.], [<NAME>],
)
#v(1em)
#lorem(25)
#to... |
https://github.com/levinion/typst-dlut-templates | https://raw.githubusercontent.com/levinion/typst-dlut-templates/main/examples/thesis/thesis.typ | typst | MIT License | #import "../../templates/thesis/main.typ":thesis,three_line_table,equa,bold
#show: thesis.with(
faculty: lorem(3),
major: lorem(3),
name: lorem(3),
id: lorem(3),
sup: lorem(3),
rev: lorem(3),
date: lorem(3),
chinese_abstract: [
“摘要”是摘要部分的标题,不可省略。
标题“摘要”选用模板中的样式所定义的“标题1”,再居中;或者手动设置成字体:黑体,居中,字号:... |
https://github.com/nafkhanzam/typst-common | https://raw.githubusercontent.com/nafkhanzam/typst-common/main/src/common/kode.typ | typst | #import "@preview/pinit:0.2.0": *
#import "@preview/showybox:2.0.1": showybox
#import "style.typ": phantom
#let kode-default-filename = state("kode-default-filename", hide[a])
#let kode(
filename: context kode-default-filename.get(),
font-size: .7em,
width: 35em,
o: none,
escape-mode: "comment",
status: "... | |
https://github.com/lyzynec/orr-go-brr | https://raw.githubusercontent.com/lyzynec/orr-go-brr/main/lib.typ | typst | #let project(
title: "",
author: "",
body) = {
set document(author: author, title: title)
set text(font: "Linux Libertine", lang: "en")
set page(numbering: "1")
set heading(numbering: "1.A.1")
show heading.where(level: 1): it =>[
#block(it.body)
]
show heading.where(l... | |
https://github.com/hongjr03/shiroa-page | https://raw.githubusercontent.com/hongjr03/shiroa-page/main/DSA/chapters/5数组和广义表.typ | typst |
#import "../template.typ": *
#import "@preview/pinit:0.1.4": *
#import "@preview/fletcher:0.5.0" as fletcher: diagram, node, edge
#import "/book.typ": book-page
#show: book-page.with(title: "数组和广义表 | DSA")
= 数组和广义表
<数组和广义表>
== 数组
#note_block[
*行序为主序*: 二维数组$A$中任一元素 $a_(i,j)$ 的存储位置
$ "LOC"(i,j) = #pin(1)"LOC"(... | |
https://github.com/alerque/polytype | https://raw.githubusercontent.com/alerque/polytype/master/content/page-geometry.md | markdown | +++
title = "Page Geometry 101"
description = "Pick a paper and some margins"
extra.typesetters = [ "sile", "typst", "xelatex", "groff", "pagedjs" ]
extra.typesetter_args = { groff = "-P-pA7" }
+++
An A7 page with 1cm margins and 1cm paragraph indentation.
| |
https://github.com/peng1999/typst-pyrunner | https://raw.githubusercontent.com/peng1999/typst-pyrunner/main/README.md | markdown | MIT License | # Typst Python Runner Plugin
Run python code in [typst](https://typst.app) using [RustPython](https://github.com/RustPython/RustPython).
````typst
#import "@preview/pyrunner:0.2.0" as py
#let compiled = py.compile(
```python
def find_emails(string):
import re
return re.findall(r"\b[a-zA-Z0-9._%+-]+@[a-zA-Z0-... |
https://github.com/Myriad-Dreamin/tinymist | https://raw.githubusercontent.com/Myriad-Dreamin/tinymist/main/crates/tinymist-query/src/fixtures/references/redefine.typ | typst | Apache License 2.0 | #let /* ident after */ x = 1;
#let y = {
x + x;
}
#let f(y) = x + y;
#let x = x;
#let f = x;
|
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/cetz/0.2.0/src/intersection.typ | typst | Apache License 2.0 | #import "vector.typ"
#import "util.typ"
/// Check for line-line intersection and return point or none
///
/// - a (vector): Line 1 point 1
/// - b (vector): Line 1 point 2
/// - c (vector): Line 2 point 1
/// - d (vector): Line 2 point 2
/// - ray (bool): treat both lines as infinite
/// -> (vector,none)
#let line-lin... |
https://github.com/polarkac/MTG-Stories | https://raw.githubusercontent.com/polarkac/MTG-Stories/master/stories/024%20-%20Shadows%20over%20Innistrad/007_Promises%20Old%20and%20New.typ | typst | #import "@local/mtgstory:0.2.0": conf
#show: doc => conf(
"Promises Old and New",
set_name: "Shadows Over Innistrad",
story_date: datetime(day: 13, month: 04, year: 2016),
author: "<NAME>",
doc
)
#emph[When Jace went to Markov Manor, he was hoping to find the vampire Planeswalker Sorin. What he fou... | |
https://github.com/HiiGHoVuTi/requin | https://raw.githubusercontent.com/HiiGHoVuTi/requin/main/graph/col_arr.typ | typst | #import "../lib.typ" : *
#show heading: heading_fct
Soit $G = (V,E)$ un graphe, on dit que $x : E --> {1,2,...,k}$ est une _$k$-coloration des aretes_ si pour tout $ (x,y),(y,z) in E$, on a $c(x,y) != c(y,z)$. On note $Delta(G) = max_(v in V) deg v$
#question(0)[
Donner un graphe à plus de 3 sommets tel que $chi'(G... | |
https://github.com/Kasci/LiturgicalBooks | https://raw.githubusercontent.com/Kasci/LiturgicalBooks/master/SK/zalmy/Z016.typ | typst | Vypočuj, Pane, moju spravodlivú žiadosť, \* všimni si moju prosbu pokornú.
Nakloň sluch k mojej modlitbe, \* čo plynie z perí úprimných.
Nech z tvojej tváre vyjde rozsudok o mne; \* tvoje oči vidia, čo je správne.
Skúmaj moje srdce i v noci ma navštív, \* skúšaj ma ohňom a nenájdeš vo mne neprávosť.
Moje ústa nehre... | |
https://github.com/rabotaem-incorporated/calculus-notes-2course | https://raw.githubusercontent.com/rabotaem-incorporated/calculus-notes-2course/master/sections/02-measure-theory/03-measure-cont.typ | typst | #import "../../utils/core.typ": *
== Продолжение меры
#def(label: "def-submeasure")[
$nu: 2^X --> [0; +oo]$ --- _субмера_, если:
1. $nu nothing = 0$
2. Если $A subset B$, то $nu A <= nu B$ (монотонность).
3. $nu(Union_(n=1)^oo A_n) <= sum_(n=1)^oo nu A_n$ (счетная полуаддитивность).
]
#def(label: "de... | |
https://github.com/catg-umag/inach-workshop-2024 | https://raw.githubusercontent.com/catg-umag/inach-workshop-2024/main/document/catgconf.typ | typst | #import "@preview/octique:0.1.0": *
#let catg-colors = (
red: rgb("ee273f"),
blue: rgb("1889c6"),
green: rgb("0aa55b"),
yellow: rgb("f8a216"),
)
#let conf(
title: none,
authors: (),
date: "",
doc,
) = {
set document(
title: title,
author: authors,
)
set text(font: "Lato", lang: "es", s... | |
https://github.com/8LWXpg/typst-ansi-render | https://raw.githubusercontent.com/8LWXpg/typst-ansi-render/master/ansi-render.typ | typst | MIT License | // add your theme here!
#let terminal-themes = (
// vscode terminal theme
vscode: (
black: rgb("#000000"),
red: rgb("#CD3131"),
green: rgb("#0DBC79"),
yellow: rgb("#E5E510"),
blue: rgb("#2472C8"),
magenta: rgb("#BC3FBC"),
cyan: rgb("#11A8CD"),
white: rgb("#E5E5E5"),
gray: rgb("#6... |
https://github.com/polarkac/MTG-Stories | https://raw.githubusercontent.com/polarkac/MTG-Stories/master/stories/019%20-%20Magic%20Origins/003_Jace’s Origin: Absent Minds.typ | typst | #import "@local/mtgstory:0.2.0": conf
#show: doc => conf(
"Jace’s Origin: Absent Minds",
set_name: "Magic Origins",
story_date: datetime(day: 24, month: 06, year: 2015),
author: "<NAME>",
doc
)
#grid(
columns: (1fr, 1fr),
gutter: 2em,
figure(image("003_Jace’s Origin: Absent Minds/01.png... | |
https://github.com/grnin/Zusammenfassungen | https://raw.githubusercontent.com/grnin/Zusammenfassungen/main/Bsys2/13_Meltdown.typ | typst | // Compiled with Typst 0.11.1
#import "../template_zusammenf.typ": *
#import "@preview/wrap-it:0.1.0": wrap-content
/* #show: project.with(
authors: ("<NAME>", "<NAME>"),
fach: "BSys2",
fach-long: "Betriebssysteme 2",
semester: "FS24",
tableofcontents: (enabled: true),
language: "de"
) */
= Meltdown
Meltd... | |
https://github.com/N3M0-dev/Notes | https://raw.githubusercontent.com/N3M0-dev/Notes/main/CS/Digit_Logic/Note_DDaCA/Ch_2/ch2.typ | typst | #import "@local/note_template:0.0.1": *
#import "@local/tbl:0.0.4"
#show: tbl.template.with(tab: "|")
#set par(justify: true)
#set outline(indent: auto)
#set page(numbering: "1", number-align: center)
#set heading(numbering: "1.1")
#frontmatter(
title: "Chapter 2: Combinational Logic Design",
subtitle: "Note of Di... | |
https://github.com/frectonz/the-pg-book | https://raw.githubusercontent.com/frectonz/the-pg-book/main/book/045.%20opensource.html.typ | typst | opensource.html
What Business Can Learn from Open Source
August 2005(This essay is derived from a talk at Oscon 2005.)Lately companies have been paying more attention to open source.
Ten years ago there seemed a real danger Microsoft would extend its
monopoly to servers. It seems safe to say now that open source has
... | |
https://github.com/polarkac/MTG-Stories | https://raw.githubusercontent.com/polarkac/MTG-Stories/master/stories/031%20-%20Hour%20of%20Devastation/002_Feast.typ | typst | #import "@local/mtgstory:0.2.0": conf
#show: doc => conf(
"Feast",
set_name: "Hour of Devastation",
story_date: datetime(day: 14, month: 06, year: 2017),
author: "<NAME>",
doc
)
#emph["And so the Hour of Revelation broke upon the land, and the promised time arrived when all questions would be answe... | |
https://github.com/typst-doc-cn/tutorial | https://raw.githubusercontent.com/typst-doc-cn/tutorial/main/typ/embedded-typst/lib.typ | typst | Apache License 2.0 |
#let typst = plugin("/assets/artifacts/embedded_typst.wasm")
#let separator = "\n\n\n\n\n\n\n\n"
#let allocate-fonts(data) = (kind: "font", hash: none, data: data)
#let create-font-ref(data) = {
let data = read(data, encoding: none)
let fingerprint = typst.allocate_data(bytes("font"), data)
let data = str(typ... |
https://github.com/Myriad-Dreamin/typst.ts | https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/math/matrix-alignment_01.typ | typst | Apache License 2.0 |
#import "/contrib/templates/std-tests/preset.typ": *
#show: test-page
// Test alternating explicit alignment in a matrix.
$ mat(
"a" & "a a a" & "a a";
"a a" & "a a" & "a";
"a a a" & "a" & "a a a";
) $
|
https://github.com/WinstonMDP/math | https://raw.githubusercontent.com/WinstonMDP/math/main/exers/5.typ | typst | #import "../cfg.typ": *
#show: cfg
$ "Prove that" a^(x_1) a^(x_2) = a^(x_1 + x_2) $
$lim_(QQ in.rev r -> x_1 + x_2) a^r = a^(x_1 + x_2)$
$all(epsilon > 0) ex(delta > 0) all(r_1\, r_2 in QQ):
0 < abs((x_1 + x_2) - (r_1 + r_2)) < delta ->
abs(a^(x_1 + x_2) - a^(r_1 + r_2)) < epsilon$
$all(epsilon > 0) ex(delta > 0) al... | |
https://github.com/El-Naizin/cv | https://raw.githubusercontent.com/El-Naizin/cv/main/modules_en/skills.typ | typst | Apache License 2.0 | #import "../brilliant-CV/template.typ": *
#set par(
leading: 100pt,
)
#cvSection("Skills")
#cvSkill(
type: [Languages],
info: [Fluent English #hBar() Fluent French #hBar() Learning German]
)
#v(7pt)
#cvSkill(
type: [Tech Stack],
info: [Rust #hBar() Python #hBar() C/C++ #hBar() Java #hBar() And More]
)... |
https://github.com/stepbrobd/cv | https://raw.githubusercontent.com/stepbrobd/cv/master/cv.typ | typst | MIT License | #let cv(address: none, contact: none, links: none, body) = [
#set document(author: contact.name, title: contact.name)
#set text(font: "New Computer Modern", lang: "en", size: 10pt)
#show link: underline
#set page(
paper: "us-letter", margin: (x: 1in, y: 1in), header: locate(
loc => if [#loc.page()] ... |
https://github.com/LuSterM1126/MySQL_COA | https://raw.githubusercontent.com/LuSterM1126/MySQL_COA/main/COA.typ | typst | // #import "@preview/fuzzy-cnoi-statement:0.1.0": *;
// #import "fuzzy-cnoi-statement/template.typ": *;
#set text(font: ("Consolas", "Microsoft YaHei"))
#set par(first-line-indent: 4em)
#let trans(cn, en) = [#strong([#cn (#emph([#en]))])]
#let indent = h(2em)
// #set heading(numbering: "1.")
#set par(first-line-indent:... | |
https://github.com/ClazyChen/Table-Tennis-Rankings | https://raw.githubusercontent.com/ClazyChen/Table-Tennis-Rankings/main/history/2018/WS-06.typ | typst |
#set text(font: ("Courier New", "NSimSun"))
#figure(
caption: "Women's Singles (1 - 32)",
table(
columns: 4,
[Ranking], [Player], [Country/Region], [Rating],
[1], [DING Ning], [CHN], [3439],
[2], [ZHU Yuling], [MAC], [3412],
[3], [LIU Shiwen], [CHN], [3347],
[4], [CHEN Meng], ... | |
https://github.com/SkytAsul/fletchart | https://raw.githubusercontent.com/SkytAsul/fletchart/main/examples/logical.typ | typst | #import "../src/lib.typ" as fletchart
#import fletchart.logical: fc-logical, fc-if, fc-process, fc-begin, fc-end, fc-io, fc-predefined-process
#fc-logical({
fc-begin[Thing]
fc-if([Condition ?], {
fc-io[Some IO]
}, {
[A random process]
```python
print("Hello world")
```
fc-if([Another ... | |
https://github.com/typst-community/mantodea | https://raw.githubusercontent.com/typst-community/mantodea/main/src/author.typ | typst | MIT License | #import "/src/_pkg.typ"
#import "/src/_valid.typ"
/// The marks used in `author` for automatic mark numbering.
///
/// Can be used to add new or alter existing marks, marks come in the form of
/// arbitrary content which is placed as a superscript.
#let marks = state("__mantodea:author:marks", (
marks: (:),
curren... |
https://github.com/tiankaima/typst-notes | https://raw.githubusercontent.com/tiankaima/typst-notes/master/333aba-optimization/main.typ | typst | #set text(
font: "Source Han Serif SC",
size: 10pt,
)
#align(
center,
text(20pt)[
2023秋 运筹学 笔记 & 作业
],
)
#align(
center,
text(12pt)[
马天开 PB21000030
],
)
#align(
center,
text(12pt)[
上次修改:#datetime.today().display("[year]-[month]-[day]")
],
)
#set math.equation(numbering: "(1)")
#outl... | |
https://github.com/UriMtzF/uaemex-typst-template | https://raw.githubusercontent.com/UriMtzF/uaemex-typst-template/main/README.md | markdown | Apache License 2.0 | # uaemex-typst-template
A simple template for UAEMéx ingeneering documents
|
https://github.com/VanillaViking/epm-task4-reflection | https://raw.githubusercontent.com/VanillaViking/epm-task4-reflection/master/task4.typ | typst | #import "@preview/wordometer:0.1.1": word-count, total-words
#align(center, text(20pt)[
*Task 4 - Post Project Evalutation*
])
#align(center, text(17pt)[
Engineering Project Management
])
#align(center, text(14pt)[
<NAME> - 14259321
])
#set heading(numbering: "1.a")
#show link: underline
#show link: set text(... | |
https://github.com/Akelio-zhang/cv-typst | https://raw.githubusercontent.com/Akelio-zhang/cv-typst/main/README.md | markdown | ## Structure
- cv.typ: Content of the CV.
- meta.typ: CV template code.
- justfile: Recipe file for building.
## Features
- [x] Support both Chinese and English in one file. Default to Chinese.
- [x] Support hiding some sections for conciseness. Default to display all.
## Generation
- Upload cv.typ and meta.typ to... | |
https://github.com/cwreed/cv | https://raw.githubusercontent.com/cwreed/cv/main/src/metadata.typ | typst | #let firstName = "Connor"
#let lastName = "Reed"
#let personalInfo = (
github: "cwreed",
email: "<EMAIL>",
linkedin: "connor-reed",
)
#let choiceColor = "clay"
#let profilePhoto = ""
#let varDisplayLogo = false
#let varEntrySocietyFirst = true | |
https://github.com/jgm/typst-hs | https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/meta/heading-04.typ | typst | Other | // Edge cases.
#set heading(numbering: "1.")
=
Not in heading
=Nope
|
https://github.com/soul667/typst | https://raw.githubusercontent.com/soul667/typst/main/PPT/MATLAB/touying/examples/university.typ | typst | #import "../lib.typ": s, pause, meanwhile, utils, states, pdfpc, themes
#let s = themes.university.register(s, aspect-ratio: "16-9")
#let s = (s.methods.info)(
self: s,
title: [Title],
subtitle: [Subtitle],
author: [Authors],
date: datetime.today(),
institution: [Institution],
)
#let (init, slides, touying... | |
https://github.com/jamesrswift/pixel-pipeline | https://raw.githubusercontent.com/jamesrswift/pixel-pipeline/main/src/package.typ | typst | The Unlicense | #let package = toml("../typst.toml").package |
https://github.com/jgm/typst-hs | https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/compiler/spread-02.typ | typst | Other | // Test doing things with arguments.
#{
let save(..args) = {
test(type(args), "arguments")
test(repr(args), "(three: true, 1, 2)")
}
save(1, 2, three: true)
}
|
https://github.com/MilanR312/ugent_typst_template | https://raw.githubusercontent.com/MilanR312/ugent_typst_template/main/template/appendices.typ | typst | MIT License | // add links to appendices here if needed
|
https://github.com/ParadiseOS/ParadiseDocs | https://raw.githubusercontent.com/ParadiseOS/ParadiseDocs/main/RCOS/Proposals/main.typ | typst | MIT License | #import "template.typ": *
#show: project.with(
title: "Paradise OS",
authors: (
"<NAME>",
"<NAME>",
"<NAME>",
),
date: $bold("Spring 2024 - Version 0.1.0")$,
)
= Overview
== Vision
ParadiseOS is an x86, 32-bit, multi-core, general-purpose operating system. ParadiseOS is designed to redefine the... |
https://github.com/polarkac/MTG-Stories | https://raw.githubusercontent.com/polarkac/MTG-Stories/master/stories/056%20-%20Outlaws%20of%20Thunder%20Junction/004_Blood%20Is%20Thicker%20than%20Venom.typ | typst | #import "@local/mtgstory:0.2.0": conf
#show: doc => conf(
"Blood Is Thicker than Venom",
set_name: "Outlaws of Thunder Junction",
story_date: datetime(day: 14, month: 03, year: 2024),
author: "<NAME>",
doc
)
It's dark, the bedroom overlooking Saddlebrush lit by candlelight and the glow of the moon,... | |
https://github.com/alikindsys/aula | https://raw.githubusercontent.com/alikindsys/aula/master/Core/base.typ | typst | #import "packages.typ": chic-hdr, gentle-clues, gloss-awe, oxifmt, tablem, tablex
#import chic-hdr: *
#import gentle-clues: *
#import tablem: tablem
#import tablex: tablex, hlinex
#import gloss-awe: *
#let aula(
materia: [],
glossary: (),
doc
) = {
set heading(numbering: "1.")
show ref: it => {
set text(blu... | |
https://github.com/Myriad-Dreamin/typst.ts | https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/docs/cookery/guide/all-in-one-node.typ | typst | Apache License 2.0 | #import "/docs/cookery/book.typ": *
#show: book-page.with(title: "All-in-one Library for Node.js")
#include "claim.typ"
The compiler and renderer are integrated into a same node library for simpler and cleaner APIs, since there is no urgent need to tree-shake the components in node.js applications.
== Creating a Co... |
https://github.com/gabrielrovesti/UniPD-Swiss-Knife-Notes-Slides | https://raw.githubusercontent.com/gabrielrovesti/UniPD-Swiss-Knife-Notes-Slides/main/Notes/Typst/unipd-doc.typ | typst | MIT License | #let notes() = doc => {
set text(font: "Arial")
doc
}
#let unipd-doc(title: none, subtitle: none, author: none, date: none) = doc => {
let unipd-red = rgb(180, 27, 33)
set page(numbering: "1")
set list(marker: ([•], [◦], [--]))
set heading(numbering: "1.1.")
show heading.where(level: 1): it => {
set... |
https://github.com/tomeichlersmith/zen-zine | https://raw.githubusercontent.com/tomeichlersmith/zen-zine/main/template/main.typ | typst | MIT License | #import "@preview/zen-zine:0.1.0": zine
#set document(author: "Tom", title: "Zen Zine Example")
#set text(font: "Linux Libertine", lang: "en")
#let my_eight_pages = (
range(8).map(
number => [
#pad(2em, text(10em, align(center, str(number))))
]
)
)
// provide your content pages in order and they
//... |
https://github.com/ClazyChen/Table-Tennis-Rankings | https://raw.githubusercontent.com/ClazyChen/Table-Tennis-Rankings/main/history/2008/MS-09.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], [3283],
[2], [WANG Hao], [CHN], [3123],
[3], [MA Long], [CHN], [3095],
[4], [WANG Liqin], [CHN], [3... | |
https://github.com/SillyFreak/typst-stack-pointer | https://raw.githubusercontent.com/SillyFreak/typst-stack-pointer/main/README.md | markdown | MIT License | # Stack Pointer
Stack Pointer is a library for visualizing the execution of (imperative) computer programs, particularly in terms of effects on the call stack: stack frames and local variables therein.
Stack Pointer lets you represent an example program (e.g. a C or Java program) using typst code with minimal hassle,... |
https://github.com/Zuttergutao/Typstdocs-Zh-CN- | https://raw.githubusercontent.com/Zuttergutao/Typstdocs-Zh-CN-/main/Classified/Abstract.typ | typst | // 前言
#[
#set page(header:none,numbering:none)
#set align(center)
#text(weight:700,size:28pt)[前言]
#set align(left)
此文档是我在#link("https://typst.app/")[学习Typst时],翻译官方manual时的一些记录。目前,全文已经翻译完了,但是请时刻关注翻译的版本与官网的版本。因为有一定的翻译滞后性以及官网更新的频繁,所以可能出现有些功能不能使用。之后的工作就是好好优化一下页面的排版。#parbreak()
粗略地制作了文档的封面,该... | |
https://github.com/duskmoon314/THU_AMA | https://raw.githubusercontent.com/duskmoon314/THU_AMA/main/README.md | markdown | Creative Commons Attribution 4.0 International | # THU_AMA: 应用近世代数笔记
本仓库是我于清华大学应用近世代数课上记录的笔记的简单整理,以 CC-BY 4.0 协议开放。
## 背景
我于 2023 年春季学期在「应用近世代数」课上使用 LaTeX 记录了约 2500 行的笔记,主要包括课上所讲的定理、证明、例题等内容。
2024 年春季,应同学邀请,我将笔记转换为 [Typst](https://typst.app) 格式并基于 [`typst-book`](https://github.com/Myriad-Dreamin/typst-book) 生成 web 页面以供阅读。
笔记内容依赖 Typst 的 web app 进行转换,可能存在大量的细节问题,欢... |
https://github.com/JeyRunner/tuda-typst-templates | https://raw.githubusercontent.com/JeyRunner/tuda-typst-templates/main/templates/tudapub/tudapub.typ | typst | MIT License | #import "tudacolors.typ": tuda_colors
#import "common/outline.typ": *
#import "common/props.typ": *
#import "common/tudapub_title_page.typ": *
#import "common/thesis_statement_pursuant.typ": *
#import "util.typ": *
#import "@preview/i-figured:0.2.3"
// This function gets your whole document as its `body` and format... |
https://github.com/Quaternijkon/notebook | https://raw.githubusercontent.com/Quaternijkon/notebook/main/content/数据结构与算法/.chapter-算法/动态规划/买卖股票的最佳时机 II.typ | typst | #import "../../../../lib.typ":*
=== #Title(
title: [买卖股票的最佳时机 II],
reflink: "https://leetcode.cn/problems/best-time-to-buy-and-sell-stock-ii/description/",
level: 2
)<买卖股票的最佳时机II>
#note(
title: [
买卖股票的最佳时机 II
],
description: [
给你一个整数数组 `prices`,其中 `prices[i]` 表示某支股票第 `i` 天的价格。
在每一天,你可以决定是否购买和/或出售股票。你在任何... | |
https://github.com/QuadnucYard/crossregex-typ | https://raw.githubusercontent.com/QuadnucYard/crossregex-typ/main/examples/standard-filled.typ | typst | MIT License | #import "../src/lib.typ": crossregex
#crossregex(
7,
constraints: (
`.*H.*H.*`,
`(DI|NS|TH|OM)*`,
`F.*[AO].*[AO].*`,
`(O|RHH|MM)*`,
`.*`,
`C*MC(CCC|MM)*`,
`[^C]*[^R]*III.*`,
`(...?)\1*`,
`([^X]|XCC)*`,
`(RR|HHH)*.?`,
`N.*X.X.X.*E`,
`R*D*M*`,
`.(C|HH)*`,
`.*G.... |
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/bone-resume/0.1.0/template/main.typ | typst | Apache License 2.0 | #import emoji: star
#import "@preview/bone-resume:0.1.0": resume-init, resume-section
#show: resume-init.with(
author: "张三",
footer: [Powered by #link(
"https://github.com/typst/packages/tree/main/packages/preview/bone-resume",
)[BoneResume]],
)
#stack(dir: ltr, spacing: 1fr, text(24pt)[*张三*], stack(
s... |
https://github.com/8LWXpg/typst-ansi-render | https://raw.githubusercontent.com/8LWXpg/typst-ansi-render/master/README.md | markdown | MIT License | # ANSI Escape Sequence Renderer
<a href="https://github.com/8LWXpg/typst-ansi-render/tags" style="text-decoration: none;">
<img alt="GitHub manifest version (path)" src="https://img.shields.io/github/v/tag/8LWXpg/typst-ansi-render">
</a>
<a href="https://github.com/8LWXpg/typst-ansi-render" style="text-decorati... |
https://github.com/liuguangxi/fractusist | https://raw.githubusercontent.com/liuguangxi/fractusist/main/tests/test-peano-curve.typ | typst | MIT License | #set document(date: none)
#import "/src/lib.typ": *
#set page(margin: 1cm)
= n = 1
#align(center)[
#peano-curve(1, step-size: 40)
]
= n = 2
#align(center)[
#peano-curve(2, step-size: 10, stroke-style: blue + 4pt)
]
= n = 3
#align(center)[
#peano-curve(4, step-size: 5, stroke-style... |
https://github.com/HEIGVD-Experience/docs | https://raw.githubusercontent.com/HEIGVD-Experience/docs/main/S4/ARO/docs/TE/TE1.typ | typst | #import "/_settings/typst/template-te.typ": *
#show: resume.with(
"Résumé ARO",
"<NAME>",
cols: 2
)
== Taille mot mémoire
La taille d'un mot mémoire est forcément un multiple de $8$. C'est pourquoi nous pouvons appliquer le tableau suivant :
#image("/_src/img/docs/image.png")
== Gestion des adresses
En fonctio... | |
https://github.com/hzkonor/bubble-template | https://raw.githubusercontent.com/hzkonor/bubble-template/main/template.typ | typst | // main project
#let bubble(
title: "",
subtitle: none,
author: "",
affiliation: none,
year: none,
class: none,
other: none,
date: datetime.today().display(),
logo: none,
main-color: "E94845",
alpha: 60%,
color-words: (),
body,
) = {
set document(author: author, title: title)
// Save head... | |
https://github.com/gongke6642/tuling | https://raw.githubusercontent.com/gongke6642/tuling/main/布局/规模/scale.typ | typst | #image("image.png");
#image("image2.png");
#image("image3.png"); | |
https://github.com/Ombrelin/adv-java | https://raw.githubusercontent.com/Ombrelin/adv-java/master/Slides/6-prog-reseau.typ | typst | #import "@preview/polylux:0.3.1": *
#import "@preview/sourcerer:0.2.1": code
#import themes.clean: *
#show: clean-theme.with(
logo: image("images/efrei.jpg"),
footer: [<NAME>, EFREI Paris],
short-title: [EFREI LSI L3 ALSI62-CTP : Java Avancé],
color: rgb("#EB6237")
)
#title-slide(
title: [Java Avancé],
su... | |
https://github.com/jverzani/CalculusWithJuliaNotes.jl | https://raw.githubusercontent.com/jverzani/CalculusWithJuliaNotes.jl/main/quarto/test.typ | typst | MIT License | // Some definitions presupposed by pandoc's typst output.
#let blockquote(body) = [
#set text( size: 0.92em )
#block(inset: (left: 1.5em, top: 0.2em, bottom: 0.2em))[#body]
]
#let horizontalrule = [
#line(start: (25%,0%), end: (75%,0%))
]
#let endnote(num, contents) = [
#stack(dir: ltr, spacing: 3pt, super[#n... |
https://github.com/jonathan-iksjssen/jx-style | https://raw.githubusercontent.com/jonathan-iksjssen/jx-style/main/0.1.0/debug.typ | typst | #import "@jx/jx-style:0.1.0": *
#show: docu.with(debug:true,
colsc: "red",
) | |
https://github.com/Daillusorisch/HYSeminarAssignment | https://raw.githubusercontent.com/Daillusorisch/HYSeminarAssignment/main/template/template.typ | typst | #import "utils/style.typ": *
#import "utils/indent.typ": *
#import "components/doc.typ": doc
#import "components/cover.typ": cover
#import "components/declaration.typ": declaration
#import "components/front-matter.typ": front-matter
#import "components/abstract-zh.typ": abstract-zh
#import "components/abstract-en.typ"... | |
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/unichar/0.1.0/ucd/block-1E100.typ | typst | Apache License 2.0 | #let data = (
("NYIAKENG PUACHUE HMONG LETTER MA", "Lo", 0),
("NYIAKENG PUACHUE HMONG LETTER TSA", "Lo", 0),
("NYIAKENG PUACHUE HMONG LETTER NTA", "Lo", 0),
("NYIAKENG PUACHUE HMONG LETTER TA", "Lo", 0),
("NYIAKENG PUACHUE HMONG LETTER HA", "Lo", 0),
("NYIAKENG PUACHUE HMONG LETTER NA", "Lo", 0),
("NYIAKE... |
https://github.com/Myriad-Dreamin/tinymist | https://raw.githubusercontent.com/Myriad-Dreamin/tinymist/main/docs/tinymist/guide/completion.typ | typst | Apache License 2.0 | #import "mod.typ": *
#show: book-page.with(title: "Guide: Completion")
== Using LSP-Based Completion
LSP will serve completion if you enter _trigger characters_ in the editor. Currently, the trigger characters are:
+ any valid identifier character, like ```js 'a'``` or ```js 'Z'```.
+ ```js '#'```, ```js '('```, ```... |
https://github.com/mriganksagar/cv | https://raw.githubusercontent.com/mriganksagar/cv/main/modules/projects.typ | typst | Apache License 2.0 | #import "../brilliant-CV/template.typ": *
#cvSection("Projects")
#cvEntry(
title: "Torrent Downloader",
society: [Designer/Developer],
date: [2023 - Present],
description: list(
[Developed a torrent client as a functional static site, enabling torrent downloads directly through the browser without backend... |
https://github.com/MatheSchool/typst-g-exam | https://raw.githubusercontent.com/MatheSchool/typst-g-exam/develop/docs-shiroa/g-exam-doc/page2.typ | typst | MIT License | #import "mod.typ": *
#show: book-page.with(title: "Página 2")
= Página 2
== Prueba de página 1
#lorem(200)
== Prueba de página 2
#lorem(200)
*Ejemplo*:
```typ
= Página 2
== Prueba de pagina 1
#lorem(200)
== Prueba de página 2
#lorem(200)
```
|
https://github.com/SWATEngineering/Docs | https://raw.githubusercontent.com/SWATEngineering/Docs/main/src/3_PB/VerbaliInterni/VerbaleInterno_240329/content.typ | typst | MIT License | #import "meta.typ": inizio_incontro, fine_incontro, luogo_incontro
#import "functions.typ": glossary, team
#let participants = csv("participants.csv")
= Partecipanti
/ Inizio incontro: #inizio_incontro
/ Fine incontro: #fine_incontro
/ Luogo incontro: #luogo_incontro
#table(
columns: (3fr, 1fr),
[*Nome*], [*Durat... |
https://github.com/rdboyes/resume | https://raw.githubusercontent.com/rdboyes/resume/main/modules_en/certificates.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("Certificates")
#cvHonor(
date: [2022],
title: [AWS Certified Security],
issuer: [Amazon W... | |
https://github.com/pauladam94/curryst | https://raw.githubusercontent.com/pauladam94/curryst/main/examples/natural-deduction.typ | typst | MIT License | #import "../curryst.typ": rule, proof-tree
#set document(date: none)
#set page(width: auto, height: auto, margin: 0.5cm, fill: white)
#let ax = rule.with(name: [ax])
#let and-el = rule.with(name: $and_e^ell$)
#let and-er = rule.with(name: $and_e^r$)
#let impl-i = rule.with(name: $scripts(->)_i$)
#let impl-e = rule.wit... |
https://github.com/Ombrelin/adv-java | https://raw.githubusercontent.com/Ombrelin/adv-java/master/Slides/projet.typ | typst | #import "@preview/polylux:0.3.1": *
#import "@preview/sourcerer:0.2.1": code
#import themes.clean: *
#show: clean-theme.with(
logo: image("images/efrei.jpg"),
footer: [<NAME>, EFREI Paris],
short-title: [EFREI LSI L3 ALSI62-CTP : Java Avancé],
color: rgb("#EB6237")
)
#title-slide(
title: [Java Avancé],
su... | |
https://github.com/LDemetrios/Typst4k | https://raw.githubusercontent.com/LDemetrios/Typst4k/master/src/test/resources/suite/math/cancel.typ | typst | // Tests the cancel() function.
--- math-cancel-inline ---
// Inline
$a + 5 + cancel(x) + b - cancel(x)$
$c + (a dot.c cancel(b dot.c c))/(cancel(b dot.c c))$
--- math-cancel-display ---
// Display
#set page(width: auto)
$ a + b + cancel(b + c) - cancel(b) - cancel(c) - 5 + cancel(6) - cancel(6) $
$ e + (a dot.c can... | |
https://github.com/jgm/typst-hs | https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/visualize/polygon-01.typ | typst | Other | // Error: 10-17 point array must contain exactly two entries
#polygon((50pt,))
|
https://github.com/kotfind/hse-se-2-notes | https://raw.githubusercontent.com/kotfind/hse-se-2-notes/master/os/lectures/2024-09-09.typ | typst | #import "/utils/math.typ": *
#def[
#defitem[Квант времени] --- время, пока программа работает подряд (без
передачи управления другим программам)
]
Раньше клавиатура и дисплей стали независимы, потом превратились в терминалы,
которые выводили данные во время выполнения программы
Появилась возможность *отладки... | |
https://github.com/lucannez64/Notes | https://raw.githubusercontent.com/lucannez64/Notes/master/Integral.typ | typst | #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: project.with(
title: "Integral",
authors: (
"<NAME>",
),
date: "10 Août, 2024",
)
#set heading(numbering: "1.1.")
= The Integral (AntiDerivative)
<the-inte... | |
https://github.com/adelhult/typst-hs-test-packages | https://raw.githubusercontent.com/adelhult/typst-hs-test-packages/main/test/counter-examples/spread_dict.typ | typst | MIT License | #let d = (a: true, b: false)
#let nd = (: ..d)
|
https://github.com/cronokirby/paper-graphical-framework-for-cryptographic-games | https://raw.githubusercontent.com/cronokirby/paper-graphical-framework-for-cryptographic-games/main/model.typ | typst | #import "paper.typ"
#import paper: theorem, lemma, claim, definition
Hello?
== Circuits
#definition(title: "Pseudo-Category of Raw Circuits")[
The objects of $bold("RawCirc")$ are $NN$.
The morphisms $bold("RawCirc")(m, n)$ are circuits with $m$ inputs and $n$ outputs, defined
inductively, as one of:
- $mono(0), m... | |
https://github.com/francescoalemanno/gotypst | https://raw.githubusercontent.com/francescoalemanno/gotypst/main/README.md | markdown | Apache License 2.0 | # gotypst
[](https://goreportcard.com/report/github.com/francescoalemanno/gotypst)
[](https://pkg.go.dev/github.com/francescoalemanno/gotypst)
gotypst is a Go pack... |
https://github.com/frectonz/the-pg-book | https://raw.githubusercontent.com/frectonz/the-pg-book/main/book/177.%20sun.html.typ | typst | sun.html
General and Surprising
September 2017The most valuable insights are both general and surprising.
F = ma for example. But general and surprising is a hard
combination to achieve. That territory tends to be picked
clean, precisely because those insights are so valuable.Ordinarily, the best that people can do i... | |
https://github.com/Seanwanq/Typst-Course-Report-Template | https://raw.githubusercontent.com/Seanwanq/Typst-Course-Report-Template/main/template.typ | typst | #let subfigure(
body,
pos: bottom + center,
dx: 0%,
dy: 0%,
caption: "",
numbering: "(a)",
separator: "",
lbl: none,
supplement: none,
) = {
let fig = figure(
body,
caption: none,
kind: "subfigure",
supplement: none,
numbering: numbering,
outlined: false,
)
let number... | |
https://github.com/frectonz/the-pg-book | https://raw.githubusercontent.com/frectonz/the-pg-book/main/book/215.%20getideas.html.typ | typst | getideas.html
How to Get New Ideas
January 2023(Someone fed my essays into GPT to make something that could answer
questions based on them, then asked it where good ideas come from. The
answer was ok, but not what I would have said. This is what I would have said.)The way to get new ideas is to notice anomalies: what... | |
https://github.com/sses7757/sustech-graduated-thesis | https://raw.githubusercontent.com/sses7757/sustech-graduated-thesis/main/sustech-graduated-thesis/pages/acknowledgement.typ | typst | Apache License 2.0 | // 致谢页
#let acknowledgement(
// documentclass 传入参数
anonymous: false,
twoside: false,
// 其他参数
title: "致谢",
outlined: true,
body,
) = {
if (not anonymous) {
[
#heading(level: 1, numbering: none, outlined: outlined, title)
#body
]
}
} |
https://github.com/jneug/schule-typst | https://raw.githubusercontent.com/jneug/schule-typst/main/src/exercise/exercise.typ | typst | MIT License | #import "solutions.typ"
#import "grading.typ"
#import "../util/marks.typ"
#import "../util/typst.typ"
#import "../util/util.typ"
#import "../core/document.typ"
#import "../theme.typ"
// =================================
// Validation schema
// =================================
#import "../util/types.typ" as t
#let ... |
https://github.com/Myriad-Dreamin/tinymist | https://raw.githubusercontent.com/Myriad-Dreamin/tinymist/main/syntaxes/textmate/tests/unit/basic/control-flow-for-content.typ | typst | Apache License 2.0 | #for i
#for i in
#for i in range(1)
#for i in range(1) []
#for i in []
#for i in []; 1
#for i in range(1) []; 1
#for i in range(1) []1
#for i in range(1) []a
#for i in range(1) [] 1
#for i in range(1) [] a
#for i in range(1) []
#for i in range(1) []; []
#for i in range(1) [] []
1 |
https://github.com/polarkac/MTG-Stories | https://raw.githubusercontent.com/polarkac/MTG-Stories/master/stories/031%20-%20Hour%20of%20Devastation/003_Hour%20of%20Glory.typ | typst | #import "@local/mtgstory:0.2.0": conf
#show: doc => conf(
"Hour of Glory",
set_name: "Hour of Devastation",
story_date: datetime(day: 21, month: 06, year: 2017),
author: "<NAME>",
doc
)
#emph["And as the Luxa, the lifeblood of Naktamun, turned to the foul blood of the great shadow Razaketh, the Hou... | |
https://github.com/Myriad-Dreamin/tinymist | https://raw.githubusercontent.com/Myriad-Dreamin/tinymist/main/crates/tinymist-query/src/fixtures/completion/element_where.typ | typst | Apache License 2.0 | // contains: caption
#figure.where(/* range 0..1 */)
|
https://github.com/Myriad-Dreamin/typst.ts | https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/layout/transform_02.typ | typst | Apache License 2.0 |
#import "/contrib/templates/std-tests/preset.typ": *
#show: test-page
// Test setting rotation origin.
#rotate(10deg, origin: top + left,
image("/assets/files/tiger.jpg", width: 50%)
)
|
https://github.com/matchy233/typst-chi-cv-template | https://raw.githubusercontent.com/matchy233/typst-chi-cv-template/main/src/lib.typ | typst | MIT License | /*
* Package entry point
*/
#import "./chicv.typ": *
|
https://github.com/AlvaroRamirez01/Analisis_de_Algoritmos_2024-1 | https://raw.githubusercontent.com/AlvaroRamirez01/Analisis_de_Algoritmos_2024-1/master/Tarea_03_Justificacion_de_Algoritmos/main.typ | typst | #import "conf.typ": *
#import "@preview/algorithmic:0.1.0"
#import algorithmic: *
#show: doc => conf(
materia: "Análisis de Algoritmos",
tarea: "Tarea 03: Justificación de algoritmos",
profesor: (
nombre: "<NAME>",
sexo: "F",
),
ayudantes: (
"<NAME>",
"<NAME>"
),
alumnos: (
(
no... | |
https://github.com/elteammate/typst-shell-escape | https://raw.githubusercontent.com/elteammate/typst-shell-escape/main/example-ls.typ | typst | #import "shell-escape.typ": *
#raw(
exec-command("ls -la .").stdout,
block: true,
)
| |
https://github.com/dainbow/FunctionalAnalysis2 | https://raw.githubusercontent.com/dainbow/FunctionalAnalysis2/main/themes/6.typ | typst | #import "../conf.typ": *
= Компактные операторы
== Свойства компактных операторов
#definition[
Оператор $A$ называется *компактным*, если
#eq[
$forall M subset.eq E_1 "- ограниченное" => A(M) subset.eq E_2 "- предкомпакт (вполне ограниченное)"$
]
Множество компактных операторов обозначается как $cal(K)(E_1... | |
https://github.com/gongke6642/tuling | https://raw.githubusercontent.com/gongke6642/tuling/main/基础/arguments/1.typ | typst | #image("1.png", width: 25%)
=
捕获函数的参数。
=
== 论点沉没
与内置函数一样,自定义函数也可以采用可变数量的参数。您可以指定一个参数接收器,它将所有多余的参数收集为..sink。结果sink值是类型arguments。它公开了访问位置参数和命名参数的方法。
#image("2.png")
=
== 传播
与参数接收器相反,您可以使用运算符将参数、数组和字典传播到函数调用中..spread:
#image("3.png")
=
== 构造函数
构建可传播的论据。
该函数的行为类似于.let args(..sink) = sink
#image("4.png")
#image("5... | |
https://github.com/jgm/typst-hs | https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/layout/enum-align-02.typ | typst | Other | // Number align option should not be affected by the context
#set align(center)
#set enum(number-align: start)
4. c
8. d
16. e\ f
2. f\ g
32. g
64. h
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.