repo stringlengths 26 115 | file stringlengths 54 212 | language stringclasses 2
values | license stringclasses 16
values | content stringlengths 19 1.07M |
|---|---|---|---|---|
https://github.com/nathanielknight/tsot | https://raw.githubusercontent.com/nathanielknight/tsot/main/src/common_moves.typ | typst | #let introduce = [
- Introduce your character. Give them a name and two or three traits from the Character Elements sheet. Describe what they look like and how the audience should feel about them. How is this information communicated?
]
#let setting = [
- Mark a Trait on the Settings or Mission Elements Sheet. How is ... | |
https://github.com/seapat/markup-resume-lib | https://raw.githubusercontent.com/seapat/markup-resume-lib/main/cover_letter.typ | typst | Apache License 2.0 | // This function gets your whole document as its `body`
// and formats it as a simple letter.
#let letter(
// render_settings,
// The letter's sender, which is display at the top of the page.
sender: none,
// The letter's recipient, which is displayed close to the top.
recipient: none,
// The date, displaye... |
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/cetz/0.2.0/src/path-util.typ | typst | Apache License 2.0 | #import "@preview/oxifmt:0.2.0": strfmt
// This file contains utility functions for path calculation
#import "util.typ"
#import "vector.typ"
#import "bezier.typ"
#let default-samples = 25
/// Get first position vector of a path segment
///
/// - s (segment): Path segment
/// -> vector
#let segment-start(s) = {
re... |
https://github.com/kaarmu/splash | https://raw.githubusercontent.com/kaarmu/splash/main/src/palettes/seaborn.typ | typst | MIT License | #let bright = (
blue: rgb("#023EFF"),
orange: rgb("#FF7C00"),
green: rgb("#1AC938"),
red: rgb("#E8000B"),
purple: rgb("#8B2BE2"),
brown: rgb("#9F4800"),
magenta: rgb("#F14CC1"),
gray: rgb("#A3A3A3"),
yellow: rgb("#FFC400"),
cyan: rgb("#00D7FF"),
)
#let bright6 = (
blue: rgb("#023EFF"),
green: r... |
https://github.com/zadigus/math | https://raw.githubusercontent.com/zadigus/math/main/number-theory/README.md | markdown | # Compile
typst compile main.typ main.pdf
| |
https://github.com/wzy1935/Typst-Blocks | https://raw.githubusercontent.com/wzy1935/Typst-Blocks/master/README.md | markdown | # Typst Blocks
My personal Typst template blocks. Load it like this:
```
#import "blocks.typ": *
```
See use cases in `examples`.
| |
https://github.com/jgm/typst-hs | https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/math/cancel-05.typ | typst | Other | // Rotated
$x + cancel(y, rotation: #90deg) - cancel(z, rotation: #135deg)$
$ e + cancel((j + e)/(f + e)) - cancel((j + e)/(f + e), rotation: #30deg) $
|
https://github.com/Trebor-Huang/HomotopyHistory | https://raw.githubusercontent.com/Trebor-Huang/HomotopyHistory/main/category.typ | typst | #import "common.typ": *
= 范畴论
范畴是数学中广泛存在的抽象结构. 一个*范畴*由一些对象 ${X, Y, dots}$ 与这些对象之间的态射 $f : X -> Y$ 组成. 每个对象有恒同态射 $id : X -> X$, 态射之间有复合操作, 满足结合律. 例如, 以群作为对象, 群同态作为态射, 就构成一个范畴. 如此抽象的定义仍然有实用价值, 令人吃惊. 例如, 可以抽象地定义*同构*的概念, 即两个映射 $f : X -> Y$, $g : Y -> X$, 使得互相复合都得到恒同态射.
尽管范畴论来自同调代数的研究, 但是它的抽象性决定了它能应用于非常多的领域, 例如代数、几何、逻辑, 甚... | |
https://github.com/PgBiel/glypst | https://raw.githubusercontent.com/PgBiel/glypst/main/README.md | markdown | MIT License | # glypst
Typst bindings for Gleam
[](https://hex.pm/packages/glypst)
[](https://hexdocs.pm/glypst/)
```sh
gleam add glypst
```
```gleam
import glypst
pub fn main() {
// TODO: An example of the project... |
https://github.com/kokkonisd/typst-phd-template | https://raw.githubusercontent.com/kokkonisd/typst-phd-template/main/examples/report.typ | typst | The Unlicense | // Replace 0.2.3 with the version of the template you've installed.
#import "@local/phd-template:0.2.3" as template
#show: doc => template.report-setup(
doc,
title: "Annual thesis report",
subtitle: "Very interesting and long title of the thesis",
subtitle-size: 20pt,
date: datetime(day: 23, month... |
https://github.com/TJ-CSCCG/tongji-slides-typst | https://raw.githubusercontent.com/TJ-CSCCG/tongji-slides-typst/main/main.typ | typst | MIT License | #import "@preview/polylux:0.3.1": *
#import "./theme/university.typ": *
#show: university-theme.with(
short-author: "Short author", short-title: "Short title", short-date: "Short date",
)
#set text(size: 15pt)
//#let cell = rect.with(width: 100%, height: 46%, stroke: none)
#title-slide(
authors: ("李狗蛋", "蛋狗李"), t... |
https://github.com/swablab/documents | https://raw.githubusercontent.com/swablab/documents/main/spendenbescheinigung.typ | typst | Creative Commons Zero v1.0 Universal | #import "templates/tmpl_page.typ": tmpl_page
#import "templates/common.typ": colors
#import "templates/form.typ": form_field
#let config = yaml("spendenbescheinigung.yml")
#show: doc => tmpl_page(
title: "Spendenbescheinigung",
doc,
)
// DIN 5008 Sichtfenster: 45mm
#place(
top+left,
dy: 25mm,
)[
#text(size:... |
https://github.com/jgm/typst-hs | https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/compute/calc-15.typ | typst | Other | // Test the `min` and `max` functions.
#test(calc.min(2, -4), -4)
#test(calc.min(3.5, 1e2, -0.1, 3), -0.1)
#test(calc.max(-3, 11), 11)
#test(calc.min("hi"), "hi")
|
https://github.com/SWATEngineering/Docs | https://raw.githubusercontent.com/SWATEngineering/Docs/main/src/3_PB/VerbaliInterni/VerbaleInterno_240315/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/kaarmu/splash | https://raw.githubusercontent.com/kaarmu/splash/main/src/palettes/tol.typ | typst | MIT License | /* <NAME>'s (2021) color scheme.
*
* All colors and descriptions are credited <NAME>, see source below.
*
* Source: https://personal.sron.nl/~pault/data/colourschemes.pdf
* Accessed: 2023-04-12
*/
#let tol-bright = (
blue : rgb("#4477aa"),
cyan : rgb("#66ccee"),
green : rgb("#228833"),
yellow : rgb(... |
https://github.com/buxx/cv | https://raw.githubusercontent.com/buxx/cv/master/metadata.typ | typst | #let firstName = "Bastien"
#let lastName = "Sevajol"
#let personalInfo = (
github: "buxx",
phone: "+33 6 76 54 83 82",
email: "<EMAIL>",
extraInfo: ("bux.fr & linuxfr.org/users/bux-2")
)
#let headerQuoteInternational = (
"": [Développeur spécialisé dans l'open source depuis 15 ans],
)
#let cvFooterInternat... | |
https://github.com/Myriad-Dreamin/tinymist | https://raw.githubusercontent.com/Myriad-Dreamin/tinymist/main/crates/tinymist-query/src/fixtures/completion/completion_title.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}
-----
// contains:Russell:1908,Mathematical logic based on the theory of types
// compile:true
#set he... |
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/ttt-exam/0.1.0/template/exam.typ | typst | Apache License 2.0 | #import "@preview/ttt-exam:0.1.0": *
#set text(size: 12pt, font: ("Rubik"), weight: 300, lang: "de")
#let logo = box(height: 5cm,image("logo.jpg") )
#show: exam.with(..toml("meta.toml").exam, logo: logo );
= Part 1: Free text questions
#assignment[
Answer the following questions.
#question(points: 1)[
So... |
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/unichar/0.1.0/ucd/block-2EBF0.typ | typst | Apache License 2.0 | #let data = (
"0": ("<CJK Ideograph Extension I, First>", "Lo", 0),
"26d": ("<CJK Ideograph Extension I, Last>", "Lo", 0),
)
|
https://github.com/piepert/philodidaktik-hro-phf-ifp | https://raw.githubusercontent.com/piepert/philodidaktik-hro-phf-ifp/main/src/parts/ephid/unterrichtsplanung/medien.typ | typst | Other | #import "/src/template.typ": *
== #ix("Medien", "Medien", "Medium")
#def("Medien", [
Medien sind Träger und Vermittler von Informationen.
])
Medien sind vielfältig und können im Unterricht verschiedene Aufgaben erfüllen. Unter anderem könnte man sie wie folgt einteilen:
#[
#set par(justify: false)
#table(co... |
https://github.com/leyan/cetzpenguins | https://raw.githubusercontent.com/leyan/cetzpenguins/main/gallery/basicPenguin.typ | typst | MIT License | #import "@preview/cetz:0.2.2"
#import "../src/penguins.typ" :penguin,penguinInternal,anchor-coords
#set page(width: 3cm, height: 4cm)
#set align(center+horizon)
#penguin() |
https://github.com/DaAlbrecht/thesis-TEKO | https://raw.githubusercontent.com/DaAlbrecht/thesis-TEKO/main/content/Use_cases.typ | typst | Three main use cases exist.
- Replay a message based on a header value (Transaction ID) and a queue
- Replay a message based on a given time interval and a queue
- Get messages based on a given time interval and a queue
#figure(
image("../assets/use_case_diagram.svg", width: 65%),
kind: image,
caption: "Use case... | |
https://github.com/fenjalien/metro | https://raw.githubusercontent.com/fenjalien/metro/main/tests/array/exponents/test.typ | typst | Apache License 2.0 | #import "/src/lib.typ": *
#set page(width: auto, height: auto, margin: 1cm)
#for exponents in ("individual", "combine-bracket", "combine") [
#metro-setup(list-exponents: exponents, product-exponents: exponents, range-exponents: exponents)
#num-list("5e3", "7e3", "9e3", "1e4")
#num-product("5e3", "7e3", "9e3",... |
https://github.com/sitandr/typst-examples-book | https://raw.githubusercontent.com/sitandr/typst-examples-book/main/src/snippets/math/fonts.md | markdown | MIT License | # Fonts
## Set math font
**Important:** The font you want to set for math should _contain_ necessary math symbols. That should be a special font with math. If it isn't, you are very likely to get _an error_ (remember to set `fallback: false` and check `typst fonts` to debug the fonts).
```typ
#show math.equation: set ... |
https://github.com/mrcinv/nummat-typst | https://raw.githubusercontent.com/mrcinv/nummat-typst/master/domace_02.typ | typst | #import "@preview/minitoc:0.1.0": *
= 2. domača naloga
Tokratna domača naloga je sestavljena iz dveh delov. V prvem delu morate
implementirati program za računanje vrednosti dane funkcije $f lr((x))$.
V drugem delu pa izračunati eno samo številko. Obe nalogi rešite na
#strong[10 decimalk] \(z relativno natančnostjo $... | |
https://github.com/Myriad-Dreamin/typst.ts | https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/layout/pagebreak_00.typ | typst | Apache License 2.0 |
#import "/contrib/templates/std-tests/preset.typ": *
#show: test-page
// Just a pagebreak.
// Should result in two pages.
#pagebreak()
|
https://github.com/jgm/typst-hs | https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/compiler/array-04.typ | typst | Other | // Test rvalue out of bounds.
// Error: 2-17 array index out of bounds (index: 5, len: 3) and no default value was specified
#(1, 2, 3).at(5)
|
https://github.com/songoffireandice03/simple-template | https://raw.githubusercontent.com/songoffireandice03/simple-template/main/templates/physics.typ | typst | #import "maths.typ": *
#import "@preview/physica:0.9.2": *
#let sc(it) = math.class("normal",
text(font: "", stylistic-set: 1, $cal(it)$) + h(0em)
)
// The physics stuff
#let bernoulli = $p_(1) + rho g y_(1) + dfr(rho v_(1)^(2),2) = p_(2) + rho g y_(2) + dfr(rho v_(2)^(2),2)$
#let ex = $va(e)_(x)$
#let ey = $va(e)_(y... | |
https://github.com/Myriad-Dreamin/typst.ts | https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/bugs/2044-invalid-parsed-ident_00.typ | typst | Apache License 2.0 |
#import "/contrib/templates/std-tests/preset.typ": *
#show: test-page
// In this bug, the dot at the end was causing the right parenthesis to be
// parsed as an identifier instead of the closing right parenthesis.
// Issue: https://github.com/typst/typst/issues/2044
$floor(phi.alt.)$
$floor(phi.alt. )$
|
https://github.com/jonaspleyer/peace-of-posters | https://raw.githubusercontent.com/jonaspleyer/peace-of-posters/main/docs/content/showcase/2023-10-23-bwHPC-symposium/main.typ | typst | MIT License | /// IMPORT THE POSTERS PACKAGE
#import "@preview/peace-of-posters:0.4.3" as pop
// Define overall formatting defaults for the document.
// These settings can be overwritten later on.
#let spacing = 1.2em
#set page("a0", margin: 1.5cm)
#pop.set-poster-layout(pop.layout-a0)
#pop.set-theme(pop.uni-fr)
#set text(font: "A... |
https://github.com/jgm/typst-hs | https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/compiler/show-node-09.typ | typst | Other | // Error: 7-12 only element functions can be used as selectors
#show upper: it => {}
|
https://github.com/arturfast/basic-resume-template | https://raw.githubusercontent.com/arturfast/basic-resume-template/master/basic-resume-template.typ | typst | // Basic Resume Template Artur Fast 2024
// Run this function first to format the whole document
// Include it like this: #show: format.with()
#let format(body) = {
set page(margin: (y: 1cm, x: 1cm))
set text(
font: "Ubuntu",
size: 11pt
)
show heading: set text(weight: "regular")
show head... | |
https://github.com/ludwig-austermann/typst-timetable | https://raw.githubusercontent.com/ludwig-austermann/typst-timetable/main/example/2023.typ | typst | MIT License | #import "../timetable.typ": timetable
#set page(margin: 0.5cm, height: auto)
#timetable(
toml("2023.toml"),
//language: "it",
//date: [this year],
//show-header: false,
//show-alternatives: false,
//show-description: false,
//color-theme: "Set1_9",
) |
https://github.com/SundaeSwap-finance/sundae-audits-public | https://raw.githubusercontent.com/SundaeSwap-finance/sundae-audits-public/main/example/example.typ | typst | #import "../template/audit.typ": *
#show: report.with(
client: "Example",
title: "Example audit report",
repo: "https://github.com/SundaeSwap-finance/sundae-audits",
date: "2023-01-15",
authors: (
(
name: "<NAME>",
display: text(1.3em, $pi$) + " Lanningham",
),
),
)
= Audit Manifest
P... | |
https://github.com/VZkxr/Typst | https://raw.githubusercontent.com/VZkxr/Typst/master/Seminario/Presentacion/presentation.typ | typst | #let blanco = luma(95%)
#let negro = luma(14%)
#let escarlata = rgb("EA2F15")
#let naranja = rgb("FF9900")
#let amarillo = rgb("FFD000")
#let chartreuse = rgb("C9ED36")
#let verde = rgb("00C735")
#let cerceta = rgb("00BCA3")
#let cian = rgb("00BAD4")
#let ceruleo = rgb("0086DF")
#let indigo = rgb("1D20A3")
#let morado ... | |
https://github.com/miliog/typst-penreport | https://raw.githubusercontent.com/miliog/typst-penreport/master/typst-penreport/helper/author.typ | typst | MIT No Attribution | #let getAuthorString(authors, onlyPentester) = {
let authorString = ""
for author in authors {
if (onlyPentester and author.pentester) or not onlyPentester {
authorString += author.name + ", "
}
}
authorString = authorString.slice(0, -2)
return authorString
} |
https://github.com/piepert/grape-suite | https://raw.githubusercontent.com/piepert/grape-suite/main/examples/seminar-paper01.typ | typst | MIT License | #import "/src/library.typ": seminar-paper, german-dates
#import seminar-paper: todo, blockquote, definition, sidenote
#let definition = definition.with(figured: true)
#set text(lang: "de")
#show: seminar-paper.project.with(
title: "Die Intensionalität von dass-Sätzen",
subtitle: "Intensionale Kontexte in phi... |
https://github.com/donabe8898/typst-slide | https://raw.githubusercontent.com/donabe8898/typst-slide/main/opc/並行prog/02/02.typ | typst | MIT License | // typst compile 02.typ /home/yugo/git/donabe8898/typst-slide/opc/並行prog/02/第2回/{n}.png --format png
#import "@preview/polylux:0.3.1": *
#import themes.clean: *
#show: clean-theme.with(
aspect-ratio: "16-9",
footer: "Goであそぼう",
// short-title: "",
logo: image("02素材/gopher.svg"),
color: teal
)
#show link: se... |
https://github.com/MattiaOldani/Informatica-Teorica | https://raw.githubusercontent.com/MattiaOldani/Informatica-Teorica/master/capitoli/complessità/18_risorsa_spazio.typ | typst | #import "@preview/algo:0.3.3": algo, i, d
#import "../alias.typ": *
= Spazio di memoria
Veniamo ora alla formalizzazione dell'altra importante risorsa di calcolo, ovvero lo *spazio di memoria*, inteso come quantità di memoria occupata durante la computazione.
== Complessità in spazio (1)
Data la DTM $M = (Q, Sigm... | |
https://github.com/roife/resume | https://raw.githubusercontent.com/roife/resume/master/resume-cn.typ | typst | MIT License | #import "chicv.typ": *
#show: chicv
= #redact(alter: "roife")[占位符]
#fa[#phone] #redact(mark: true)[00000000000] |
#fa[#envelope] <EMAIL> |
#fa[#github] #link("https://github.com/roife")[roife] |
#fa[#globe] #link("https://roife.github.io/about")[roife.github.io] |
#fa[#location-arrow] 北京 / 上海 / 杭州
== 教育... |
https://github.com/Myriad-Dreamin/typst.ts | https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/layout/pagebreak-parity_00.typ | typst | Apache License 2.0 |
#import "/contrib/templates/std-tests/preset.typ": *
#show: test-page
#set page(width: 80pt, height: 30pt)
First
#pagebreak(to: "odd")
Third
#pagebreak(to: "even")
Fourth
#pagebreak(to: "even")
Sixth
#pagebreak()
Seventh
#pagebreak(to: "odd")
#page[Ninth]
|
https://github.com/quarto-ext/typst-templates | https://raw.githubusercontent.com/quarto-ext/typst-templates/main/ams/README.md | markdown | Creative Commons Zero v1.0 Universal | # Typst AMS Format
Based on the AMS template published by the Typst team at <https://github.com/typst/templates/tree/main/ams>.
**NOTE**: This format requires the pre-release version of Quarto v1.4, which you can download here: <https://quarto.org/docs/download/prerelease>.
## Installing
```bash
quarto use template... |
https://github.com/PgBiel/typst-oxifmt | https://raw.githubusercontent.com/PgBiel/typst-oxifmt/main/tests/strfmt-tests.typ | typst | Apache License 2.0 | #import "../oxifmt.typ": strfmt
#{
// test basics (sequential args, named args, pos args)
assert.eq(strfmt("a {} b {} c {named} {0} {1}", 10, "tests", named: -24), "a 10 b tests c -24 10 tests")
// test {:?} (force usage of repr())
assert.eq(strfmt("a {} c {} d {:?}", true, "testA", "testA"), "a true c testA ... |
https://github.com/camp-d/Notes | https://raw.githubusercontent.com/camp-d/Notes/main/math4190.typ | typst | #set par(justify: true)
= Math 4190 Spring 2024 - Dr. <NAME>
= Properties of sets
+ Counting and Sets
$ A = (A - B) union (A sect B) $
$ B = (B - A) union (A sect B) $
$ |A union B| = |A| + |B| - |A sect B|$
formulas for cardinalities of unions/intersections of sets
$ |A union B| = |A| + |B| - |A sect B|$
$ |A un... | |
https://github.com/jens-hj/ds-exam-notes | https://raw.githubusercontent.com/jens-hj/ds-exam-notes/main/lectures/5.typ | typst | #import "../lib.typ": *
#show link: it => underline(emph(it))
#set math.equation(numbering: "(1)")
#set enum(full: true)
#set math.mat(delim: "[")
#set math.vec(delim: "[")
#set list(marker: text(catppuccin.latte.lavender, sym.diamond.filled))
#show heading.where(level: 1): it => text(size: 22pt, it)
#show heading.wh... | |
https://github.com/Myriad-Dreamin/tinymist | https://raw.githubusercontent.com/Myriad-Dreamin/tinymist/main/syntaxes/textmate/tests/unit/bugs/bad_ident.typ | typst | Apache License 2.0 |
#let true- = 1;
#let auto- = 1;
#let any- = 1;
#let none- = 1;
#let false- = 1;
#let true- = 1;
#let break- = 1;
#let continue- = 1;
#let and- = 1;
#let or- = 1;
#let not- = 1;
#let return- = 1;
#let as- = 1;
#let in- = 1;
#let include- = 1;
#let import- = 1;
#let let- = 1;
#let else- = 1;
#let if- = 1;
#let for- = 1;... |
https://github.com/FlorentCLMichel/quetta | https://raw.githubusercontent.com/FlorentCLMichel/quetta/main/src/quetta.typ | typst | MIT License | #import "quenya.typ": quenya
#import "gondor.typ": gondor
|
https://github.com/XcantloadX/TypstMomoTalk | https://raw.githubusercontent.com/XcantloadX/TypstMomoTalk/main/momotalk/__characters_templ.typ | typst | #import "momotalk.typ": chat, msgbox, messages
#import "momotalk.typ": COLOR_MSGBOX_SENSEI_BG
#let __wrap(name, filename) = messages.with(name, filename)
#let sensei = messages.with(none, none, direction: "right", background_color: COLOR_MSGBOX_SENSEI_BG)
#let laoshi = sensei
#let 老师 = sensei
| |
https://github.com/chamik/gympl-skripta | https://raw.githubusercontent.com/chamik/gympl-skripta/main/main.typ | typst | Creative Commons Attribution Share Alike 4.0 International | #import "@preview/ccicons:1.0.0": cc-by-sa
#import "helper.typ": *
#set document(title: [Gympl Skripta], author: "<NAME>", date: auto)
#set page(paper: "a4")
#set heading(numbering: "1.")
#set text(size: 13pt, lang: "cs")
#set footnote(numbering: "*")
#set quote(block: true)
#set par(justify: true)
#show link: it => ... |
https://github.com/SkytAsul/trombinoscope | https://raw.githubusercontent.com/SkytAsul/trombinoscope/main/pages/pageRemerciements.typ | typst | MIT License | #show: it => align(horizon + center, block(width: 90%, align(left, it)))
#align(center)[= Remerciements]
#v(2em)
#set text(size: 1.2em)
#set par(justify: true)
Ce projet de trombinoscope a été mené par : <NAME>, <NAME>, <NAME>, <NAME> et <NAME>.
#v(2em)
Merci à <NAME> et <NAME> pour la mise en page du trombinosco... |
https://github.com/TypstApp-team/typst | https://raw.githubusercontent.com/TypstApp-team/typst/master/docs/guides/page-setup.md | markdown | Apache License 2.0 | ---
description: |
An in-depth guide to setting page dimensions, margins, and page numbers in
Typst. Learn how to create appealing and clear layouts and get there quickly.
---
# Page setup guide
Your page setup is a big part of the first impression your document gives. Line
lengths, margins, and columns influence
... |
https://github.com/davystrong/umbra | https://raw.githubusercontent.com/davystrong/umbra/main/gallery/neumorphism.typ | typst | MIT License | #import "@preview/umbra:0.1.0": shadow-path
#let background-colour = color.rgb("#EFEEEE")
#let radius = 0.4cm
#set page(width: 15cm, height: 15cm, margin: 0.5cm, fill: background-colour)
#box(
{
place(shadow-path(
shadow-stops: (white.mix((background-colour, 50%)), background-colour,),
shadow-radiu... |
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/silky-report-insa/0.1.0/lib.typ | typst | Apache License 2.0 | // FULL DOCUMENT :
#let insa-full(
cover-top-left: [],
cover-middle-left: [],
cover-bottom-right: [],
page-header: [],
doc
) = {
set text(lang: "fr")
set page("a4")
// IMAGE
place(dx: -2.5cm, dy: -2.5cm, image("cover.jpeg", width: 20.9cm, height: 29.6cm))
// TOP-LEFT
place(
dy: 4cm,
blo... |
https://github.com/jgm/typst-hs | https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/layout/enum-03.typ | typst | Other | // Mix of different lists
- Bullet List
+ Numbered List
/ Term: List
|
https://github.com/Myriad-Dreamin/tinymist | https://raw.githubusercontent.com/Myriad-Dreamin/tinymist/main/crates/tinymist-query/src/fixtures/goto_definition/module_select.typ | typst | Apache License 2.0 | // path: variable.typ
#let f(x) = 2;
-----
#import "variable.typ"
#(variable.f /* position after */ );
|
https://github.com/polarkac/MTG-Stories | https://raw.githubusercontent.com/polarkac/MTG-Stories/master/stories/999_Unknown%20Set.typ | typst | #import "@local/mtgset:0.1.0": conf
#show: doc => conf("Unknown Set", doc)
| |
https://github.com/ngoetti/knowledge-key | https://raw.githubusercontent.com/ngoetti/knowledge-key/master/template/sections/02-devops-with-gitlab.typ | typst | MIT License | #import "../utils.typ": *
= DevOps with Gitlab
#sourcecode[```yaml
default:
image: alpine:3.19.1
------
rules:
- if: $CI_COMMIT_BRANCH == "main"
rules:
- changes:
- README.md
```]
== Automated application deployment
=== Declaring deployment environments
Environments in Gitlab define where code gets deployed... |
https://github.com/lxl66566/my-college-files | https://raw.githubusercontent.com/lxl66566/my-college-files/main/信息科学与工程学院/信息技术工程导论/main.typ | typst | The Unlicense | #import "../template.typ": *
#show: project.with(
title: "软件设计",
authors: ("absolutex",),
)
= 软件设计与开发
== 主要职责
+ 根据手柄硬件设计文档,设计手柄的软件驱动并完成开发;
+ 对接 Windows/Linux 系统,确保手柄能与 Windows/Linux 通过适当的协议进行通信;
+ #strike[编写测试计划并完成测试。]
== 系统 API 调研
=== 协议对比
// https://learn.microsoft.com/en-us/windows-hardware/drivers/hid/
... |
https://github.com/olligobber/friggeri-cv | https://raw.githubusercontent.com/olligobber/friggeri-cv/master/friggeri.typ | typst | #let cv(
title,
subtitle: [],
asideContent,
mainContent,
) = {
set page(
paper: "a4",
margin: 0pt,
)
// Define some preset colours to use
let white = rgb("#ffffff")
let gray = rgb("#4D4D4D")
let lightgray = rgb("#999999")
let green = rgb("#C2E15F")
let orange = rgb("#FDA333")
let purple = rgb("#D3A4... | |
https://github.com/marisbaier/Typst_eineTeXAlternative | https://raw.githubusercontent.com/marisbaier/Typst_eineTeXAlternative/main/HowToTemplate/template.typ | typst | #let template(
title: [],
body
) = {
set heading(numbering: "1.")
set math.equation(numbering: "1.")
align(center)[
#text(weight: 700, size: 20pt)[#title]
]
body
}
| |
https://github.com/jomaway/typst-bytefield | https://raw.githubusercontent.com/jomaway/typst-bytefield/main/README.md | markdown | MIT License | # typst-bytefield
A simple way to create network protocol headers, memory maps, register definitions and more in typst.
⚠️ Warning. As this package is still in an early stage, things might break with the next version.
ℹ️ If you find a bug or a feature which is missing, please open an issue and/or send an PR.
## Ex... |
https://github.com/jamesrswift/pixel-pipeline | https://raw.githubusercontent.com/jamesrswift/pixel-pipeline/main/src/pipeline/sorting/dependency.typ | typst | The Unlicense | #let sort(
commands
) = {
// No incoming: unnamed:
let L = ()
return commands
} |
https://github.com/MilanR312/ugent_typst_template | https://raw.githubusercontent.com/MilanR312/ugent_typst_template/main/template/methods/plot.typ | typst | MIT License | #import "@preview/plotst:0.2.0": *
|
https://github.com/AU-Master-Thesis/thesis | https://raw.githubusercontent.com/AU-Master-Thesis/thesis/main/sections/2-background/factor-graphs.typ | typst | MIT License | #import "../../lib/mod.typ": *
// #v(-1em)
== Factor Graphs <s.b.factor-graphs>
// NOTES:
// Explain the concept of factor graphs
// - variables and factors
// - visually it is undirected bipartite graph
// - factorization of a joint function
// - factors are functions that determine probability, not probability in th... |
https://github.com/polarkac/MTG-Stories | https://raw.githubusercontent.com/polarkac/MTG-Stories/master/stories/028%20-%20Kaladesh/004_Renegade%20Prime.typ | typst | #import "@local/mtgstory:0.2.0": conf
#show: doc => conf(
"Renegade Prime",
set_name: "Kaladesh",
story_date: datetime(day: 14, month: 09, year: 2016),
author: "<NAME>",
doc
)
#emph[<NAME> first left her home plane of Kaladesh when her Planeswalker spark ignited, vaulting her from imminent doom at ... | |
https://github.com/Mc-Zen/quill | https://raw.githubusercontent.com/Mc-Zen/quill/main/docs/guide/quill-guide.typ | typst | MIT License | #import "template.typ": *
#import "@preview/tidy:0.3.0"
#let version = toml("/typst.toml").package.version
#show link: set text(fill: rgb("#1e8f6f"))
#show: project.with(
title: "Quill",
authors: ("Mc-Zen",),
abstract: [Quill is a library for creating quantum circuit diagrams in #link("https://typst.app/", [Ty... |
https://github.com/DawodGAMIETTE/ENSEA_template-Typst | https://raw.githubusercontent.com/DawodGAMIETTE/ENSEA_template-Typst/master/README.md | markdown | # ENSEA - Typst Template
<p align="center"> <img src="typst-banner.png" </p>
Custom templates for documents made at ENSEA.
| |
https://github.com/jgm/typst-hs | https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/meta/ref-05.typ | typst | Other |
#show ref: it => {
if it.element != none {
if it.element.func() == text {
let element = it.element
"["
element
"]"
} else if it.element.func() == underline {
let element = it.element
"{"
element
"}"
} else {
it
}
} else {
it
}
}
@txt
Ref... |
https://github.com/donabe8898/typst-slide | https://raw.githubusercontent.com/donabe8898/typst-slide/main/opc/単発/linux02/main.typ | typst | MIT License | #import "@preview/polylux:0.3.1": *
#import themes.metropolis: *
#show: metropolis-theme.with(
aspect-ratio: "16-9",
footer: "ArchLinuxの勧誘"
// short-title: "ArchLinuxの勧誘",
// short-author: "donabe8898",
// short-date: none,
// color-a: rgb("#0C6291"),
// color-b:rgb("#A63446"),
// color-c:rgb("#FBFEF... |
https://github.com/dainbow/MatGos | https://raw.githubusercontent.com/dainbow/MatGos/master/themes/34.typ | typst | #import "../conf.typ": *
= Центральная предельная теорема для независимых одинаково распределённых случайных величин с конечной дисперсией
#definition[
Последовательность случайных величин $seq(xi)$ сходится к случайной величине $xi$ *по распределению*,
если $forall f : RR -> RR$ -- непрерывной ограниченной функци... | |
https://github.com/polarkac/MTG-Stories | https://raw.githubusercontent.com/polarkac/MTG-Stories/master/stories/007%20-%20Theros/005_The%20Consequences%20of%20Attraction.typ | typst | #import "@local/mtgstory:0.2.0": conf
#show: doc => conf(
"The Consequences of Attraction",
set_name: "Theros",
story_date: datetime(day: 09, month: 10, year: 2013),
author: "<NAME>",
doc
)
The vole had crept too close. Xandria had been waiting for most of the day and night and through the rain. Th... | |
https://github.com/FuryMartin/I-QinShiHuang-Money | https://raw.githubusercontent.com/FuryMartin/I-QinShiHuang-Money/master/lib.typ | typst | Creative Commons Zero v1.0 Universal | #import "@preview/tablex:0.0.8": gridx, hlinex
#let invoice(
title: none,
vice-title: none,
invoice-date: "始皇帝十七年",
items: none,
pay: none,
recipient: none,
signature: none,
thanks: none,
) = {
set text(lang: "zh", region: "cn")
set page(paper: "a4", margin: (x: 20%, y: 20%, top: 8%, bottom: 5%))
... |
https://github.com/falkaer/resume | https://raw.githubusercontent.com/falkaer/resume/main/style.typ | typst | MIT License | #let left_column_size = 25%
#let grid_column_gutter = 8pt
#let main_color = rgb("#c72e2f")
#let heading_color = main_color
#let job_color = rgb("#737373")
#let dateformat = "[month]/[year]"
#let setup(author: "", body) = {
set document(author: author, title: "Resume")
set page(
paper: "a4",
numbering: "1 ... |
https://github.com/Julien-cpsn/typst-chromo | https://raw.githubusercontent.com/Julien-cpsn/typst-chromo/main/README.md | markdown | MIT License | # [Chromo](https://github.com/julien-cpsn/typst-chromo)
Generate printer tests directly in Typst.
For now, only generates with CMYK colors (as it is by far the most used).
I personally place one of these test on all my exam papers to ensure the printer's quality over time.
## Documentation
To import any of the func... |
https://github.com/DaAlbrecht/lecture-notes | https://raw.githubusercontent.com/DaAlbrecht/lecture-notes/main/computer_networks/ip_protocols.typ | typst | MIT License | #import "../template.typ": *
#set table(
fill: (x, y) =>
if x == 0 or y == 0 {
gray.lighten(40%)
},
align: right,
)
#show table.cell.where(x: 0): strong
#show table.cell.where(y: 0): strong
= ICMP (Internet Control Message Protocol)
ICMP is a key protocol in the Internet protocol suite, primarily ... |
https://github.com/MichaelFraiman/TAU_template | https://raw.githubusercontent.com/MichaelFraiman/TAU_template/main/mfraiman-problem.typ | typst | // File that defines problem something
// The style file defines the prob with preapplied arguments
// In the future it should probably be changed to #set
#let problem(
problem_counter, //counter used to display problem number (ProblemNumber)
inline_counter, //InlineCounter
body,
prob_word: "Problem", ... | |
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/minerva-report-fcfm/0.2.0/README.md | markdown | Apache License 2.0 | # Minerva Report FCFM
Template para hacer tareas, informes y trabajos, para estudiantes y académicos de la Facultad de Ciencias Físicas y Matemáticas de la Universidad de Chile que han usado templates similares para LaTeX.
## Guía Rápida
### [Webapp](https://typst.app)
Si utilizas la webapp de Typst puedes presionar... |
https://github.com/Goldan32/brilliant-cv | https://raw.githubusercontent.com/Goldan32/brilliant-cv/main/modules_hu/professional.typ | typst | Apache License 2.0 | #import "../brilliant-CV/template.typ": *
#cvSection("Szakmai Tapasztalat")
#cvEntry(
title: [Junior Beágyazott Szoftvermérnök],
society: [Flex],
logo: "",
date: [2022 - ],
location: [Budapest],
description: list(
[Új funkciók implementálása beágyazott környezetben yocto felhasználásával... |
https://github.com/piepert/typst-seminar | https://raw.githubusercontent.com/piepert/typst-seminar/main/main.typ | typst | #import "slides.typ": *
#import "th_bipartite.typ": *
#import "slide_footnotes.typ": *
#import "slide_sections.typ": *
#import "latex_symbol.typ": latex-symbol
#show "La!!TeX": [La]+[!TeX]
#show "La!TeX": [#h(-0.2em)#latex-symbol#h(-0.3em)]
#set heading(numbering: "1.1.1.")
#set text(lang: "de")
#show link: set text(... | |
https://github.com/mdm/igotist | https://raw.githubusercontent.com/mdm/igotist/main/examples/test.typ | typst | #import "../igotist.typ"
#igotist.normalizecoordinates("a1", "1-1", "J8", (1, 1), "19-19", skip-i: true)
#let diagram = igotist.makediagram("diag1")
#igotist.addstones(diagram, "d16", "e16", color: white)
// #igotist.addlabels(diagram, "16-4", "4-16")
#igotist.addmarks(diagram, "16-4", "4-16")
#igotist.addmarks(diagr... | |
https://github.com/mariunaise/HDA-Thesis | https://raw.githubusercontent.com/mariunaise/HDA-Thesis/master/glossary.typ | typst | #import "@preview/glossarium:0.4.1": print-glossary
#counter(heading).update(0)
#heading(numbering: none)[Glossary]
#print-glossary((
(key: "hda", short: "HDA", plural: "HDAs", long: "helper data algorithm", longplural: "helper data algorithms"),
(key: "cdf", short: "CDF", plural: "CDFs", long: "cumulative distri... | |
https://github.com/LDemetrios/Typst4k | https://raw.githubusercontent.com/LDemetrios/Typst4k/master/src/test/resources/suite/styling/set.typ | typst | // General tests for set.
--- set-instantiation-site ---
// Test that text is affected by instantiation-site bold.
#let x = [World]
Hello *#x*
--- set-instantiation-site-markup ---
// Test that lists are affected by correct indents.
#let fruit = [
- Apple
- Orange
#list(body-indent: 20pt)[Pear]
]
- Fruit
#[#se... | |
https://github.com/ilsubyeega/circuits-dalaby | https://raw.githubusercontent.com/ilsubyeega/circuits-dalaby/master/Type%201/common.typ | typst | #let answer(text) = block(
fill: rgb(212, 224, 251),
inset: 12pt,
radius: 4pt,
above: 6pt,
text
) | |
https://github.com/Myriad-Dreamin/typst.ts | https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/bugs/cite-show-set_00.typ | typst | Apache License 2.0 |
#import "/contrib/templates/std-tests/preset.typ": *
#show: test-page
#show cite: set text(red)
A @netwok @arrgh.
B #cite(<netwok>) #cite(<arrgh>).
#show bibliography: none
#bibliography("/assets/files/works.bib")
|
https://github.com/Fr4nk1inCs/typst-homework | https://raw.githubusercontent.com/Fr4nk1inCs/typst-homework/master/readme.md | markdown | MIT License | # Typst Homework
> I'm archiving this project since I've migrated it into [typreset](https://github.com/Fr4nk1inCs/typreset)
A simple template for homeworks in [Typst](https://typst.app).
|
https://github.com/retypejs/jscanny | https://raw.githubusercontent.com/retypejs/jscanny/main/README.md | markdown | MIT License | # jscanny
[](https://github.com/retypejs/jscanny/releases) [](https://github.com/retypejs/jscanny/tags) [](https://... |
https://github.com/Myriad-Dreamin/tinymist | https://raw.githubusercontent.com/Myriad-Dreamin/tinymist/main/crates/tinymist-query/src/fixtures/docs/blocky.typ | typst | Apache License 2.0 | /* This is X */
#let x /* ident */ = 1;
|
https://github.com/polarkac/MTG-Stories | https://raw.githubusercontent.com/polarkac/MTG-Stories/master/stories/035_Core%202019.typ | typst | #import "@local/mtgset:0.1.0": conf
#show: doc => conf("Core 2019", doc)
#include "./035 - Core 2019/001_Chronicle of Bolas: The Twins.typ"
#include "./035 - Core 2019/002_Chronicle of Bolas: The First Lesson.typ"
#include "./035 - Core 2019/003_Chronicle of Bolas: Things Unseen.typ"
#include "./035 - Core 2019/004_Ch... | |
https://github.com/benjamineeckh/kul-typst-template | https://raw.githubusercontent.com/benjamineeckh/kul-typst-template/main/tests/test-work/test2.typ | typst | MIT License | #import "@preview/hydra:0.5.1": hydra
#let hydra-settings = context {
if calc.odd(here().page()) {
let headings = query(selector(heading).before(here()))
let entry = hydra(skip-starting:true, 1)
if entry != none{
align(left, emph(entry))
v(-0.8em)
line(length: 100%)
}
} else {
let entry = hydra(sk... |
https://github.com/crd2333/crd2333.github.io | https://raw.githubusercontent.com/crd2333/crd2333.github.io/main/src/docs/Reading/跟李沐学AI(论文)/Transformer.typ | typst | // ---
// order: 4
// ---
#import "/src/components/TypstTemplate/lib.typ": *
#show: project.with(
title: "d2l_paper",
lang: "zh",
)
#let softmax = math.op("softmax")
#let QKV = $Q K V$
#let qkv = QKV
#let Concat = math.op("Concat")
#let MultiHead = math.op("MultiHead")
#let Attention = math.op("Attention")
#let ... | |
https://github.com/LilNick0101/Bachelor-thesis | https://raw.githubusercontent.com/LilNick0101/Bachelor-thesis/main/content/coding.typ | typst | #pagebreak()
= Codifica
In questo capitolo vengono descritte come le varie parti dell'architettura sono state codificate nel progetto e il funzionamento delle singole schermate dell'applicazione.
== Interfaccia grafica
Durante la codifica sono stato in grado di utilizzare gli strumenti offerti dal toolkit UI *Jetpac... | |
https://github.com/jgm/typst-hs | https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/text/space-03.typ | typst | Other | // Test font change after space.
Left #text(font: "IBM Plex Serif")[Right].
|
https://github.com/kotfind/hse-se-2-notes | https://raw.githubusercontent.com/kotfind/hse-se-2-notes/master/edu/seminars/2024-10-09.typ | typst | = Техники организации обучения в онлайн и оффлайн средах
== В оффлайн среде
*Что важно учитывать?*
- Есть ли нужное оборудование, есть ли к нему доступ?o
- Подходит ли расстановка мебели
*Варианты организации парт:*
- *Классическая рассадка*:
Подходящие форматы:
- Лекция
- Контрольные
- *Рассадка клас... | |
https://github.com/Skimmeroni/Appunti | https://raw.githubusercontent.com/Skimmeroni/Appunti/main/Metodi%20Algebrici/Strutture/Generatori.typ | typst | Creative Commons Zero v1.0 Universal | #import "../Metodi_defs.typ": *
Sia $(G, *)$ un gruppo e sia $n$ un numero intero. Viene detta *potenza
n-esima* di $g$ l'elemento $g^(n) in G$ ottenuto ricorsivamente nel seguente
modo:
$ g^(n) = cases(
1_(*) & "se" n = 0,
g^(n - 1) * g & "se" n > 0,
(g^(-1))^(-n) & "se" n < 0
) $
#example[
- Si consideri il gr... |
https://github.com/frectonz/the-pg-book | https://raw.githubusercontent.com/frectonz/the-pg-book/main/book/114.%20ramenprofitable.html.typ | typst | ramenprofitable.html
Ramen Profitable
Want to start a startup? Get funded by
Y Combinator.
July 2009Now that the term "ramen profitable" has become widespread, I ought
to explain precisely what the idea entails.Ramen profitable means a startup makes just enough to pay the
founders' living expenses. This is a d... | |
https://github.com/Myriad-Dreamin/typst.ts | https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/meta/footnote-refs_00.typ | typst | Apache License 2.0 |
#import "/contrib/templates/std-tests/preset.typ": *
#show: test-page
A footnote #footnote[Hi]<fn> \
A reference to it @fn
|
https://github.com/rabarbra/cv | https://raw.githubusercontent.com/rabarbra/cv/main/cv_en.typ | typst | #import "render.typ": render
#render(
yaml("cv.en.yml")
) | |
https://github.com/jgm/typst-hs | https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/compiler/call-05.typ | typst | Other | #let f(x) = x
// Error: 2-6 expected function, found integer
#f(1)(2)
|
https://github.com/polarkac/MTG-Stories | https://raw.githubusercontent.com/polarkac/MTG-Stories/master/stories/019_Magic%20Origins.typ | typst | #import "@local/mtgset:0.1.0": conf
#show: doc => conf("Magic Origins", doc)
#include "./019 - Magic Origins/001_Chandra’s Origin: Fire Logic.typ"
#include "./019 - Magic Origins/002_Liliana's Origin: The Fourth Pact.typ"
#include "./019 - Magic Origins/003_Jace’s Origin: Absent Minds.typ"
#include "./019 - Magic Orig... | |
https://github.com/NOOBDY/formal-language | https://raw.githubusercontent.com/NOOBDY/formal-language/main/q7.typ | typst | The Unlicense | #let q7 = [
7. Which of the following languages are regular? Justify each answer.
+ $L = {w c w | w in {a, b}^ast}$.
Not regular, proof:
Let language $L$ be regular, pumping length $p$.
Let $|w| = p, w = x y, c w = z$, $x y^i != w "if" i > 1 qed$.
+ $L = {x y | x, y in {a, b}^ast "and" |x| = |y|}$.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.