repo stringlengths 26 115 | file stringlengths 54 212 | language stringclasses 2
values | license stringclasses 16
values | content stringlengths 19 1.07M |
|---|---|---|---|---|
https://github.com/tingerrr/chiral-thesis-fhe | https://raw.githubusercontent.com/tingerrr/chiral-thesis-fhe/main/src/utils/token.typ | typst | #let is-boundary(value) = {
value.len() == 0 or value.starts-with(" ")
}
#let eat(value, token) = {
if value.starts-with(token) {
let rest = value.trim(at: start, repeat: false, token)
let part = value.len() - rest.len()
(value.slice(0, part), value.slice(part))
} else {
(none, value)
}
}
#let... | |
https://github.com/lyzynec/hys-or-kys | https://raw.githubusercontent.com/lyzynec/hys-or-kys/main/05/main.typ | typst | #import "../lib.typ": *
#knowledge[
#question(name: [Explain the key components of hybrid equations (also
flow--event equations, also flow--jump equations).])[]
]
#skills[
#question(name: [Find a model of a simple dynamical system in the form of
hybrid equations, that is, determine the four components... | |
https://github.com/VisualFP/docs | https://raw.githubusercontent.com/VisualFP/docs/main/SA/project_documentation/content/personal_report_jann.typ | typst | #import "../../acronyms.typ": ac
= <NAME>
Even before studying at #ac("OST"), I was interested in functional
programming. I worked on some small personal projects in F\# and looked at
foundational topics such as the lambda-calculus.
Unfortunately, I've never had the chance to use functional programming to
realize a ... | |
https://github.com/atlanswer/typst-template-ieee | https://raw.githubusercontent.com/atlanswer/typst-template-ieee/main/example.typ | typst | MIT License | #set page(paper: "us-letter", header: align(right)[
A fluid dynamic model for glacier flow
], numbering: "1")
#set par(justify: true)
#set text(font: "Linux Libertine", size: 11pt)
#let skel(len) = {
assert(type(len) == int)
set highlight(fill: silver, radius: 0.2em)
highlight(" " * 5 * len)
}
a
#skel(12).
#... |
https://github.com/Myriad-Dreamin/typst.ts | https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/math/delimited_03.typ | typst | Apache License 2.0 |
#import "/contrib/templates/std-tests/preset.typ": *
#show: test-page
// Test fence confusion.
$ |x + |y| + z/a| \
lr(|x + |y| + z/a|) $
|
https://github.com/elouan660/Portes_Ouvertes | https://raw.githubusercontent.com/elouan660/Portes_Ouvertes/main/po.typ | typst | #import "doc-template.typ": *
#Exercice("Portes Ouvertes 2023-2024", "Liste portes ouvertes 2023-2024 © 2023 by <NAME> is licensed under CC BY 4.0. To view a copy of this license, visithttp://creativecommons.org/licenses/by/4.0/", "30/10/2023")[
#show link: set text(blue)
== Préambule:
#text(size: 10pt)[
_Ce document... | |
https://github.com/francescoo22/masters-thesis | https://raw.githubusercontent.com/francescoo22/masters-thesis/main/config/thesis-config.typ | typst | #import "../config/constants.typ": chapter
#import "@preview/codly:1.0.0": *
#import "@preview/ctheorems:1.1.2": *
#let vpr-name = stack(
dir: ltr,
image("../images/viper-logo.png", width: .9em), " Viper",
)
#let kt-name = stack(
dir: ltr,
image("../images/Kotlin.svg", width: .9em), " Kotlin",
)
#let cpp-nam... | |
https://github.com/mriganksagar/cv | https://raw.githubusercontent.com/mriganksagar/cv/main/modules/skills.typ | typst | Apache License 2.0 | #import "../brilliant-CV/template.typ": *
#cvSection("Skills")
#cvSkill(
type: [Programming Languages],
info: [Scala #hBar() Java #hBar() JavaScript #hBar() TypeScript #hBar() C++ #hBar() C #hBar() Python]
)
#cvSkill(
type: [Frontend],
info: [React.js #hBar() Next.js #hBar() React Native #hBar() Redux #hBar(... |
https://github.com/MrToWy/Bachelorarbeit | https://raw.githubusercontent.com/MrToWy/Bachelorarbeit/master/Code/getModule.typ | typst | ```ts
@Public()
@Get(':id')
findOne(@Req() request: Request, @Param('id') id: string) {
const language = (request.headers as any)['language'];
return this.moduleService.findOne(+id, language);
}
``` | |
https://github.com/Myriad-Dreamin/shiroa | https://raw.githubusercontent.com/Myriad-Dreamin/shiroa/main/packages/shiroa/supports-link.typ | typst | Apache License 2.0 |
#let link2page = state("shiroa-link2page", (:))
#let encode-url-component(s) = {
let prev = false
for (idx, c) in s.codepoints().enumerate() {
if c.starts-with(regex("[a-zA-Z]")) {
if prev {
prev = false
"-"
}
c
} else {
prev = true
if idx != 0 {
"-"
... |
https://github.com/ClazyChen/Table-Tennis-Rankings | https://raw.githubusercontent.com/ClazyChen/Table-Tennis-Rankings/main/history/2006/WS-11.typ | typst |
#set text(font: ("Courier New", "NSimSun"))
#figure(
caption: "Women's Singles (1 - 32)",
table(
columns: 4,
[Ranking], [Player], [Country/Region], [Rating],
[1], [ZHANG Yining], [CHN], [2997],
[2], [GUO Yan], [CHN], [2813],
[3], [WANG Nan], [CHN], [2721],
[4], [GUO Yue], [CHN... | |
https://github.com/Otto-AA/definitely-not-tuw-thesis | https://raw.githubusercontent.com/Otto-AA/definitely-not-tuw-thesis/main/src/styles/utils/state.typ | typst | MIT No Attribution | #let is-back-matter = state("is-back-matter", false) |
https://github.com/Area-53-Robotics/53E-Notebook-Over-Under-2023-2024 | https://raw.githubusercontent.com/Area-53-Robotics/53E-Notebook-Over-Under-2023-2024/giga-notebook/entries/build-elevation/entry.typ | typst | Creative Commons Attribution Share Alike 4.0 International | #import "/packages.typ": notebookinator, codetastic
#import notebookinator: *
#import codetastic: qrcode
#import themes.radial.components: *
#show: create-body-entry.with(
title: "Build: Elevation",
type: "build",
date: datetime(year: 2023, month: 11, day: 3),
author: "<NAME>",
witness: "<NAME>",
)
#grid(
... |
https://github.com/jneug/schule-typst | https://raw.githubusercontent.com/jneug/schule-typst/main/src/subjects/cs-docs.typ | typst | MIT License | #let _ab_highlight_doku = false
#let _state-docs = state("schule.cs.docs", yaml("./cs-docs.yaml"))
#let load(data) = {
_state-docs.update(data)
}
#let get() = _state-docs.get()
#let __content(string) = {
if type(string) == "string" {
return eval("[" + string + "]")
} else {
return string
}
}
#let _... |
https://github.com/Myriad-Dreamin/typst.ts | https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/math/multiline_06.typ | typst | Apache License 2.0 |
#import "/contrib/templates/std-tests/preset.typ": *
#show: test-page
// Test no trailing line break.
$
"abc" &= c
$
No trailing line break.
|
https://github.com/ticks-tan/wtu-typst | https://raw.githubusercontent.com/ticks-tan/wtu-typst/main/README.md | markdown | # wtu-typst
武汉纺织大学本科毕业设计typst模板,专注内容,格式什么的滚一边去。
> ## typst目前处于快速发展阶段,很多API不一定稳定,如果发现bug,欢迎提 [issue](https://github.com/ticks-tan/wtu-typst/issues) 。
## 使用须知:
学校官网最近没有发布更新的论文模板,
该模板使用的是很多年前的论文格式,
如果指导老师规定了格式,请慎用该模板。
## 如何使用
使用前建议先了解什么是 typst ,可以点击[链接](https://typst.app/docs/tutorial/)查看。
1. 下载该模板zip文件(clone)或者使用 ... | |
https://github.com/vEnhance/1802 | https://raw.githubusercontent.com/vEnhance/1802/main/src/eigen.typ | typst | MIT License | #import "@local/evan:1.0.0":*
= Eigenvalues and eigenvectors
== [TEXT] The problem of finding eigenvectors
Let's define the relevant term first:
#definition[
Suppose $T$ is a matrix or linear transformation, $lambda$ a scalar,
and $bf(v)$ is a vector such that
$ T(bf(v)) = lambda bf(v); $
that is, $T$ sends... |
https://github.com/OverflowCat/BUAA-Data-and-Error-Analysis-Sp2024 | https://raw.githubusercontent.com/OverflowCat/BUAA-Data-and-Error-Analysis-Sp2024/neko/project-2/helper.typ | typst | #import "./vendor/lib.typ": round
#let hr = line(stroke: black.lighten(70%), length: 100%)
#let r0 = n => round(n, if str(n).starts-with("0.") {2} else {3})
#let r = n => round(n, 4)
#let rx = n => round(n, 5)
#let ry = n => round(n, 5)
#let rxy = n => round(n, 5)
#let c = x => calc.round(x, digits: 3)
#let c2 = x => ... | |
https://github.com/ustctug/ustc-thesis-typst | https://raw.githubusercontent.com/ustctug/ustc-thesis-typst/main/chapters/acknowledgements.typ | typst | MIT License | #block[
在研究学习期间,我有幸得到了三位老师的教导,
他们是:我的导师,中国科大XXX研究员,中科院X昆明动物所马老师以及美国犹他大学的XXX老师。
三位深厚的学术功底,严谨的工作态度和敏锐的科学洞察力使我受益良多。
衷心感谢他们多年来给予我的悉心教导和热情帮助。
感谢XXX老师在实验方面的指导以及教授的帮助。
科大的XXX同学和XXX同学参与了部分试验工作,在此深表谢意。
]
|
https://github.com/grnin/Zusammenfassungen | https://raw.githubusercontent.com/grnin/Zusammenfassungen/main/Bsys2/02_Dateisystem_API.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"
)*/
= Dateisystem API
... | |
https://github.com/jgm/typst-hs | https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/math/underover-00.typ | typst | Other | // Test braces.
$ x = underbrace(
1 + 2 + ... + 5,
underbrace("numbers", x + y)
) $
|
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/fauve-cdb/0.1.0/src/abstracts-bg.typ | typst | Apache License 2.0 | #import "@preview/cetz:0.2.2": canvas, draw
#let abstracts-bg(school-color) = canvas({
let page-w = 21
let page-h = 29.7
// TikZ very thick = 0.42mm
// top-left lines
for i in range(1, 35) {
draw.line(
(0, 4.428+i*4.128/35), (7, 6.4+i*4.128/35),
stroke: school-color.transparentize(75%) + 0.4... |
https://github.com/jneug/typst-nassi | https://raw.githubusercontent.com/jneug/typst-nassi/main/src/nassi.typ | typst | MIT License | #import "@preview/cetz:0.3.0"
#import "elements.typ"
#import "draw.typ"
#let parse(content) = {
if content == none {
return ()
}
let code = content.split("\n")
let elems = ()
let i = 0
while i < code.len() {
let line = code.at(i).trim()
if line == "" {
i += 1
continue
}
... |
https://github.com/liuguangxi/erdos | https://raw.githubusercontent.com/liuguangxi/erdos/master/Problems/typstdoc/figures/p24_2.typ | typst | #import "@preview/cetz:0.2.1"
#cetz.canvas({
import cetz.draw: *
let a = 4.5
line((0, 0), (a, 0), (a/2, a/2*calc.sqrt(3)), close: true)
line((0, a/3*calc.sqrt(3)), (a, a/3*calc.sqrt(3)), (a/2, -a/6*calc.sqrt(3)), close: true)
line((a/6, a/6*calc.sqrt(3)), (a*5/6, a/6*calc.sqrt(3)))
line((a/3, a... | |
https://github.com/schang412/typst-whalogen | https://raw.githubusercontent.com/schang412/typst-whalogen/master/lib.typ | typst | Apache License 2.0 | #import "@preview/xarrow:0.3.1": xarrow
#let _quote(t) = {
return "\"" + t + "\""
}
// reads a list of str or content, ignores content
// replaces the specified string with the content specified
#let _replace_with_content(l, replace: " ", content: []) = { // array(str|content) -> array(str|content)
let result = ... |
https://github.com/Dioprz/Notes | https://raw.githubusercontent.com/Dioprz/Notes/main/Scala/Functional_Programming_in_Scala/README.md | markdown | Aviso:
He decidido dejar de trabajar en estas notas temporalmente. La industria no está solicitando muchos desarrolladores de Scala debido a la turbulencia que tiene el ecosistema. Posiblemente lo retome cuando tenga tiempo, ya que el libro es excelente y Scala, conceptualmente, ha sido un lenguaje muy interesante de ... | |
https://github.com/rem3-1415926/Typst_Thesis_Template | https://raw.githubusercontent.com/rem3-1415926/Typst_Thesis_Template/main/sec/acknowledgement.typ | typst | MIT License |
#let acknowledgement = [
= Acknowledgement
I would like to thank
- *Bill*, for being a supreme engineer
- *Bob*, for being an amazing scientist
] |
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/lemmify/0.1.0/src/lib.typ | typst | Apache License 2.0 | #import "util.typ": *
#import "styles.typ": *
#import "translations.typ": *
// Transform theorem function into
// proof function. That is decrease
// the numbering by one.
#let use-proof-numbering(theorem-func) = {
let numb = n => numbering(theorem-func()[].numbering, n - 1)
return theorem-func.with(numbering: num... |
https://github.com/Myriad-Dreamin/typst.ts | https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/math/matrix_05.typ | typst | Apache License 2.0 |
#import "/contrib/templates/std-tests/preset.typ": *
#show: test-page
//
// // Error: 13-14 expected array, found content
// $ mat(1, 2; 3, 4, delim: "[") $, |
https://github.com/eliapasquali/typst-thesis-template | https://raw.githubusercontent.com/eliapasquali/typst-thesis-template/main/preface/copyright.typ | typst | Other | #import "../config/variables.typ" : myName, myTitle, myDegree, myTime
#set page(numbering: none)
#align(left + bottom, [
#text(myName): #text(style: "italic", myTitle), #text(myDegree), #sym.copyright #text(myTime)
]) |
https://github.com/jgm/typst-hs | https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/layout/enum-align-00.typ | typst | Other | // Alignment shouldn't affect number
#set align(horizon)
+ ABCDEF\ GHIJKL\ MNOPQR
+ INNER\ INNER\ INNER
+ BACK\ HERE
|
https://github.com/jgm/typst-hs | https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/layout/enum-04.typ | typst | Other | // In the line.
1.2 \
This is 0. \
See 0.3. \
|
https://github.com/ShapeLayer/ucpc-solutions__typst | https://raw.githubusercontent.com/ShapeLayer/ucpc-solutions__typst/main/tests/utils_problem/test.typ | typst | Other | #import "/lib/lib.typ" as ucpc
#import ucpc.presets: difficulties as lv
#ucpc.utils.problem(
id: "A",
title: "Problem A",
tags: ("implementation", "graph_theory", ),
difficulty: lv.easy,
authors: ([Author a], ),
stat-open: (
submit-count: 10
),
i18n: ucpc.i18n.en-us.problem,
[
- Magna eu temp... |
https://github.com/crd2333/crd2333.github.io | https://raw.githubusercontent.com/crd2333/crd2333.github.io/main/src/docs/note.md | markdown | ---
# title: "Markdown Style Guide"
# description: "Here is a sample of some basic Markdown syntax that can be used when writing Markdown content in Astro."
# pubDate: "Jul 01 2024"
# image: "/index.webp"
# categories:
# - tech
# tags:
# - Makrdown
# badge: Guide
---
- 很多笔记都是用 typst 写的而不是 md,由于 typst 是个比较新兴的标记语言,对... | |
https://github.com/sitandr/typst-examples-book | https://raw.githubusercontent.com/sitandr/typst-examples-book/main/src/snippets/text/individual_lang_fonts.md | markdown | MIT License | # Individual language fonts
```typ
A cat แปลว่า แมว
#show regex("\p{Thai}+"): text.with(font: "Noto Serif Thai")
A cat แปลว่า แมว
```
|
https://github.com/Akida31/anki-typst | https://raw.githubusercontent.com/Akida31/anki-typst/main/typst/doc/example2.typ | typst | #import "../src/lib.typ" as anki
#set page(width: 16cm, height: auto, margin: 1cm)
// remove until here for doc
#import anki: anki_export
#anki_export(
id: "id 29579",
tags: ("Perfect", ),
deck: "beauty",
model: "simple",
question: "Are you beautiful?",
answer: "Yes!",
)
| |
https://github.com/ammar-ahmed22/compile-typst-example | https://raw.githubusercontent.com/ammar-ahmed22/compile-typst-example/main/src/calculus.typ | typst | #set heading(numbering: "1.1.1")
= Calculus
== Derivatives
Derivatives are defined as the sensitivity to change in a functions output given a certain input. In other words, the value of the derivative at a given point in the domain of the function will be equal to the slope of tangent line at that point of the functio... | |
https://github.com/OpenCorvallis/osfc-checklists | https://raw.githubusercontent.com/OpenCorvallis/osfc-checklists/main/66083.typ | typst | Apache License 2.0 | // Copyright 2024 Oregon State Flying Club
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ... |
https://github.com/KNnut/neoplot | https://raw.githubusercontent.com/KNnut/neoplot/main/pkg/neoplot.typ | typst | BSD 3-Clause "New" or "Revised" License | #let gp = plugin("neoplot.wasm")
#let get-text(it) = {
if type(it) == str {
it
} else if type(it) == content {
if it.has("text") {
it.text
} else {
panic("Content must contain field `text`")
}
} else {
panic("Invalid type `" + type(it) + "`")
... |
https://github.com/LDemetrios/Svart | https://raw.githubusercontent.com/LDemetrios/Svart/main/logo.typ | typst | #import "@preview/cetz:0.2.2"
#let logo(back:rgb("#08053f")) = cetz.canvas({
import cetz.draw: *
content(
(0, 0),
block(
radius: 50%,
width: 10cm,
height: 10cm,
clip: true,
image("gold.png", width: 10cm, height: 10cm),
),
)
let sh = .7
let letter = {
bezier((2.... | |
https://github.com/eduardz1/Bachelor-Thesis | https://raw.githubusercontent.com/eduardz1/Bachelor-Thesis/main/utils/template.typ | typst | #let project(
title: "",
subtitle: "",
abstract: [],
keywords: [],
acknowledgments: none,
declaration-of-originality: none,
affiliation: (),
candidate: (),
supervisor: "",
cosupervisor: "",
date: none,
logo: none,
paper-size: "us-letter",
bibliography-file: none,
body,
) = {
// Set the d... | |
https://github.com/SillyFreak/typst-packages-old | https://raw.githubusercontent.com/SillyFreak/typst-packages-old/main/pre-plantuml/gallery/test.typ | typst | MIT License | // make the PDF reproducible to ease version control
#set document(date: none)
#import "../src/lib.typ": plantuml-url, plantuml-source
#import "@preview/prequery:0.1.0"
// #import "@preview/pre-plantuml:0.0.1": plantuml-url, plantuml-source
// toggle this comment or pass `--input prequery-fallback=true` to enable fal... |
https://github.com/Myriad-Dreamin/typst.ts | https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/packages/typst.ts/README.md | markdown | Apache License 2.0 | # Typst.ts
Usage:
```typescript
import { $typst } from '@myriaddreamin/typst.ts/dist/esm/contrib/snippet.mjs';
console.log(
(
await $typst.svg({
mainContent: 'Hello, typst!',
})
).length,
);
// :-> 7317
```
See [Typst.ts](https://github.com/Myriad-Dreamin/typst.ts) and documentation for details:
-... |
https://github.com/Myriad-Dreamin/typst.ts | https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/text/features_06.typ | typst | Apache License 2.0 |
#import "/contrib/templates/std-tests/preset.typ": *
#show: test-page
// Test extra number stuff.
#set text(font: "IBM Plex Serif")
0 vs. #text(slashed-zero: true)[0] \
1/2 vs. #text(fractions: true)[1/2]
|
https://github.com/yhtq/Notes | https://raw.githubusercontent.com/yhtq/Notes/main/软件分析/hw/2100012990-郭子荀-软分第六次作业.typ | typst | #import "../../template.typ": proof, note, corollary, lemma, theorem, definition, example, remark
#import "../../template.typ": *
#show: note.with(
title: "作业5",
author: "YHTQ",
date: datetime.today().display(),
logo: none,
withOutlined : false,
withTitle : false,
withHeadingNumbering: false
)
= #empty
... | |
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/modern-sysu-thesis/0.1.0/README.md | markdown | Apache License 2.0 | # 基于 Typst 的中山大学学位论文模板
[](https://gitlab.com/sysu-gitlab/thesis-template/better-thesis)
[](https:/... |
https://github.com/Myriad-Dreamin/typst.ts | https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/math/attach-p3_04.typ | typst | Apache License 2.0 |
#import "/contrib/templates/std-tests/preset.typ": *
#show: test-page
// Test default of limit attachments on relations at all sizes
#set page(width: auto)
$ a =^"def" b quad a lt.eq_"really" b quad a arrow.r.long.squiggly^"slowly" b $
$a =^"def" b quad a lt.eq_"really" b quad a arrow.r.long.squiggly^"slowly" b$
$a... |
https://github.com/Myriad-Dreamin/typst.ts | https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/layout/grid-3_01.typ | typst | Apache License 2.0 |
#import "/contrib/templates/std-tests/preset.typ": *
#show: test-page
// Test a column that starts overflowing right after another row/column did
// that.
#set page(width: 5cm, height: 2cm)
#grid(
columns: 4 * (1fr,),
row-gutter: 10pt,
column-gutter: (0pt, 10%),
align(top, image("/assets/files/rhino.png")),
... |
https://github.com/Myriad-Dreamin/typst.ts | https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/text/linebreak_01.typ | typst | Apache License 2.0 |
#import "/contrib/templates/std-tests/preset.typ": *
#show: test-page
// Test two overlong words in a row.
Supercalifragilisticexpialidocious Expialigoricmetrioxidation.
|
https://github.com/cran/tinytable | https://raw.githubusercontent.com/cran/tinytable/master/inst/tinytest/_tinysnapshot/group_tt-3level.typ | typst | #show figure: set block(breakable: true)
#figure( // start figure preamble
kind: "tinytable",
supplement: "Table", // end figure preamble
block[ // start block
#let nhead = 4;
#let nrow = 3;
#let ncol = 5;
#let style-array = (
// tinytable cell style after
)
// tinytable align-default-array before... | |
https://github.com/Myriad-Dreamin/typst.ts | https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/text/deco_05.typ | typst | Apache License 2.0 |
#import "/contrib/templates/std-tests/preset.typ": *
#show: test-page
// Test a tighter highlight.
#set highlight(top-edge: "x-height", bottom-edge: "baseline")
#highlight[ace],
#highlight[base],
#highlight[super],
#highlight[phone #sym.integral]
|
https://github.com/jgm/typst-hs | https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/compiler/repr-00.typ | typst | Other | // Literal values.
#auto \
#none (empty) \
#true \
#false
|
https://github.com/Entoryvekum/TypstTemplate | https://raw.githubusercontent.com/Entoryvekum/TypstTemplate/main/MathBasic/0.1.0/template.typ | typst | #let scr(body) = {
set text(
font: "STIX Two Math",
stylistic-set: 1
)
$cal(body)$
}
#let mbb(body) = {
$bb(#upper(body))$
}
#let ubold(body) = {
$upright(bold(body))$
}
#let boxed(body) = {
show math.equation: it => {
box(it,inset: (top: 0.5em, bottom: 0.5em))
}
... | |
https://github.com/Myriad-Dreamin/typst.ts | https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/layout/columns_04.typ | typst | Apache License 2.0 |
#import "/contrib/templates/std-tests/preset.typ": *
#show: test-page
// Test setting a column gutter and more than two columns.
#set page(height: 3.25cm, width: 7.05cm, columns: 3)
#set columns(gutter: 30pt)
#rect(width: 100%, height: 2.5cm, fill: conifer) #parbreak()
#rect(width: 100%, height: 2cm, fill: eastern) ... |
https://github.com/chamik/gympl-skripta | https://raw.githubusercontent.com/chamik/gympl-skripta/main/cj-dila/_template.typ | typst | Creative Commons Attribution Share Alike 4.0 International | #import "/helper.typ": hrule
#counter(footnote).update(0)
#block(
fill: luma(230),
inset: 8pt,
radius: 4pt,
width: 100%,
[#columns(3, gutter: 5pt)[
#heading(level: 3, "Něco") <neco>
Autor: *Někdo* \
Překlad: _Někdo_
#colbreak()
Období: *Někdy* \
Země: *Někde*
#col... |
https://github.com/Pablo-Gonzalez-Calderon/showybox-package | https://raw.githubusercontent.com/Pablo-Gonzalez-Calderon/showybox-package/main/lib/id.typ | typst | MIT License | /*
* ShowyBox - A package for Typst
* <NAME> and Showybox Contributors (c) 2023-2024
*
* lib/id.typ -- The package's file containing all the
* internal functions used to handle showybox id
*
* This file is under the MIT license. For more
* information see LICENSE on the package's main folder.
*/
#let _showy-i... |
https://github.com/RaphGL/ElectronicsFromBasics | https://raw.githubusercontent.com/RaphGL/ElectronicsFromBasics/main/DC/chap8/6_ohmmeter_design.typ | typst | Other | #import "../../core/core.typ"
=== Ohmmeter design
Though mechanical ohmmeter (resistance meter) designs are rarely used
today, having largely been superseded by digital instruments, their
operation is nonetheless intriguing and worthy of study.
The purpose of an ohmmeter, of course, is to measure the resistance
plac... |
https://github.com/TypstApp-team/typst | https://raw.githubusercontent.com/TypstApp-team/typst/master/tests/typ/compute/calc.typ | typst | Apache License 2.0 | // Test math functions.
// Ref: false
---
// Test conversion to numbers.
#test(int(false), 0)
#test(int(true), 1)
#test(int(10), 10)
#test(int("150"), 150)
#test(int("-834"), -834)
#test(int("\u{2212}79"), -79)
#test(int(10 / 3), 3)
#test(float(10), 10.0)
#test(float(50% * 30%), 0.15)
#test(float("31.4e-1"), 3.14)
#te... |
https://github.com/Myriad-Dreamin/arch-media-box-typst | https://raw.githubusercontent.com/Myriad-Dreamin/arch-media-box-typst/main/README.md | markdown | # Arch Linux 盒装安装媒介
这是一个由 [Debian 小药盒](https://github.com/moesoha/debian-media-box) 启发的 Arch Linux 盒装安装介质的平面设计。所使用的素材基于[Arch Linux 盒装安装媒介](https://github.com/Isoheptane/arch-media-box),并使用 typst 重写。

... | |
https://github.com/jxpeng98/Typst-CV-Resume | https://raw.githubusercontent.com/jxpeng98/Typst-CV-Resume/main/README.md | markdown | MIT License | # Typst-CV-Resume
This Typst CV template is inspired by the Latex template [Deedy-Resume](https://github.com/deedy/Deedy-Resume). You can use it for both industry and academia.
If you want to find a cover letter template, you can check out [modernpro-coverletter](https://github.com/jxpeng98/typst-coverletter).
## Ho... |
https://github.com/lucifer1004/leetcode.typ | https://raw.githubusercontent.com/lucifer1004/leetcode.typ/main/README.md | markdown | # leetcode.typ - Solving Leetcode problems in Typst

To compile the document, you need to install [`typst`](https://github.com/typst/typst) first, then run
```bash
typst watch leetcode.typ
```
to get a dynamically updated PDF file `leetcode.pdf`.
Example output is [here](./build/leetcode.pd... | |
https://github.com/VisualFP/docs | https://raw.githubusercontent.com/VisualFP/docs/main/SA/project_documentation/content/meeting_minutes/week_10.typ | typst | = Project Meeting 21.11.2023 08:15 - 09:00 (MS Teams)
== Participants
- Prof. Dr. <NAME>
- <NAME>
- <NAME>
== Agenda
- Presentation of first draft of PoC UI & Inference
- Next steps: combine UI & inference
Input from Advisor:
- FRP: Take a look at the chapter on reactive animations in "The Haskell School of Expressio... | |
https://github.com/lebinyu/typst-thesis-template | https://raw.githubusercontent.com/lebinyu/typst-thesis-template/main/thesis/chapter1.typ | typst | Apache License 2.0 | #let title = [
Title of Chapter 1
]
#let chaptnumber = 1
#let introduction = [
// = this is a chapter <aaa>
#lorem(20)
]
#let mainbody = [
== subsetion test
#lorem(50) #cite("bruegge2004object")
$ 1+1 = alpha $
#lorem(400) #cite("allen1983theory")
== subsection testtest
$ 2+1 = beta $
#lorem(50... |
https://github.com/Myriad-Dreamin/shiroa | https://raw.githubusercontent.com/Myriad-Dreamin/shiroa/main/github-pages/docs/format/supports/embed-html.typ | typst | Apache License 2.0 | #import "/github-pages/docs/book.typ": book-page
#show: book-page.with(title: "Typst Supports - Embed Sanitized HTML Elements")
|
https://github.com/lphoogenboom/typstThesisDCSC | https://raw.githubusercontent.com/lphoogenboom/typstThesisDCSC/master/projectInfo.typ | typst | #let student = (
name: "<NAME>",
email: "<EMAIL>"
)
#let report = (
type: "Literature Survey", // Choose: (Literature Survey | Thesis)
title: "Thesis Titcle",
subtitle: "Optional Subtitle",
coverImage: "../graphics/template/COVER.jpg"
) | |
https://github.com/jrihon/multi-bibs | https://raw.githubusercontent.com/jrihon/multi-bibs/main/chapters/00_title/titlepage.typ | typst | MIT License | #v(50%)
#align(left)[
= INSERT THESIS TITLE HERE: FOO BAR BAZ ]
My thesis is about how I can be the very best, that no one ever was!
#pagebreak()
|
https://github.com/Myriad-Dreamin/typst.ts | https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/crates/reflexo/README.md | markdown | Apache License 2.0 | # reflexo
A portable format to show (typst) document in web browser.
See [Typst.ts](https://github.com/Myriad-Dreamin/typst.ts)
|
https://github.com/Slyde-R/not-jku-thesis-template | https://raw.githubusercontent.com/Slyde-R/not-jku-thesis-template/main/template/content/Tutorial.typ | typst | MIT No Attribution | #import "../utils.typ": todo, silentheading, flex-caption
#import "@preview/wrap-it:0.1.0": wrap-content
= Tutorial <Tutorial>
#todo[Exclude this chapter!]
This template uses the Arial font with size 11pt, a spacing of 1em with a side margin of 2.5cm with a 1cm single sided bounding correction, which is _*intended*_ ... |
https://github.com/soul667/typst | https://raw.githubusercontent.com/soul667/typst/main/PPT/typst-slides-fudan/themes/polylux/book/src/themes/science-slam.typ | typst | #import "../../../polylux.typ": *
// ANCHOR: init
#let science-slam-theme(aspect-ratio: "16-9", darkness: "dark", body) = {
let background-color = if darkness == "dark" {
navy
} else if darkness == "very dark" {
navy.darken(50%)
} else if darkness == "ultra dark" {
black
} else {
panic("illegal... | |
https://github.com/bigskysoftware/hypermedia-systems-book | https://raw.githubusercontent.com/bigskysoftware/hypermedia-systems-book/main/ch01-hypermedia-a-reintroduction.typ | typst | Other | #import "lib/definitions.typ": *
== Hypermedia: A Reintroduction
Hypermedia is a universal technology today, almost as common as electricity.
Billions of people use hypermedia-based systems every day, mainly by interacting
with the _Hypertext Markup Language (HTML)_ being exchanged via the _Hypertext Transfer Protoc... |
https://github.com/EGmux/TheoryOfComputation | https://raw.githubusercontent.com/EGmux/TheoryOfComputation/master/final/prova1.typ | typst | #set heading(numbering: "1.")
=== 1 Seja *$L = {w in {a,b}^* | "w termina com ab"$}*
==== i) Dê uma AFD que reconheça L
#figure(image("../assets/afd.png", width: 50%), caption: []) <fig-afd>
==== ii) Prove por indução sobre w que para toda *$w in {a,b}^* "o AFD aceita sse" w in L$*
*$=> "ida"$*
*O AFD aceitar impl... | |
https://github.com/MattiaOldani/Informatica-Teorica | https://raw.githubusercontent.com/MattiaOldani/Informatica-Teorica/master/capitoli/complessità/13_richiami_matematici.typ | typst | = Richiami matematici: teoria dei linguaggi formali
Dato un problema $P$, finora ci siamo chiesti _"*esiste* un programma per la sua soluzione automatica?"_ Tramite questa domanda abbiamo potuto indagare la *teoria della calcolabilità*, il cui oggetto di studio è l'esistenza (_o meno_) di un programma per un dato prob... | |
https://github.com/Myriad-Dreamin/tinymist | https://raw.githubusercontent.com/Myriad-Dreamin/tinymist/main/crates/tinymist-query/src/fixtures/completion-pkgs/touying-utils-current-heading.typ | typst | Apache License 2.0 | // path: lib.typ
// - level (auto, int): The level
#let current-heading(level: auto, hierachical: true, depth: 9999) = {
let current-page = here().page()
if not hierachical and level != auto {
let headings = query(heading).filter(h => (
h.location().page() <= current-page and h.level <= depth and h.level ... |
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/unichar/0.1.0/ucd/block-0530.typ | typst | Apache License 2.0 | #let data = (
(),
("ARMENIAN CAPITAL LETTER AYB", "Lu", 0),
("ARMENIAN CAPITAL LETTER BEN", "Lu", 0),
("ARMENIAN CAPITAL LETTER GIM", "Lu", 0),
("ARMENIAN CAPITAL LETTER DA", "Lu", 0),
("ARMENIAN CAPITAL LETTER ECH", "Lu", 0),
("ARMENIAN CAPITAL LETTER ZA", "Lu", 0),
("ARMENIAN CAPITAL LETTER EH", "Lu",... |
https://github.com/zenor0/simple-neat-typst-cv | https://raw.githubusercontent.com/zenor0/simple-neat-typst-cv/master/cv/utils/icons.typ | typst | MIT License |
#let show-icon-text(icon, name, size: 0.7em, reverse: false) = {
box[
#if reverse {
name
}
#box(
image(icon, height: size)
)
#if not reverse {
name
}
]
}
#let set-up-icon(doc) = {
show "Python" : name => show-icon-text("../assets/icons/python... |
https://github.com/maxhves/maxhves-cv | https://raw.githubusercontent.com/maxhves/maxhves-cv/main/README.md | markdown | ## Maxhves resume
This CV/resume template is created using [Typst](https://typst.app), and this repository serves both as an evolving record of my personal resume and as a template for anyone who wants to create a similar document.
As a newcomer to Typst, I cannot guarantee that this template is a perfect example of ... | |
https://github.com/Mouwrice/thesis-typst | https://raw.githubusercontent.com/Mouwrice/thesis-typst/main/README.md | markdown | This repository contains the complete typst project used to write my thesis.
The compiled pdf is hosted on GitHub Pages at https://mouwrice.github.io/thesis-typst/thesis.pdf
| |
https://github.com/Maso03/Bachelor | https://raw.githubusercontent.com/Maso03/Bachelor/main/template.typ | typst | MIT License | #let template(
/// the title of your thesis
/// type: str
title: "Thesis Title",
/// single author name or list of author names
/// type: str | array<str>
author: "<NAME>",
/// date of submission
/// type: datetime
date: datetime(year: 1970, month: 1, day: 1),
/// formatting template for the date
... |
https://github.com/DashieTM/ost-5semester | https://raw.githubusercontent.com/DashieTM/ost-5semester/main/experiment/weeks/week3.typ | typst | #import "../../utils.typ": *
#section("Data")
#subsection("Data-Mining")
This is *random collection of data*, which will later be processed.
- advertising
- predictive analysis
- statistical process needed
#subsection("Data-Farming")
This is *targeted collection of data*, which will later be processed.
- detection of... | |
https://github.com/Akida31/anki-typst | https://raw.githubusercontent.com/Akida31/anki-typst/main/typst/examples/simple.typ | typst | #import "../src/lib.typ" as anki
#import anki.theorems: item
#show: anki.setup.with(enable_theorems: true)
#set heading(numbering: "1.")
#let theorem = item("Theorem", initial_tags: ("proof",))
#let example = item("Example", initial_tags: ("example",))
= Heading1
== Subheading1
=== SubSubheading1
= Heading
== Subhe... | |
https://github.com/TypstApp-team/typst | https://raw.githubusercontent.com/TypstApp-team/typst/master/tests/typ/layout/place-background.typ | typst | Apache License 2.0 | // Test placing a background image on a page.
---
#set page(paper: "a10", flipped: true)
#set text(fill: white)
#place(
dx: -10pt,
dy: -10pt,
image(
"/files/tiger.jpg",
fit: "cover",
width: 100% + 20pt,
height: 100% + 20pt,
)
)
#align(bottom + right)[
_Welcome to_ #underline[*Tigerland*]
]
|
https://github.com/indicatelovelace/typstTemplates | https://raw.githubusercontent.com/indicatelovelace/typstTemplates/main/themes/dhbw-thesis/config.typ | typst | MIT License | #import "@preview/drafting:0.1.1": *
#import "@preview/hydra:0.5.0": hydra
#import "./utils.typ": authorMetadata, flattenAuthorMetadata
#let conf(
title: none,
authors: (), /*
author is an array of dicts. The only key that is necessary is "name".
Any other property supplied is printed at the bottom end of the... |
https://github.com/AntoniosBarotsis/typst-assignment-template | https://raw.githubusercontent.com/AntoniosBarotsis/typst-assignment-template/master/README.md | markdown | # Typst Assignment Template
A simple assignment template for [Typst](https://typst.app/).
## Example Usage
You can find an example [here](./example.typ) as well as its render [here](./example.pdf).
## Status
I haven't used this extensively *yet* so I don't know what weird behaviors might be lying around,
I'm quit... | |
https://github.com/jomaway/typst-teacher-templates | https://raw.githubusercontent.com/jomaway/typst-teacher-templates/main/ttt-exam/lib/points.typ | typst | MIT License | #import "@preview/ttt-utils:0.1.2": grading
#import "i18n.typ": ling
#let total_points = context grading.get_points().sum()
// Show a box with the total_points
#let point-sum-box = {
box(stroke: 1pt, inset: 0.8em, radius: 3pt)[
#set align(bottom)
#stack(
dir:ltr,
spacing: 0.5em,
box[#text(... |
https://github.com/Dav1com/wasm-random-plugin | https://raw.githubusercontent.com/Dav1com/wasm-random-plugin/master/README.md | markdown | MIT License | # wasm-random-plugin
Wasm plugin for generating predictable and protable random numbers. Meant as a Typst plugin
|
https://github.com/liuguangxi/suiji | https://raw.githubusercontent.com/liuguangxi/suiji/main/examples/random-bitmap.typ | typst | MIT License | #set document(date: none)
#import "/src/lib.typ": *
#set page(width: auto, height: auto, margin: 0pt)
#{
let seed = 0
let unit = 1mm
let (width, height) = (200,) * 2
let rng = gen-rng(seed)
let data = ()
(rng, data) = integers(rng, low: 0, high: 256, size: width * height * 3)
gri... |
https://github.com/sarahzeller/tud | https://raw.githubusercontent.com/sarahzeller/tud/main/_extensions/sarahzeller/tud/typst-template.typ | typst | MIT License | #let slides(
title: none,
subtitle: none,
author: none,
date: datetime.today(),
beamer-format: (16, 9),
theme-background: rgb("#00305D"),
theme-text: white,
font: "Open Sans",
has-section-slides: true,
doc
) = {
// Variables for configuration.
let scale = 2cm
let width = beamer-format.at(0) * scale
let he... |
https://github.com/RandomcodeDev/FalseKing-Design | https://raw.githubusercontent.com/RandomcodeDev/FalseKing-Design/main/engine/platforms.typ | typst | = Platforms
The engine will support at least Windows and Linux. All desktop platforms will use Steam, all others will use the platform's official store.
#table(
columns: 3,
[*Platform*], [*Toolchain*], [*Graphics API(s)*],
[Windows], [MSVC, GDK], [DirectX 12, Vulkan, OpenGL],
[Linux], [LLVM], [Vulkan, OpenGL],
... | |
https://github.com/0x1B05/algorithm-journey | https://raw.githubusercontent.com/0x1B05/algorithm-journey/main/practice/note/content/预备知识.typ | typst | #import "../template.typ": *
= 算法预备知识
== acm风格算法笔试中处理输入和输出
=== 读写 api
1. 规定数据量(`BufferedReader`、`StreamTokenizer`、`PrintWriter`),其他语言有对等的写法
2. 按行读(`BufferedReader`、`PrintWriter`),其他语言有对等的写法
3. 不要用 `Scanner`、`System.out`,`IO` 效率慢
#code(
caption: [acm风格测试方式],
)[
```java
// 子矩阵的最大累加和问题,不要求会解题思路,后面的课会讲
// 每一组测试都给定数据... | |
https://github.com/yoshiatsu163/typst-test | https://raw.githubusercontent.com/yoshiatsu163/typst-test/master/test.typ | typst | // 脚注とフッター
// ヘッダー
// 色設定
#let dark = true
#let colorset = if dark {
(
text: rgb("ADBAC7"),
inverse_text: rgb("404040"),
background: rgb("22272e"),
caution: rgb("6CB6FF"),
cautionpale: rgb("353747"),
alert: rgb("F47067"),
alertpale: rgb("7a594e")
)
} else {
(
text: rgb("#404040"),
inverse_text:... | |
https://github.com/George-Miao/typst-common | https://raw.githubusercontent.com/George-Miao/typst-common/main/0.2.0/src/lib.typ | typst | MIT License | #import "math.typ": *
#import "util.typ": *
#let jp(body) = {
set text(
font: (
"Noto Serif CJK JP",
"XCharter",
),
lang: "ja",
size: 11pt,
)
body
}
#let a(body) = {
set text(fill: red)
body
}
#let book(
title: "",
subtitle: "",
authors: (),
logo: none,
toc: true,
b... |
https://github.com/TypstApp-team/typst | https://raw.githubusercontent.com/TypstApp-team/typst/master/docs/community.md | markdown | Apache License 2.0 | ---
description: |
Join the Typst community, get help from other users and have a say in the
future of Typst.
---
# Community
Hey and welcome to the Community page! We're so glad you're here. Typst is
developed by an early-stage startup and is still in its infancy, but it would be
pointless without people like you... |
https://github.com/YouXam/bupt-network-resources-guide | https://raw.githubusercontent.com/YouXam/bupt-network-resources-guide/main/main.typ | typst | MIT License | #import "template.typ": project, chineseoutline
#import "@preview/fontawesome:0.4.0": fa-icon
#let vpn = box(baseline: 0.2em, stroke: 0.3pt + black, inset: (right: 0.3em, rest: 0.2em), radius: 5pt, fill: green.lighten(90%))[
#box(height: 0.8em, baseline: 0.1em, inset: (left: 0.1em, right: 0.1em, top: 0.05em))[
... |
https://github.com/davawen/Cours | https://raw.githubusercontent.com/davawen/Cours/main/Physique/Optique/3-Lentilles-Spheriques-Mince/lentilles-spheriques.typ | typst | #import "@local/physique:0.1.0": *
#import optique: *
#show: doc => template(doc)
#titleb[Lentilles sphériques minces dans l'approximation de Gauss]
= Définitions
== Lentille
Une lentille est composée de deux dioptres formant un volume d'indice $n$ placés dans un milieu d'indice $n'$
#figure(caption: [Une lentil... | |
https://github.com/Myriad-Dreamin/typst.ts | https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/visualize/gradient-math_02.typ | typst | Apache License 2.0 |
#import "/contrib/templates/std-tests/preset.typ": *
#show: test-page
// Test on root
#show math.equation: set text(fill: gradient.linear(..color.map.rainbow))
#show math.equation: box
$ x_"1,2" = frac(-b +- sqrt(b^2 - 4 a c), 2 a) $
|
https://github.com/jgm/typst-hs | https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/text/features-10.typ | typst | Other | // Error: 24-25 expected "lining", "old-style", or auto, found integer
#set text(number-type: 2)
|
https://github.com/bennyhandball/PA1_LoB_Finance | https://raw.githubusercontent.com/bennyhandball/PA1_LoB_Finance/main/PA/supercharged-dhbw/2.1.0/declaration-of-authorship.typ | typst | #let declaration-of-authorship(authors, title, date, language, many-authors, at-university, city, date-format) = {
pagebreak()
v(2em)
text(size: 20pt, weight: "bold", if (language == "de") {
"Selbstständigkeitserklärung"
} else {
"Declaration of Authorship"
})
v(1em)
if (authors.len() == 1) {
... | |
https://github.com/kdog3682/typkit | https://raw.githubusercontent.com/kdog3682/typkit/main/0.1.0/src/index.typ | typst | // #import "pages.typ"
#import "types.typ": *
#import "validation.typ": *
#import "assertion.typ": *
#import "resolve.typ": *
#import "typography.typ": *
#import "misc.typ": *
#import "ao.typ": *
#import "layout.typ": *
#import "str-utils.typ": *
#import "eval.typ": *
#import "strokes.typ"
#import "sizes.typ"
#import ... | |
https://github.com/Myriad-Dreamin/tinymist | https://raw.githubusercontent.com/Myriad-Dreamin/tinymist/main/crates/tinymist-query/src/fixtures/completion/bug_cite_function_infer.typ | typst | Apache License 2.0 | // path: references.bib
@article{Russell:1908,
Author = {<NAME>},
Journal = {American Journal of Mathematics},
Pages = {222--262},
Title = {Mathematical logic based on the theory of types},
Volume = 30,
Year = 1908}
@article{Rus,
Author = {<NAME>},
Journal = {American Journal of Mathematics},
Pages = {222--262},
Title ... |
https://github.com/howz97/howz97.github.io | https://raw.githubusercontent.com/howz97/howz97.github.io/main/cv.typ | typst | #show heading: set text(font: "Linux Biolinum")
#show link: underline
// Uncomment the following lines to adjust the size of text
// The recommend resume text size is from `10pt` to `12pt`
// #set text(
// size: 12pt,
// )
// Feel free to change the margin below to best fit your own CV
#set page(
margin: (x: 0.9... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.