repo
stringlengths
26
115
file
stringlengths
54
212
language
stringclasses
2 values
license
stringclasses
16 values
content
stringlengths
19
1.07M
https://github.com/polarkac/MTG-Stories
https://raw.githubusercontent.com/polarkac/MTG-Stories/master/stories/034%20-%20Dominaria/012_Return%20to%20Dominaria%3A%20Episode%2012.typ
typst
#import "@local/mtgstory:0.2.0": conf #show: doc => conf( "Return to Dominaria: Episode 12", set_name: "Dominaria", story_date: datetime(day: 30, month: 05, year: 2018), author: "<NAME>", doc ) "And everything was going so well, too," Liliana said with a grimace. Thunder rumbled in the distance and...
https://github.com/LDemetrios/Typst4k
https://raw.githubusercontent.com/LDemetrios/Typst4k/master/src/test/resources/suite/loading/json.typ
typst
--- json --- // Test reading JSON data. #let data = json("/assets/data/zoo.json") #test(data.len(), 3) #test(data.at(0).name, "Debby") #test(data.at(2).weight, 150) --- json-invalid --- // Error: 7-30 failed to parse JSON (expected value at line 3 column 14) #json("/assets/data/bad.json") --- issue-3363-json-large-nu...
https://github.com/Treeniks/bachelor-thesis-isabelle-vscode
https://raw.githubusercontent.com/Treeniks/bachelor-thesis-isabelle-vscode/master/chapters/06-conclusion.typ
typst
#import "/utils/todo.typ": TODO #import "/utils/isabelle.typ": * = Evaluation Our original goal included enhancing the Isabelle language server's flexibility and enabling the development of language clients for other code editors. In order to assess the server's new flexibility with our advancements, we built two pro...
https://github.com/antran22/typst-cv-builder
https://raw.githubusercontent.com/antran22/typst-cv-builder/main/lib/cover-letter-template.typ
typst
MIT License
#import "@preview/fontawesome:0.1.0": * #import "@preview/linguify:0.4.0": * #import "./common.typ": * /// ---- Coverletter ---- /// Cover letter template that is inspired by the Awesome CV Latex template by posquit0. This template can loosely be considered a port of the original Latex template. /// This coverletter...
https://github.com/jgm/typst-hs
https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/layout/pagebreak-04.typ
typst
Other
// Test hard and weak pagebreak followed by page with body. // Should result in three navy-colored pages. #set page(fill: navy) #set text(fill: white) First #pagebreak() #page[Second] #pagebreak(weak: true) #page[Third]
https://github.com/valentinvogt/npde-summary
https://raw.githubusercontent.com/valentinvogt/npde-summary/main/src/chapters/02.typ
typst
#import "../setup.typ": * #import "@preview/xarrow:0.3.1": xarrow #show: thmrules = Finite Element Method <ch:finite-element-method> #counter(heading).step(level: 2) == Galerkin Discretization <sub:galerkin-discretization> The idea of Galerkin discretization is to replace the infinite-dimensional function space $V_0$...
https://github.com/fywc/Resume_Template
https://raw.githubusercontent.com/fywc/Resume_Template/main/template.typ
typst
// Note: 本模板修改自 https://typst.app/project/p1sVlu8OxI122an3_UdDfG #let black = rgb(0,0,0) #let gray = rgb(128,128,128) #let miku = rgb(57, 197, 187) #let project( name: "", body ) = { // 标题 set document(title: name) // 页边距设定 set page(paper: "a4", margin: ( top: 1.8cm, bottom: 1.8cm, left: 2cm, ...
https://github.com/cnaak/blindex.typ
https://raw.githubusercontent.com/cnaak/blindex.typ/main/lang.typ
typst
MIT License
//============================================================================================// // Imports // //============================================================================================// #import "./books.typ": iBoo ...
https://github.com/PuntitOwO/template-informe-memoria-fcfm
https://raw.githubusercontent.com/PuntitOwO/template-informe-memoria-fcfm/main/example.typ
typst
MIT License
#import "conf.typ": conf, guia, pronombre #let mostrar_guias = true #show: conf.with( titulo: "El Título de mi Tema", autor: (nombre: "<NAME>", pronombre: pronombre.elle), profesores: ((nombre: "<NAME>", pronombre: pronombre.el),), coguias: ((nombre: "<NAME>", pronombre: pronombre.ella),), superviso...
https://github.com/typst/packages
https://raw.githubusercontent.com/typst/packages/main/packages/preview/valkyrie/0.1.0/src/types/dictionary.typ
typst
Apache License 2.0
#import "../base-type.typ": base-type, assert-base-type-dictionary #import "../context.typ": context /// Valkyrie schema generator for dictionary types /// /// - ..args (schema): Variadic named arguments, the values for which are schema types. *MUST* not contain positional arguments. /// -> schema #let dictionary( ....
https://github.com/Quaternijkon/Typst_USTC_CS
https://raw.githubusercontent.com/Quaternijkon/Typst_USTC_CS/main/content.typ
typst
#import "config.typ": * #outline-slide() = 第一章:样式 == 想分列显示? // #slide[ // 第一列 // ][ // 第二列 // ] #slide(composer: (1fr,1fr, auto))[ #Colorful[GOOGLE]. ][ *Second column.第二列* ][ #figure( image("./assets/img/brand-rust.svg", width: 30%), caption: [Rust logo], ) ] == 表格 //表格内容设置在main.typ中 #le...
https://github.com/dashuai009/dashuai009.github.io
https://raw.githubusercontent.com/dashuai009/dashuai009.github.io/main/src/content/blog/004/004.typ
typst
#let date = datetime( year: 2022, month: 5, day: 1, ) #metadata(( "title": "ToDo", "author": "dashuai009", description: "", pubDate: date.display(), subtitle: [kotlin,Android], ))<frontmatter> #import "../../__template/style.typ": conf #show: conf #date.display(); = 相关技术 == kotlin 在Google I/O 201...
https://github.com/gaoachao/uniquecv-typst
https://raw.githubusercontent.com/gaoachao/uniquecv-typst/main/template.typ
typst
#import "@preview/fontawesome:0.1.0" as fa // 小标题的蓝色 #let cv-blue = rgb(56, 115, 192) // 日期的灰色 #let gray = rgb(128, 128, 128) #let en-font = "New Computer Modern" #let cn-font = "Source Han Serif SC" #let cn-italic-font = "KaiTi" #let font-list = (en-font, cn-font) #let italic-font-list = (en-font, cn-italic-font) #...
https://github.com/frectonz/the-pg-book
https://raw.githubusercontent.com/frectonz/the-pg-book/main/book/068.%20goodart.html.typ
typst
goodart.html How Art Can Be Good December 2006I grew up believing that taste is just a matter of personal preference. Each person has things they like, but no one's preferences are any better than anyone else's. There is no such thing as good taste.Like a lot of things I grew up believing, this turns out to be false,...
https://github.com/Fr4nk1inCs/typst-homework
https://raw.githubusercontent.com/Fr4nk1inCs/typst-homework/master/complicated/example.typ
typst
MIT License
#import "homework.typ": * #show: homework.with( course: "课程作业", number: 0, name: "姓名", id: "PB2XXXXXXX", code_with_line_number: true, ) #question(1)[ #lorem(60) $ upright(i) planck.reduce (diff)/(diff t) Phi(arrow(r), t) = [- planck.reduce/(2m) nabla^2 + V(arrow(r))] Phi(arrow(r), t) ...
https://github.com/noahjutz/AD
https://raw.githubusercontent.com/noahjutz/AD/main/notizen/sortieralgorithmen/insertion_sort/induction_1.typ
typst
#import "/components/num_row.typ": single_num_row, braced, arrowed #import "/config.typ": theme #let nums = (12, 34, 34, 45, 45, 18, 38, 17, 43, 51) #single_num_row( (4, 5, 3, 2, 1), labels: ( (0, 2, braced[`:j`]), ), hl_success: range(2) )
https://github.com/0x1B05/algorithm-journey
https://raw.githubusercontent.com/0x1B05/algorithm-journey/main/practice/note/content/快速幂.typ
typst
#import "../template.typ": * #pagebreak() = 快速幂 如何计算\(a^n\), \(a \in Z\)? \(a^{100,000,000}\)朴素算法要遍历 100,000,000 次? 复杂度太高. 特殊情况, n 为 2 的幂的时候, 计算$a^64$? ``` a^1 * a^1 = a^2 a^2 * a^2 = a^4 a^4 * a^4 = a^8 a^8 * a^8 = a^16 a^16 * a^16 = a^32 a^32 * a^32 = a^64 ``` 特殊情况, n 不为 2 的幂的时候, 计算$a^{105}$? ``` 105 = 1+8+32+64...
https://github.com/rabotaem-incorporated/probability-theory-notes
https://raw.githubusercontent.com/rabotaem-incorporated/probability-theory-notes/master/sections/03-characteristic-functions/03-central-limit-theorem.typ
typst
#import "../../utils/core.typ": * == Центральная предельная теорема #th(name: "Центральная предельная теорема в форме <NAME>")[ Пусть $xi_1$, $xi_2$, $xi_3$, ... --- независмые, одинаково распределенные случайные величины, $a := E xi_1$, $sigma^2 := D xi_1 > 0$ конечна, $S_n := xi_1 + xi_2 + ... + xi_n$. Тогда $ ...
https://github.com/Jacobgarm/typst_linalg
https://raw.githubusercontent.com/Jacobgarm/typst_linalg/master/pkg/main.typ
typst
The Unlicense
#import "./lib.typ" as mat #{ let m1 = math.mat((20,20),(0,20)) let m2 = math.mat((0.2,1),(5,7)) let m3 = math.mat((0.5, 1, 0), (0, 1, 0), (0, 0, 2)) // let v = mat.vec(1,2) // mat.mul_vec(m1,v) mat.mul(mat.inverse(m3), m3) }
https://github.com/Myriad-Dreamin/typst.ts
https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/meta/footnote_03.typ
typst
Apache License 2.0
#import "/contrib/templates/std-tests/preset.typ": * #show: test-page // Currently, numbers a bit out of order if a nested footnote ends up in the // same frame as another one. :( #footnote[A, #footnote[B]], #footnote[C]
https://github.com/GYPpro/DS-Course-Report
https://raw.githubusercontent.com/GYPpro/DS-Course-Report/main/Rep/02.typ
typst
#import "@preview/tablex:0.0.6": tablex, hlinex, vlinex, colspanx, rowspanx #import "@preview/codelst:2.0.1": sourcecode // Display inline code in a small box // that retains the correct baseline. #set text(font:("Times New Roman","Source Han Serif SC")) #show raw.where(block: false): box.with( fill: luma(230), in...
https://github.com/augustebaum/petri
https://raw.githubusercontent.com/augustebaum/petri/main/tests/fletcher/four-seasons/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: edge /// % Change style /// thick, /// node distance=2cm, /// on grid, /// pre/.style={<-, shorten <=1pt, >={Stealth}}, /// post/.style={->,shorten >=1pt, >={Stealth}}, /// every transition...
https://github.com/spidersouris/touying-unistra-pristine
https://raw.githubusercontent.com/spidersouris/touying-unistra-pristine/main/src/lib.typ
typst
MIT License
#import "unistra.typ": * #import "settings.typ": * #import "colors.typ": * #import "admonition.typ": *
https://github.com/LEXUGE/poincare
https://raw.githubusercontent.com/LEXUGE/poincare/main/src/templates/shorthands.typ
typst
MIT License
#import "@preview/ctheorems:1.1.0": * #let axiom = thmbox("axiom", "Axiom", stroke: red + 1pt) #let postl = thmbox("postulate", "Postulate", stroke: red + 1pt) #let def = thmbox("definition", "Definition", stroke: purple + 1pt) #let thm = thmbox("theorem", "Theorem", fill: color.lighten(orange, 70%)) #let eg = thm...
https://github.com/7sDream/fonts-and-layout-zhCN
https://raw.githubusercontent.com/7sDream/fonts-and-layout-zhCN/master/chapters/06-features-2/anchor/mark.typ
typst
Other
#import "/template/template.typ": web-page-template #import "/template/components.typ": note #import "/lib/glossary.typ": tr #show: web-page-template // ### Mark positioning === 符号#tr[positioning] // Anchors can also be used to position "mark" glyphs (such as accents) above "base" glyphs. The anusvara (nasalisation...
https://github.com/zurgl/typst-resume
https://raw.githubusercontent.com/zurgl/typst-resume/main/templates/resume/entry.typ
typst
#import "../../metadata.typ": * #import "../commun.typ": * #import "@preview/fontawesome:0.1.0": * /* fill: regularColors.subtlegray, */ /* cv entry specific */ #let entryTagStyle(str) = { align(center, text(white, size: 7pt, weight: "medium", str)) } #let entryTagListStyle(tags) = { for tag in tags { box(...
https://github.com/typst/packages
https://raw.githubusercontent.com/typst/packages/main/packages/preview/unichar/0.1.0/ucd/block-116D0.typ
typst
Apache License 2.0
#let data = ( ("MYANMAR PAO DIGIT ZERO", "Nd", 0), ("MYANMAR PAO DIGIT ONE", "Nd", 0), ("MYANMAR PAO DIGIT TWO", "Nd", 0), ("MYANMAR PAO DIGIT THREE", "Nd", 0), ("MYANMAR PAO DIGIT FOUR", "Nd", 0), ("MYANMAR PAO DIGIT FIVE", "Nd", 0), ("MYANMAR PAO DIGIT SIX", "Nd", 0), ("MYANMAR PAO DIGIT SEVEN", "Nd",...
https://github.com/TypstApp-team/typst
https://raw.githubusercontent.com/TypstApp-team/typst/master/tests/typ/lint/markup.typ
typst
Apache License 2.0
/// Test markup lints. // Ref: false --- // Warning: 1-3 no text within stars // Hint: 1-3 using multiple consecutive stars (e.g. **) has no additional effect ** --- // Warning: 1-3 no text within stars // Hint: 1-3 using multiple consecutive stars (e.g. **) has no additional effect // Warning: 11-13 no text within s...
https://github.com/ohmycloud/computer-science-notes
https://raw.githubusercontent.com/ohmycloud/computer-science-notes/main/Misc/weekly.typ
typst
#import "@preview/cetz:0.1.1" #import "@preview/splash:0.3.0": * #let code(body, color, orientation: bool) = { set text(size: 18pt, weight: "regular") show: box.with( fill: color, inset: 0.4em, radius: 3pt, baseline: 0.4em, width: if orientation == true { 100% } else { 50% }, height: if ori...
https://github.com/uben0/tree-sitter-typst
https://raw.githubusercontent.com/uben0/tree-sitter-typst/master/README.md
markdown
MIT License
# A TreeSitter grammar for the Typst language Typst official page https://typst.app TreeSitter documentation page https://tree-sitter.github.io Typst doesn't have yet an official TreeSitter grammar. This grammar is complete but may contains bug as it is very recent. ## Get involved Your help is welcome. You don't ...
https://github.com/zjutjh/zjut-report-typst
https://raw.githubusercontent.com/zjutjh/zjut-report-typst/main/template/template.typ
typst
#import "fonts.typ" :* #import "utils.typ" :* #import "covers.typ":* #let _empty_par() = { v(-1em) box() } #let project( title: "Title", authors: ("author1", "author2"), date: (2023, 5, 14), name: "测试名称", cover_style: "normal", class:"计科2000", grade:"2021", department:"计算机科学与技术学院", id:"202000000...
https://github.com/phinixplus/docs
https://raw.githubusercontent.com/phinixplus/docs/master/README.md
markdown
Other
# PHINIX+ Documentation This is the repository containing architectural documentation for the PHINIX+ system. Contained within are several separate documents addressing each part of a complete system. The document source is written using [Typst](https://github.com/typst/typst). The contents of this repository are lice...
https://github.com/typst-jp/typst-jp.github.io
https://raw.githubusercontent.com/typst-jp/typst-jp.github.io/main/docs/changelog/0.1.0.md
markdown
Apache License 2.0
--- title: 0.1.0 description: Changes in Typst 0.1.0 --- # Version 0.1.0 (April 04, 2023) ## Breaking changes - When using the CLI, you now have to use subcommands: - `typst compile file.typ` or `typst c file.typ` to create a PDF - `typst watch file.typ` or `typst w file.typ` to compile and watch - `typst fonts...
https://github.com/jamesrswift/pixel-pipeline
https://raw.githubusercontent.com/jamesrswift/pixel-pipeline/main/src/layers/drawing/shapes/lib.typ
typst
The Unlicense
#import "polygon.typ": polygon
https://github.com/AOx0/expo-nosql
https://raw.githubusercontent.com/AOx0/expo-nosql/main/book/src/theme-gallery/bipartite.typ
typst
MIT License
#import "../../../slides.typ": * #import "../../../themes/bipartite.typ": * #show: slides.with( authors: ("Author A", "Author B"), short-authors: "Short author", title: "Title", short-title: "Short title", subtitle: "Subtitle", date: "Date", theme: bipartite-theme(), ) #slide(theme-variant: "title sli...
https://github.com/katamyra/Notes
https://raw.githubusercontent.com/katamyra/Notes/main/README.md
markdown
This is a collection of all my Georgia Tech notes/discussion preparation/study guides. Most of my preliminary notes are written on **Obsidian**, and are on the .md file format. Note: currently, images from these md files don't show when viewing from github. More thorough compiled notes that I write to study for tests...
https://github.com/alireza-hariri/my-cv
https://raw.githubusercontent.com/alireza-hariri/my-cv/main/hariri-cv.typ
typst
//#import "@preview/modern-cv:0.6.0": * #import "./lib.typ": * #show: resume.with( author: ( firstname: "Alireza", lastname: "Hariri", email: "<EMAIL>", // homepage: "https://example.com", phone: "(+98) 936-521-2590", github: "alireza-hariri", // twitter: "typstapp", // scholar:...
https://github.com/typst/packages
https://raw.githubusercontent.com/typst/packages/main/packages/preview/unichar/0.1.0/ucd/block-12000.typ
typst
Apache License 2.0
#let data = ( ("CUNEIFORM SIGN A", "Lo", 0), ("CUNEIFORM SIGN A TIMES A", "Lo", 0), ("CUNEIFORM SIGN A TIMES BAD", "Lo", 0), ("CUNEIFORM SIGN A TIMES GAN2 TENU", "Lo", 0), ("CUNEIFORM SIGN A TIMES HA", "Lo", 0), ("CUNEIFORM SIGN A TIMES IGI", "Lo", 0), ("CUNEIFORM SIGN A TIMES LAGAR GUNU", "Lo", 0), ("C...
https://github.com/typst/packages
https://raw.githubusercontent.com/typst/packages/main/packages/preview/chuli-cv/0.1.0/modules/entry.typ
typst
Apache License 2.0
#import "@preview/fontawesome:0.1.0": * #import "./styles.typ": * //TODO Fix the distance between the elements #let render-entry-icon-info(date: "", location: "") = { { if date.len() > 0{ box({ fa-hourglass-2() regular-text-style(date) }) } h(10pt) if loc...
https://github.com/TypstApp-team/typst
https://raw.githubusercontent.com/TypstApp-team/typst/master/tests/typ/math/underover.typ
typst
Apache License 2.0
// Test under/over things. --- // Test braces. $ x = underbrace( 1 + 2 + ... + 5, underbrace("numbers", x + y) ) $ --- // Test lines and brackets. $ x = overbracket( overline(underline(x + y)), 1 + 2 + ... + 5, ) $ --- // Test brackets. $ underbracket([1, 2/3], "relevant stuff") arrow.l.r.double.lo...
https://github.com/carreter/problemst
https://raw.githubusercontent.com/carreter/problemst/main/pset.typ
typst
MIT License
#let pset(class: "6.100", title: "PSET 0", student: "<NAME>", date: datetime.today(), subproblems: "1.1.a.i", collaborators: (), doc ) = {[ /* Convert collaborators to a string if necessary */ #let collaborators=if type(collaborators) == array {collaborators.join(", ")} else {collaborators} /* Problem + su...
https://github.com/rabarbra/cv
https://raw.githubusercontent.com/rabarbra/cv/main/render.typ
typst
#let header_v_sp = v(8pt) #let gmaps = "https://www.google.com/maps/place/" #let imgs = ( tel: "img/tel.svg", github: "img/github.svg", linkedin: "img/linkedin.svg", location: "img/location.svg", email: "img/email.svg", ) #let icon(name, shift: 1.5pt) = { box( baseline: shift, height: 10...
https://github.com/T1mVo/shadowed
https://raw.githubusercontent.com/T1mVo/shadowed/main/tests/grid/test.typ
typst
MIT License
#import "../../src/lib.typ": shadowed #set page(margin: 20pt, height: auto) #set par(justify: true) #let content = shadowed(radius: 4pt, inset: 12pt)[ #lorem(40) ] #grid( columns: 2, content, content, grid.cell(colspan: 2, content), )
https://github.com/polarkac/MTG-Stories
https://raw.githubusercontent.com/polarkac/MTG-Stories/master/stories/009%20-%20Born%20of%20the%20Gods/001_The%20Nature%20of%20Identity.typ
typst
#import "@local/mtgstory:0.2.0": conf #show: doc => conf( "The Nature of Identity", set_name: "Born of the Gods", story_date: datetime(day: 15, month: 01, year: 2014), author: "<NAME>", doc ) #emph[When sentient, mortal beings die on Theros,] #emph[they pass into the Underworld with the aid of the...
https://github.com/masaori/exact-solution-of-2d-ising-model
https://raw.githubusercontent.com/masaori/exact-solution-of-2d-ising-model/main/main.typ
typst
#import "@preview/cetz:0.1.2" #import "@preview/commute:0.2.0": node, arr, commutative-diagram #import "@preview/fletcher:0.5.1" as fletcher: diagram, node, edge #import "theorem.typ": theorem, claim, proof, definition, note, theorem_rules #set block(breakable: false) #show: theorem_rules.with(qed-symbol: $square$) #...
https://github.com/SillyFreak/typst-crudo
https://raw.githubusercontent.com/SillyFreak/typst-crudo/main/docs/manual.typ
typst
MIT License
#import "template.typ" as template: * #import "/src/lib.typ" as crudo #let package-meta = toml("/typst.toml").package #let date = datetime(year: 2024, month: 9, day: 28) #show: manual( title: "Crudo", // subtitle: "...", authors: package-meta.authors.map(a => a.split("<").at(0).trim()), abstract: [ _Crudo...
https://github.com/Skimmeroni/Appunti
https://raw.githubusercontent.com/Skimmeroni/Appunti/main/Matematica4AI/LinAlg/Transformations.typ
typst
Creative Commons Zero v1.0 Universal
#import "../Math4AI_definitions.typ": * A transformation $phi.alt: V |-> W$, with both $V$ and $W$ being vector spaces, is called a *linear transformation* if and only if: #grid( columns: (0.5fr, 0.5fr), [$ phi.alt(underline(v_(1)) + underline(v_(2))) = phi.alt(underline(v_(1))) + phi.alt(underline(v_(2))) ...
https://github.com/typst/packages
https://raw.githubusercontent.com/typst/packages/main/packages/preview/mitex/0.2.0/examples/example.typ
typst
Apache License 2.0
#import "../lib.typ": * #set page(width: 500pt, height: auto, margin: 1em) #assert.eq(mitex-convert("\alpha x"), "alpha x ") Write inline equations like #mi("x") or #mi[y]. Also block equations (this case is from #text(blue.lighten(20%), link("https://katex.org/")[katex.org])): #mitex(` \newcommand{\f}[2]{#1f(#...
https://github.com/ryuryu-ymj/mannot
https://raw.githubusercontent.com/ryuryu-ymj/mannot/main/examples/usage4.typ
typst
MIT License
#import "/src/lib.typ": * #set page(width: auto, height: auto, margin: (x: 4cm, y: 1cm), fill: white) #set text(24pt) #show: mannot-init $ mark(integral x dif x, tag: #<i>, color: #green) + mark(3, tag: #<3>, color: #red) mark(x, tag: #<x>, color: #blue) #annot(<i>, pos: left)[Set pos to left.] #annot(<i>, ...
https://github.com/jgm/typst-hs
https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/compiler/include-03.typ
typst
Other
// Error: 18 expected semicolon or line break #include "hi.typ" Hi
https://github.com/TimPaasche/Typst.Template.SimpleDocument
https://raw.githubusercontent.com/TimPaasche/Typst.Template.SimpleDocument/master/template/style.typ
typst
MIT License
// +-------------------------------------------+ // | STYLE OF THE HEADER | // +-------------------------------------------+ #let setHeader(title: [], subtitle: [], authors: ()) = { set text(font: "Cascadia Mono", size: 10pt, weight: "bold", fill: rgb("#288733")) locate(loc => if calc.o...
https://github.com/Error-418-SWE/Documenti
https://raw.githubusercontent.com/Error-418-SWE/Documenti/src/2%20-%20RTB/Documentazione%20interna/Analisi%20dei%20Rischi/Analisi%20dei%20Rischi.typ
typst
#import "/template.typ": * #show: project.with( title: "Analisi dei Rischi", subTitle: "", authors: ( "<NAME>", "<NAME>", "<NAME>", ), showLog: true, showImagesIndex: false, showTablesIndex: false, ); = Profili di rischio A ciascun rischio individuato si associano: - informazioni descritt...
https://github.com/Myriad-Dreamin/typst.ts
https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/text/quote_03.typ
typst
Apache License 2.0
#import "/contrib/templates/std-tests/preset.typ": * #show: test-page // Inline citation #set text(8pt) #quote(attribution: <tolkien54>)[In a hole in the ground there lived a hobbit.] #set text(0pt) #bibliography("/assets/files/works.bib")
https://github.com/goshakowska/Typstdiff
https://raw.githubusercontent.com/goshakowska/Typstdiff/main/tests/test_working_types/quoted/quoted.typ
typst
#quote[I know that I know nothing.] #quote[Only the dead have seen the end of war.]
https://github.com/Shedward/dnd-charbook
https://raw.githubusercontent.com/Shedward/dnd-charbook/main/dnd/game/biography.typ
typst
#import "../core/core.typ": * #let biographySection(title, body) = [ #framed(fitting: expand-h, insets: paddings(2))[ #align(left)[ #abilityHeader(title)\ #body ] ] ] #let biographySubsection(title, body) = [ #abilitySubsection(title) #par(first-line-indent: 0.5em, justify: true)[ #bod...
https://github.com/LDemetrios/Typst4k
https://raw.githubusercontent.com/LDemetrios/Typst4k/master/src/test/resources/suite/scripting/return.typ
typst
// Test return out of functions. --- return-with-value --- // Test return with value. #let f(x) = { return x + 1 } #test(f(1), 2) --- return-join --- // Test return with joining. #let f(x) = { "a" if x == 0 { return "b" } else if x == 1 { "c" } else { "d" return "e" } } #test(f(0), ...
https://github.com/GES233/interview-trancript-template
https://raw.githubusercontent.com/GES233/interview-trancript-template/main/interview_template.typ
typst
/**/ #let format_datetime(timestamp: datetime, has_time: false) = { let date_segment = [#timestamp.year() 年 #timestamp.month() 月 #timestamp.day() 日] if has_time { return [#date_segment #timestamp.hour() : #timestamp.minute() : #timestamp.second()] } else { return date_segment } } // TODO: implement. #...
https://github.com/CarlosCraveiro/PDSA_Presentation
https://raw.githubusercontent.com/CarlosCraveiro/PDSA_Presentation/main/main.typ
typst
Other
#import "./poster.typ": * #show: poster.with( size: "36x24", title: "MIMD - Múltiplos Fluxos de Instruções, Múltiplos Fluxos de Dados", authors: "<NAME> - 12547187, <NAME> - 11798853", departments: "Engenharia de Computação", univ_logo: "./images/eesc_usp_logo.png", univ_logo_scale: 90, footer_text: "SEL...
https://github.com/MattiaOldani/Teoria-dei-Linguaggi
https://raw.githubusercontent.com/MattiaOldani/Teoria-dei-Linguaggi/master/appunti.typ
typst
// Setup #import "template.typ": project #show: project.with( title: "Teoria dei linguaggi" ) #import "@preview/lemmify:0.1.5": * #let ( theorem, lemma, corollary, remark, proposition, example, proof, rules: thm-rules ) = default-theorems("thm-group", lang: "it") #show: thm-rules #show thm-selector("thm-g...
https://github.com/polarkac/MTG-Stories
https://raw.githubusercontent.com/polarkac/MTG-Stories/master/stories/021_Battle%20for%20Zendikar.typ
typst
#import "@local/mtgset:0.1.0": conf #show: doc => conf("Battle for Zendikar", doc) #include "./021 - Battle for Zendikar/001_Slaughter at the Refuge.typ" #include "./021 - Battle for Zendikar/002_The Silent Cry.typ" #include "./021 - Battle for Zendikar/003_The Believers' Pilgrimage.typ" #include "./021 - Battle for Z...
https://github.com/Kasci/LiturgicalBooks
https://raw.githubusercontent.com/Kasci/LiturgicalBooks/master/CSL_old/oktoich/Hlas8/4_Stvrtok.typ
typst
#let V = ( "HV": ( ("","Hóspodi, ášče i na sudíšči","Hóspodi, tý Uťíšiteľa zarjámi apóstoly tvojá prosvitíl jesí, i svitíla položív ťích víri utverždénije, úmnym prosviščénijem rázuma tvojehó Vladýko: sehó rádi poklaňájemsja neizrečénnomu čelovikoľúbiju tvojemú."), ("","","Hóspodi, tý apóstol molítvami ohradí...
https://github.com/ljgago/typst-chords
https://raw.githubusercontent.com/ljgago/typst-chords/main/docs/chordx-docs.typ
typst
MIT License
#import "@preview/tidy:0.3.0" #import "assets/template.typ": design, custom #set document(date: none) #show link: underline #show: design.with( title: "chordx", subtitle: "A package to write song lyrics with chord diagrams in Typst.", authors: ( "<NAME>", ), date: "July 9, 2024", version: toml("../typ...
https://github.com/lucannez64/Notes
https://raw.githubusercontent.com/lucannez64/Notes/master/Project_Ideas.typ
typst
#import "@preview/bubble:0.1.0": * #import "@preview/fletcher:0.4.3" as fletcher: diagram, node, edge #import "@preview/cetz:0.2.2": canvas, draw, tree #import "@preview/cheq:0.1.0": checklist #import "@preview/wordometer:0.1.1": * #show: bubble.with( title: "Project Ideas", subtitle: "A long derivation towards g...
https://github.com/Az-21/typst-components
https://raw.githubusercontent.com/Az-21/typst-components/main/style/1.0.0/Components/code.typ
typst
Creative Commons Zero v1.0 Universal
#import "../Colors/m3.typ": * #let m3 = material3.blue.dark #let code( content, background: m3.primaryContainer, foreground: m3.onPrimaryContainer, font: "JetBrains Mono", ) = { set text(fill: foreground, font: font) box( fill: background, inset: (x: 0.5em, y: 0em), outset: (y: 0.5em), radi...
https://github.com/jamesrswift/ionio-illustrate
https://raw.githubusercontent.com/jamesrswift/ionio-illustrate/main/dist/0.1.0/README.md
markdown
MIT License
# The `ionio-illustrate` package This package implements a Cetz chart-like object for displying mass spectrometric data in Typst documents. It allows for individually styled mass peaks, callouts, titles, and mass calipers. ## Usage ```typst #import "@preview/ionio-illustrate:0.1.0": * #let data = csv("isobutelene_epo...
https://github.com/peng1999/typst-pyrunner
https://raw.githubusercontent.com/peng1999/typst-pyrunner/main/pkg/pyrunner.typ
typst
MIT License
#let py = plugin("./typst-pyrunner.wasm") #let extract(code) = { if type(code) == "content" { code.text } else { code } } #let block(code, globals: (:)) = { let code = extract(code) cbor.decode(py.run_py(bytes(code), cbor.encode(globals))) } #let compile(code) = { let code = extract(code) py.co...
https://github.com/MyPedagogicalRessources/BUT1-R1-01-Initiation-developpement
https://raw.githubusercontent.com/MyPedagogicalRessources/BUT1-R1-01-Initiation-developpement/main/TD/TD1-Structures-controle-enonce.typ
typst
#import "TD1-Structures-controle.typ":* #td1(isCorrection: false)
https://github.com/chiplet/typst-utils
https://raw.githubusercontent.com/chiplet/typst-utils/main/utils.typ
typst
// color functions #let r(content) = [#text(red)[#content]] #let g(content) = [#text(green)[#content]] #let b(content) = [#text(blue)[#content]] #let y(content) = [#text(yellow)[#content]] #let rt = [#r[$times$]] // red tick #let gt = [#g[$times$]] // green tick #let bt = [#b[$times$]] // blue tick #let hrule = line(...
https://github.com/SkiFire13/master-thesis
https://raw.githubusercontent.com/SkiFire13/master-thesis/master/chapters/background/1-lattices.typ
typst
#import "../../config/common.typ": * #import "@preview/cetz:0.2.2": canvas, draw == Partial orders, lattices and monotone functions We start by defining what is a (complete) lattice and introducing some related concepts. This will be fundamental for defining systems of fixpoint equations, as their domain and codomain...
https://github.com/Mineorbit/cryptOgraph
https://raw.githubusercontent.com/Mineorbit/cryptOgraph/master/tests/testpaper.typ
typst
#import "@local/cryptograph:0.0.1": * Hello there! -Some stuff Let the security parameter be $#secpar$.
https://github.com/lucifer1004/leetcode.typ
https://raw.githubusercontent.com/lucifer1004/leetcode.typ/main/problems/p0004.typ
typst
#import "../helpers.typ": * #import "../solutions/s0004.typ": * = Median of Two Sorted Arrays Given two sorted arrays `nums1` and `nums2` of size `m` and `n` respectively, return the *median* of the two sorted arrays. The overall run time complexity should be $cal(O)(log (m+n))$. #let median-of-two-sorted-arrays(nu...
https://github.com/cherrypiejam/typst-cv-template
https://raw.githubusercontent.com/cherrypiejam/typst-cv-template/main/cv.typ
typst
#import "cv-template.typ": conf #show: conf.with( name: "<NAME>", contact: ( address: "20 Ingram Street, Forest Hills, Queens, New York City, 11375", e-mail: "peter.parker at esu dot edu", ), // research-interests: "", education: ( // first ( institute: "Empire State University", ...
https://github.com/Myriad-Dreamin/typst.ts
https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/text/linebreak_07.typ
typst
Apache License 2.0
#import "/contrib/templates/std-tests/preset.typ": * #show: test-page // Test justified breaks. #set par(justify: true) With a soft #linebreak(justify: true) break you can force a break without #linebreak(justify: true) breaking justification. #linebreak(justify: false) Nice!
https://github.com/CmrCrabs/NEA
https://raw.githubusercontent.com/CmrCrabs/NEA/main/paperwork.typ
typst
// Settings #set par(justify: true) #show link: underline #set page( numbering: "1", margin: 2cm, paper: "us-letter", ) #set text( hyphenate: false, font: "EB Garamond" ) #set heading(numbering: "1.", offset: 0) #set text(12pt) #set enum(numbering: "1.1", full: true) #set list(marker: ([•], [‣],[--])) #set m...
https://github.com/jeffa5/typst-acm
https://raw.githubusercontent.com/jeffa5/typst-acm/main/lib.typ
typst
#let show-authors(authors) = { set align(center) for author in authors { box( inset: 1em, [ #author.name \ #author.institution \ #author.email ] ) } } #let show-abstract(content) = { heading(level: 1, "Abstract") content } #let show-bibliography(bibfile) = ...
https://github.com/flavio20002/typst-presentation-minimal-template
https://raw.githubusercontent.com/flavio20002/typst-presentation-minimal-template/main/template/main.typ
typst
MIT No Attribution
#import "../lib.typ": * //#set text(font: "Lato") //#show math.equation: set text(font: "Lato Math") //#show raw: set text(font: "Fira Code") #show: project.with( title: "Minimalist presentation template", sub-title: "This is where your presentation begins", author: "<NAME>", date: "10/08/2023", index-title...
https://github.com/protohaven/printed_materials
https://raw.githubusercontent.com/protohaven/printed_materials/main/common-concepts/image_types.typ
typst
= Image Types For computers to work with image data, the image data needs to be _encoded_ in some way so that the computer can understand it. There are many approaches to encoding visual data, but most of them fall into two categories: - raster images, where the image is encoded as a grid of dots - vector images, wh...
https://github.com/typst/packages
https://raw.githubusercontent.com/typst/packages/main/packages/preview/vercanard/1.0.0/template/main.typ
typst
Apache License 2.0
#import "@preview/vercanard:1.0.0": * #show: resume.with( name: "<NAME>", title: "What you are looking for", accent-color: rgb("f3bc54"), margin: 2.6cm, aside: [ = Contact // lists in the aside are right aligned - #link("mailto:<EMAIL>") - +33 6 66 66 66 66 - 10 Downing Street, London ...
https://github.com/XcantloadX/TypstMomoTalk
https://raw.githubusercontent.com/XcantloadX/TypstMomoTalk/main/test.typ
typst
#let img = image("momotalk/assets/azusa.png", fit: "contain") // #style(styles => { // let block = block( // img, // inset: 0pt, // outset: 0pt, // clip: true, // // width: 50pt, // // height: 50pt, // radius: 100% // ) // let size = measure(block, styles) // scale(block, x: (size.width / 50pt)) /...
https://github.com/MDLC01/board-n-pieces
https://raw.githubusercontent.com/MDLC01/board-n-pieces/main/tests/tests.typ
typst
MIT License
#assert( "lib" in sys.inputs.keys(), message: "the path to the library root should be passed as `--input lib=<path>`", ) // Tests to the package's public interface. #include "api.typ" // Tests to the logic. #include "logic.typ"
https://github.com/LDemetrios/Typst4k
https://raw.githubusercontent.com/LDemetrios/Typst4k/master/src/test/resources/suite/foundations/float.typ
typst
--- float-constructor --- #test(float(10), 10.0) #test(float(50% * 30%), 0.15) #test(float("31.4e-1"), 3.14) #test(float("31.4e\u{2212}1"), 3.14) #test(float("3.1415"), 3.1415) #test(float("-7654.321"), -7654.321) #test(float("\u{2212}7654.321"), -7654.321) #test(float(decimal("4.89")), 4.89) #test(float(decimal("3.123...
https://github.com/janlauber/bachelor-thesis
https://raw.githubusercontent.com/janlauber/bachelor-thesis/main/chapters/system_architecture_and_design.typ
typst
Creative Commons Zero v1.0 Universal
= System Architecture and Design This chapter presents the architecture and design of the One-Click Deployment system, detailing the system overview, architectural components including backend and frontend, database design, and security considerations that underpin the system's effectiveness and efficiency in deploying...
https://github.com/Fr4nk1inCs/typreset
https://raw.githubusercontent.com/Fr4nk1inCs/typreset/master/src/utils/font.typ
typst
MIT License
/* Font settings for all presets */ #let base-font = "Linux Libertine" #let math-font = "Libertinus Math" #let i18n-fonts = ( "zh-cn": body => { show math.equation: set text(font: ("Libertinus Math", "FandolSong")) set text(font: (base-font, "FandolSong"), lang: "zh") show emph: set text(font: (base-fo...
https://github.com/spherinder/ethz-infk-thesis
https://raw.githubusercontent.com/spherinder/ethz-infk-thesis/master/src/abbreviations.typ
typst
#import "dependencies.typ": print-glossary, register-glossary #set heading(numbering: none) = Abbreviations #let entry-list = ( ( key: "cpu", short: "CPU", long: "Central Processing Unit", ), ( key: "freedom", short: "freedom", description: "Freedom is the power or right to speak, act ...
https://github.com/MasterTemple/typst-wasm-plugin-template
https://raw.githubusercontent.com/MasterTemple/typst-wasm-plugin-template/main/README.md
markdown
# Typst WASM Template ## Explanation - I wanted to create a template for myself to start other plugins from. - The [wasm_macro](https://github.com/astrale-sharp/wasm-minimal-protocol) code comes from https://github.com/astrale-sharp/wasm-minimal-protocol. - I adapted it into a structure I think is easier. ## Running...
https://github.com/polarkac/MTG-Stories
https://raw.githubusercontent.com/polarkac/MTG-Stories/master/stories/031%20-%20Hour%20of%20Devastation/007_Endure.typ
typst
#import "@local/mtgstory:0.2.0": conf #show: doc => conf( "Endure", set_name: "Hour of Devastation", story_date: datetime(day: 19, month: 07, year: 2017), author: "<NAME>", doc ) #emph["The world crumbled beneath the heel of the mighty God-Pharaoh, and an unnamed hour dawned as the blood red sun dr...
https://github.com/iorin-io/b3_ml-final-report
https://raw.githubusercontent.com/iorin-io/b3_ml-final-report/main/ml_final-report.typ
typst
#import "@preview/codelst:2.0.0": sourcecode #import "@preview/codelst:2.0.0": sourcefile #set text(font: "Hiragino Mincho ProN") #let mixed(body) = { set text(weight: "extrabold") show regex("[\p{scx:Han}\p{scx:Hira}\p{scx:Kana}]"): set text(font: "Hiragino Kaku Gothic ProN", weight: "bold") body } // 和欧混植のフォン...
https://github.com/maxgraw/bachelor
https://raw.githubusercontent.com/maxgraw/bachelor/main/apps/document/src/6-evaluation/goal.typ
typst
Das Ziel dieser Arbeit liegt in der erfolgreichen Entwicklung einer zuvor konzipierten Augmented Reality Möbelkonstruktionsumgebung auf Basis von WebXR. Die erfolgreiche Entwicklung der Anwendung wird anhand verschiedener Kriterien überprüft. Die in der Konzeption festgelegten funktionalen Anforderungen, die die Anwen...
https://github.com/polarkac/MTG-Stories
https://raw.githubusercontent.com/polarkac/MTG-Stories/master/stories/999%20-%20Unknown%20Set/001_Ravnica%20High.typ
typst
#import "@local/mtgstory:0.2.0": conf #show: doc => conf( "Ravnica High", story_date: datetime(day: 14, month: 08, year: 2013), author: "<NAME>", doc ) #figure(image("001_Ravnica High/01.jpg", width: 100%), caption: [Tablet of the Guilds | Art by Nic Klein], supplement: none, numbering: none) Welcome ...
https://github.com/Clay438/3bao-hbut-typst
https://raw.githubusercontent.com/Clay438/3bao-hbut-typst/master/README.md
markdown
# 这是对湖工三宝docx格式转换为typst格式文件的一次尝试
https://github.com/teamdailypractice/pdf-tools
https://raw.githubusercontent.com/teamdailypractice/pdf-tools/main/typst-pdf/examples/example-15.typ
typst
#set page("a4") #set text( font: "TSCu_SaiIndira", size: 12pt ) #outline() #set page("a4") #set text( font: "TSCu_SaiIndira", size: 13pt ) #set align(center) = 1 கடவுள் வாழ்த்து \ #set align(left) #table( stroke: none, columns: (2cm, auto), [], [], [1], [அகரம் முதல, எழுத்து எல்லாம்; ஆதி- \ பகவன் முதற...
https://github.com/piepert/grape-suite
https://raw.githubusercontent.com/piepert/grape-suite/main/examples/exam01.typ
typst
MIT License
#import "/src/library.typ": exercise, colors #import exercise: project, task, subtask #import colors: * #show: project.with( no: 1, type: [LEV], suffix-title: [Logische Grundlagen], show-point-distribution-in-tasks: true, show-namefield: true, show-timefield: true, max-time: 25, show-...
https://github.com/jamesrswift/typst-chem-par
https://raw.githubusercontent.com/jamesrswift/typst-chem-par/main/src/rules/enantiomers.typ
typst
MIT License
#import "../stateful.typ": * #let enantiomers(body) = { show regex("\([EZRS]\)"): (it) => context { if-state-enabled( it , { show regex("\w"): text.with(style:"italic") it } ) } body }
https://github.com/Joelius300/hslu-typst-template
https://raw.githubusercontent.com/Joelius300/hslu-typst-template/main/chapters/02_state-of-research.typ
typst
MIT License
= Stand der Technik/Praxis Bezogen auf die eigenen Zielsetzungen und Fragestellungen soll aufgezeigt werden, wie andere dieses oder ähnliche Probleme gelöst haben. Worauf können Sie aufbauen, was müssen Sie neu angehen? Wodurch unterscheidet sich Ihre Lösung von anderen Lösungen? Für wissenschaftlich orientierte Arbei...
https://github.com/dashuai009/dashuai009.github.io
https://raw.githubusercontent.com/dashuai009/dashuai009.github.io/main/src/content/blog/032.typ
typst
#let date = datetime( year: 2022, month: 8, day: 29, ) #metadata(( title: "欧拉公式", subtitle: [math,数论], author: "dashuai009", description: "欧拉公式及其证明", pubDate: date.display(), ))<frontmatter> #import "../__template/style.typ": conf #show: conf == 欧拉函数 <欧拉函数> 在1\~m中与m互素的整数的个数,记作$phi.alt (m)$ $ phi.alt...
https://github.com/pluttan/electron
https://raw.githubusercontent.com/pluttan/electron/main/lab2/lab2.typ
typst
#import "@docs/bmstu:1.0.0":* #import "@preview/tablex:0.0.8": tablex, rowspanx, colspanx, cellx #show: student_work.with( caf_name: "Компьютерные системы и сети", faculty_name: "Информатика и системы управления", work_type: "лабораторной работе", work_num: "2", discipline_name: "Электроника", theme: "Три с...
https://github.com/Kasci/LiturgicalBooks
https://raw.githubusercontent.com/Kasci/LiturgicalBooks/master/test.typ
typst
#import "CU_json/all.typ": * #let c_clef = str.from-unicode(0x1D11E) #let f_clef = str.from-unicode(0x1D122) #let full_note = str.from-unicode(0x1D15D) #let half_note = str.from-unicode(0x1D15E) #let quarter_note = str.from-unicode(0x1D15F) #let eigth_note = str.from-unicode(0x1D160) #let sixteenth_note = st...
https://github.com/typst/packages
https://raw.githubusercontent.com/typst/packages/main/packages/preview/diagraph/0.1.1/lib.typ
typst
Apache License 2.0
#let plugin = plugin("diagraph.wasm") #let render(text, engine: "dot", width: auto, height: auto, fit: "contain", background: "transparent") = { let render = str( plugin.render( bytes(text), bytes(engine), bytes(background) ) ) if render.slice(0, 6) == "error:" { return raw(render) } else { re...
https://github.com/eternal-flame-AD/typstpp
https://raw.githubusercontent.com/eternal-flame-AD/typstpp/main/README.md
markdown
Apache License 2.0
# typstpp The Typst preprocessor. (Or Typst++)... Executes your Haskell or R code in your Typst source file. Wrapping around the `compile` and `watch` commands of the Typst CLI. ## Installation ```bash cargo install --git https://github.com/eternal-flame-AD/typstpp.git \ --features "r hs" \ --locked ``` ##...
https://github.com/sitandr/typst-examples-book
https://raw.githubusercontent.com/sitandr/typst-examples-book/main/src/basics/states/index.md
markdown
MIT License
# States & Query <div class="warning">This section is outdated. It may be still useful, but it is strongly recommended to study new context system (using the reference).</div> Typst tries to be a _pure language_ as much as possible. That means, a function can't change anything outside of it. That also means, if you ...