repo stringlengths 26 115 | file stringlengths 54 212 | language stringclasses 2
values | license stringclasses 16
values | content stringlengths 19 1.07M |
|---|---|---|---|---|
https://github.com/tspier/SampleSlidesInTypst | https://raw.githubusercontent.com/tspier/SampleSlidesInTypst/main/slides.typ | typst | #import "@preview/polylux:0.3.1": *
#import themes.metropolis: *
#import "@preview/plotst:0.2.0": *
#show: metropolis-theme.with(
footer: [],
)
#show footnote.entry: set text(size: 10pt)
#set text(font: "Fira Sans", weight: "light", size: 25pt)
#show math.equation: set text(font: "Fira Sans")
#set strong(delta: 10... | |
https://github.com/longlin10086/HITSZ-PhTyp | https://raw.githubusercontent.com/longlin10086/HITSZ-PhTyp/main/utils/question_list.typ | typst | #import "../themes/theme.typ" : *
#let question_list(..questions)={
set text(font: ("Times New Roman", "Source Han Serif"), size: 12pt)
enum(..questions, indent: 2em, tight: false)
} | |
https://github.com/QuadnucYard/pavemat | https://raw.githubusercontent.com/QuadnucYard/pavemat/main/src/pavemat.typ | typst | MIT License | #let _get-fills-from(a, i, j, hfence: (), vfence: ()) = {
// number of rows and columns
let (n, m) = (a.len(), a.at(0).len())
// has each grid been visited
let vis = (false,) * (n * m)
// check pos inside
let check(ii, jj) = {
ii >= 0 and ii < n and jj >= 0 and jj < m
}
// start flood-fill
vis.at... |
https://github.com/touying-typ/touying | https://raw.githubusercontent.com/touying-typ/touying/main/src/magic.typ | typst | MIT License | // ---------------------------------------------------------------------
// List, Enum, and Terms
// ---------------------------------------------------------------------
/// Align the list marker with the baseline of the first line of the list item.
///
/// Usage: `#show: align-list-marker-with-baseline`
#let align-... |
https://github.com/sitandr/conchord | https://raw.githubusercontent.com/sitandr/conchord/main/tabs/tabs.typ | typst | MIT License | #import "@preview/cetz:0.2.0": canvas, draw
#import "./gen.typ": gen
#let new(
tabs,
preamble: none,
extra: none,
eval-scope: (:),
scale-length: 0.3cm,
s-num: 6,
one-beat-length: 8,
line-spacing: 2,
enable-scale: true,
colors: (:),
autoscale-max: 3.0,
autoscale-min: 0.9,
debug-render: none,
... |
https://github.com/sa-concept-refactoring/doc | https://raw.githubusercontent.com/sa-concept-refactoring/doc/main/main.typ | typst | #import "@preview/tablex:0.0.4": tablex, colspanx, rowspanx, cellx
#import "progress-bar.typ": printProgressBar
#import "title-page.typ": luschtig
#let version_with_code = true
#show raw: it => {
let backgroundColor = luma(0xF0)
if (it.block) {
block(
fill: backgroundColor,
inset: 8pt,
radiu... | |
https://github.com/Mc-Zen/tidy | https://raw.githubusercontent.com/Mc-Zen/tidy/main/tests/test_parse.typ | typst | MIT License | #import "/src/tidy.typ": *
#import "/src/tidy-parse.typ": *
#import "/src/utilities.typ": *
#let eval-string(string) = eval-docstring(string, (scope: (:)))
#{
let code = ```
/// - alpha (str):
/// - beta (length):
// / - ..children (any):
#let z(alpha, beta: 2pt, ..children) = {}
```
let k = parse-modu... |
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/unichar/0.1.0/ucd/block-10570.typ | typst | Apache License 2.0 | #let data = (
("VITHKUQI CAPITAL LETTER A", "Lu", 0),
("VITHKUQI CAPITAL LETTER BBE", "Lu", 0),
("VITHKUQI CAPITAL LETTER BE", "Lu", 0),
("VITHKUQI CAPITAL LETTER CE", "Lu", 0),
("VITHKUQI CAPITAL LETTER CHE", "Lu", 0),
("VITHKUQI CAPITAL LETTER DE", "Lu", 0),
("VITHKUQI CAPITAL LETTER DHE", "Lu", 0),
(... |
https://github.com/SundaeSwap-finance/sundae-specs | https://raw.githubusercontent.com/SundaeSwap-finance/sundae-specs/main/gummiworm/spec.typ | typst | #import "@preview/unequivocal-ams:0.1.1": ams-article
#import "@preview/fletcher:0.5.1" as fletcher: diagram, node, edge
#import "@preview/note-me:0.2.1": note
#import "@preview/chronos:0.1.0"
#import "@preview/glossarium:0.4.1": *
#import "./transaction.typ": *
#show link: set text(blue)
#show link: underline;
#show... | |
https://github.com/yhtq/Notes | https://raw.githubusercontent.com/yhtq/Notes/main/代数学二/作业/hw11.typ | typst | #import "../../template.typ": *
#import "@preview/commute:0.2.0": node, arr, commutative-diagram
#show: note.with(
title: "作业11",
author: "YHTQ",
date: none,
logo: none,
withOutlined : false,
withTitle :false,
withHeadingNumbering: false
)
= p125
== 1
注意到:
$
dim A_m = dim A = dim(k[x_1, ...... | |
https://github.com/JCGoran/typst-cv-template | https://raw.githubusercontent.com/JCGoran/typst-cv-template/master/template.typ | typst | /*
template for a CV
still need to iron out some details
*/
// global variables
#let default_primary_color = rgb("#14A4E6")
#let default_secondary_color = rgb("#757575")
#let default_link_color = rgb("#14A4E6")
#let default_font = "Carlito"
#let default_math_font = "DejaVu Sans"
#let default_separator = text(
// thi... | |
https://github.com/TheHarrisButler/my-resume | https://raw.githubusercontent.com/TheHarrisButler/my-resume/main/resume/resume.typ | typst | #import "./package.typ": *
#let aside-theme = (
gutter-size: 0.5fr
)
#show: cv.with(
theme: (),
title: "<NAME>",
subtitle: "Software Engineer",
aside: {
section(
"Contact",
{
entry(
"Home",
"<NAME>",
none,
)
entry(
"Phone",
... | |
https://github.com/ssotoen/gridlock | https://raw.githubusercontent.com/ssotoen/gridlock/main/README.md | markdown | The Unlicense | # The `gridlock` Package (v0.2.0)
Grid typesetting in Typst.
Use this package if you want to line up your body text across columns and pages.
## Example
![An example image showing a two-column page with headings, a block quote, a footnote, a figure, a display formula, and a bulleted list. All body text in both colum... |
https://github.com/ukihot/igonna | https://raw.githubusercontent.com/ukihot/igonna/main/articles/web/remix.typ | typst | == Remix
=== CDN
CDN(Contents Delivery Network)とは、Webコンテンツを迅速に効率よくユーザーに配信するためのネットワークである。
コンテンツの大容量化やネット人口の増加が進む中、昨今ではホームページの表示やコンテンツのダウンロードに時間がかかることも少なくない。
CDNはコンテンツの表示・配信を高速化し、ユーザーのストレスを軽減する。
CDNでは、キャッシュサーバと呼ばれる代理サーバが、オリジンサーバに代わってコンテンツを配信する。
キャッシュサーバは、オリジンサーバからキャッシュしたコンテンツを保存している。
CDNベンダ#footnote[Cloudf... | |
https://github.com/f14-bertolotti/bedlam | https://raw.githubusercontent.com/f14-bertolotti/bedlam/main/src/notation/main.typ | typst | #import "../theme.typ" : definition, comment, example
= Notation
#let symmetric-difference = (
tag : link(<symmetric-difference>)[symmetric difference],
sym : link(<symmetric-difference>)[#sym.triangle.t]
)
#definition("symmetric difference")[
Let A, B be sets. The *symmetric difference* is the operation,... | |
https://github.com/j1nxie/resume | https://raw.githubusercontent.com/j1nxie/resume/main/README.md | markdown | Do What The F*ck You Want To Public License | # rylie's resume
a simple resume, based on [typst-cv-miku](https://github.com/ice-kylin/typst-cv-miku).
## license
licensed under WTFPL ([LICENSE](LICENSE) or http://www.wtfpl.net/).
|
https://github.com/japrozs/resume | https://raw.githubusercontent.com/japrozs/resume/master/utils.typ | typst | // Helper Functions
#let monthname(n, display: "short") = {
n = int(n)
let month = ""
if n == 1 { month = "January" }
else if n == 3 { month = "March" }
else if n == 2 { month = "February" }
else if n == 4 { month = "April" }
else if n == 5 { month = "May" }
else if n == 6 { month = "Ju... | |
https://github.com/ClazyChen/Table-Tennis-Rankings | https://raw.githubusercontent.com/ClazyChen/Table-Tennis-Rankings/main/history/2015/MS-10.typ | typst |
#set text(font: ("Courier New", "NSimSun"))
#figure(
caption: "Men's Singles (1 - 32)",
table(
columns: 4,
[Ranking], [Player], [Country/Region], [Rating],
[1], [MA Long], [CHN], [3593],
[2], [XU Xin], [CHN], [3367],
[3], [FAN Zhendong], [CHN], [3294],
[4], [ZHANG Jike], [CHN]... | |
https://github.com/PgBiel/typst-diagbox | https://raw.githubusercontent.com/PgBiel/typst-diagbox/main/README.md | markdown | Apache License 2.0 | # typst-diagbox
A library for diagonal line dividers in Typst tables; a.k.a.,
table cells with a diagonal line dividing them.
## Usage
Move the `diagbox.typ` file to e.g. the same folder
your main `.typ` file is in, then write
`#import "diagbox.typ": *` inside it.
This will import two functions:
`bdiagbox[left][righ... |
https://github.com/hosnimarnisi/lab3 | https://raw.githubusercontent.com/hosnimarnisi/lab3/main/Lab-3.typ | typst | #import "Class.typ": *
#show: ieee.with(
title: [#text(smallcaps("Lab #3: Web Application with Genie"))],
/*
abstract: [
#lorem(10).
],
*/
authors:
(
(
name: "",
department: [Senior-lecturer, Dept. of EE],
organization: [ISET Bizerte --- Tunisia],
profile: "a-mhamdi",
... | |
https://github.com/jgm/typst-hs | https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/math/alignment-02.typ | typst | Other | // Test no alignment.
$
"right" \
"a very long line" \
"left" \
$
|
https://github.com/juicebox-systems/ceremony | https://raw.githubusercontent.com/juicebox-systems/ceremony/main/instructions/exception.typ | typst | MIT License | // Exception Sheets are included at the end of the document.
#import "presentation.typ": blank, blanks, checkbox, radio
// A block element for multi-line input.
#let par_blank(lines) = {
for _ in range(lines) {
v(1em)
line(length: 100%, stroke: 0.5pt)
}
}
// Returns a section of a document with an Except... |
https://github.com/typst-community/guidelines | https://raw.githubusercontent.com/typst-community/guidelines/main/src/chapters/api.typ | typst | Creative Commons Attribution Share Alike 4.0 International | #set heading(offset: 1)
#include "api/flexibility.typ"
#include "api/simplicity.typ"
#include "api/interoperability.typ"
|
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/cetz/0.2.0/src/util.typ | typst | Apache License 2.0 | #import "deps.typ"
#import deps.oxifmt: strfmt
#import "matrix.typ"
#import "vector.typ"
#import "bezier.typ"
/// Constant to be used as float rounding error
#let float-epsilon = 0.000001
#let typst-measure = measure
/// Multiplies vectors by the transform matrix
///
/// - transform (matrix): Transformation matri... |
https://github.com/wagaaa/HZAU_Typst | https://raw.githubusercontent.com/wagaaa/HZAU_Typst/main/dependents/style.typ | typst | MIT License | #import "@preview/indenta:0.0.3": fix-indent //修复图表后不缩进
#let heiti = ("Times New Roman", "Heiti SC", "Heiti TC", "SimHei")
#let songti = ("Times New Roman", "Songti SC", "Songti TC", "SimSun")
#let zhongsong = ("Times New Roman","STZhongsong", "SimSun")
//中文章节名称
#let num_cn(num, standalone: false) = if num < 11 {
... |
https://github.com/AU-Master-Thesis/thesis | https://raw.githubusercontent.com/AU-Master-Thesis/thesis/main/lib/binary.typ | typst | MIT License | #let binary(x, min-length: none) = {
assert(type(x) == int, message: "expected `x` to have type `int`, but got " + type(x))
let bits = ()
while x != 0 {
let is-odd = calc.rem(x, 2) == 1
if is-odd {
bits.push(1)
} else {
bits.push(0)
}
// Divide x by 2 to process the next bit
... |
https://github.com/Hobr/njust_thesis_typst_template | https://raw.githubusercontent.com/Hobr/njust_thesis_typst_template/main/lib.typ | typst | MIT License | // 包
#import "util/package.typ": *
// 样式
#import "layout/xgsLesson.typ": xgsLesson, setPage
// 字体
#import "util/font.typ": fonts, fontSize
// 页面
#import "page/cover.typ": showCover
#import "page/header.typ": showTitle, showAuthor
#import "page/abstract.typ": showAbstract
#import "page/content.typ": showContent
#import ... |
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/unichar/0.1.0/ucd/block-0900.typ | typst | Apache License 2.0 | #let data = (
("DEVANAGARI SIGN INVERTED CANDRABINDU", "Mn", 0),
("DEVANAGARI SIGN CANDRABINDU", "Mn", 0),
("DEVANAGARI SIGN ANUSVARA", "Mn", 0),
("DEVANAGARI SIGN VISARGA", "Mc", 0),
("DEVANAGARI LETTER SHORT A", "Lo", 0),
("DEVANAGARI LETTER A", "Lo", 0),
("DEVANAGARI LETTER AA", "Lo", 0),
("DEVANAGAR... |
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/unichar/0.1.0/ucd/block-2400.typ | typst | Apache License 2.0 | #let data = (
("SYMBOL FOR NULL", "So", 0),
("SYMBOL FOR START OF HEADING", "So", 0),
("SYMBOL FOR START OF TEXT", "So", 0),
("SYMBOL FOR END OF TEXT", "So", 0),
("SYMBOL FOR END OF TRANSMISSION", "So", 0),
("SYMBOL FOR ENQUIRY", "So", 0),
("SYMBOL FOR ACKNOWLEDGE", "So", 0),
("SYMBOL FOR BELL", "So", 0... |
https://github.com/MatheSchool/typst-g-exam | https://raw.githubusercontent.com/MatheSchool/typst-g-exam/develop/examples/exam-table-content.typ | typst | MIT License | #import "../src/lib.typ": *
#show: g-exam.with(
author: (
name: "<NAME>,",
email: "<EMAIL>",
watermark: "Teacher: Peter",
),
school: (
name: "Sunrise Secondary School",
logo: read("./logo.png", encoding: none),
),
exam-info: (
academic-period: "Academic year 2023/2024",... |
https://github.com/alex-touza/fractal-explorer | https://raw.githubusercontent.com/alex-touza/fractal-explorer/main/paper/planning/full-de-ruta.typ | typst | #set text(font: "New Computer Modern", lang: "ca")
= Estructura detallada del Treball de Recerca
== Objectiu principal
Descobrir la base matemàtica dels fractals: quins hi ha, per què fan les formes que fan i com es poden representar.
== Àmbits del treball
- *Matemàtica avançada.* Anàlisi dels fractals; per què fa... | |
https://github.com/TomPlanche/typst-template | https://raw.githubusercontent.com/TomPlanche/typst-template/main/README.md | markdown | MIT License | # [Typst](https://typst.app) template.
This template is bases from [hzkonor's](https://github.com/hzkonor/bubble-template).
It uses [CNAM](https://www.cnam.fr/)'s logo and colors.
## Result
<div style="display: flex; justify-content: center;">
<img src="./preview.png" width="100%">
</div>
|
https://github.com/ns-shop/ns-shop-typst | https://raw.githubusercontent.com/ns-shop/ns-shop-typst/main/fonts/template.typ | typst | #let textSize = 14pt
#let tabSize = 1cm
#let prefixh1 = "CHƯƠNG"
#let h1(children, numbering: true, pageBreak: true) = {
if (pageBreak) [#pagebreak()]
set align(center)
heading(
level: 1,
numbering: if (numbering) {(..nums) => text(
size: textSize, weight: "bold",
... | |
https://github.com/jgm/typst-hs | https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/compute/calc-38.typ | typst | Other | // Error: 11-14 expected integer, found float
#range(1, 2.0)
|
https://github.com/Myriad-Dreamin/typst.ts | https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/crates/reflexo-vfs/README.md | markdown | Apache License 2.0 | # reflexo-vfs
Vfs for reflexo.
See [Typst.ts](https://github.com/Myriad-Dreamin/typst.ts)
|
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/unichar/0.1.0/ucd/block-16E40.typ | typst | Apache License 2.0 | #let data = (
("MEDEFAIDRIN CAPITAL LETTER M", "Lu", 0),
("MEDEFAIDRIN CAPITAL LETTER S", "Lu", 0),
("MEDEFAIDRIN CAPITAL LETTER V", "Lu", 0),
("MEDEFAIDRIN CAPITAL LETTER W", "Lu", 0),
("MEDEFAIDRIN CAPITAL LETTER ATIU", "Lu", 0),
("MEDEFAIDRIN CAPITAL LETTER Z", "Lu", 0),
("MEDEFAIDRIN CAPITAL LETTER KP... |
https://github.com/Turkeymanc/notebook | https://raw.githubusercontent.com/Turkeymanc/notebook/main/README.md | markdown | # Notebookinator Quick Start Template
In order to use this template you'll need to make a new repository based off of this one.

Once you do that, you have two options:
- edit locally
- edit in a... | |
https://github.com/Enter-tainer/typst-ws | https://raw.githubusercontent.com/Enter-tainer/typst-ws/master/README.md | markdown | MIT License | # This repo has been moved to https://github.com/Enter-tainer/typst-preview-vscode !
# typst-ws
Preview your typst file in instant.
To use this in vscode, take a look at https://github.com/Enter-tainer/typst-preview-vscode
https://user-images.githubusercontent.com/25521218/230773434-5f0137c5-db1a-488f-853e-5fac608ef... |
https://github.com/liamaxelrod/Resume | https://raw.githubusercontent.com/liamaxelrod/Resume/main/resume%202/content/skills.typ | typst | // Imports
#import "@preview/brilliant-cv:2.0.2": cvSection, cvSkill, hBar
#let metadata = yaml("../metadata.yml")
#let cvSection = cvSection.with(metadata: metadata)
#cvSection("Skills")
#stack(spacing: 2em,
cvSkill(
type: [Languages],
info: [English (native) #hBar() Swedish (intermediate)],
),
cvSkil... | |
https://github.com/saruman9/android_fuzzing_pres | https://raw.githubusercontent.com/saruman9/android_fuzzing_pres/master/slides.typ | typst | #import "@preview/polylux:0.3.1": *
#import themes.simple: *
#set text(font: ("Verdana", "Apple Color Emoji"))
#show link: strong
#show link: set text(fill: blue)
#show: simple-theme.with()
#show raw: set text(font: "JetBrainsMono NF")
#show raw.where(block: true): it => {
if it.text.first() == "$" {
block(fill:... | |
https://github.com/songoffireandice03/simple-template | https://raw.githubusercontent.com/songoffireandice03/simple-template/main/templates/template.typ | typst | #import "@preview/physica:0.9.1": *
#import "@preview/ctheorems:1.1.2": *
#import "@preview/xarrow:0.2.0": *
#import "@preview/showybox:2.0.1": *
#import "@preview/chem-par:0.0.1": *
#import "@preview/unify:0.5.0": *
#import "@preview/nth:1.0.0": *
#import "showythm.typ": *
// main project
#let bubble(
t... | |
https://github.com/oldrev/tids | https://raw.githubusercontent.com/oldrev/tids/master/README.zh_cn.md | markdown | Apache License 2.0 | # tids: A TI-Style Datasheet Template for Typst
[English](README.md) | 简体中文
本项目是一个出于演示和评估的目的创建的 TI 风格电子元件规格书模板。

**如果你觉得本项目有用请点亮⭐小星星⭐。**
## 声明
本开源项目出于演示和评估的目的创建,并无意侵犯任何版权和商标。作者与 TI 并无任何关联。
## 特性
- **简单易学:** 使用 Typst 易于编写和阅读,如果你会编写 Markdown,那 Typst 没太大的不同。
- **可自定义:** 模板完全开源,你可以完全自定义,... |
https://github.com/isometricneko/typst-example | https://raw.githubusercontent.com/isometricneko/typst-example/main/chap2.typ | typst | #import "preamble.typ": *
= Chapter 2
#cite(<mardani2023variational>)
<here_is_chap2>
#locate(loc => bib_state.at(query(<here_is_chap2>, loc).first().location()))
| |
https://github.com/Dherse/codly | https://raw.githubusercontent.com/Dherse/codly/main/tests/outside-styling/test.typ | typst | MIT License | #set page(height: auto, width: 300pt, margin: 10pt)
*Before Codly:*
#let replace-at(str, colors) = {
for (i, c) in str.clusters().enumerate() {
let found = false
for (color, positions) in colors.pairs() {
if positions.contains(i) {
text(eval(color).darken(20%), c)
//highlight(fill... |
https://github.com/polarkac/MTG-Stories | https://raw.githubusercontent.com/polarkac/MTG-Stories/master/stories/053%20-%20Wilds%20of%20Eldraine/004_Episode%204%3A%20Ruby%20and%20the%20Frozen%20Heart.typ | typst | #import "@local/mtgstory:0.2.0": conf
#show: doc => conf(
"Episode 4: Ruby and the Frozen Heart",
set_name: "Wilds of Eldrain",
story_date: datetime(day: 11, month: 08, year: 2023),
author: "<NAME>",
doc
)
#v(0.35em)
#line(length: 100%, stroke: rgb(90%, 90%, 90%))
#v(0.35em)
The day is brisk and b... | |
https://github.com/jgm/typst-hs | https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/compiler/string-05.typ | typst | Other | // Error: 2-14 string index 2 is not a character boundary
#"🏳️🌈".at(2)
|
https://github.com/SkiFire13/typst-touying-unipd | https://raw.githubusercontent.com/SkiFire13/typst-touying-unipd/master/unipd.typ | typst | MIT License | #import "@preview/touying:0.5.2": *
#let _header-logo = (colors, ..args) => {
let original = read("logo_text.svg")
let colored = original.replace("#B20E10", colors.neutral-lightest.to-hex())
image.decode(colored, ..args)
}
#let _footer-wave = (colors, ..args) => {
let original = read("bg_wave.svg")
let colo... |
https://github.com/juruoHBr/typst_xdutemplate | https://raw.githubusercontent.com/juruoHBr/typst_xdutemplate/main/utils.typ | typst | #let fake-par = style(styles => {
let b = par[#box()]
let t = measure(b + b, styles);
b
v(-t.height)
})
#let hei(body) = text(font: "SimHei", body)
#let kai(body) = text(font: "Simkai", body)
| |
https://github.com/saffronner/systems-notes | https://raw.githubusercontent.com/saffronner/systems-notes/main/notes.typ | typst | #set image(width: 75%)
#set page(
numbering: "1 / 1",
paper: "us-letter"
)
#outline(indent: 1em)
// lect 2024/08/29
= Bits, Bytes, & Integers
== bit level manipulations
- binary: get more precision over n-ary or smth
- and (`&`), or (`|`), not (`~`), xor (`^`)
- shifts
- `x << y`
- throw away extra bits at l... | |
https://github.com/magicwenli/keyle | https://raw.githubusercontent.com/magicwenli/keyle/main/doc/keyle.typ | typst | MIT License | #import "@preview/mantys:0.1.4": *
// Vendored because of https://github.com/jneug/typst-mantys/pull/20
#let cmdref(name) = {
link(cmd-label(name), cmd-(name))
}
// End Vendored
#import "../src/keyle.typ"
#let lib-name = package[keyle]
#show: mantys.with(..toml("../typst.toml"), date: datetime.today(), examples-sco... |
https://github.com/polarkac/MTG-Stories | https://raw.githubusercontent.com/polarkac/MTG-Stories/master/stories/056%20-%20Outlaws%20of%20Thunder%20Junction/012_Epilogue%202%3A%20Bring%20the%20End%2C%20Part%202.typ | typst | #import "@local/mtgstory:0.2.0": conf
#show: doc => conf(
"Epilogue 2: Bring the End, Part 2",
set_name: "Outlaws of Thunder Junction",
story_date: datetime(day: 02, month: 04, year: 2024),
author: "<NAME>",
doc
)
#emph[On Vryn]
Jace blinks sweat and oil from his eyes and shivers from fever. The s... | |
https://github.com/ludwig-austermann/typst-timetable | https://raw.githubusercontent.com/ludwig-austermann/typst-timetable/main/colorthemes.typ | typst | MIT License | #let colorthemes = toml("lib/colorthemes.toml").pairs().map(
theme => (
theme.at(0),
theme.at(1).map(c => box(height: 20pt, width: 20pt, fill: color.rgb(c.at(0), c.at(1), c.at(2))))
)
)
#let max-size = colorthemes.fold(
0,
(acc, x) => calc.max(
acc,
x.at(1).len()
)
)
= Color themes / palette ... |
https://github.com/mitex-rs/mitex | https://raw.githubusercontent.com/mitex-rs/mitex/main/crates/mitex/benches/oiwiki-with-render.typ | typst | Apache License 2.0 |
#import "bencher.typ": *
#let data = json("/local/oiwiki-231222.json");
#show: integrate-conversion.with(data: data, convert-only: false)
|
https://github.com/remigerme/typst-polytechnique | https://raw.githubusercontent.com/remigerme/typst-polytechnique/main/page.typ | typst | MIT License | /***********************/
/* TEMPLATE DEFINITION */
/***********************/
// Defining all margins
// For now : same as LaTeX template from TypographiX
// (already validated by DIRCOM)
#let margin-default = (
top: 40mm,
bottom: 35mm,
left: 20mm,
right: 20mm
)
// Bigger margins yeay
#let margin-des... |
https://github.com/WinstonMDP/math | https://raw.githubusercontent.com/WinstonMDP/math/main/knowledge/Euclidean_rings.typ | typst | #import "../cfg.typ": cfg
#show: cfg
= Euclidean rings
$a$ is a divisor of $b := b$ is a multiple of $a := a divides b := exists k: b = k a$.
$a, b$ are associated $:=$
+ $a divides b$.
+ $b divides a$.
$forall a, b in$ an integral ring $thick exists$ an invertible element $c:
a = c b <-> a, b$ are associated.
A fu... | |
https://github.com/LEXUGE/dirac | https://raw.githubusercontent.com/LEXUGE/dirac/main/manual.typ | typst | MIT License | #import "@lexuge/dirac:0.1.0": *
#import "@preview/physica:0.8.0": *
#register()
#defn($bold(nabla)$, visible: false)
#defn($diff$, visible: false)
Define #defn($vb(E)$), #defn($vb(B)$) as the electromagnetic field, and with $#defn($epsilon_0$), #defn($mu_0$)$ as
constants, we have
$ curl #genlink($vb(E)$) = -pdv(#... |
https://github.com/sthenic/technogram | https://raw.githubusercontent.com/sthenic/technogram/main/src/to-string.typ | typst | MIT License | /* Naive implementation of turning _simple_ content into a string.
Borrowed from https://github.com/typst/typst/issues/2196. */
#let to-string(content) = {
if content.func() == smartquote {
if content.double {"\""} else {"'"}
} else if content.has("text") {
content.text
} else if content.has("children"... |
https://github.com/Myriad-Dreamin/typst.ts | https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/visualize/gradient-hue-rotation_01.typ | typst | Apache License 2.0 |
#import "/contrib/templates/std-tests/preset.typ": *
#show: test-page
// Test in OkLCH space.
#set page(
width: 100pt,
height: 30pt,
fill: gradient.linear(red, purple, space: oklch)
)
|
https://github.com/LuminolT/SHU-Bachelor-Thesis-Typst | https://raw.githubusercontent.com/LuminolT/SHU-Bachelor-Thesis-Typst/main/template/toc.typ | typst | #import "font.typ": *
// 目录
#let toc() = {
pagebreak()
v(1em)
align(center)[
#text(font: songti, size: 16pt, "目 录")
]
parbreak();
set text(font: songti, size: 12pt)
[摘要] + [.] * 144 + [ 1]
parbreak()
text(font:songti)[ABSTRACT] + [.] * 133 + [2]
show outline: it => {
set text(font: ... | |
https://github.com/saYmd-moe/note-for-statistical-mechanics | https://raw.githubusercontent.com/saYmd-moe/note-for-statistical-mechanics/main/contents/PartI/PartI.typ | typst | #import "../../template.typ": *
= 热力学
| |
https://github.com/7sDream/fonts-and-layout-zhCN | https://raw.githubusercontent.com/7sDream/fonts-and-layout-zhCN/master/chapters/09-layout/line-word.typ | typst | Other | #import "/template/template.typ": web-page-template
#import "/template/components.typ": note
#import "/lib/glossary.typ": tr
#show: web-page-template
// ## Line breaking & word detection
== 断行与分词
// ### CJK
=== 汉字
// ### South Asian scripts
=== 南亚#tr[scripts]
|
https://github.com/OCamlPro/ppaqse-lang | https://raw.githubusercontent.com/OCamlPro/ppaqse-lang/master/src/étude/Scade.typ | typst | #import "defs.typ": *
#import "links.typ": *
#language(
name: "SCADE",
introduction: [
#Scade (_Safety Critical Application Development Environment_) est un
langage
de programmation et un environnement de développement dédiés à
l'embarqué critique. Le langage est né au milieu des années 90 d'une
... | |
https://github.com/lf-/typst-algorithmic | https://raw.githubusercontent.com/lf-/typst-algorithmic/main/algorithmic-demo.typ | typst | // SPDX-FileCopyrightText: 2023 <NAME>
//
// SPDX-License-Identifier: MIT
#import "algorithmic.typ"
#import algorithmic: algorithm
#algorithm({
import algorithmic: *
Function("Binary-Search", args: ("A", "n", "v"), {
Cmt[Initialize the search range]
Assign[$l$][$1$]
Assign[$r$][$n$]
State[]
Wh... | |
https://github.com/Mc-Zen/tidy | https://raw.githubusercontent.com/Mc-Zen/tidy/main/src/testing.typ | typst | MIT License |
/// Check for equality.
#let eq(a, b) = {
if a == b { return (true,) }
else {
return (false, repr(a) + " != " + repr(b))
}
}
/// Check for inequality.
#let ne(a, b) = {
if a != b { return (true,) }
else {
return (false, repr(a) + " == " + repr(b))
}
}
/// Check for approximate equality.
#let... |
https://github.com/Myriad-Dreamin/typst.ts | https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/text/hyphenate_04.typ | typst | Apache License 2.0 |
#import "/contrib/templates/std-tests/preset.typ": *
#show: test-page
// This sequence would confuse hypher if we passed trailing / leading
// punctuation instead of just the words. So this tests that we don't
// do that. The test passes if there's just one hyphenation between
// "net" and "works".
#set page(width: 6... |
https://github.com/Myriad-Dreamin/typst.ts | https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/bugs/math-text-break_00.typ | typst | Apache License 2.0 |
#import "/contrib/templates/std-tests/preset.typ": *
#show: test-page
$ x := "a\nb\nc\nd\ne" $
|
https://github.com/jamesrswift/journal-ensemble | https://raw.githubusercontent.com/jamesrswift/journal-ensemble/main/src/article.typ | typst | The Unlicense | #import "part.typ"
#import "elements.typ"
#let header(citation: [CITATION]) = block(
spacing: 3em,
stack(
dir: ltr,
context part.get(),
h(1fr),
citation
)
)
#let title(body) = {
set par(justify: false)
set text(size: 20pt, weight: 450)
block(
above: 1em,
below: 1em,
body
)
}
... |
https://github.com/jneug/schule-typst | https://raw.githubusercontent.com/jneug/schule-typst/main/src/util/args.typ | typst | MIT License | // ================================
// = Argument handling =
// ================================
//
// Helpers for handling argument sinks and user supplied values.
/// Extracting arguments from an agument sink to pass to other functions.
///
/// Positional arguments are keys to extract from the named argum... |
https://github.com/fuchs-fabian/typst-template-aio-studi-and-thesis | https://raw.githubusercontent.com/fuchs-fabian/typst-template-aio-studi-and-thesis/main/template/abstract.typ | typst | MIT License | #let abstract() = [
#lorem(20)
] |
https://github.com/Dav1com/minerva-report-fcfm | https://raw.githubusercontent.com/Dav1com/minerva-report-fcfm/master/lib/footer.typ | typst | MIT No Attribution | /// Agrega metadata y estado necesarios para otras funciones del template.
/// Si quieres crear tu propio pie de página, es recomendable pasarlo
/// por esta función.
///
/// - it (content): Contenido del pie de página.
/// -> content
#let base(it) = {
set block(spacing: 0pt, clip: false)
set par(leading: 0.4em)
... |
https://github.com/Enter-tainer/typstyle | https://raw.githubusercontent.com/Enter-tainer/typstyle/master/tests/assets/unit/grid/cell.typ | typst | Apache License 2.0 | #table(
columns: 3,
table.header(
[Substance],
[Subcritical °C],
[Supercritical °C],
),
[Hydrochloric Acid],
[12.0], [92.1],
[Sodium Myreth Sulfate],
[16.6], [104],
[Potassium Hydroxide],
table.cell(colspan: 2)[24.7],
)
#import table: cell, header
#table(
columns: 2,
align: center,
... |
https://github.com/jneug/schule-typst | https://raw.githubusercontent.com/jneug/schule-typst/main/src/core/layout.typ | typst | MIT License | #import "@preview/ccicons:1.0.0": ccicon, cc-is-valid
#import "../util/marks.typ"
#import "../util/args.typ"
#import "../theme.typ"
#let format-pagenumber(
current,
body-start,
body-end,
total-pages,
) = {
if current < body-start or current > total-pages [
// #sym.dash
] else if current > body-end {
... |
https://github.com/fenjalien/obsidian-typst | https://raw.githubusercontent.com/fenjalien/obsidian-typst/master/CHANGELOG.md | markdown | Apache License 2.0 | # 0.10.0
- Upgrade to Typst 0.11.0
- Update fonts to be equal with Typst 0.11
# 0.9.0
- Upgrade to Typst 0.10.0
- Remove SVGO dependency
- SVG output now scales with the line size [#39](https://github.com/fenjalien/obsidian-typst/issues/39)
# 0.8.0
- Upgrade to Typst 0.9.0
- Fix slow loading times [#34](https://gith... |
https://github.com/AxiomOfChoices/Typst | https://raw.githubusercontent.com/AxiomOfChoices/Typst/master/Templates/generic.typ | typst | #let latex(
doc,
) = {
set page(
margin: (x: 2cm, top: 2cm, bottom: 2cm),
header-ascent: 18%,
)
set par(leading: 0.55em, first-line-indent: 1.8em, justify: true)
set text(font: "New Computer Modern", size: 12pt)
show raw: set text(font: "New Computer Modern Mono")
show par: set block(spacing: 0.55... | |
https://github.com/donghoony/KUPC-2023 | https://raw.githubusercontent.com/donghoony/KUPC-2023/master/problems.typ | typst | #let raw_problems = (
// Div.2 Number, Div.1 Number, Title, Difficulty, 예상 티어 "bsgpdr" 중 하나, 출제진 튜플 - 1명인 경우 뒤에 콤마 붙여야함
// 정해 알고리즘, div2(AC, submission), div2 퍼솔, Div1(AC, submissions), Div1 퍼솔
("A", " ", "얼룩말을 찾아라!", "Beginner", "b",
(("이동훈", "aru0504"),), "implementation, string",
... | |
https://github.com/yue-dongchen/LibreBitexts | https://raw.githubusercontent.com/yue-dongchen/LibreBitexts/master/utils.typ | typst | Other | #let parallel-text(left, right) = {
set par(justify: true)
grid(
columns: (1fr, 1fr),
gutter: 11pt,
left,
if right != [] [
#right
] else [
#rect(radius: (rest: 5pt))[#emph[Omission by the translator]]
]
)
}
|
https://github.com/lucifer1004/leetcode.typ | https://raw.githubusercontent.com/lucifer1004/leetcode.typ/main/solutions/s0002.typ | typst | #import "../helpers.typ": *
#let add-two-numbers-ref(l1, l2) = {
let p = ()
let carry = 0
while l1.val != none or l2.val != none {
let x = if l1.val != none { l1.val } else { 0 }
let y = if l2.val != none { l2.val } else { 0 }
let sum = x + y + carry
carry = calc.floor(sum / 10)
p.push(calc.r... | |
https://github.com/Myriad-Dreamin/tinymist | https://raw.githubusercontent.com/Myriad-Dreamin/tinymist/main/crates/tinymist-query/src/fixtures/call_info/user_named.typ | typst | Apache License 2.0 | #let f(x, y: none) = x + y
#(/* position after */ f(y: 1, 1)) |
https://github.com/Myriad-Dreamin/typst.ts | https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/layout/terms_02.typ | typst | Apache License 2.0 |
#import "/contrib/templates/std-tests/preset.typ": *
#show: test-page
// Test multiline.
#set text(8pt)
/ Fruit: A tasty, edible thing.
/ Veggie:
An important energy source
for vegetarians.
|
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/physica/0.8.0/README.md | markdown | Apache License 2.0 | # The physica module (for physics)
[](https://github.com/Leedehai/typst-physics/actions/workflows/ci.yml)
[][latest-release]
The [manual](p... |
https://github.com/boladouro/ME | https://raw.githubusercontent.com/boladouro/ME/main/1/pro%20prof/relatorio/template.typ | typst | // #import "@preview/algo:0.3.3": algo, i, d, comment, code
#import "@preview/tablex:0.0.5": vlinex, hlinex
#let project(fontsize:12pt, doc) ={
let calculated_leading = 10.95pt
set heading(
bookmarked: true
)
set text(
font: "Times New Roman",
size: fontsize,
hyphenate: false,
lang: "pt",
... | |
https://github.com/horaoen/typstempl | https://raw.githubusercontent.com/horaoen/typstempl/master/README.md | markdown | # personal typst template | |
https://github.com/AU-Master-Thesis/thesis | https://raw.githubusercontent.com/AU-Master-Thesis/thesis/main/sections/3-methodology/study-1/architecture.typ | typst | MIT License | #import "../../../lib/mod.typ": *
=== Architecture <s.m.architecture>
This section presents the architectural and software design patterns used in the design of the simulation. Areas where the design differs from the original work are argued for and motivations for why a different choice was mode is laid and reasoned ... |
https://github.com/yhtq/Notes | https://raw.githubusercontent.com/yhtq/Notes/main/数学模型/作业/hw3.typ | typst | #import "../../template.typ": proof, note, corollary, lemma, theorem, definition, example, remark, proposition,der, partialDer, Spec
#import "../../template.typ": *
// Take a look at the file `template.typ` in the file panel
// to customize this template and discover how it works.
#show: note.with(
title: "作业2",
au... | |
https://github.com/randyttruong/496notes | https://raw.githubusercontent.com/randyttruong/496notes/master/README.md | markdown | # COMP_SCI 496: Graduate Algorithms Notes
These are my notes for the _Graduate Algorithms_ course offered at Northwestern University
Spring 2024. This course is just an introductory course in upper-level algorithm
analysis.
## Course Prerequisites (imo)
- Discrete Mathematics (of course)
- Combinatorics
- Prob... | |
https://github.com/BeiyanYunyi/resume | https://raw.githubusercontent.com/BeiyanYunyi/resume/main/README.md | markdown | # 个人简历
使用 typst 和 [Brilliant-CV](https://github.com/mintyfrankie/brilliant-CV) 编写,可供参考。
| |
https://github.com/AnsgarLichter/cv-typst | https://raw.githubusercontent.com/AnsgarLichter/cv-typst/main/cv-de.typ | typst | #import "template.typ": *
#import "@preview/fontawesome:0.1.0": *
#show: cv
#let icons = (
phone: fa-phone(),
homepage: fa-home(fill: colors.accent),
linkedin: fa-linkedin(fill: colors.accent),
github: fa-github(fill: colors.accent),
xing: fa-xing(),
mail: fa-envelope(fill: colors.accent)
)
#header(
fu... | |
https://github.com/Cheng0Xin/typst-libs | https://raw.githubusercontent.com/Cheng0Xin/typst-libs/master/README.md | markdown | # Installation
## For mac user
```sh
rm -rf ~/Library/Application\ Support/typst/packages/local/note/1.0.0
rm -rf ~/Library/Application\ Support/typst/packages/local/semantics/1.0.0
rm -rf ~/Library/Application\ Support/typst/packages/local/acg-comment/1.0.0
ln -s ~/Workspace/typst-libs/note \
~/Library/Application... | |
https://github.com/Jollywatt/typst-fletcher | https://raw.githubusercontent.com/Jollywatt/typst-fletcher/master/docs/readme-examples/flowchart-trap.typ | typst | MIT License | // https://xkcd.com/1195/
#import fletcher.shapes: diamond
#set text(font: "Comic Neue", weight: 600)
#diagram(
node-stroke: 1pt/*<*/ + fg/*>*/,
edge-stroke: 1pt/*<*/ + fg/*>*/,
crossing-fill: bg, // hide
node((0,0), [Start], corner-radius: 2pt, extrude: (0, 3)),
edge("-|>"),
node((0,1), align(center)[
Hey, wa... |
https://github.com/chamik/gympl-skripta | https://raw.githubusercontent.com/chamik/gympl-skripta/main/uvod.typ | typst | Creative Commons Attribution Share Alike 4.0 International | #import "@preview/ccicons:1.0.0": cc-url
#set page(margin: 3cm)
#set block(spacing: 1.5em)
#show heading: it => [
#set text(30pt)
#it
]
#heading(numbering: none)[Úvod]
#v(1em)
V životě každého středoškoláka nastane divná, přechodná chvíle, kdy je vyhozen z hnízda. Doufám, že ti následující poznámky, shrnující ... |
https://github.com/Relacibo/typst-as-lib | https://raw.githubusercontent.com/Relacibo/typst-as-lib/main/CHANGELOG.md | markdown | MIT License | # Changelog
## [0.11.0] - *
- `IntoCachedFileResolver` - wraps the file resolver in an in-memory cache
## [0.10.0] - 2024-10-19
- Updated Typst dependency to version 0.12.0
- compile functions:
- `tracer` argument removed
- Return Type of is now wrapped in `Warned` type
- Added optional in-memory-caching of... |
https://github.com/Myriad-Dreamin/typst.ts | https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/docs/download-font-assets.md | markdown | Apache License 2.0 | # Prerequisite - Download Font Assets
The font assets for Typst.ts are not included in this repository. You need to download and put them in following directories.
- To make Compiler happy, linking the font directory to `assets/fonts`.
- To make the [Renderer Sample](https://github.com/Myriad-Dreamin/typst.ts/blob/9... |
https://github.com/xbunax/tongji-undergrad-thesis | https://raw.githubusercontent.com/xbunax/tongji-undergrad-thesis/main/CONTRIBUTING.md | markdown | MIT License | # CONTRIBUTING
## Contents
* source files: as a template repository, "source files" are ".typ", ".bib" and some related files with other extension names.
* doc files: including all ".typ" files and even "main.typ", which show how to use "source files".
* config files: These files make our development and use of templ... |
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/modernpro-coverletter/0.0.1/template/main.typ | typst | Apache License 2.0 | #import "@preview/modernpro-coverletter:0.0.1": *
#show: main.with(
font-type: "openfont",
name: [#lorem(2)],
address: [#lorem(4)],
contacts: (
(text: "08856", link: ""),
(text: "example.com", link: "https://www.example.com"),
(text: "github.com", link: "https://www.github.com"),
(text: "<EMAIL... |
https://github.com/chendaohan/bevy_tutorials_typ | https://raw.githubusercontent.com/chendaohan/bevy_tutorials_typ/main/27_visibility/visibility.typ | typst | #set page(fill: rgb(35, 35, 38, 255), height: auto, paper: "a3")
#set text(fill: color.hsv(0deg, 0%, 90%, 100%), size: 22pt, font: "Microsoft YaHei")
#set raw(theme: "themes/Material-Theme.tmTheme")
= 1. 可见性
在 Bevy 中,Visibility 用于控制某物是否被渲染。如果你希望一个实体存在于世界中,但不显示出来,你可以将其隐藏。
```rs
commands
.spawn(
MaterialMesh... | |
https://github.com/comforttiger/lipu-sona-pi-toki-pona | https://raw.githubusercontent.com/comforttiger/lipu-sona-pi-toki-pona/main/public/en/pdf/lipu-sona.typ | typst | Creative Commons Attribution Share Alike 4.0 International | #set text(
font: ("Ubuntu", "nasin-nanpa"),
lang: "en"
)
#show enum: item => [
#set text(style: "italic")
#item
]
#let answers(label) = {
link(label)[_answers on page #locate(loc => {
query(label, loc).first().location().page()
})_]
}
#let questions(label) = {
link(label)[_questions on page #locate(loc => {... |
https://github.com/frectonz/the-pg-book | https://raw.githubusercontent.com/frectonz/the-pg-book/main/book/059.%20startuplessons.html.typ | typst | startuplessons.html
The Hardest Lessons for Startups to Learn
April 2006(This essay is derived from a talk at the 2006
Startup School.)The startups we've funded so far are pretty quick, but they seem
quicker to learn some lessons than others. I think it's because
some things about startups are kind of counterintuiti... | |
https://github.com/wuespace/vos | https://raw.githubusercontent.com/wuespace/vos/main/README.md | markdown | # WüSpace VOS (Vereinsordnungssystem)
## § 1 Beschreibung
(1) Das Vereinsordnungssystem (VOS) dient als Publikationsplattform für Vereinsordnungen (inkl. der Satzung), welche mit delegis / Typst erstellt wurden. Das VOS ist ein Projekt des Vereins WüSpace e. V. und wird von diesem betrieben.
(2) $^1$ Das VOS agiert ... | |
https://github.com/matthisearth/typstifier | https://raw.githubusercontent.com/matthisearth/typstifier/main/README.md | markdown | MIT License | # typstifier
The goal of this project is to write a character classifier which outputs the command needed in
[Typst](https://typst.app/) to generate the drawn symbol. The project is currently under active
development and not functional yet.
# Setup
In order to build this project, you will need to have [Rust](https:/... |
https://github.com/DieracDelta/presentations | https://raw.githubusercontent.com/DieracDelta/presentations/master/polylux/book/src/dynamic/alternatives.md | markdown | # `#alternatives` to substitute content
The so far discussed helpers `#pause`, `#one-by-one` etc. all build upon `#uncover`.
There is an analogon to `#one-by-one` that is based on `#only`, namely
`#alternatives`.
You can use it to show some content on one subslide, then substitute it by
something else, then by somethin... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.