repo
stringlengths
26
115
file
stringlengths
54
212
language
stringclasses
2 values
license
stringclasses
16 values
content
stringlengths
19
1.07M
https://github.com/Complex2-Liu/macmo
https://raw.githubusercontent.com/Complex2-Liu/macmo/main/contests/2023/content/problem-01.typ
typst
#import "../lib/math.typ": problem, solution, note, ans #problem[ 求 $tan(15 degree)$ 的值. ] #solution[ 设 $t = tan(15 degree)$, 利用两倍角公式 $tan (2x) = (2 tan x) / (1 - tan^2 x)$, 可得 $ sqrt(3) / 3 = tan(30 degree) = (2 t) / (1 - t^2). $ 这是一个关于 $t$ 的二次方程, 解得 $t = -sqrt(3) plus.minus 2$. 因为 $tan x > 0$ for $0 < x <...
https://github.com/Canadauni/typst-static-dashboard
https://raw.githubusercontent.com/Canadauni/typst-static-dashboard/main/_extensions/typst_static_dashboard/typst-template.typ
typst
#let dashcell(inner) = { rect( width: 100%, height: 100%, radius: 2pt, stroke: 0.5pt + rgb("#C9C9C9"), inner ) } #let dashboard( title: "Static Dashboard Template", grid-cols: 3, grid-rows: 3, font-size: 12, font-col: "3E4440", paper: "us-letter", flipped: true, margin: (x: 0.15...
https://github.com/AliothCancer/AppuntiUniversity
https://raw.githubusercontent.com/AliothCancer/AppuntiUniversity/main/capitoli_dispositivi/03ProtesiVascolari.typ
typst
#import "../custom_functions.typ": def = Protesi Vascolari #def[Protesi Vascolare][Dispositivi medici impiantati permanentemente per *ripristinare la funzione di un tratto vascolare* non più in grado di trasportare correttamente il sangue.] == Condizione patologica - *Stenosi* (occlusione parziale) - *Aneuris...
https://github.com/CaldeCrack/Typst-Templates
https://raw.githubusercontent.com/CaldeCrack/Typst-Templates/main/modules/auto_rect.typ
typst
/* width: width of the rect height: height of the rect color: color displayed in rect value: value to display in rect */ #let auto_rect(width, height, color, position, value) = { align(position)[ #rect( width: width, height: height, fill: color, )[#if type(value) == int {str(value)} else {va...
https://github.com/Pablo-Gonzalez-Calderon/apuntes-botanica
https://raw.githubusercontent.com/Pablo-Gonzalez-Calderon/apuntes-botanica/main/src/main.typ
typst
Other
#import "template.typ": * #import "@preview/showybox:1.1.0": showybox #import "months/august.typ": * #import "months/september.typ": * #import "months/october.typ": * #import "months/november.typ": * #show: properties.with() #title() // Agosto #clase-1-2 #clase-3-4 #clase-5-6 // Septiembre #clase-7...
https://github.com/alberto-lazari/computer-science
https://raw.githubusercontent.com/alberto-lazari/computer-science/main/lcd/project-presentation/sections/stack.typ
typst
#import "/common.typ": * #new-section-slide[Technological stack] #slide(title: [Programming language])[ Choice: OCaml Widely used ML dialect #pause === #text(green)[Pros] - Pattern matching! #pause - I know ML #pause - Popular parser generators available ] #slide(title: [Parser generator])[ OCam...
https://github.com/justmejulian/typst-documentation-template
https://raw.githubusercontent.com/justmejulian/typst-documentation-template/main/theme/disclaimer.typ
typst
#import "constant.typ": body-font, sans-font #let disclaimer( title: "", author: "", submissionDate: none, ) = { set page( margin: (left: 30mm, right: 30mm, top: 40mm, bottom: 40mm), numbering: none, number-align: center, ) set text( font: body-font, size: 12pt, lang: "en" ) ...
https://github.com/valentinvogt/npde-summary
https://raw.githubusercontent.com/valentinvogt/npde-summary/main/src/chapters/05.typ
typst
#import "../setup.typ": * #show: thmrules = Non-Linear Elliptic Boundary Value Problems <ch:non-linear-elliptic-bvp> == Elastic String Model <sub:elastic-string-model> We want to derive the general variational equation for an elastic string. For this, one approximates the string as $n$ point masses affected by gravit...
https://github.com/gongke6642/tuling
https://raw.githubusercontent.com/gongke6642/tuling/main/可视化/图像/tuxiang.typ
typst
= image 元素 光栅图形或矢量图形。 支持的格式包括 PNG、JPEG、GIF 和 SVG。 注意:SVG 导出工作正在进行中,生成的 PDF 中可能存在视觉不准确之处。确保仔细检查嵌入的 SVG 图像。如果您有问题,也请随时在 GitHub 上报告。 #image("1.png") #image("2.png") #image("3.png") = 定义 = decode 从字节或字符串中解码光栅或矢量图形。 #image("4.png") #image("5.png")
https://github.com/nayaabkhan/the-science-of-getting-rich
https://raw.githubusercontent.com/nayaabkhan/the-science-of-getting-rich/main/main.typ
typst
Creative Commons Zero v1.0 Universal
// override the built-in smallcaps #let smallcaps(body) = { set text(font: "MrsEavesSmallCaps") [#body] } #let numeric(body) = { set text(font: "MrsEavesFractions") [#body] } #show emph: it => [ #text(font: "MrsEaves", style: "italic", it.body) ] #let title = "The Science of Getting Rich" #let a...
https://github.com/Jollywatt/typst-fletcher
https://raw.githubusercontent.com/Jollywatt/typst-fletcher/master/docs/gallery/node-groups.typ
typst
MIT License
#import "@preview/fletcher:0.5.1" as fletcher: diagram, node, edge #set page(width: auto, height: auto, margin: 5mm, fill: white) #diagram( node-corner-radius: 4pt, node((0,0), $S a$), node((1,0), $T b$), node((0,1), $S a'$), node((1,1), $T b'$), edge((0,0), (1,0), "->", $f$), edge((0,1), (1,1), "->", $f'$), ...
https://github.com/blaisdellma/rustic-typster
https://raw.githubusercontent.com/blaisdellma/rustic-typster/master/README.md
markdown
MIT License
# Rustic-Typster This is a typing practice game specifically for typing rust. The game scrapes crates.io for recently downloaded crates, finds their github repo, and pulls lines from any *.rs files. ![Screenshot](screenshots/rustic_typster_screenshot.png) ## Note about OpenSSL Requires openssl libs to be installed....
https://github.com/SillyFreak/typst-packages-old
https://raw.githubusercontent.com/SillyFreak/typst-packages-old/main/pre-plantuml/README.md
markdown
MIT License
# pre-plantuml This package provides a [prequery](https://typst.app/universe/package/prequery) for UML diagrams specified using [PlantUML](https://www.plantuml.com/) syntax. The diagrams can be extracted either as source code, or as URLs to a specific PlantUML Webservice. See the [manual](docs/manual.pdf) for details...
https://github.com/typst/packages
https://raw.githubusercontent.com/typst/packages/main/packages/preview/unichar/0.1.0/ucd/block-0860.typ
typst
Apache License 2.0
#let data = ( ("SYRIAC LETTER MALAYALAM NGA", "Lo", 0), ("SYRIAC LETTER MALAYALAM JA", "Lo", 0), ("SYRIAC LETTER MALAYALAM NYA", "Lo", 0), ("SYRIAC LETTER MALAYALAM TTA", "Lo", 0), ("SYRIAC LETTER MALAYALAM NNA", "Lo", 0), ("SYRIAC LETTER MALAYALAM NNNA", "Lo", 0), ("SYRIAC LETTER MALAYALAM BHA", "Lo", 0)...
https://github.com/dyc3/senior-design
https://raw.githubusercontent.com/dyc3/senior-design/main/balancer-requirements.typ
typst
= Requirements <Chapter::balancer-requirements> == Introduction As elaborated in @Chapter::SolutionOverview, the goal is to create a load balancer that meets the requirements specified in this chapter. == Stakeholders - End Users - People that use any instance of OTT to watch videos - Self-hosters - People tha...
https://github.com/DashieTM/ost-5semester
https://raw.githubusercontent.com/DashieTM/ost-5semester/main/cyberdef/weeks/week3.typ
typst
#import "../../utils.typ": * #section("Incident Response") #align( center, [#image("../../Screenshots/2023_10_03_08_33_35.png", width: 100%)], ) #subsection("First actions") #columns(2, [ #align( center, [#image("../../Screenshots/2023_10_03_08_46_30.png", width: 100%)], ) #colbreak() - best not t...
https://github.com/SWATEngineering/Docs
https://raw.githubusercontent.com/SWATEngineering/Docs/main/src/3_PB/ManualeUtente/meta.typ
typst
MIT License
#let title = "Manuale Utente"
https://github.com/rdboyes/resume
https://raw.githubusercontent.com/rdboyes/resume/main/modules_en/projects.typ
typst
// Imports #import "@preview/brilliant-cv:2.0.2": cvSection, cvEntry #let metadata = toml("../metadata.toml") #let cvSection = cvSection.with(metadata: metadata) #let cvEntry = cvEntry.with(metadata: metadata) #cvSection("Projects & Associations") #cvEntry( title: [Volunteer Data Analyst], society: [ABC Nonprofi...
https://github.com/julius2718/tempura
https://raw.githubusercontent.com/julius2718/tempura/main/0.0.1/main.typ
typst
MIT License
#let sans(it, font: ("Hiragino Sans", "BIZ UDPGothic", "Noto Sans JP",)) = { text(font: font)[ #it ] } #let gtheading( it, font: ("Helvetica", "Noto Sans JP", "BIZ UDPGothic", "Hiragino Sans"), ) = { text(sans(font: font)[#h(-1em) *#it* #h(1em)]) } #let signature(title: "", date: "", author: "", titlefon...
https://github.com/hexWars/resume
https://raw.githubusercontent.com/hexWars/resume/main/README.md
markdown
MIT License
# typst-resume-template [中文](./README-zh.md) ![resume](https://img.shields.io/badge/resume-typst-9cf) This project is a resume template designed using Typst and inspired by [this website](https://satnaing.dev/blog). ## Preview | | | |:---:|:---:| | ![preview](./assets/typst-resume-template.png) | ![preview2...
https://github.com/linsyking/messenger-manual
https://raw.githubusercontent.com/linsyking/messenger-manual/main/advanced.typ
typst
#import "@preview/fletcher:0.4.5" as fletcher: diagram, node, edge #pagebreak() = Advanced Usage == LocalStorage <localstorage> #link("https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage")[Local storage] is a mechanism to store data in the browser. It allows the game to save data locally. In Messeng...
https://github.com/Toniolo-Marco/git-for-dummies
https://raw.githubusercontent.com/Toniolo-Marco/git-for-dummies/main/book/components/code-blocks.typ
typst
// Definisci una funzione per creare i bottoni della finestra #let window-button(color) = circle( fill: color, radius: 4pt, ) // Definisci la barra del titolo con i tre bottoni #let window-titlebar = box.with( fill: rgb("#1d2433"), radius: 5pt, inset: 4pt, )( stack( dir: rtl, spacing: 8pt, wind...
https://github.com/derliemonne/compute-math-lectures-fefu-5th-semester-kolobov
https://raw.githubusercontent.com/derliemonne/compute-math-lectures-fefu-5th-semester-kolobov/main/src/lectures.typ
typst
#import "utils.typ": * #set page("a5", numbering: "1") #set text(lang: "ru") #set par(justify: true) #set heading(numbering: "1.") `24 Сентября 2024` = Вводная <NAME>, D947 Чтобы получить экзамен нужно: - допуск от преподавателя по практике - сдача теории (экзамен) Можно сдавать частями (три коллоквиума): - Пря...
https://github.com/Mayu-onakasuita/typst_japanese_thesis
https://raw.githubusercontent.com/Mayu-onakasuita/typst_japanese_thesis/main/Main.typ
typst
#set text(/*lang:"ja",*/ font: "<NAME>") #import "lib.typ": * #let chapters-on-odd = true #show: ntnu-thesis.with( title: [Show Title], short-title: [Short Title], authors: ("Author 1, ""), //shortauthor: ("<NAME>."), titlepage: true, chapters-on-odd: chapters-on-odd, bibliography: bibliography( "koko...
https://github.com/Myriad-Dreamin/typst.ts
https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/bugs/square-base_00.typ
typst
Apache License 2.0
#import "/contrib/templates/std-tests/preset.typ": * #show: test-page #set page(height: 80pt) #square(width: 40%, rect(width: 60%, height: 80%))
https://github.com/Raekker/typst_playground
https://raw.githubusercontent.com/Raekker/typst_playground/master/dellabel.typ
typst
#import "@preview/tablex:0.0.5": tablex, rowspanx, colspanx, cellx, hlinex, vlinex, gridx #set page( header-ascent: 0%, footer-descent: 0%, margin: (top: 5mm, bottom: 5mm, left: 5mm, right: 5mm) ) /* unfortunately we can't just change column widths willy nilly in here so replaction of the label table layout i...
https://github.com/kalintas/resume
https://raw.githubusercontent.com/kalintas/resume/master/template.typ
typst
#let template(fullname, info, doc) = { show link: underline.with(offset: 2pt) set text(font: "Times New Roman", size: 11pt, lang: "en") set page(margin: (x: 1in, top: 1in, bottom: 1in)) set list(tight: true) let name = n => align(center, text(size: 20pt, n)) grid( columns: (1fr), rows: (auto, aut...
https://github.com/El-Naizin/cv
https://raw.githubusercontent.com/El-Naizin/cv/main/metadata.typ
typst
Apache License 2.0
// NOTICE: Copy this file to your root folder. /* Personal Information */ #let firstName = "Léo" #let lastName = "Naizin" #let personalInfo = ( github: "El-naizin", phone: "+33 6 32 06 02 42", email: "<EMAIL>", linkedin: "leo-naizin", //gitlab: "mintyfrankie", //homepage: "jd.me.org", //orcid: "0000-00...
https://github.com/jgm/typst-hs
https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/layout/grid-rtl-01.typ
typst
Other
#set text(dir: rtl) #table(columns: 2)[A][B][C][D]
https://github.com/fabriceHategekimana/master
https://raw.githubusercontent.com/fabriceHategekimana/master/main/3_Theorie/Syntax.typ
typst
#import "@preview/simplebnf:0.1.0": * #import "../src/module.typ" : * #pagebreak() == Syntax du langage Après avoir défini ses différents composants, nous allons maintenant faire une présentation complète du langage prototype système C3PO. #Definition()[Syntax du langage Système C3PO #bnf( Prod( $E$, ann...
https://github.com/kdog3682/mathematical
https://raw.githubusercontent.com/kdog3682/mathematical/main/0.1.0/src/utils.typ
typst
#import "formulas.typ": * #let get-dxdy(p1, p2) = { let dx = p2.at(0) - p1.at(0) let dy = p2.at(1) - p1.at(1) return (dx, dy) } #let get-angle-between-points(p1, p2) = { let (dx, dy) = get-dxdy(p1, p2) return calc.atan2(dy, dx) } #let get-adjacently-paired-segments(points) = { let store = () let l =...
https://github.com/7sDream/fonts-and-layout-zhCN
https://raw.githubusercontent.com/7sDream/fonts-and-layout-zhCN/master/chapters/05-features/value-records.typ
typst
Other
#import "/lib/glossary.typ": tr #import "/template/theme.typ": theme #let normal-underline-with-style = (f, body) => box[ #place(underline( // underline stroke: 1pt + theme.main, evade: false, background: false, // with transparent character text(fill: rgb("00000000"), body), )) #f(body) ] #let test-fon...
https://github.com/ludwig-austermann/typst-ouset
https://raw.githubusercontent.com/ludwig-austermann/typst-ouset/main/ouset.typ
typst
MIT License
/// helper function #let __wrap(s, dw, c: 0, insert-and: true) = { if calc.odd(c) { // left clip for e.g. &= if insert-and { h(dw) $&$ } h(-dw) } s if c > 1 { // right clip for e.g. =& h(-dw) if insert-and { $&$ h(dw) } } } /// clip param c ∈ {0,1,2,3} ...
https://github.com/ludwig-austermann/typst-idwtet
https://raw.githubusercontent.com/ludwig-austermann/typst-idwtet/main/README.md
markdown
MIT License
# Package IDWTET The name `idwtet` stands for "I Don't Wanna Type Everything Twice". It provides a `typst-ex` and a `typst-ex-code` codeblock, which *shows **and** executes* typst code. It is meant for code demonstration, e.g. when publishing a package, and provides some niceties: - the code should always be correct i...
https://github.com/jgm/typst-hs
https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/compiler/import-04.typ
typst
Other
// Edge case for module access that isn't fixed. #import "module.typ" // Works because the method name isn't categorized as mutating. #test((module,).at(0).item(1, 2), 3) // Doesn't work because of mutating name. // Error: 2-11 cannot mutate a temporary value #(module,).at(0).push()
https://github.com/ns-shop/ns-shop-typst
https://raw.githubusercontent.com/ns-shop/ns-shop-typst/main/cover.typ
typst
#let cover(border: true) = { rect(width: 100%, height: 100%, stroke: if(border) {2.5pt} else {0pt}, [ #set align(center) \ BAN CƠ YẾU CHÍNH PHỦ \ *HỌC VIỆN KỸ THUẬT MẬT MÃ* #line(start: (50% - (3.5cm / 2), 0%), length: 3.5cm) #image("./images/logo.png", width: 3.5cm) ...
https://github.com/Jeomhps/datify
https://raw.githubusercontent.com/Jeomhps/datify/main/tests/test_formats.typ
typst
MIT License
// To compile this file : typst compile --root .. .\test_formats.typ #import "../src/formats.typ": custom-date-format #let date = datetime(year: 2024, month: 8, day: 29) #assert(custom-date-format(date, "YYYY-MM-DD") == "2024-08-29") #assert(custom-date-format(date, "MM/DD/YYYY") == "08/29/2024") #assert(custom-dat...
https://github.com/ammar-ahmed22/typst-resume
https://raw.githubusercontent.com/ammar-ahmed22/typst-resume/main/src/utils/init.typ
typst
#let init( headingFont: "Linux Libertine", bodyFont: "Linux Libertine", fontSize: 11pt, lineSpacing: 6pt, accentColor: black, doc, ) = { set page( paper: "us-letter", margin: 1.25cm ) set text( font: headingFont, size: fontSize, hyphenate: false, ) set list( spacing: li...
https://github.com/augustebaum/petri
https://raw.githubusercontent.com/augustebaum/petri/main/src/cetz-shapes.typ
typst
MIT License
#import "@preview/cetz:0.2.2" as cetz: draw #import cetz.drawable: path #import cetz.vector #let _label(label, labelled-element-name: "", anchor: "north", ..style) = { let opposite-anchor = ( "north-west": "south-east", "north": "south", "north-east": "south-west", "west": "east", "center": "cent...
https://github.com/typst/packages
https://raw.githubusercontent.com/typst/packages/main/packages/preview/fletcher/0.1.1/src/exports.typ
typst
Apache License 2.0
#import "main.typ": arrow-diagram, node, conn #import "all.typ" as arrow-diagrams
https://github.com/SWATEngineering/Docs
https://raw.githubusercontent.com/SWATEngineering/Docs/main/src/3_PB/PianoDiQualifica/content.typ
typst
MIT License
#import "functions.typ": glossary, team #let fornitura=csv("Mfornitura.csv") #show link: underline /*************************************/ /* INSERIRE SOTTO IL CONTENUTO */ /*************************************/ = Introduzione Il _Piano di Qualifica_ è un documento che delinea le strategie e le attività mirat...
https://github.com/polarkac/MTG-Stories
https://raw.githubusercontent.com/polarkac/MTG-Stories/master/stories/001%20-%20Magic%202013/004_Krenko%2C%20Mob%20Boss.typ
typst
#import "@local/mtgstory:0.2.0": conf #show: doc => conf( "Krenko, Mob Boss", set_name: "Magic 2013", story_date: datetime(day: 18, month: 07, year: 2012), author: "<NAME>", doc ) #figure(image("004_Krenko, Mob Boss/01.png", height: 40%), caption: [], supplement: none, numbering: none) Krenko had ...
https://github.com/SWATEngineering/Docs
https://raw.githubusercontent.com/SWATEngineering/Docs/main/src/3_PB/VerbaliInterni/VerbaleInterno_240308/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/OtaNix-ry/typst-packages
https://raw.githubusercontent.com/OtaNix-ry/typst-packages/main/board-meeting/0.1.0/example.typ
typst
MIT License
#import "lib.typ": * #show: meeting.with( title: "OtaNix ry hallituksen kokous", subtitle: "Mallidokumentti" ) #opening( // start-time: "12.00", attendees: ("<NAME>", "<NAME>", lorem(2)) )[] #lawfulness( board-members-present: 3 )[] #agenda( // accepted: true // format: false )[ + Google workspaces fo...
https://github.com/yanisurbis/typst-action-test
https://raw.githubusercontent.com/yanisurbis/typst-action-test/main/main.typ
typst
#import "template.typ": * #show: project.with( title: "CS 6400 – Fall 2023, Phase 1 Report", authors: ( "Team 059", ), ) #set page(header: align(center)[ Phase 1 Report | CS 6400 – Fall 2023 | Team 059 ]) #let datatype_table(..x) = { box([ #table( columns: (1fr, auto, auto), inset: 10pt...
https://github.com/augustebaum/petri
https://raw.githubusercontent.com/augustebaum/petri/main/tests/fletcher/transitions/test.typ
typst
MIT License
#import "/src/lib.typ": * #set page(width: auto, height: auto, margin: 1cm) #import "@preview/fletcher:0.4.2" as fletcher /// % Transition 1 /// \node[transition, /// minimum size=1cm, /// label=$T_1$] (Trans1) at (0,0) {}; /// /// % Transition 2 /// \node[transition, /// minimum width=2mm, /// minimum height=12...
https://github.com/deadManAlive/ui-thesis-typst-template
https://raw.githubusercontent.com/deadManAlive/ui-thesis-typst-template/master/primer/pre.typ
typst
#import "cover.typ": cover #import "title.typ": title #import "auth.typ": auth #import "valid.typ": valid #import "intro.typ": intro #import "publ.typ": publ #let pre = [ #set par(leading: 1em) #set page(numbering: "i") #set outline(title: none, depth: 3, indent: auto) #show heading.where(level: 1): head => co...
https://github.com/YabusameHoulen/Statistics
https://raw.githubusercontent.com/YabusameHoulen/Statistics/main/Template/pset.typ
typst
#let pset(class: "默认类", title: "魔改PSET", student: "<NAME>", date: datetime.today(), subproblems: "1.1.1.i", collaborators: (), doc ) = {[ /* Convert collaborators to a string if necessary */ #let collaborators=if type(collaborators) == array {collaborators.join(", ")} else {collaborators} /* Problem + subp...
https://github.com/AU-Master-Thesis/thesis
https://raw.githubusercontent.com/AU-Master-Thesis/thesis/main/sections/5-discussion/study-2.typ
typst
MIT License
#import "../../lib/mod.typ": * // #pagebreak(weak: true) == #study.H-2.full.n <s.d.study-2> This part discusses, and evaluates the results of the contribution, which pertains to the second hypothesis, #study.H-2.box. This hypothesis specifically concerns the testing of an enhancement to the original `gbpplanner`, whi...
https://github.com/Myriad-Dreamin/typst.ts
https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/meta/footnote_01.typ
typst
Apache License 2.0
#import "/contrib/templates/std-tests/preset.typ": * #show: test-page // Test space collapsing before footnote. A#footnote[A] \ A #footnote[A]
https://github.com/FurryAcetylCoA/sgu-thesis-typst
https://raw.githubusercontent.com/FurryAcetylCoA/sgu-thesis-typst/main/nju-thesis/layouts/appendix.typ
typst
MIT License
#import "@preview/i-figured:0.2.2" #import "../utils/custom-numbering.typ": custom-numbering #import "../utils/style.typ": 字号, 字体 // 后记,重置 heading 计数器 #let appendix( fonts: (:), numbering: custom-numbering.with(first-level: "", depth: 3, "A.1 "), // figure 计数 show-figure: i-figured.show-figure.with(numbering: ...
https://github.com/tingerrr/subpar
https://raw.githubusercontent.com/tingerrr/subpar/main/src/lib.typ
typst
MIT License
#import "util.typ" as _util #import "_pkg.typ" #import "default.typ" #let _numbering = numbering #let _label = label #let _grid = grid /// The counter used for sub figures. #let sub-figure-counter = counter("__subpar:sub-figure-counter") /// Creates a figure which may contain other figures, a #emph[super]figure. For...
https://github.com/EpicEricEE/typst-marge
https://raw.githubusercontent.com/EpicEricEE/typst-marge/main/tests/container/figure/test.typ
typst
MIT License
#import "/src/lib.typ": sidenote #set par(justify: true) #set page(width: 8cm, height: auto, margin: (outside: 4cm, rest: 5mm)) #let sidenote = sidenote.with(numbering: "1") #lorem(5) #sidenote[A note before the figure.] #figure(rect(), caption: [ // Counter is not stepped because of a Typst bug! (Fixe...
https://github.com/Error-418-SWE/Documenti
https://raw.githubusercontent.com/Error-418-SWE/Documenti/src/1%20-%20Candidatura/Verbali/Interni/17-10-23/17-10-23.typ
typst
ERROR\_418 \ Verbale 17/10/23 #figure( align(center)[#table( columns: 2, align: (col, row) => (left,left,).at(col), inset: 6pt, [Mail:], [<EMAIL>], [Redattori:], [<NAME>, <NAME>], [Verificatori:], [<NAME>, <NAME>, <NAME>], [Amministratori:], [<NAME>, <NAME>], [Destinatari:], [<NAME>, <NAME>],...
https://github.com/Myriad-Dreamin/tinymist
https://raw.githubusercontent.com/Myriad-Dreamin/tinymist/main/crates/tinymist-query/src/fixtures/type_check/annotation_var.typ
typst
Apache License 2.0
/// #let m = `(x, y) => x`; /// /// -> function, m #let mapper = (x, f) => x.map(f);
https://github.com/bennyhandball/PA1_LoB_Finance
https://raw.githubusercontent.com/bennyhandball/PA1_LoB_Finance/main/PA/acronyms.typ
typst
#let acronyms = ( API: "Application Programming Interface (Deutsch: Programmierschnittstelle)", HTTP: "Hypertext Transfer Protocol", REST: "Representational State Transfer", ERP : "Enterprise Resource-Planning", BTP : "Business Technology Platform", PSP: "Projektstrukturplan", PS: "SAP Projekt-System", ...
https://github.com/dyc3/senior-design
https://raw.githubusercontent.com/dyc3/senior-design/main/lib/glossary.typ
typst
// copied from: https://github.com/typst/typst/issues/755#issuecomment-1542595624 // modified to taste #import "@preview/in-dexter:0.0.5": * // Generate a regex that matches all the words in glossary named filename #let glossaryWords(filename) = { let pipeList = "(?i:" // Match case insensitively for word in yaml...
https://github.com/Hennzau/cv
https://raw.githubusercontent.com/Hennzau/cv/main/example/enzo.le-van.en.typ
typst
#import "../lib.typ": cv #let gray = rgb("#303848") #let orange = rgb("#BF9268") #let light_gray = rgb("#F2F2F2") #let cadre_photo() = { align(right + bottom)[ #box(width: auto, height: 85%, stroke: gray + 4pt,)[ #image("enzo.le-van.photo.jpg") ] ] } #let cadre_nom() = { align(center + bottom)[ ...
https://github.com/TypstApp-team/typst
https://raw.githubusercontent.com/TypstApp-team/typst/master/tests/typ/layout/list.typ
typst
Apache License 2.0
// Test bullet lists. --- _Shopping list_ #list[Apples][Potatoes][Juice] --- - First level. - Second level. There are multiple paragraphs. - Third level. Still the same bullet point. - Still level 2. - At the top. --- - Level 1 - Level #[ 2 through content block ] --- - Top-level indent - i...
https://github.com/typst/packages
https://raw.githubusercontent.com/typst/packages/main/packages/preview/acrotastic/0.1.0/README.md
markdown
Apache License 2.0
# Acrotastic (0.1.0) Manages all your acronyms for you. Acrotastics main features are clickable abbreviations that auto-expand on the first occurence, manual short and long forms, implicit or manual plural form support, and customizable index printing. ## Quick Start ``` #import "@preview/acrotastic:0.1.0": * #ini...
https://github.com/Pablo-Gonzalez-Calderon/chic-header-package
https://raw.githubusercontent.com/Pablo-Gonzalez-Calderon/chic-header-package/main/lib/props.typ
typst
MIT License
/* * Chic-header - A package for Typst * <NAME> (c) 2023 * * props.typ -- The package's file for handling properties * given to the main function. * * This file is under the MIT license. For more * information see LICENSE on the package's main folder. */ #import "types.typ": * /* * chic-generate-props * *...
https://github.com/noahjutz/AD
https://raw.githubusercontent.com/noahjutz/AD/main/uebungen/1/matrix_mult.typ
typst
#import "/config.typ": theme #import "@preview/cetz:0.2.2" #let m = 4 #let n = 2 #let p = 5 #let i = 1 #let j = 1 #cetz.canvas(length: 20pt, { import cetz.draw: * stroke(none) rect( (0, 0), (rel: (n, m)), name: "a" ) rect( (n + 1, m + 1), (rel: (p, n)), name: "b" ) rect( (n...
https://github.com/miliog/typst-penreport
https://raw.githubusercontent.com/miliog/typst-penreport/master/main.typ
typst
MIT No Attribution
#import "./typst-penreport/penreport.typ": * #show: body => penreport( title: "Test Webseite", client: "Die Organisation", sharing: TLP.CLEAR, targets: ( ( name: "Test Website", additionalInfo: [ - https://example.org ] ), ), authors: ( ( name: "<NAME>", ), ...
https://github.com/piepert/grape-suite
https://raw.githubusercontent.com/piepert/grape-suite/main/README.md
markdown
MIT License
# Grape Suite The grape suite is a suite consisting of following templates: * exercises (for exams, homework, etc.) * seminar papers * slides (using polylux) ## Exercises ### Setup ```typ #import "@preview/grape-suite:1.0.0": exercise #import exercise: project, task, subtask #show: project.with( title...
https://github.com/LauHuiQi0920/3007DataVisualizationTeamCyan
https://raw.githubusercontent.com/LauHuiQi0920/3007DataVisualizationTeamCyan/main/_extensions/_extensions/poster/typst-template.typ
typst
#let poster( // The poster's size. size: "'36x24' or '48x36''", // The poster's title. title: "Paper Title", // A string of author names. authors: "Author Names (separated by commas)", // Department name. departments: "Department Name", // University logo. univ_logo: "Logo Path", // Footer t...
https://github.com/typst/packages
https://raw.githubusercontent.com/typst/packages/main/packages/preview/unichar/0.1.0/ucd/block-1380.typ
typst
Apache License 2.0
#let data = ( ("ETHIOPIC SYLLABLE SEBATBEIT MWA", "Lo", 0), ("ETHIOPIC SYLLABLE MWI", "Lo", 0), ("ETHIOPIC SYLLABLE MWEE", "Lo", 0), ("ETHIOPIC SYLLABLE MWE", "Lo", 0), ("ETHIOPIC SYLLABLE SEBATBEIT BWA", "Lo", 0), ("ETHIOPIC SYLLABLE BWI", "Lo", 0), ("ETHIOPIC SYLLABLE BWEE", "Lo", 0), ("ETHIOPIC SYLLA...
https://github.com/td-org-uit-no/assignment-template-typst
https://raw.githubusercontent.com/td-org-uit-no/assignment-template-typst/main/main.typ
typst
#import "template.typ": * #show: template.with( title: [Assignment template], abstract: [ This document presents a number of guidelines to use when writing a report for assignments at UiT and may serve as a template for how to write it using Typst for typesetting. The template is meant to give some general tips...
https://github.com/Myriad-Dreamin/tinymist
https://raw.githubusercontent.com/Myriad-Dreamin/tinymist/main/crates/tinymist-query/src/fixtures/type_check/fn_named3.typ
typst
Apache License 2.0
#let fun() = { return 2 } #let foo(b: fun()) = b #let x = foo()
https://github.com/chen-qingyu/Typst-Code
https://raw.githubusercontent.com/chen-qingyu/Typst-Code/master/complex_power.typ
typst
Calculate $u = a + b i$ to the $v = c + d i$ power: $z=u^v$. $ z =& u^v \ \ =& (a + b i)^(c + d i) \ \ & "let" m = sqrt(a^2 + b^2) = abs(u), space w = arctan(b / a) = arg(u) \ \ =& (m e^(i w))^(c + d i) \ \ =& (e^(ln m) e^(i w))^(c + d i) \ \ =& e^((ln m + i w)(c + d i)) \ \ =& e^((c ln m - d w) + i(c w...
https://github.com/ufodauge/master_thesis
https://raw.githubusercontent.com/ufodauge/master_thesis/main/src/template/utils/theorems.typ
typst
MIT License
#import "@preview/ctheorems:1.1.0": * // theorems #let theorem = thmbox( "theorem", "定理", fill: rgb("#eeffee") ) #let corollary = thmplain( "corollary", "系", base : "theorem", titlefmt: strong ) #let definition = thmbox( "definition", "定義", inset: ( x: 1.2em, top: 1em ) ) #let examp...
https://github.com/Myriad-Dreamin/tinymist
https://raw.githubusercontent.com/Myriad-Dreamin/tinymist/main/docs/tinymist/frontend/common-finding-executable.typ
typst
Apache License 2.0
== Finding Executable <finding-executable> To enable LSP, you must install `tinymist`. You can find `tinymist` by: - Night versions available at #link("https://github.com/Myriad-Dreamin/tinymist/actions")[GitHub Actions]. - Stable versions available at #link("https://github.com/Myriad-Dreamin/tinymist/releases")[Git...
https://github.com/ren-ben/typst-notes
https://raw.githubusercontent.com/ren-ben/typst-notes/master/math/mehrere_variablen/mehrerevariablen.typ
typst
#import "@preview/sourcerer:0.2.1": code #import "@preview/physica:0.9.3": * #align(center, text(24pt)[ *Definition und Visualisierung* ]) #align(center)[ <NAME> \ Technologisches Gewerbemuseum \ #link("mailto:<EMAIL>") ] #set heading(numbering: "1.") #show par: set block(spacing: 0.65em) #set par( f...
https://github.com/xsro/xsro.github.io
https://raw.githubusercontent.com/xsro/xsro.github.io/zola/typst/Control-for-Integrator-Systems/part1.typ
typst
#import "template.typ": template #show: template.with( title:[*Sliding Mode Control for Integrator Systems*], part:[*part 1*: SMC for single integrators and double integrators] ) #include "1linear.typ" #include "4PTC.typ" #include "2single.typ" #include "3double.typ"
https://github.com/jgm/typst-hs
https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/visualize/shape-aspect-03.typ
typst
Other
// Test square that is limited by region size. #set page(width: 20pt, height: 10pt, margin: 0pt) #stack(dir: ltr, square(fill: red), square(fill: green))
https://github.com/Vanille-N/mpri2-edt
https://raw.githubusercontent.com/Vanille-N/mpri2-edt/master/mpri.typ
typst
#import "typtyp.typ" #let tt = typtyp #import "time.typ" #import "classes.typ" // Re-exports for backwards compatibility #let Class = classes.Class #let verif = rgb("b8bb26").lighten(70%) #let prog = rgb("fe8019").lighten(60%) #let logic = rgb("fabd2f").lighten(60%) #let algos = rgb("d3869b").lighten(50%) #let data =...
https://github.com/darioglasl/Arbeiten-Vorlage-Typst
https://raw.githubusercontent.com/darioglasl/Arbeiten-Vorlage-Typst/main/Anhang/04_Projektdokumentation/05_zeitmanagement.typ
typst
#set page( flipped: true, ) === Zeitmanagement #set page( flipped: false, )
https://github.com/yomannnn/yomannnn.github.io
https://raw.githubusercontent.com/yomannnn/yomannnn.github.io/main/hello.typ
typst
#import "/book.typ": book-page #show: book-page.with(title: "2023_11_02") = <NAME> #image("./src/pic/Gaston.png") Sample page == alksdjf == alksdjf
https://github.com/qo/term
https://raw.githubusercontent.com/qo/term/main/term.typ
typst
// Colorscheme // https://www.schemecolor.com/macos-window-ui-colors.php #let width = 300pt #let inset_size = 10pt #let radius_size = 10pt #let button_size = 10pt #let button_spacing = 10pt #let button_red_color = rgb("FF605C") #let button_orange_color = rgb("FFBD44") #let button_green_color = rgb("00CA4E") #let too...
https://github.com/Dherse/typst-brrr
https://raw.githubusercontent.com/Dherse/typst-brrr/master/samples/tablex/main.typ
typst
#import "@preview/tablex:0.0.4": tablex, hlinex, vlinex, colspanx, rowspanx, cellx, gridx #tablex( columns: 4, align: center + horizon, auto-vlines: false, // indicate the first two rows are the header // (in case we need to eventually // enable repeating the header across pages) header-rows: ...
https://github.com/desid-ms/desid_report
https://raw.githubusercontent.com/desid-ms/desid_report/main/_extensions/desid_report/typst-template.typ
typst
MIT License
// margin notes #import "@preview/drafting:0.2.0" #let article( title: none, subtitle: none, authors: none, contract: none, project: none, product: none, citation: none, date: none, abstract: none, abstract-title: none, margin: (left: 1cm, top: 1.5cm, right: 7cm, bottom: 1.5cm), paper: "a4", ...
https://github.com/piepert/grape-suite
https://raw.githubusercontent.com/piepert/grape-suite/main/src/todo.typ
typst
MIT License
#import "colors.typ": magenta #let todo-state = state("grape-suite-todos", ()) #let make-todo-label(loc) = { return ("todo-label-" + str(loc.page()) + "-" + repr(loc.position().x) + "-" + repr(loc.position().y) + "-" + str(todo-state.at(loc).len())) } #let hide-todos() = state("gra...
https://github.com/thornoar/hkust-courses
https://raw.githubusercontent.com/thornoar/hkust-courses/master/MATH1023-Honors-Calculus-I/homeworks/homework-1/main.typ
typst
#import "@local/common:0.0.0": * #import "@local/templates:0.0.0": * #show: math-preamble("Part 1", "Fri, Sep 13") #math-problem("1.1.3") Explain that, if $limits(lim)_(n -> oo) x_n = l$ and $p$ is a positive integer, then $limits(lim)_(n -> oo) x_n^p = l^p.$ #math-solution We will prove this statement by induction. ...
https://github.com/lsacienne/UTBM-Internship-Report-Typst
https://raw.githubusercontent.com/lsacienne/UTBM-Internship-Report-Typst/main/README.md
markdown
MIT License
# UTBM-Internship-Report-Typst UTBM Typst template for internship report. ![Cover](readme/cover.png) ## How to use it ? Few steps are required : - Download the `utbm.typ` file. - Drop the template in your project - Add the following line to your project : ```typst #import "/utbm.typ": cover, fourth-cover ...
https://github.com/typst/packages
https://raw.githubusercontent.com/typst/packages/main/packages/preview/chordx/0.1.0/chordx-native.typ
typst
Apache License 2.0
// typst-chordx using native primitives #let new-graph-chords-native(strings: 6, font: "Linux Libertine") = { return ( frets: 5, fret-number: none, capos: (), fingers: (), notes, chord-name ) => { let vertical-space = 18pt if fingers.len() == 0 { vertical-space = 13pt } ...
https://github.com/mrcinv/nummat-typst
https://raw.githubusercontent.com/mrcinv/nummat-typst/master/julia.typ
typst
#let readlines(file, start, end) = { let content = read(file) let lines = content.split(regex("\n\r{0,1}")) lines.slice(start - 1, end).join("\n") } #let jl(code) = raw( lang: "jl", code ) #let jlblk(code) = raw( lang: "jl", block: true, code ) // print a part of a julia file as a code block #let jl...
https://github.com/polarkac/MTG-Stories
https://raw.githubusercontent.com/polarkac/MTG-Stories/master/stories/004_Dragon's%20Maze.typ
typst
#import "@local/mtgset:0.1.0": conf #show: doc => conf("Dragon's Maze", doc) #include "./004 - Dragon's Maze/001_Ruric Thar.typ" #include "./004 - Dragon's Maze/002_Teysa Karlov.typ" #include "./004 - Dragon's Maze/003_Barrin's Tall Tale.typ" #include "./004 - Dragon's Maze/004_Expectations.typ" #include "./004 - Drag...
https://github.com/TGM-HIT/typst-diploma-thesis
https://raw.githubusercontent.com/TGM-HIT/typst-diploma-thesis/main/template/assets/mod.typ
typst
MIT License
#let logo = image.with("logo.png")
https://github.com/Myriad-Dreamin/typst.ts
https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/layout/out-of-flow-in-block_04.typ
typst
Apache License 2.0
#import "/contrib/templates/std-tests/preset.typ": * #show: test-page // Counter update and placed item in the first region. #set page(height: 5cm, margin: 1cm) Counter update + place. #block(breakable: true, above: 1cm, stroke: 1pt, inset: 0.5cm)[ #counter("dummy").step() #place(dx: -0.5cm, dy: -0.75cm, box([OOF...
https://github.com/EpicEricEE/typst-equate
https://raw.githubusercontent.com/EpicEricEE/typst-equate/master/tests/boxed/test.typ
typst
MIT License
#import "/src/lib.typ": equate #set page(width: 6cm, height: auto, margin: 1em) #show: equate.with(breakable: true) // Test equation sizing when given constraints. // Unnumbered #block(width: 50%, fill: yellow, $ a + b $) #block(width: 50%, fill: yellow, $ c + d \ e + f $) #h(1cm) #box(width: 40%, fill: yellow, $ g...
https://github.com/jamesrswift/springer-spaniel
https://raw.githubusercontent.com/jamesrswift/springer-spaniel/main/src/lib.typ
typst
The Unlicense
#import "impl.typ": template #import "package/ctheorems.typ" as ctheorems #import "package/gentle-clues.typ" as gentle-clues #import "package/dining-table.typ" as dining-table #import "package/board-n-pieces.typ" as board-n-pieces #import "package/drafting.typ" as drafting #import "package/codly.typ" as codly #import...
https://github.com/typst/packages
https://raw.githubusercontent.com/typst/packages/main/packages/preview/canonical-nthu-thesis/0.1.0/lib.typ
typst
Apache License 2.0
#import "pages/zh-cover.typ": zh-cover-page #import "pages/en-cover.typ": en-cover-page #import "pages/outlines.typ": outline-pages #import "layouts/preface.typ": preface-impl #import "layouts/body.typ": body-impl #let cover-pages-impl(info: (:)) = { zh-cover-page(info: info) en-cover-page(info: info) } #let...
https://github.com/fiit-community/base-typst-template
https://raw.githubusercontent.com/fiit-community/base-typst-template/main/README.md
markdown
MIT License
# STU FIIT Typst Template > Author: <NAME> @ic-it ## Preview ![Preview](./thumbnail.png)
https://github.com/maxgraw/bachelor
https://raw.githubusercontent.com/maxgraw/bachelor/main/apps/document/src/3-state/applications.typ
typst
Im Folgenden werden verschiedene Anwendungen von Augmented Reality im Online-Handel vorgestellt. === IKEA Wie in @current-studies-chapter gezeigt, bietet Augmented Reality im Online-Handel neue Möglichkeiten zur Kundeninteraktion und -bindung. Auf Grundlage dieser Informationen wird im Folgenden auf die Augmented-Real...
https://github.com/polarkac/MTG-Stories
https://raw.githubusercontent.com/polarkac/MTG-Stories/master/stories/023%20-%20Oath%20of%20the%20Gatewatch/004_The%20Blight%20We%20Were%20Born%20For.typ
typst
#import "@local/mtgstory:0.2.0": conf #show: doc => conf( "The Blight We Were Born For", set_name: "Oath of the Gatewatch", story_date: datetime(day: 13, month: 01, year: 2016), author: "<NAME>", doc ) #emph[Zendikar nears its final hours. The machinations of Ob Nixilis, the demon Planeswalker, hav...
https://github.com/PmaFynn/cv
https://raw.githubusercontent.com/PmaFynn/cv/master/src/content/en/interests.typ
typst
The Unlicense
#import "../../template.typ": * #cvSection("Personal Interests") #cvInterestTags( tags: ("Literature", "Bouldering", "FOSS", "GNU/Linux", "Autodidacticism", "Vim Key Bindings", "Music"), ) /* #divider() #cvInterestDescription( description: list( [#lorem(15)] ) ) */
https://github.com/ljgago/typst-chords
https://raw.githubusercontent.com/ljgago/typst-chords/main/docs/assets/template.typ
typst
MIT License
#let acent(body) = box( fill: luma(85%), radius: 2pt, outset: (y: 4pt, x: 2pt) )[#body] #let design( title: "", subtitle: "", authors: (), url: none, date: none, version: none, body, ) = { // Set the document's basic properties. set document(author: authors, title: title) set text(font: "Linu...
https://github.com/felsenhower/kbs-typst
https://raw.githubusercontent.com/felsenhower/kbs-typst/master/examples/template.typ
typst
MIT License
#import "../typst-modules/typst-physics/physics.typ": * #set text( lang: "de" ) #set page( width: 80mm, height: auto, margin: 1mm )
https://github.com/devraza/warehouse
https://raw.githubusercontent.com/devraza/warehouse/main/blog/server-hardware-selection.typ
typst
MIT License
#import "template.typ": conf #show: doc => conf( title: [ Selecting hardware for a (home) server ], doc, ) = Introduction I see a lot of people worryingly mistaken about what a server needs \(specifically, a home server). Some think that a bland and incredibly ignorant '20% budget for CPU, 30% for GPU, and the res...
https://github.com/alikindsys/aula
https://raw.githubusercontent.com/alikindsys/aula/master/Core/alias.typ
typst
#import "base.typ": pt_abstract, pt_error, pt_tip, pt_info, pt_question, pt_memo, pt_task, pt_conclusion, pt_success, pt_warning, pt_example, pt_quote, pt_step, color-table #let resumo = pt_abstract #let dica = pt_tip #let info = pt_info #let pergunta = pt_question #let memo = pt_memo #let tarefa = pt_task #let conclu...
https://github.com/EpicEricEE/typst-marge
https://raw.githubusercontent.com/EpicEricEE/typst-marge/main/tests/basic/test.typ
typst
MIT License
#import "/src/lib.typ": sidenote #set par(justify: true) #set page(width: 8cm, height: auto, margin: (outside: 4cm, rest: 5mm)) #lorem(5) #sidenote[This is a simple unnumbered sidenote.] #lorem(13) #sidenote[Here is another one.] #lorem(11)