repo
stringlengths
26
115
file
stringlengths
54
212
language
stringclasses
2 values
license
stringclasses
16 values
content
stringlengths
19
1.07M
https://github.com/andymeneely/examify.typst
https://raw.githubusercontent.com/andymeneely/examify.typst/master/examples/full/questions/hello_world.typ
typst
MIT License
#import "@local/exam:0.1.0": * #question[ #points(5) Test your placeholder knowledge! #sub_question[ #sub_points(3) Hello, #fill_in_blank(3cm, [world!]) ] #sub_question[ #sub_points(2) What is the air-speed velocity of an unladen swallow? #solution(height: 3cm, [ African or European? ]) ] ]
https://github.com/jomaway/typst-teacher-templates
https://raw.githubusercontent.com/jomaway/typst-teacher-templates/main/ttt-utils/lib/helpers.typ
typst
MIT License
/// if value is auto then return other value else return value itself #let if-auto-then(val, ret) = { if (val == auto) { ret } else { val } } /// if value is none return other value else return value itself #let if-none-then(val, ret) = { if (val == none) { ret } else { val } } /// check...
https://github.com/ckunte/ra
https://raw.githubusercontent.com/ckunte/ra/master/ra-template.typ
typst
// Typst template for a (residential) rental agreement // by <NAME>, March 2024 #let lease_agreement(title, doc) = { set page( paper: "a4", margin: (bottom: 1.75cm, top: 2.00cm, left: 1.75cm, right: 1.75cm), numbering: "1", header: align( right + horizon, title ), ) // Configure pa...
https://github.com/Myriad-Dreamin/typst.ts
https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/bugs/subelement-panic_01.typ
typst
Apache License 2.0
#import "/contrib/templates/std-tests/preset.typ": * #show: test-page // #2165 #figure.caption[]
https://github.com/TycheTellsTales/typst-pho
https://raw.githubusercontent.com/TycheTellsTales/typst-pho/main/tests/registerPerson/test.typ
typst
#import "../../lib.typ": people = Pre-Registration #context people.get("FooBar") #people.register((name: "FooBar", tags: ([Tag1], [Tag2],))) = Post-Registration #context people.get("FooBar")
https://github.com/mhspradlin/wilson-2024
https://raw.githubusercontent.com/mhspradlin/wilson-2024/main/understanding-ai/day-2.typ
typst
MIT License
#set page( paper: "presentation-16-9", numbering: "1", number-align: right, header: locate(loc => { let elems = query( selector(heading.where(level: 1)).before(loc), loc, ) let has-headers-on-page = query( selector(heading.where(level: 1)), loc, ).filter(h => h.location().page() == loc.p...
https://github.com/typst/packages
https://raw.githubusercontent.com/typst/packages/main/packages/preview/board-n-pieces/0.1.0/abi.typ
typst
Apache License 2.0
#let int-to-bytes(n, size: 4) = { assert(n >= 0) let b = () for i in range(size, 0, step: -1) { b.push(n.bit-rshift(8 * (i - 1)).bit-and(0xff)) } bytes(b) } #let int-from-bytes(b, size: 4) = { let n = 0 for i in range(size) { n = n.bit-or(b.at(i).bit-lshift(8 * (size - i - 1))) } (b.slice(siz...
https://github.com/tingerrr/hydra
https://raw.githubusercontent.com/tingerrr/hydra/main/tests/features/book-mode/ltr-left/test.typ
typst
MIT License
// Synopsis: // - on odd pages we still see the last heading if its on the previous page // - on even pages we don't see it and display it #import "/src/lib.typ": hydra #set page( paper: "a7", margin: (inside: 30pt, outside: 15pt), header: context hydra(book: true), ) #set heading(numbering: "1.1") #show headin...
https://github.com/DashieTM/ost-5semester
https://raw.githubusercontent.com/DashieTM/ost-5semester/main/web3/weeks/week4.typ
typst
#import "../../utils.typ": * #section("React Context") By default, react uses the same context over everything. This means that everything will be stored in one, which is not very scalable. Instead, we can use react contexts, which solve this issue by providing a way to selectively store and use "contexts" aka storage...
https://github.com/denizenging/site
https://raw.githubusercontent.com/denizenging/site/master/page/archive/index.en.typ
typst
#import "@local/pub-page:0.0.0": * #show: template( title: "Archive", layout: "archives", menu: (6, "archives"), )
https://github.com/noahjutz/AD
https://raw.githubusercontent.com/noahjutz/AD/main/notizen/mathe/fib_tree.typ
typst
#import "@preview/cetz:0.2.2" #let fibtree(root: false, depth) = { if depth == 0 { return root } if root { let left = fibtree(root: true, depth - 1) let right = fibtree(root: false, depth - 1) return (root, left, right) } else { let left = fibtree(root: true, depth - 1) return (root, left) ...
https://github.com/Myriad-Dreamin/typst.ts
https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/layout/list-marker_02.typ
typst
Apache License 2.0
#import "/contrib/templates/std-tests/preset.typ": * #show: test-page // Test function. #set list(marker: n => if n == 1 [--] else [•]) - A - B - C - D - E - F
https://github.com/fabriceHategekimana/master
https://raw.githubusercontent.com/fabriceHategekimana/master/main/4_Usecase/Réseaux_de_neurones.typ
typst
#import "../src/module.typ" : * == Réseaux de neurones (forward propagation) Nous pouvons facilement constater qu'une couche d'un réseau de neuronnes ainsi que la fonction d'activation peuvent être représentés comme des fonctions sur des vecteurs (de deux dimensions). Un réseaux de neuronnes n'est seulement qu'une su...
https://github.com/saurabtharu/CV
https://raw.githubusercontent.com/saurabtharu/CV/main/README.md
markdown
# Saurab's CV <div align="center"> <img width = "49%" src="https://raw.githubusercontent.com/saurabtharu/CV/main/Saurab_Tharu_CV_page1.jpg"> <img width = "49%" src="https://raw.githubusercontent.com/saurabtharu/CV/main/Saurab_Tharu_CV_page2.jpg"> </div> ## Usage ### [typst.app](https://typst.app/) Upload a...
https://github.com/augustebaum/petri
https://raw.githubusercontent.com/augustebaum/petri/main/tests/cetz/basic/test.typ
typst
MIT License
#import "/src/lib.typ": * #set page(width: auto, height: auto, margin: 1cm) #import "@preview/cetz:0.2.2" as cetz: draw #cetz.canvas({ place((0,0), [yo]) place((0,1.5), $P_n$, label-style: (anchor: "west"), tokens: 7) place((3,1.5), [], tokens: 8000) place((3,0.5), [], tokens: -800) draw.set-style(place:...
https://github.com/AsiSkarp/grotesk-cv
https://raw.githubusercontent.com/AsiSkarp/grotesk-cv/main/src/template/content/languages.typ
typst
The Unlicense
#let meta = toml("../info.toml") #import meta.import.path: language-entry #import "@preview/fontawesome:0.4.0": * #let icon = meta.section.icon.languages #let language = meta.personal.language #let include-icon = meta.personal.include_icons = #if include-icon [#fa-icon(icon) #h(5pt)] #if language == "en" [Languages] ...
https://github.com/VisualFP/docs
https://raw.githubusercontent.com/VisualFP/docs/main/SA/design_concept/content/design/non_functional_requirements.typ
typst
#import "../../../acronyms.typ": * = Non Functional Requirements <non_functional_requirements> This section describes all non-functional requirements identified for VisualFP. To find a relevant #ac("NFR"), ISO-25010 @iso-25010 was used for inspiration. #let NFR(description, verification, acceptanceCriteria, realisat...
https://github.com/trace1729/typst-template
https://raw.githubusercontent.com/trace1729/typst-template/main/template.typ
typst
#import "@preview/showybox:2.0.1": showybox #let project( title: "", authors: (), abstract: none, keywords: (), body ) = { let zh_shusong = ("FZShuSong-Z01", "FZShuSong-Z01S") let zh_xiaobiansong = ("FZXiaoBiaoSong-B05", "FZXiaoBiaoSong-B05S") let zh_kai = ("FZKai-Z03", "FZKai-Z03S") let zh_hei = ("FZ...
https://github.com/AHaliq/CategoryTheoryReport
https://raw.githubusercontent.com/AHaliq/CategoryTheoryReport/main/chapters/chapter1/optional.typ
typst
#import "../../preamble/lemmas.typ": * #import "../../preamble/catt.typ": * #import "@preview/fletcher:0.5.1" as fletcher: diagram, node, edge #exercise("1")[The objects of $Rel$ are sets ...] We show $Rel$ is a category by @defn-cat #figure( table( columns: 2, align: (right, left), [properties], [defin...
https://github.com/levinion/typst-dlut-templates
https://raw.githubusercontent.com/levinion/typst-dlut-templates/main/templates/util/functions.typ
typst
MIT License
#let empty_box = { v(-1em) box() } #let invisible_heading(..args) = { v(-1em) hide(box[#heading(numbering: none, ..args)] + empty_box) }
https://github.com/typst-jp/typst-jp.github.io
https://raw.githubusercontent.com/typst-jp/typst-jp.github.io/main/README.en.md
markdown
Apache License 2.0
# Typst Japanese Documentation (Unofficial) > [!NOTE] > 日本語版は[README.md](README.md)を参照してください。 This is an unofficial Japanese translation of the documentation for the typesetting system [Typst](https://typst.app/docs). It has been created with the permission of [Typst GmbH](https://typst.app/legal/). The repository w...
https://github.com/DieracDelta/presentations
https://raw.githubusercontent.com/DieracDelta/presentations/master/polylux/book/src/dynamic/alternatives-cases.typ
typst
#import "../../../polylux.typ": * #set page(paper: "presentation-16-9") #set text(size: 50pt) /* #alternatives-match(( "1, 3" : [ Some text ], "2" : [ #set text(fill: teal) Some text ], )) */ #polylux-slide[ #alternatives-cases(("1, 3", "2"), case => [ #set text(fill: teal) if case == 1 Some t...
https://github.com/polarkac/MTG-Stories
https://raw.githubusercontent.com/polarkac/MTG-Stories/master/stories/035%20-%20Core%202019/008_Chronicle%20of%20Bolas%3A%20The%20Unwritten%20Now.typ
typst
#import "@local/mtgstory:0.2.0": conf #show: doc => conf( "Chronicle of Bolas: The Unwritten Now", set_name: "Core 2019", story_date: datetime(day: 15, month: 08, year: 2018), author: "<NAME>", doc ) Shielded within the hedrons that had grown up over the bones of Ugin, Naiva knelt beside her twin s...
https://github.com/GuTaoZi/SUSTech-thesis-typst
https://raw.githubusercontent.com/GuTaoZi/SUSTech-thesis-typst/main/thesis.typ
typst
MIT License
#import "template/template.typ": * #import "utils/typst-boxes.typ": * #set text(lang: "zh") #set par(first-line-indent: 2em,leading: 1.5*FSIZE.四号) #set heading( numbering: ( (..nums) => ( if nums.pos().map(str).len()==1 { nums.pos().map(str).at(0) + "." } else { nums.pos().map(str...
https://github.com/lankoestee/sysu-report-typst
https://raw.githubusercontent.com/lankoestee/sysu-report-typst/main/founder.typ
typst
MIT License
#import "@preview/cuti:0.2.1": show-cn-fakebold #import "@preview/algo:0.3.3": algo #let conf( title: "Typst测试样板", subtitle: none, author: ("一个名字"), number: none, school: none, grade_major: none, report_type: none, course: none, teacher: none, cols: 1, doc, ) = { set page( paper: "a4", ) ...
https://github.com/sw1sh/QuantumPotatoChips
https://raw.githubusercontent.com/sw1sh/QuantumPotatoChips/main/README.md
markdown
# QuantumPotatoChips View online: [Draft of our paper on Typst.app/, still in process](https://typst.app/project/rvimaMuCgf7Yy1rQ2fIR43) We also had a livestream discussing our idea: [YouTube link Wolfram Institute: Quantum Potato Chip](https://www.youtube.com/live/rHuBrpkb_4U?si=Ms-g6gCuENfu3ilf) <img width="530" a...
https://github.com/Dherse/codly
https://raw.githubusercontent.com/Dherse/codly/main/tests/single-line/test.typ
typst
MIT License
#import "../../codly.typ": * #set page("a6") #show: codly-init = Default ```typst Hello, world! ``` = Disabled #codly-disable() ```typst Hello, world! ``` = Re-enabled #codly-enable() ```typst Hello, world! ``` = No line numbers #codly(number-format: none) ```typst Hello, world! ``` = No language icon #codly(lan...
https://github.com/ntjess/wrap-it
https://raw.githubusercontent.com/ntjess/wrap-it/main/wrap-it.typ
typst
The Unlicense
#let styled = text(red)[lorem].func() #let _gridded(dir, fixed, to-wrap, ..kwargs) = { let dir-kwargs = (:) if dir not in (ltr, rtl) { panic("Specify either `rtl` or `ltr` as the wrap direction") } let args = if dir == rtl { (to-wrap, fixed) } else { (fixed, to-wrap) } grid(..args, columns: 2...
https://github.com/soul667/typst
https://raw.githubusercontent.com/soul667/typst/main/保研/光电系统集成 - 副本/use.typ
typst
// 第一页 标题页的设计 #import "template.typ": * #let header=[ #v(-1.3em) // #h(1em) // #align(top+right,image("icon/校标.png",width: 11em)) // #pad(top: -0.5cm,left:17cm, image("icon/校标.png")) // #align(center+horizon, text(size: 35pt)[ // #head_main // ]) #v(0.5em) ]
https://github.com/ukihot/igonna
https://raw.githubusercontent.com/ukihot/igonna/main/articles/design/clean.typ
typst
== システムの設計 実際、main関数のみ定義し、そこにすべてを定義したmain.rsファイルのみで本番稼働させているシステムは限りなく0に近い。 main関数は数行書き、最小限の責務を担う関数を複数定義してそれらを組み合わせて成り立たせるのが一般的だろう。 変数名$x$や$y$ではなく、わかりやすい英語を使うだろう。 もちろん、main関数にすべて書いた巨大なmain関数でも、変数名$a,b,c$だらけでも同じ挙動はするのだが、様々な問題がある。 - 作者(コーダー)が離職・入院・異動したとき - 障害が発生したとき - リファクタリングを実施するとき 上記のような"保守開発"フェーズでは、なにより保守性がキーとなる。 誰...
https://github.com/Myriad-Dreamin/typst.ts
https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/math/matrix_02.typ
typst
Apache License 2.0
#import "/contrib/templates/std-tests/preset.typ": * #show: test-page // Test baseline alignment. $ mat( a, b^2; sum_(x \ y) x, a^(1/2); zeta, alpha; ) $
https://github.com/xiongyaohua/godot-typst
https://raw.githubusercontent.com/xiongyaohua/godot-typst/main/README.md
markdown
MIT License
# godot-typst An Typst plugin for Godot. The idea is to use Godot as an presentation tool. The Typst handles text typesetting while the Godot engine handles interactivities such as procedural animation. (Under construction)
https://github.com/ilsubyeega/circuits-dalaby
https://raw.githubusercontent.com/ilsubyeega/circuits-dalaby/master/Type%201/1/4.typ
typst
#set enum(numbering: "(a)") #import "../common.typ": answer 1.4 다음 단위를 변환하라. + 4.2m를 $mu$m로 변환하라. + 3 hours를 $mu$s로 변환하라. + 4.2 m를 km로 변환하라. + 173 nm를 m로 변환하라. + 173 nm를 $mu$m로 변환하라. + 17 pF(피코패럿)을 F(패럿)으로 변환하라. #answer[ + $= 4.2 times 10^6$ $mu$m + $= 3 dot 60 dot 60 dot 10^6 = 108 times 10^8 mu$s + $= 4.2 ti...
https://github.com/xsro/xsro.github.io
https://raw.githubusercontent.com/xsro/xsro.github.io/zola/typst/nlct/mainbody/4.17.typ
typst
= ss $ t_0=2 n pi\ t=2 n pi + pi \ sin(t_0)=sin(t)=0 \ cos(t_0)=1 quad cos(t)=-1 $ $ x(t)&=x(t_0) exp(6t-t^2+6t_0+t_0^2) $
https://github.com/polarkac/MTG-Stories
https://raw.githubusercontent.com/polarkac/MTG-Stories/master/stories/041%20-%20Kaldheim/005_Episode%203%3A%20The%20Saga%20of%20Tibalt.typ
typst
#import "@local/mtgstory:0.2.0": conf #show: doc => conf( "Episode 3: The Saga of Tibalt", set_name: "Kaldheim", story_date: datetime(day: 20, month: 01, year: 2021), author: "<NAME> & <NAME>", doc ) #emph[Ah, the smell of bubbling tar! The warm kiss of volcanic ruptures! After all this time spent ...
https://github.com/George-Miao/typst-common
https://raw.githubusercontent.com/George-Miao/typst-common/main/README.md
markdown
MIT License
# Typst Common My common typst lib
https://github.com/adfaure/invoice-template
https://raw.githubusercontent.com/adfaure/invoice-template/main/invoice.typ
typst
MIT License
#import "@preview/linguify:0.4.0": * #let parametirizeLinguify = () => { let lang_data = toml("lang.toml") (key) => linguify(key, from: lang_data) } #let localize = parametirizeLinguify() #let header(info, client-info, object) = { grid( columns: (1fr, 1fr), text({ strong(info.name) linebrea...
https://github.com/TGM-HIT/typst-diploma-thesis
https://raw.githubusercontent.com/TGM-HIT/typst-diploma-thesis/main/src/lib.typ
typst
MIT License
#import "assets.typ" #import "l10n.typ" #import "glossary.typ" #import "utils.typ" #let _builtin_bibliography = bibliography #let _authors = state("thesis-authors") #let _current_authors = state("thesis-current-authors", ()) #import utils: chapter-end #import glossary: register-glossary, glossary-entry, gls, glspl ...
https://github.com/jiang131072/casual-szu-report
https://raw.githubusercontent.com/jiang131072/casual-szu-report/main/template/main.typ
typst
MIT License
#import "@preview/casual-szu-report:0.1.1": template #show: template.with( course-title: [养鸡学习], experiment-title: [养鸡], faculty: [养鸡学院], major: [智能养鸡], instructor: [鸡老师], reporter: [鸡], student-id: [4144010590], class: [养鸡99班], experiment-date: datetime(year: 1983, month: 9, day: 27), features: ( ...
https://github.com/N3M0-dev/Notes
https://raw.githubusercontent.com/N3M0-dev/Notes/main/CS/CO/overview.typ
typst
#import "@local/note_template:0.0.1": * #set page(numbering: "1", number-align: center) #set heading(numbering: "1.1") #set par(justify: true) #set text(12pt) #set outline(indent: true) #frontmatter(authors: ("Nemo",), title: "Overview", subtitle: "Computer Organization and Design, the Hardware/Software Interface (CO...
https://github.com/pedrofp4444/BD
https://raw.githubusercontent.com/pedrofp4444/BD/main/report/content/[5] Implementação Física/main.typ
typst
#import "explicação.typ": explicação #import "criaçãoUtilizadores.typ": criaçãoUtilizadores #import "povoamento.typ": povoamento #import "calculoEspaço.typ": calculoEspaço #import "caracterizaçãoVistas.typ": caracterizaçãoVistas #import "interrogações.typ": interrogações #import "indexação.typ": indexação #import "impl...
https://github.com/Mc-Zen/zero
https://raw.githubusercontent.com/Mc-Zen/zero/main/docs/figures/logo.typ
typst
MIT License
#import "/src/zero.typ": * #set page(width: auto, height: auto, margin: 2pt, fill: white) #align(center, text(2em, weight: "bold")[$Z dot e^(r o)$])
https://github.com/cran/tinytable
https://raw.githubusercontent.com/cran/tinytable/master/README.md
markdown
<p align="center"> <img src="man/figures/gallery/tinytable_gallery.gif" height = "250" class = "center"> <br> <!-- badges: start --> <a href = "https://github.com/vincentarelbundock/tinytable/blob/main/LICENSE.md" target = "_blank"><img src="https://img.shields.io/badge/license-GPLv3-blue"></a> <a href = "https://vin...
https://github.com/pklaschka/typst-hidden-bib
https://raw.githubusercontent.com/pklaschka/typst-hidden-bib/main/hidden-bibliography.typ
typst
MIT License
#import "lib.typ": * == Hidden Bibliographies #outline() In some documents, such as a letter, you may want to cite a reference without printing a bibliography. This can easily be achieved by wrapping your `bibliography(...)` with the `hidden-bibliography` function after importing the `hidden-bib` package. @hidden-b...
https://github.com/jneug/schule-typst
https://raw.githubusercontent.com/jneug/schule-typst/main/src/ka.typ
typst
MIT License
#import "core/layout.typ": base-header, header-left, header-right #import "_imports.typ": * #let grading-table = ( /* @typststyle:off */ "6": .0, "5-": .20, "5": .27, "5+": .33, "4-": .40, "4": .45, "4+": .50, "3-": .55, "3": .60, "3+": .65, "2-": .70, "2": .75, "2+": .80, "1-": .85, "1": .90, "1+": .95...
https://github.com/ming-guang/application-graphics-course
https://raw.githubusercontent.com/ming-guang/application-graphics-course/master/homework-03/Grayscale%20Image%20Colorization%20Methods/main.typ
typst
#import "template.typ": * #show: project.with( title: "Các phương pháp phục chế màu cho ảnh độ xám", authors: ( "<NAME> - 20127298", ), ) = Các phương pháp phổ biến Có rất nhiều công trình nghiên cứu liên quan đến việc phục chế ảnh độ sáng trong đó hầu hết các phương pháp đều dựa trên các phương pháp chính ...
https://github.com/Myriad-Dreamin/typst.ts
https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/viewers/preview-jump-text.typ
typst
Apache License 2.0
#let text-to-jump = [Text to jump] #scale(x: 150%, { h(5em) text-to-jump }) #v(5em) #rotate(90deg, text-to-jump) #v(5em) #rotate(180deg, text-to-jump) #v(5em) #rotate(270deg, text-to-jump) #v(5em) ``` Text to jump Second line Third line ```
https://github.com/jgm/typst-hs
https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/layout/list-01.typ
typst
Other
- First level. - Second level. There are multiple paragraphs. - Third level. Still the same bullet point. - Still level 2. - At the top.
https://github.com/soul667/typst
https://raw.githubusercontent.com/soul667/typst/main/PPT/MATLAB/touying/docs/docs/themes/university.md
markdown
--- sidebar_position: 4 --- # University Theme ![image](https://github.com/touying-typ/touying/assets/34951714/a9023bb3-0ef2-45eb-b23c-f94cc68a6fdd) This theme is courtesy of [<NAME>](https://github.com/drupol). ## Initialization You can initialize it with the following code: ```typst #import "@preview/touying:0....
https://github.com/TechnoElf/mqt-qcec-diff-presentation
https://raw.githubusercontent.com/TechnoElf/mqt-qcec-diff-presentation/main/template/title.typ
typst
#import "@preview/polylux:0.3.1": * #import "colour.typ": * #let title-slide( title: "", author: "", chair: "", school: "", degree: "", examiner: "", supervisor: "", submitted: "" ) = { set page( paper: "presentation-16-9", margin: (top: 3cm, bottom: 1cm, left: 1cm, right: 1cm), header: ...
https://github.com/Functional-Bus-Description-Language/Specification
https://raw.githubusercontent.com/Functional-Bus-Description-Language/Specification/master/src/concepts.typ
typst
#pagebreak() = Concepts The core concept behind the FBDL is based on the fact that if there is a system part with the registers that can be accessed, then there is at least one more system part accessing these registers. The part accessing the registers is called the _requester_. The part containing the registers is ...
https://github.com/Myriad-Dreamin/tinymist
https://raw.githubusercontent.com/Myriad-Dreamin/tinymist/main/syntaxes/textmate/tests/unit/basic/let2.typ
typst
Apache License 2.0
#(let x = 1) #(let x = 1); #(((let x = 1))); #(((let x = 1)))
https://github.com/typst-jp/typst-jp.github.io
https://raw.githubusercontent.com/typst-jp/typst-jp.github.io/main/docs/changelog/0.12.0.md
markdown
Apache License 2.0
--- title: 0.12.0 description: Changes in Typst 0.12.0 --- # Version 0.12.0 (October 18, 2024) ## Highlights - Added support for multi-column floating [placement]($place.scope) and [figures]($figure.scope) - Added support for automatic [line numbering]($par.line) (often used in academic papers) - Typst's layout e...
https://github.com/ufodauge/master_thesis
https://raw.githubusercontent.com/ufodauge/master_thesis/main/src/template/utils/parse-student-number.typ
typst
MIT License
#let parseStudentNumber( student-number ) = { assert(type(student-number) == "string") assert(regex("\d{2}[a-zA-Z]{2}\d{3}") in student-number) return student-number.split(regex("[A-Z]{2}")) }
https://github.com/artomweb/Quick-Sip-Typst-Template
https://raw.githubusercontent.com/artomweb/Quick-Sip-Typst-Template/master/README.md
markdown
MIT License
# Quick Sip - Typst QRH Template Creates aviation style checklists like Quick Reference Handbooks. <img src="thumbnail.png" width="300"> ### Features: - Index - Section - Conditions - Objective - Step (When/If) - Sub Step - Caution - Note - Choose One - Go to step - End section now ## Start with ```typst #import ...
https://github.com/gongke6642/tuling
https://raw.githubusercontent.com/gongke6642/tuling/main/基础/calculation/Untitled-1.typ
typst
#set par( justify: true, leading: 0.52em, ) #image("1.png") #image("2.png") #image("3.png") #image("4.png") #image("5.png") #image("6.png") #image("7.png") #image("8.png") #image("9.png") #image("10.png") #image("11.png") #image("12.png") #image("13.png") #image("14.png") #image("15.png") #image("16.png") #image("...
https://github.com/kdog3682/2024-typst
https://raw.githubusercontent.com/kdog3682/2024-typst/main/src/workspace.typ
typst
#import "base-utils.typ": *
https://github.com/xhalo32/constructive-logic-course
https://raw.githubusercontent.com/xhalo32/constructive-logic-course/master/slides/04-formalisointi.typ
typst
#import "@preview/touying:0.4.2": * #import "slidetheme.typ" #import "@preview/note-me:0.2.1": * #import "@preview/prooftrees:0.1.0": * #let palette = ( rgb("#7287fd"), // lavender rgb("#209fb5"), // sapphire rgb("#40a02b"), // green rgb("#df8e1d"), // yellow rgb("#fe640b"), // peach rgb("#e64553"), // mar...
https://github.com/howardlau1999/sysu-thesis-typst
https://raw.githubusercontent.com/howardlau1999/sysu-thesis-typst/master/templates/declaration.typ
typst
MIT License
#import "../functions/style.typ": * #import "../custom.typ": * #heading(numbering: none, outlined: false, "学术诚信声明") #par(justify: true, first-line-indent: 2em, leading: 行距)[ 本人郑重声明:所呈交的毕业论文(设计),是本人在导师的指导下,独立进行研究工作所取得的成果。除文中已经注明引用的内容外,本论文(设计)不包含任何其他个人或集体已经发表或撰写过的作品成果。对本论文(设计)的研究做出重要贡献的个人和集体,均已在文中以明确方式标明。本论文(设计)的知识产权归...
https://github.com/mriganksagar/cv
https://raw.githubusercontent.com/mriganksagar/cv/main/brilliant-CV/injection.typ
typst
Apache License 2.0
// brilliant-CV 2024-06-01 mintyfrankie // Github Repo: https://github.com/mintyfrankie/brilliant-CV // Typst version: 0.11.0 // A module to implement AI prompt and keyword injection into CV file // Credit to <NAME> (https://kai-greshake.de/posts/inject-my-pdf/) #import "../metadata.typ": ifAIInjection, keywordsInject...
https://github.com/bkorecic/enunciado-facil-fcfm
https://raw.githubusercontent.com/bkorecic/enunciado-facil-fcfm/main/lib/enunciado-facil-fcfm.typ
typst
MIT License
#import "departamentos.typ" as departamentos // Función para aplicar el template a un documento // // - titulo (string): Título del documento // - subtitulo (string): Subtítulo del documento // - departamento (dictionary): Departamento asociado al documento // - titulo-extra (array): Arreglo de contenido para agregar...
https://github.com/ShapeLayer/ucpc-solutions__typst
https://raw.githubusercontent.com/ShapeLayer/ucpc-solutions__typst/main/tests/utils_make-hero/test.typ
typst
Other
#import "/lib/lib.typ" as ucpc #ucpc.utils.make-hero( title: [Contest Name], subtitle: [Solutions Commentary Editorial], authors: ("<NAME>", ), )
https://github.com/napleon-liu/my-cv
https://raw.githubusercontent.com/napleon-liu/my-cv/main/resume.typ
typst
#import "template.typ": * // 设置图标, 来源: https://fontawesome.com/icons/ // 如果要修改图标颜色, 请手动修改 svg 文件中的 fill="rgb(38, 38, 125)" 属性 #let faAward = icon("fa-award.svg") #let faBuildingColumns = icon("fa-building-columns.svg") #let faCode = icon("fa-code.svg") #let faGraduationCap = icon("fa-graduation-cap.svg") #let faWrenc...
https://github.com/simon-epfl/notes-ba3-simon
https://raw.githubusercontent.com/simon-epfl/notes-ba3-simon/main/electromag/resume.typ
typst
== Champ électrique Seule la direction importe, le sens sera apporté par la charge sur laquelle on "appliquera" le champ. Quand on a une surface avec une forme facile (symmétrique) on peut faire : $ Phi_E = integral arrow(E(r)) dot d arrow(S) = Q_"int"/epsilon_0 $ En fait on va entourer nos charges avec une forme (...
https://github.com/Gekkio/gb-ctr
https://raw.githubusercontent.com/Gekkio/gb-ctr/main/chapter/peripherals/boot-rom.typ
typst
Creative Commons Attribution Share Alike 4.0 International
#import "../../common.typ": * == Boot ROM The Game Boy SoC includes a small embedded boot ROM, which can be mapped to the #hex-range("0000", "00FF") memory area. While mapped, all reads from this area are handled by the boot ROM instead of the external cartridge, and all writes to this area are ignored and cannot be ...
https://github.com/Enter-tainer/delimitizer
https://raw.githubusercontent.com/Enter-tainer/delimitizer/main/lib.typ
typst
MIT License
#import "impl.typ": big, bigg, Big, Bigg, scaled-delimiter, paired-delimiter
https://github.com/T1mVo/shadowed
https://raw.githubusercontent.com/T1mVo/shadowed/main/benchmarks/main.typ
typst
MIT License
#import "../src/lib.typ": shadowed #set par(justify: true) #for i in range(100) [ #page[ #for j in range(6) [ #let color = rgb(i, j, 127) #shadowed(inset: 12pt, radius: 4pt, color: color)[ #lorem(50) ] ] ] ]
https://github.com/QuadnucYard/crossregex-typ
https://raw.githubusercontent.com/QuadnucYard/crossregex-typ/main/src/square.typ
typst
MIT License
#import "layout.typ": * #import "process.typ": * #let crossregex-square( size, alphabet: regex("[A-Z]"), constraints: (), answer: none, show-whole: true, show-views: true, cell: auto, cell-config: (:), deco-config: (:), progress-creator: auto, page-margin: 0.5em, ) = { if cell == auto { cel...
https://github.com/ayoubelmhamdi/typst-phd-AI-Medical
https://raw.githubusercontent.com/ayoubelmhamdi/typst-phd-AI-Medical/master/chapters/annexe.typ
typst
MIT License
// #import "../functions.typ": heading_center, images, italic #let finchapiter = text(fill:rgb("#1E045B"),[■]) = ANNEXE 1. #text(weight: "bold" ,size: 18pt ,"CODE EN LANGAGE C POUR CONVERTIR LES CELSIUS EN FAHRENHEIT") ```c #include <math.h> #include <stdio.h> #include <stdlib.h> // Train Data float td[][2] = { //...
https://github.com/phatt-23/apps_zkouska
https://raw.githubusercontent.com/phatt-23/apps_zkouska/main/Main.typ
typst
#set text( lang: "cs", // font: "New Computer Modern" ) #set enum(numbering: "1)") #set page(footer: context( smallcaps([ Architektury počítačů a paralelních systémů - zkouška #h(1fr) #counter(page).display( "[ 1 / 1 ]", both: true, ) ])), header: align(right)[Zkouškové otázky] ) #align(cen...
https://github.com/christopherkenny/tufte
https://raw.githubusercontent.com/christopherkenny/tufte/main/README.md
markdown
Other
# `tufte` Format A Tufte template for Quarto with a Typst backend, adapted from [nogula/tufte-memo](https://github.com/nogula/tufte-memo) <!-- pdftools::pdf_convert('template.pdf', pages = 1) --> ![[template.qmd](template.qmd)](template_1.png) ## Installing ```bash quarto use template christopherkenny/tufte ``` Th...
https://github.com/Myriad-Dreamin/typst.ts
https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/docs/cookery/guide/env-setup/compile-server.typ
typst
Apache License 2.0
#import "/docs/cookery/book.typ": book-page #show: book-page.with(title: "Environment Setup for Compiler Developers") = Environment Setup for Compiler Developers Sample page
https://github.com/gongke6642/tuling
https://raw.githubusercontent.com/gongke6642/tuling/main/内省/元数据/元数据.typ
typst
#image("image.png") //add
https://github.com/typst/packages
https://raw.githubusercontent.com/typst/packages/main/packages/preview/metro/0.1.0/src/impl/unit.typ
typst
Apache License 2.0
#import "@preview/t4t:0.2.0": is #import "../utils.typ": combine-dict #let _is-elem(elem, name) = { return type(elem) == "content" and repr(elem.func()) == name } // NULL unicode character as a marker #let NULL-after = [\u{FFFF} ] #let NULL-before = [ \u{FFFF}] #let tothe = (x) => math.attach(NULL-after, t: x) #...
https://github.com/lucifer1004/leetcode.typ
https://raw.githubusercontent.com/lucifer1004/leetcode.typ/main/problems/p0007.typ
typst
#import "../helpers.typ": * #import "../solutions/s0007.typ": * = Reverse Integer Given a signed 32-bit integer x, return x with its digits reversed. If reversing x causes the value to go outside the signed 32-bit integer range $[-2^31, 2^31 - 1]$, then return 0. *Assume the environment does not allow you to store 6...
https://github.com/maxgraw/bachelor
https://raw.githubusercontent.com/maxgraw/bachelor/main/apps/document/src/2-theory/progressive.typ
typst
Progressive Enhancement ist eine Praxis in der Webentwicklung, bei der eine Anwendung schrittweise aufgebaut wird. Der Prozess beginnt mit einer grundlegenden Funktionalität, die auf allen Endgeräten und Browsern funktioniert, und wird durch zusätzliche Features erweitert, die nur auf moderneren Systemen mit erweiterte...
https://github.com/AnsgarLichter/hka-thesis-template
https://raw.githubusercontent.com/AnsgarLichter/hka-thesis-template/main/thesis/template.typ
typst
#import "/common/titlepage.typ": * #import "/common/settings.typ": * #import "@preview/glossarium:0.2.6": print-glossary #import "/abbreviations.typ": abbreviations #let in-outline = state("in-outline", false) #let flex-caption(long, short) = locate(loc => if in-outline.at(loc) { short } else { long } ) #let the...
https://github.com/FlyinPancake/bsc-thesis
https://raw.githubusercontent.com/FlyinPancake/bsc-thesis/main/thesis/main.typ
typst
#import "@preview/big-todo:0.2.0": * #import "@preview/glossarium:0.2.4": make-glossary, print-glossary, gls, glspl #import "@preview/chic-hdr:0.3.0": * #show: make-glossary #set par(leading: 0.55em, first-line-indent: 1.8em, justify: true) // #show par: set block(spacing: 0.55em) #set text(font: "Libre Baskerville", ...
https://github.com/nafkhanzam/typst-common
https://raw.githubusercontent.com/nafkhanzam/typst-common/main/src/common/data.typ
typst
#let apply-defaults(v, defaults) = { for (key, value) in defaults.pairs() { if key not in v { v.insert(key, value) } } v } #let access-field(o, ..keys, default: none) = { let r = o for key in keys.pos() { if key in r { r = r.at(key) } else { return default } } retur...
https://github.com/chendaohan/rust_tutorials
https://raw.githubusercontent.com/chendaohan/rust_tutorials/main/books/3.认识Cargo(hello_world).typ
typst
#set heading(numbering: "1.") #set text(size: 15pt) = 认识 cargo cargo 是 Rust 的包管理工具,并且是所有语言中最好用的包管理工具之一。cargo 提供了一系列的工具,从项目的建立、构建到测试、运行直至部署,为 Rust 项目的管理提供尽可能完整的手段。 = 创建一个“hello_world”项目 ```sh cargo new hello_world ``` Rust 项目名的多个单词间可以用“\_”或“-”分隔,例如:“hello_world”、“hello-world”,个人喜欢用“\_”分隔。Rust 项目分为 2 种,Binary 项目(默认)和 ...
https://github.com/ammar-ahmed22/compile-typst-example
https://raw.githubusercontent.com/ammar-ahmed22/compile-typst-example/main/README.md
markdown
# Compile Typst Example A showcase of the [compile-typst-action](https://github.com/ammar-ahmed22/compile-typst-action) GitHub Action. ## What does it do? Inside the `src` directory, there are 2 Typst documents, `calculus.typ` and `quadratic.typ`. On push to the main branch, the GitHub Action compiles them with [comp...
https://github.com/typst/packages
https://raw.githubusercontent.com/typst/packages/main/packages/preview/cetz/0.0.2/cmd.typ
typst
Apache License 2.0
#import "matrix.typ" #import "vector.typ" #import "util.typ" #import "bezier.typ" #import "path-util.typ" #let typst-path = path #let content(x, y, w, h, c) = { (( type: "content", segments: (("pt", (x,y)),), bounds: ( (x + w/2, y - h/2), (x - w/2, y + h/2) ), draw: (self) => { ...
https://github.com/niuiic/typst-preview.nvim
https://raw.githubusercontent.com/niuiic/typst-preview.nvim/main/README.md
markdown
MIT License
# typst-preview.nvim Neovim plugin to preview typst document. [More neovim plugins](https://github.com/niuiic/awesome-neovim-plugins) ## Usage 1. Setup `typst-lsp`. (see example [here](https://github.com/niuiic/modern-neovim-configuration/blob/main/lua/lsp/typst_lsp.lua)) 2. Call `require("typst-preview").preview(...
https://github.com/Myriad-Dreamin/tinymist
https://raw.githubusercontent.com/Myriad-Dreamin/tinymist/main/crates/tinymist-query/src/fixtures/def_use/param_scope.typ
typst
Apache License 2.0
#let term(term) = term; #term(1)
https://github.com/typst/packages
https://raw.githubusercontent.com/typst/packages/main/packages/preview/tabut/1.0.0/doc/example-snippets/example-data/titanic.typ
typst
Apache License 2.0
#import "@preview/tabut:1.0.0": records-from-csv #let titanic = records-from-csv("doc/example-snippets/example-data/titanic.csv"); #let classes = ( "N/A", "First", "Second", "Third" );
https://github.com/jgm/typst-hs
https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/compiler/import-10.typ
typst
Other
// Error: 9-10 expected path, module or function, found integer #import 5: something
https://github.com/typst/packages
https://raw.githubusercontent.com/typst/packages/main/packages/preview/unichar/0.1.0/ucd/block-0590.typ
typst
Apache License 2.0
#let data = ( (), ("HEBREW ACCENT ETNAHTA", "Mn", 220), ("HEBREW ACCENT SEGOL", "Mn", 230), ("HEBREW ACCENT SHALSHELET", "Mn", 230), ("HEBREW ACCENT ZAQEF QATAN", "Mn", 230), ("HEBREW ACCENT ZAQEF GADOL", "Mn", 230), ("HEBREW ACCENT TIPEHA", "Mn", 220), ("HEBREW ACCENT REVIA", "Mn", 230), ("HEBREW ACC...
https://github.com/CL4R3T/QFT_homework
https://raw.githubusercontent.com/CL4R3T/QFT_homework/main/HW2/HW2_Sol.typ
typst
#import "@preview/problemst:0.1.0": pset #show: pset.with( class: "QFT", student: read("../.authorinfo"), date: datetime.today(), title:"Homework 2" )
https://github.com/kokkonisd/typst-phd-template
https://raw.githubusercontent.com/kokkonisd/typst-phd-template/main/src/logos.typ
typst
The Unlicense
#let LOGO_CEA_LIST = image("/assets/cea_list_logo.png") #let LOGO_UNIVERSITE_PARIS_SACLAY = image("/assets/universite_paris_saclay_logo.png") #let LOGO_IP_PARIS = image("/assets/ip_paris_logo.png")
https://github.com/typst/packages
https://raw.githubusercontent.com/typst/packages/main/packages/preview/unichar/0.1.0/ucd/block-11480.typ
typst
Apache License 2.0
#let data = ( ("<NAME>", "Lo", 0), ("TIRHUTA LETTER A", "Lo", 0), ("TIRHUTA LETTER AA", "Lo", 0), ("TIRHUTA LETTER I", "Lo", 0), ("TIRHUTA LETTER II", "Lo", 0), ("TIRHUTA LETTER U", "Lo", 0), ("TIRHUTA LETTER UU", "Lo", 0), ("TIRHUTA LETTER VOCALIC R", "Lo", 0), ("TIRHUTA LETTER VOCALIC RR", "Lo", 0),...
https://github.com/dark-flames/apollo-typst
https://raw.githubusercontent.com/dark-flames/apollo-typst/main/packages/typst-apollo/pages.typ
typst
Apache License 2.0
/******************************************************************************** * This file includes code from the shiroa (https://github.com/Myriad-Dreamin/shiroa), * which is licensed under the Apache License, Version 2.0. * * Original code by: * Myriad-Dreamin (https://github.com/Myriad-Dreamin) * * Copyri...
https://github.com/Enter-tainer/typstyle
https://raw.githubusercontent.com/Enter-tainer/typstyle/master/tests/assets/unit/math/var-in-math.typ
typst
Apache License 2.0
#let f(content) = { if type(content) in (float, int) { content = $#content$ } } $ lr([sum_(k = 0)^n e^(k^2)], size: #50%) $ #let x = 5 $ #x < 17 $
https://github.com/i-am-wololo/cours
https://raw.githubusercontent.com/i-am-wololo/cours/master/i21/main.typ
typst
#import "template.typ": * // Take a look at the file `template.typ` in the file panel // to customize this template and discover how it works. #show: project.with( title: "I21: Algorithmique élementaire", ) #include "cours/intro.typ"
https://github.com/typst-community/valkyrie
https://raw.githubusercontent.com/typst-community/valkyrie/main/tests/types/string/test.typ
typst
Other
#import "/src/lib.typ" as z #import "/tests/utility.typ": * #show: show-rule.with(); #let schema = z.any() = types/number == Input types == Custom assertions === Min #let test-min(valid: true, value, minimum: 0) = utility-expect-eq( test: value, schema: z.string(min: minimum), truth: if (valid) { value ...
https://github.com/herbhuang/utdallas-thesis-template-typst
https://raw.githubusercontent.com/herbhuang/utdallas-thesis-template-typst/main/content/proposal/abstract.typ
typst
MIT License
#import "/utils/todo.typ": TODO = Abstract #TODO[ // Remove this block *Abstract* - Short (1/3-1/2 page) summary of the project - It is fine to repeat yourself here ]
https://github.com/ngyngcphu/tick3d-docs
https://raw.githubusercontent.com/ngyngcphu/tick3d-docs/main/metadata.typ
typst
Apache License 2.0
#let meta = ( course-name: "<NAME>ổng hợp - hướng Công nghệ phần mềm", course-id: "CO3103", title: "Phát triển hệ thống in ấn 3D", semester: 231, date: "09/2023", students: ( "2110193": "<NAME>", "2110342": "<NAME>", "2114417": "<NAME>", "2112122": "<NAME>", "2110527": "<NAME>", "211...
https://github.com/angelcerveraroldan/notes
https://raw.githubusercontent.com/angelcerveraroldan/notes/main/preamble.typ
typst
// Some global constants #let name = "<NAME>" #let student_number = "21319203" #let vline(color: gray) = line(length: 100%, stroke: 0.5pt + color) #let enumerated(func) = math.equation(block: true, numbering: "(1)", func, supplement: "Eq") #let project( title: "", subtitle: "", authors: ( name, studen...
https://github.com/0x1B05/english
https://raw.githubusercontent.com/0x1B05/english/main/cnn10/content/20240402.typ
typst
#import "../template.typ": * #pagebreak() = 20240304 == Start Hello, friends, let's get our energy up up up and take up some time on this *terrific* Tuesday to give a *shout-out* to all the teachers out there who are *uplifting*, informing and inspiring us everyday. #strike[We should] #underline[So be sure to] give ...
https://github.com/chendaohan/bevy_tutorials_typ
https://raw.githubusercontent.com/chendaohan/bevy_tutorials_typ/main/29_hdr_and_tonemapping/hdr_and_tonemapping.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. HDR HDR(高动态范围)指的是游戏引擎处理非常明亮的光或颜色的能力。Bevy 的渲染器内部是 HDR 的,这意味着你可以拥有颜色超过 1.0 的对象、非常明亮的光源或明亮的自发光材料。 这与 HDR 显示输出不同,后者是指能...
https://github.com/piepert/philodidaktik-hro-phf-ifp
https://raw.githubusercontent.com/piepert/philodidaktik-hro-phf-ifp/main/src/parts/ephid/unterrichtsplanung/sozialformen.typ
typst
Other
#import "/src/template.typ": * == #ix("Sozialformen", "Sozialform") #def("Sozialform")[ "Sozialformen regeln die Art und Weise, in der Lehrer und Schüler im Unterricht miteinander kommunizieren und kooperieren."#en[@Meyer2007_Unterrichtsvorbereitung[S. 41]] ] #table(columns: 2, stroke: none, row-gutter: ...