repo
stringlengths
26
115
file
stringlengths
54
212
language
stringclasses
2 values
license
stringclasses
16 values
content
stringlengths
19
1.07M
https://github.com/fenjalien/metro
https://raw.githubusercontent.com/fenjalien/metro/main/tests/unit/sticky-per/test.typ
typst
Apache License 2.0
#import "/src/lib.typ": unit, metro-setup #set page(width: auto, height: auto) #metro-setup(per-mode: "power") #unit("pascal per gray henry") #unit("pascal per gray henry", sticky-per: true)
https://github.com/Servostar/dhbw-abb-typst-template
https://raw.githubusercontent.com/Servostar/dhbw-abb-typst-template/main/src/lib.typ
typst
MIT License
// .--------------------------------------------------------------------------. // | Template of DHBW thesis | // '--------------------------------------------------------------------------' // Author: <NAME> // Edited: 27.06.2024 // License: MIT #import "conf.typ": v...
https://github.com/AntoniosBarotsis/typst-assignment-template
https://raw.githubusercontent.com/AntoniosBarotsis/typst-assignment-template/master/template.typ
typst
// This should be private but don't think Typst supports that (?) #let box(contents) = { rect( fill: rgb(242,242,242), stroke: 0.5pt, width: 100%, align(center)[#contents] ) } // A simple, single question and answer #let answer(question, term) = { [== #question] box(term) } // A question wit...
https://github.com/Shedward/dnd-charbook
https://raw.githubusercontent.com/Shedward/dnd-charbook/main/dnd/game/abilities.typ
typst
#import "../core/core.typ": * #let ability(title, source: none, body) = ( title: title, source: source, body: body ) #let abilityCharges(count) = figure(box(framed(checkboxes(count)))) #let abilityRequirement(body) = [ #set text(top-edge: 0.5em) #set par(first-line-indent: 0em) #emph(body) ] #let abili...
https://github.com/LDemetrios/Typst4k
https://raw.githubusercontent.com/LDemetrios/Typst4k/master/src/test/resources/suite/layout/stack.typ
typst
// Test stack layouts. --- stack-basic --- // Test stacks with different directions. #let widths = ( 30pt, 20pt, 40pt, 15pt, 30pt, 50%, 20pt, 100%, ) #let shaded(i, w) = { let v = (i + 1) * 10% rect(width: w, height: 10pt, fill: rgb(v, v, v)) } #let items = for (i, w) in widths.enumerate() { (align(right, ...
https://github.com/UnnamedOrange/Typst-Templates
https://raw.githubusercontent.com/UnnamedOrange/Typst-Templates/main/article.typ
typst
The Unlicense
#let 字号 = ( 初号: 42pt, 小初: 36pt, 一号: 26pt, 小一: 24pt, 二号: 22pt, 小二: 18pt, 三号: 16pt, 小三: 15pt, 四号: 14pt, 中四: 13pt, 小四: 12pt, 五号: 10.5pt, 小五: 9pt, 六号: 7.5pt, 小六: 6.5pt, 七号: 5.5pt, 小七: 5pt, ) #let 字体 = ( 仿宋: ("Times New Roman", "FangSong"), 宋体: ("Times New Roman", "SimSun"), 黑体: ("Ti...
https://github.com/teamdailypractice/pdf-tools
https://raw.githubusercontent.com/teamdailypractice/pdf-tools/main/typst-pdf/thirukkural-oneline/001-tol.typ
typst
#set page("a4") #set text( font: "TSCu_SaiIndira", size: 16pt ) #set align(center) திருக்குறள் - உற்சாகம் ஊட்டும் வரிகள் - தினமும் \ #set align(left) #set text( font: "TSCu_SaiIndira", size: 14pt ) உள்ளத்து அனையது, உயர்வு. \ அசாவாமை வேண்டும்; #set align(left) #set text( font: "TSCu_SaiIndira", size: 12pt )...
https://github.com/Myriad-Dreamin/typst.ts
https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/layout/container_02.typ
typst
Apache License 2.0
#import "/contrib/templates/std-tests/preset.typ": * #show: test-page // Test box sizing with layoutable child. #box( width: 50pt, height: 50pt, fill: yellow, path( fill: purple, (0pt, 0pt), (30pt, 30pt), (0pt, 30pt), (30pt, 0pt), ), )
https://github.com/jgm/typst-hs
https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/compiler/dict-04.typ
typst
Other
// Missing lvalue is not automatically none-initialized. #{ let dict = (:) // Error: 3-9 dictionary does not contain key "b" and no default value was specified dict.b += 1 }
https://github.com/miliog/typst-penreport
https://raw.githubusercontent.com/miliog/typst-penreport/master/typst-penreport/helper/tlp.typ
typst
MIT No Attribution
#let TLP = ( RED: ( text: "TLP:RED", color: "#FF2B2B" ), AMBER: ( text: "TLP:AMBER", color: "#FFC000" ), AMBER_STRICT: ( text: "TLP:AMBER+STRICT", color: "#FFC000" ), GREEN: ( text: "TLP:GREEN", color: "#33FF00" ), CLEAR: ( text: "TLP:CLEAR", color: "#FFFFFF" ...
https://github.com/jgm/typst-hs
https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/compute/data-10.typ
typst
Other
// Test reading YAML data #let data = yaml("test/assets/files/yaml-types.yaml") #test(data.len(), 7) #test(data.null_key, (none, none)) #test(data.string, "text") #test(data.integer, 5) #test(data.float, 1.12) #test(data.mapping, ("1": "one", "2": "two")) #test(data.seq, (1,2,3,4)) #test(data.bool, false) #test(data.ke...
https://github.com/MilanR312/ugent_typst_template
https://raw.githubusercontent.com/MilanR312/ugent_typst_template/main/template/methods/title_page.typ
typst
MIT License
#import "globals.typ" : ublue #let title_page( title: none, authors: (), other_people: () ) = { // display the papers layout align( image("../images/faculteit.png", width: 60%), left + top ) align( [ #set text(stroke: ublue, fill: ublue) #title ], left + horizon ) ...
https://github.com/ufodauge/master_thesis
https://raw.githubusercontent.com/ufodauge/master_thesis/main/src/template/components/intro-section/index.typ
typst
MIT License
#import "toc-figure.typ": TocFigurePage #import "toc.typ" : TocPage #import "../common/page.typ" : Page #import "../common/heading.typ": H1 #import "../../constants/page.typ": PAGE_NUMBERING_INTRO #let IntroSection( abstract : [], acknowledgement: [], ) = [ #set page(numbering: PAGE_NUMBERING_INT...
https://github.com/typst/packages
https://raw.githubusercontent.com/typst/packages/main/packages/preview/cetz/0.1.2/src/styles.typ
typst
Apache License 2.0
#import "util.typ" #let default = ( root: ( fill: none, stroke: black + 1pt, radius: 1, ), line: ( mark: ( size: .15, angle: 45deg, start: none, end: none, stroke: auto, fill: none, ), ), bezier: ( mark: ( size: .15, angle: 45deg, ...
https://github.com/RaphGL/ElectronicsFromBasics
https://raw.githubusercontent.com/RaphGL/ElectronicsFromBasics/main/DC/chap3/6_emergency_response.typ
typst
Other
#import "../../core/core.typ" === Emergency response Despite lock-out/tag-out procedures and multiple repetitions of electrical safety rules in industry, accidents still do occur. The vast majority of the time, these accidents are the result of not following proper safety procedures. But however they may occur, they ...
https://github.com/tiankaima/typst-notes
https://raw.githubusercontent.com/tiankaima/typst-notes/master/ea2724-ai_hw/hw7.typ
typst
== HW7 Due 2024.05.12 #import "@preview/diagraph:0.2.1": * #let ans(it) = [ #pad(1em)[ #text(fill: blue)[ #it ] ] ] #show math.equation: it => [ #math.display(it) ] #show image: it => align(center, it) === Question 13.15 在一年一度的体检之后,医生告诉你一些坏消息和一些好消息。坏消息是你在一种严重疾病的测试中结果呈阳性,而这个测试的准确度为 $99 percent$ (即...
https://github.com/domoritz/tvcg-journal-typst
https://raw.githubusercontent.com/domoritz/tvcg-journal-typst/main/lib.typ
typst
MIT No Attribution
// Workaround for the lack of an `std` scope. #let std-bibliography = bibliography #let serif-font = "Liberation Serif" #let sans-serif-font = "Liberation Sans" // This function gets your whole document as its `body` and formats // it as an article in the style of the TVCG. #let tvcg( // The paper's title. title:...
https://github.com/vitto4/ttuile
https://raw.githubusercontent.com/vitto4/ttuile/main/DOC.FR.md
markdown
MIT License
# 📚 Documentation ### `ttuile` C'est la fonction principale, le point d'entrée du template. Elle doit être appelée en début de document, comme décrit dans [README.FR.md > Utilisation](https://github.com/vitto4/ttuile/blob/main/README.FR.md#-utilisation). Si le compte rendu n'est pas réalisé pour l'INSA Lyon, le log...
https://github.com/Stautaffly/typ
https://raw.githubusercontent.com/Stautaffly/typ/main/小技巧.typ
typst
#set text(size: 15pt) = 等比\*等差数列求和办法 令 $T_n=("An"+B)q^n$ 其部分和$ S_n=(A+B)q+(2A+B)q^2+dots+("An"+B)q^n $ 法一:错位相减\ $ S_n=&(A+B)q+(2A+B)q^2+dots+("An"+B)q^n \ q S_n=& (A+B)q^2+dots+(A n+B-A)q^(n)+ ("An"+B)q^(n+1) $ 两式相减得$ S_n=((A+B)q+A q^2(1-q^(n-1))/(1-q)-(A n+B)q^(n+1))/(1-q) $
https://github.com/LDemetrios/Typst4k
https://raw.githubusercontent.com/LDemetrios/Typst4k/master/src/test/resources/suite/foundations/content.typ
typst
--- content-at-default --- // Test .at() default values for content. #test(auto, [a].at("doesn't exist", default: auto)) --- content-field-syntax --- // Test fields on elements. #show list: it => { test(it.children.len(), 3) } - A - B - C --- content-field-missing --- // Error: 25-28 heading does not have field "f...
https://github.com/HEIGVD-Experience/docs
https://raw.githubusercontent.com/HEIGVD-Experience/docs/main/S5/SYE/docs/5-EtatsTransition%26Threads/etats-transition-threads.typ
typst
#import "/_settings/typst/template-note.typ": conf #show: doc => conf( title: [ Etats transistions et Threads ], lesson: "SYE", chapter: "5 - Etats transition et Threads", definition: "Definition", col: 1, doc, ) = Etats et transitions #image("/_src/img/docs/image copy 141.png") Voici une explicatio...
https://github.com/yingziyu-llt/blog
https://raw.githubusercontent.com/yingziyu-llt/blog/main/archived/Linear-Algebra-C3.typ
typst
#set document(title:"线性映射",date: auto ) #set page(margin: ( top: 0cm, bottom: 0cm, x: 0cm, )) #set text(size: 16pt) == 线性映射的定义 *Definition:* 一个映射 $T : V -> W$ 一定是线性的当且仅当它满足以下两个性质: + 可加性(additivity): $T(x + y) = T(x) + T(y)$ + 齐次性(homogeneity): $T(c v) = c T(v)$ 我们记作$T v$为一个线性映射(Linear Mapping),称$L(V, W)$为从...
https://github.com/Myriad-Dreamin/typst.ts
https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/math/matrix-alignment_06.typ
typst
Apache License 2.0
#import "/contrib/templates/std-tests/preset.typ": * #show: test-page // Test #454 equations. $ mat(-1, 1, 1; 1, -1, 1; 1, 1, -1) $ $ mat(-1&, 1&, 1&; 1&, -1&, 1&; 1&, 1&, -1&) $ $ mat(-1&, 1&, 1&; 1, -1, 1; 1, 1, -1) $ $ mat(&-1, &1, &1; 1, -1, 1; 1, 1, -1) $
https://github.com/typst/packages
https://raw.githubusercontent.com/typst/packages/main/packages/preview/gentle-clues/0.6.0/docs.typ
typst
Apache License 2.0
#import "@local/gentle-clues:0.6.0": * #import "@local/svg-emoji:0.1.0": * #set page(margin: 2cm); #show: setup-emoji #show: gentle-clues.with( lang: "de", headless: false, breakable: false, // header-inset: 0.4em, // content-inset: 1.3em, // border-radius: 12pt, // border-width: 1pt, // stroke-width...
https://github.com/Jozott00/typst-LLNCS-template
https://raw.githubusercontent.com/Jozott00/typst-LLNCS-template/main/template/theorem_proof_cnf.typ
typst
#import "@preview/lemmify:0.1.4": * ///// private stuff #let __llncs_thm_style( thm-type, name, number, body ) = block(width: 100%, breakable: true)[#{ strong(thm-type) + " " if number != none { strong(number) + ". " } if name != none { emph[(#name)] + " " } emph(body) }] #let __llncs_th...
https://github.com/drbartling/obsidian-to-typst
https://raw.githubusercontent.com/drbartling/obsidian-to-typst/master/README.md
markdown
# Obsidian to Typst This utility attempts to make it easy to convert markdown documents written using obsidian into PDFs. ## Requirements - typst - mermaid - mutool ## Getting Started This project uses python [poetry](https://python-poetry.org/). Follow the [intallation instructions](https://python-poetry.org/doc...
https://github.com/PorterLu/Typst
https://raw.githubusercontent.com/PorterLu/Typst/main/make_a_template/make_a_template.typ
typst
#let document_title = "Make a Template" #set par(justify: true) #set page( paper: "us-letter", header: align(right)[ #document_title ], numbering: "1" ) #align(center, text(17pt)[* #document_title *]) = Introduction #h(2em) 在之间的章节中已经介绍了Typst的撰写一篇文章所需要的内容。但是如果你要重复书写同一个会议的论文,这就需要多次编写重复的内容,于是就有了模版的需求。在这一章节中将...
https://github.com/chamik/gympl-skripta
https://raw.githubusercontent.com/chamik/gympl-skripta/main/cj-dila/7-farma-zvirat.typ
typst
Creative Commons Attribution Share Alike 4.0 International
#import "/helper.typ": dilo, hrule #dilo("<NAME>", "farma", "<NAME> (<NAME>)", "<NAME>", "1. p. 20. st; Světová lit. 20. st; sci-fi, antiutopie", "Británie", "1945", "epika", "alegorický román (bajka)") #columns(2, gutter: 1em)[ *Téma*\ kritika komunistického režimu, zejména v tehdejším SSSR *Motivy*\ pokryt...
https://github.com/dainbow/MatGos
https://raw.githubusercontent.com/dainbow/MatGos/master/themes/29.typ
typst
#import "../conf.typ": * = Системы линейных однородных дифференциальных уравнений с постоянными коэффициентами, методы их решения #definition[ Пусть $bold(x)(t) = vec(x_1 (t), ..., x_n (t)); A in M_n (CC)$ Тогда *Нормальная линейная однородная система уравнений* выглядит так: #eq[ $dot(bold(x)) = A bold(x)$...
https://github.com/Shambuwu/stage-docs
https://raw.githubusercontent.com/Shambuwu/stage-docs/main/documenten/ontwerprapport.typ
typst
#align( center, text( size: 1.2em, [ *Competentie: Ontwerpen* \ Ontwerprapport en onderbouwing \ ], ) ) #align( center, figure( image("../bijlagen/ontwerprapport/OIG.jpg", width: 400pt ) ) ) #let date = datetime( year: 2023, month: 6, day: 30 ) #place( bottom +...
https://github.com/drupol/cv
https://raw.githubusercontent.com/drupol/cv/master/src/cv/common/lib.typ
typst
#import "metadata.typ": * #import "@preview/fontawesome:0.4.0": * #let languageItem( lang: "", level: "", comment: "" ) = { block( grid( columns: (1fr, 1fr), align: (left, right), )[ #text(weight: "bold", lang) #box(width: 1fr, repeat[.]) ][ #box(width: 1fr, repeat[.])...
https://github.com/jgm/typst-hs
https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/compiler/array-29.typ
typst
Other
// Test the `join` method. #test(().join(), none) #test((1,).join(), 1) #test(("a", "b", "c").join(), "abc") #test("(" + ("a", "b", "c").join(", ") + ")", "(a, b, c)")
https://github.com/PorterLu/Typst
https://raw.githubusercontent.com/PorterLu/Typst/main/formatting/typst_demo.typ
typst
#set par(justify: true, leading: 0.52em) #set text(font: "New Computer Modern", size: 12pt) #set page(paper: "a4", margin: (x: 1.8cm, y: 1.5cm)) Typst是一个新的文本编辑器,可以从某种程度上替代Latex,从文将记录笔者学习Typst的过程。在 www.typst.app 上,我们可以在左侧编辑文件,等待一段时间后右侧就会自动渲染完成。 = 1介绍 == 1.1 段落 在行首添加 = 可以使得文件变为标题,两个 = 可以开启二级标题,同时使用 ‘\_’ 可以开启强调 _强调_, _...
https://github.com/Axot017/CV
https://raw.githubusercontent.com/Axot017/CV/master/modules_en/skills.typ
typst
#import "@preview/brilliant-cv:2.0.2": cvSection, cvSkill, hBar #let metadata = toml("../metadata.toml") #let cvSection = cvSection.with(metadata: metadata) #cvSection("Skills") #cvSkill( type: [Languages], info: [Polish - native #hBar() English - B2 ] ) #cvSkill( type: [Tachnologies], info: [ Java #hBar...
https://github.com/7sDream/fonts-and-layout-zhCN
https://raw.githubusercontent.com/7sDream/fonts-and-layout-zhCN/master/chapters/04-opentype/deltas-2.typ
typst
Other
#import "/lib/draw.typ": * #import "deltas-1.typ": start, end, graph as delta-1, p2, p3, p5, arrow-line-size, arrow-head-scale, main-txt-size #let arrow-color = yellow #let ps = (p2, p3, p5) #let graph = with-unit((ux, uy) => { delta-1 let arrow-relative = ( (-300, -20), (-300, 150), (-300, -30), ...
https://github.com/Shuenhoy/modern-zju-thesis
https://raw.githubusercontent.com/Shuenhoy/modern-zju-thesis/master/dependency/i-figured.typ
typst
MIT License
#import "@preview/i-figured:0.2.4": *
https://github.com/han0126/MCM-test
https://raw.githubusercontent.com/han0126/MCM-test/main/2024校赛typst/chapter/chapter1.typ
typst
= 问题重述 == 问题背景 在大学时代,参加各种学科竞赛是一种积极而富有意义的行为。这不仅是一种展示个人才华和专业知识的机会,更是一次锻炼和成长的过程。参加竞赛可以让学生在激烈的竞争中学会团队合作、解决问题的能力,并且通过与来自不同院校、不同背景的同学交流,拓展自己的视野,结交志同道合的朋友,建立起深厚的人际关系网络。因此,大学生积极参与学科竞赛,不仅是对自身能力的锻炼和提升,更是一种全面发展和自我实现的重要途径。通过竞赛,学生能够在学业上取得优异成绩,在人格上得到更深的塑造,为未来的发展奠定坚实的基础。由此,慎重地对大学生各种赛事的选择尤为重要,对大学生面临的各种竞赛赛事的评估和分析也成为值得深思的实际问题。 == 问题提...
https://github.com/zenor0/FZU-report-typst-template
https://raw.githubusercontent.com/zenor0/FZU-report-typst-template/main/fzu-report/utils/outline-tools.typ
typst
MIT License
#import "states.typ": * #import "../utils/fonts.typ": 字体, 字号 /* 这里有一个巨大的自造轮子用于显示目录。 由于 heading 跨页问题,如果使用 Typst 内置的目录,将导致页码显示错误、链接跳转锚点不正确。故仍使用自造轮子。 请查阅 `utils/show-heading.typ` 以查看 heading 跨页的其他影响 。如有更好的解决方案,欢迎给出建议或提交 PR。 */ #let cn-outline( outline-depth: 3, base-indent: 1em, first-level-spacing: none, fi...
https://github.com/optimizerfeb/MathScience
https://raw.githubusercontent.com/optimizerfeb/MathScience/main/personal/fast_exp/문서.typ
typst
#set text(font: "KoPubDotum_Pro") #set page(paper: "a4", margin: 5%) $x, y$ 는 $e^x = y$ 를 만족하는 Float32 타입의 수, $i, j$ 는 각각 $x, y$ 의 각 비트를 보존한 채 Int32 로 인식시킨 수라고 하자. $b in [0, 1]$ 일 때 $log_2 (1 + b)$ 를 $b + 0.0573$ 으로 근사시킬 수 있으므로 $ x &= ln y\ &= (log_2 y) / (log_2 e)\ &tilde.eq 1 / (log_2 e) [2^(-23)j - 127...
https://github.com/Enter-tainer/typstyle
https://raw.githubusercontent.com/Enter-tainer/typstyle/master/tests/assets/typstfmt/84-ws-text-code.typ
typst
Apache License 2.0
#let f() = [] a#sym.RR a#f()
https://github.com/SWATEngineering/Docs
https://raw.githubusercontent.com/SWATEngineering/Docs/main/src/2_RTB/PianoDiProgetto/sections/PreventivoSprint/OttavoSprint.typ
typst
MIT License
#import "../../const.typ": Re_cost, Am_cost, An_cost, Ve_cost, Pr_cost, Pt_cost #import "../../functions.typ": prospettoOrario, prospettoEconomico, glossary == Ottavo #glossary[sprint] *Inizio*: Venerdì 12/01/2024 *Fine*: Giovedì 18/01/2024 #prospettoOrario(sprintNumber: "8") #prospettoEconomico(sprintNumber: "8")
https://github.com/frectonz/the-pg-book
https://raw.githubusercontent.com/frectonz/the-pg-book/main/book/118.%20nthings.html.typ
typst
nthings.html The List of N Things September 2009I bet you the current issue of Cosmopolitan has an article whose title begins with a number. "7 Things He Won't Tell You about Sex," or something like that. Some popular magazines feature articles of this type on the cover of every issue. That can't be happening by acc...
https://github.com/typst/packages
https://raw.githubusercontent.com/typst/packages/main/packages/preview/unichar/0.1.0/ucd/block-FB00.typ
typst
Apache License 2.0
#let data = ( ("LATIN SMALL LIGATURE FF", "Ll", 0), ("LATIN SMALL LIGATURE FI", "Ll", 0), ("LATIN SMALL LIGATURE FL", "Ll", 0), ("LATIN SMALL LIGATURE FFI", "Ll", 0), ("LATIN SMALL LIGATURE FFL", "Ll", 0), ("LATIN SMALL LIGATURE LONG S T", "Ll", 0), ("LATIN SMALL LIGATURE ST", "Ll", 0), (), (), (), ...
https://github.com/ren-ben/typst-notes
https://raw.githubusercontent.com/ren-ben/typst-notes/master/physics/art/master.typ
typst
#align(center, text(24pt)[ *Spezielle & Generelle Relativitätstheorie* ]) #align(center)[ <NAME> \ Technologisches Gewerbemuseum \ #link("mailto:<EMAIL>") ] #show: rest => columns(2, rest) #import "@preview/physica:0.9.2": * #set heading(numbering: "1.") #show par: set block(spacing: 0.65em) #set pa...
https://github.com/goshakowska/Typstdiff
https://raw.githubusercontent.com/goshakowska/Typstdiff/main/tests/test_working_types/ordered_list/ordered_list_updated.typ
typst
+ The updated + The second
https://github.com/typst/packages
https://raw.githubusercontent.com/typst/packages/main/packages/preview/metro/0.2.0/src/metro.typ
typst
Apache License 2.0
#import "defs/units.typ" #import "defs/prefixes.typ" #import "impl/impl.typ" #import "utils.typ": combine-dict #let _state-default = ( units: units._dict, prefixes: prefixes._dict, prefix-power-tens: prefixes._power-tens, powers: ( square: impl.raiseto([2]), cubic: impl.raiseto([3]), squared: impl....
https://github.com/jgm/typst-hs
https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/math/attach-04.typ
typst
Other
// Test associativity and scaling. $ 1/(V^2^3^4^5), 1/attach(V, tl: attach(2, tl: attach(3, tl: attach(4, tl: 5)))), attach(Omega, tl: attach(2, tl: attach(3, tl: attach(4, tl: 5))), tr: attach(2, tr: attach(3, tr: attach(4, tr: 5))), bl: attach(2, bl: attach(3, bl: attach(4, bl: 5))), br: attach(2,...
https://github.com/kdog3682/2024-typst
https://raw.githubusercontent.com/kdog3682/2024-typst/main/src/visual-more-than-rect.typ
typst
#import "base-utils.typ": * #let get(x) = { let ref = ( "*": sym.times, "times": sym.times, "+": sym.plus, "plus": sym.plus, ) return ref.at(x, default: x) } #let attrs = ( width: 100pt, ) #let table-attrs = ( columns: 5, gutter: 5pt, stroke: none, inset: 0pt, ...
https://github.com/jgm/typst-hs
https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/compiler/methods-05.typ
typst
Other
// Error: 2:3-2:19 cannot mutate a temporary value #let numbers = (1, 2, 3) #(numbers.sorted() = 1)
https://github.com/kunalchandan/resume
https://raw.githubusercontent.com/kunalchandan/resume/main/resume.typ
typst
#set page( // fill: rgb("222222"), margin: ( x : 2.5em, y : 2em, ) ) // #set text(fill: rgb("fdfdfd")) #import "conf.typ": page_heading, experience, accent_1, accent_10, heading_font_size, main_font_size #set text(font: ("Jost"), weight: "light", size: main_font_size,) #set list(marker: ...
https://github.com/f14-bertolotti/bedlam
https://raw.githubusercontent.com/f14-bertolotti/bedlam/main/src/colors.typ
typst
// COLORS #let orchid = color.rgb(200,150,250) #let darkgray2 = color.rgb(84,84,84) #let darkgray = color.rgb(64,64,64) #let superdarkgray = color.rgb(16,16,16) #let lightblue = color.rgb(82, 220, 255) #let lightgreen = color.rgb(100, 255, 87) #let ochre = color.rgb(204, 119, 34) #let ne...
https://github.com/GuTaoZi/SUSTech-thesis-typst
https://raw.githubusercontent.com/GuTaoZi/SUSTech-thesis-typst/main/template/cover_en.typ
typst
MIT License
#import "../utils/datetime_display.typ" : * #import "../utils/style.typ" : * #import "@preview/tablex:0.0.6" : * #let cover_en( anonymous: false, fonts: (:), info: (:), ) = { let display_info_top( term, value, ) = { block( width: 100%, gridx( columns: (auto,...
https://github.com/IliHanSoLow/W-Seminar_typst_template
https://raw.githubusercontent.com/IliHanSoLow/W-Seminar_typst_template/main/W-Semi-Template.typ
typst
Do What The F*ck You Want To Public License
#let project(title: "", author: "", school:"", location: "", subject:"", teacher:"", years: "", deadline: "", body) = { show bibliography: set heading(numbering: "I.1") set page(numbering: "1", number-align: center, header:[ #align(center)[#set text(12pt) #smallcaps(title)]]) se...
https://github.com/ljgago/typst-chords
https://raw.githubusercontent.com/ljgago/typst-chords/main/src/utils.typ
typst
MIT License
// Gets the relative scale from a size of length type #let size-to-scale(size, default) = { let length-type = repr(size).match(regex("pt|mm|cm|in|em")).text if length-type == "em" { size.em } else { size / default } } // Gets the string from a content data #let parse-content(content-data) = { if con...
https://github.com/PmaFynn/cv
https://raw.githubusercontent.com/PmaFynn/cv/master/README.md
markdown
The Unlicense
# CV Personal CV I use. Currently written in Typst; might change back to LaTeX though. Feel free to make it your own. ## setup ``` sudo pacman -S typst git clone <EMAIL>:PmaFynn/cv.git cd cv typst compile src/cv.typ path/to/output.pdf ``` ## License [LICENSE](LICENSE.md)
https://github.com/thornoar/hkust-courses
https://raw.githubusercontent.com/thornoar/hkust-courses/master/PHYS1312-Honors-General-Physics-I/homeworks/hw2/main.typ
typst
#import "@local/common:0.0.0": * #import "@local/templates:0.0.0": * #show: physics-preamble("Part 2", "Wed, Oct 2") #physics-problem("1")\ Imagine a mass $M$ hanging from a ceiling suspended on two springs $S_1$, $S_2$ with coefficients $k_1$ and $k_2$. We will show that the resulting string coefficient (as the sys...
https://github.com/Isaac-Fate/booxtyp
https://raw.githubusercontent.com/Isaac-Fate/booxtyp/master/src/lib.typ
typst
Apache License 2.0
// Colors #import "colors.typ": color-schema // Cover #import "cover.typ": cover // Theorems, definitions, examples, etc. #import "theorems/mod.typ": * #import "equation.typ": equation-counter // Math symbols and operators #import "math.typ": * // Indexing #import "index.typ": * // Book template #import "book.typ...
https://github.com/isometricneko/typst-example
https://raw.githubusercontent.com/isometricneko/typst-example/main/main.typ
typst
#import "preamble.typ": * #bib_state.update(none) #include "chap1.typ" #include "chap2.typ" #bibliography("ref.bib", style: "harvard-cite-them-right", title: auto)
https://github.com/OkazakiYumemi/nju-ps-typst-template
https://raw.githubusercontent.com/OkazakiYumemi/nju-ps-typst-template/master/assignment_example.typ
typst
#import "hw-preamble.typ": * #let title = "第 1 讲: 测试" #let author = "张三" #let student_number = "998244353" #let due_time = "2024 年 2 月 31 日" #show: assignment_class.with(title, author, student_number, due_time) #section(title: "作业 (必做部分)") #problem(title: "AC 1.2-3")[ ] #solution[ // + $A=mat(1,-1;-1,1;...
https://github.com/henry-zwart/uva-report-unofficial
https://raw.githubusercontent.com/henry-zwart/uva-report-unofficial/main/template/main.typ
typst
MIT License
#import "@local/uva-report-unofficial:0.1.0": uva-report #let abstract = [#lorem(200)] #show: uva-report.with( abstract: abstract, title: "My report", subtitle: "A great report", student_name: "My name", student_id: "3141592653", lecturer: "My lecturer's name", course_name: "Course name", course_code: ...
https://github.com/TillWege/nSim
https://raw.githubusercontent.com/TillWege/nSim/main/paper/template.typ
typst
zlib License
// The project function defines how your document looks. // It takes your content and some metadata and formats it. // Go ahead and customize it to your liking! #let project(title: "", subtitle: "", authors: (), date: none, body) = { // Set the document's basic properties. set document(author: authors, title: title...
https://github.com/SergeyGorchakov/russian-phd-thesis-template-typst
https://raw.githubusercontent.com/SergeyGorchakov/russian-phd-thesis-template-typst/main/glossarium.typ
typst
MIT License
// this source code was obtained and corrected from: https://github.com/ENIB-Community/glossarium // glossarium figure kind #let __glossarium_figure = "glossarium_entry" // prefix of label for references query #let __glossary_label_prefix = "glossary:" // global state containing the glossary entry and their location #...
https://github.com/jamesrswift/springer-spaniel
https://raw.githubusercontent.com/jamesrswift/springer-spaniel/main/src/models/debug.typ
typst
The Unlicense
#let frame(stroke: 0.1pt) = place(rect(width: 100%, height: 100%, stroke: stroke)) #let horizontal-frames = { place(dy: 5cm, rect(width: 4.5cm, height: 100% - 11.25cm, stroke: 0.1pt)) place(dy: 5cm, right, rect(width: 4.5cm, height: 100% - 11.25cm, stroke: 0.1pt)) place(dy: 5cm, dx: 5cm, rect(width: 100%-10cm, h...
https://github.com/cetz-package/cetz-venn
https://raw.githubusercontent.com/cetz-package/cetz-venn/master/gallery/venn3.typ
typst
Apache License 2.0
#set page(width: auto, height: auto, margin: .5cm) #import "@preview/cetz:0.2.2" #import "@preview/cetz-venn:0.1.1": venn3 #cetz.canvas({ import cetz.draw: * scale(1.5) venn3(name: "venn", a-fill: red, b-fill: green, c-fill: blue, ab-fill: yellow, abc-fill: gray, bc-fill: gray) content("venn.a", [1], ang...
https://github.com/DashieTM/ost-5semester
https://raw.githubusercontent.com/DashieTM/ost-5semester/main/web3/weeks/week8.typ
typst
#import "../../utils.typ": * #section("Components Advanced") #subsection("Component lifecycle") - same as react with hooks - ngOnInit - hydration -> same as react - ngOnDestroy - dehydration -> same as react - ngAfter events are mainly for control developers to handle sub-components and their DOM #align( c...
https://github.com/eliapasquali/typst-thesis-template
https://raw.githubusercontent.com/eliapasquali/typst-thesis-template/main/chapters/product-design.typ
typst
Other
#pagebreak(to:"odd") = Progettazione e codifica <cap:progettazione-codifica> #v(1em) #text(style: "italic", [ Breve introduzione al capitolo ]) #v(1em) == Tecnologie e strumenti <sec:tecnologie-strumenti> Di seguito viene data una panoramica delle tecnologie e strumenti utilizzati. === Tecnologia 1 Descrizion...
https://github.com/fenjalien/metro
https://raw.githubusercontent.com/fenjalien/metro/main/tests/num/retain-explicit-decimal-marker/test.typ
typst
Apache License 2.0
#import "/src/lib.typ": num, metro-setup #set page(width: auto, height: auto) #num[10.] #num(retain-explicit-decimal-marker: true)[10.]
https://github.com/wj461/operating-system-personal
https://raw.githubusercontent.com/wj461/operating-system-personal/main/HW4/hw4.typ
typst
#align(center, text(17pt)[ *Operating-system homework\#3* ]) #(text(14pt)[ = Written exercises ]) = Chap. 10 == 10.21: Assume that we have a demand-paged memory. - The page table is held in registers.\ - It takes 8 milliseconds to service a page fault if an empty frame is available or if the replaced page is ...
https://github.com/rdboyes/resume
https://raw.githubusercontent.com/rdboyes/resume/main/modules_en/skills.typ
typst
// Imports #import "@preview/brilliant-cv:2.0.2": cvSection, cvSkill, hBar #let metadata = toml("../metadata.toml") #let cvSection = cvSection.with(metadata: metadata) #cvSection("Skills") #cvSkill( type: [Languages], info: [R #hBar() Julia #hBar() Python #hBar() C++ #hBar() Stan #hBar() Rust], ) #cvSkill( ty...
https://github.com/ludwig-austermann/qcm
https://raw.githubusercontent.com/ludwig-austermann/qcm/main/main.typ
typst
MIT License
#let colormap(name, n) = json("data.json").at(name).at(str(n)).map(c => color.rgb(c.at(0), c.at(1), c.at(2)))
https://github.com/elpekenin/access_kb
https://raw.githubusercontent.com/elpekenin/access_kb/main/README.md
markdown
--- ⚠️ _This file contains some icons that should render on GitHub, but **don't worry!** if they don't_ 📝 While all the source and documentation I've developed is written on English, the report is on Spanish to be presented at my University, I might translate it on the future --- Access keyboard =============== Thi...
https://github.com/npikall/vienna-tech
https://raw.githubusercontent.com/npikall/vienna-tech/main/template/abstract.typ
typst
The Unlicense
Die Kurzfassung soll den Inhalt der Arbeit kurz zusammenfassen. Sie sollte zumindest 70 und maximal 150 Wörter beinhalten. Der Schriftgrad sollte 10-Punkt sein. Der Einzug links und rechts soll 1 cm betragen. Der Text wird einfach in die Typst Vorlage eingefügt. Es fällt, durch den Gebrauch dieser Vorlage, die Verwend...
https://github.com/JarKz/math_analysis_with_typst
https://raw.githubusercontent.com/JarKz/math_analysis_with_typst/main/groups/third.typ
typst
MIT License
= Третья группа вопросов 1. *Понятие несобственного интеграла, его сходимости и расходимости.* 2. *Свойства несобственных интегралов.* 3. *Несобственные интегралы от неотрицательных функций. Признаки сравнения.* 4. *Критерий Коши сходимости несобственных интегралов. Абсолютная и условная сходимости.* 5. *Признаки Дири...
https://github.com/0xPARC/0xparc-intro-book
https://raw.githubusercontent.com/0xPARC/0xparc-intro-book/main/src/intro.typ
typst
#import "preamble.typ":* // copied from bigger project, edit into this one = What is programmable cryptography? Cryptography is everywhere now and needs no introduction. _Programmable cryptography_ is a term coined by 0xPARC for a second generation of cryptographic primitives that has arisen in the last 15 or so yea...
https://github.com/davidmasp/naturelike
https://raw.githubusercontent.com/davidmasp/naturelike/main/README.md
markdown
# Nature-like typst preprint template This is a preprint template "inspired" by the formating of the journal Nature. More importantly than the actual look of the paper, the template also handles author afilitiations (and hopefully in the future correspondence). See below for a quick look and check the examples in [`...
https://github.com/polarkac/MTG-Stories
https://raw.githubusercontent.com/polarkac/MTG-Stories/master/stories/046%20-%20Streets%20of%20New%20Capenna/010_Alley%20Cat%20Blues.typ
typst
#import "@local/mtgstory:0.2.0": conf #show: doc => conf( "Alley Cat Blues", set_name: "Streets of New Capenna", story_date: datetime(day: 05, month: 04, year: 2022), author: "<NAME>", doc ) Kitt shouldered the leather bag, felt the vials of Halo shifting under her jacket, and asked herself how she...
https://github.com/typst/packages
https://raw.githubusercontent.com/typst/packages/main/packages/preview/cetz/0.0.2/util.typ
typst
Apache License 2.0
#import "matrix.typ" #import "vector.typ" #import "bezier.typ" /// Constant to be used as float rounding error #let float-epsilon = 0.000001 /// Multiplies the vector by the transform matrix /// /// - transform (matrix): Transformation matrix /// - vec (vector): Vector to get transformed /// -> vector #let apply-tran...
https://github.com/AU-Master-Thesis/thesis
https://raw.githubusercontent.com/AU-Master-Thesis/thesis/main/sections/3-methodology/study-1/simulation.typ
typst
MIT License
#import "../../../lib/mod.typ": * === The Simulation Tool MAGICS <s.m.simulation-tool> // #jonas[A lot of the subsections here are 50% done. As in they explain the context and such but not details. Let us know if what is here is enough and it would be too much to go deeper, or if you are missing something.] ...
https://github.com/jgm/typst-hs
https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/compiler/ops-invalid-29.typ
typst
Other
// Works if we define rect beforehand // (since then it doesn't resolve to the standard library version anymore). #let rect = "" #(rect = "hi")
https://github.com/TypstApp-team/typst
https://raw.githubusercontent.com/TypstApp-team/typst/master/tests/typ/layout/par-justify-cjk.typ
typst
Apache License 2.0
// Test Chinese text in narrow lines. // In Chinese typography, line length should be multiples of the character size // and the line ends should be aligned with each other. // Most Chinese publications do not use hanging punctuation at line end. #set page(width: auto) #set par(justify: true) #set text(lang: "zh", fon...
https://github.com/weeebdev/cv
https://raw.githubusercontent.com/weeebdev/cv/main/metadata.typ
typst
Apache License 2.0
// NOTICE: Copy this file to your root folder. /* Personal Information */ #let firstName = "Adil" #let lastName = "Akhmetov" #let personalInfo = ( github: "weeebdev", phone: "+7 700 996 40 89", email: "<EMAIL>", linkedin: "adildev", //custom-1: (icon: "", text: "example", link: "https://example.com"), //...
https://github.com/saveriogzz/curriculum-vitae
https://raw.githubusercontent.com/saveriogzz/curriculum-vitae/main/modules/professional.typ
typst
Apache License 2.0
#import "../brilliant-CV/template.typ": * #cvSection("Professional Experience") #cvEntry( title: [Data Engineer], society: [Spotify], logo: "../src/logos/spotify_square.png", date: [Jul. 2022 - Present], location: [Remote within EMEA], description: list( [hello], [hello], ), ...
https://github.com/Sematre/typst-letter-pro
https://raw.githubusercontent.com/Sematre/typst-letter-pro/main/docs/documentation.typ
typst
MIT License
#import "@preview/tidy:0.1.0" #set text( font: "Source Sans Pro", hyphenate: false, ) #let project-version = "2.1.0" #let project-authors = "Sematre and contributors" #set document( title: "Documentation for typst-letter-pro (Version " + project-version + ")", author: project-authors, ) #set page( numberi...
https://github.com/RaphGL/ElectronicsFromBasics
https://raw.githubusercontent.com/RaphGL/ElectronicsFromBasics/main/DC/chap2/7_circuit_wiring.typ
typst
Other
#import "../../core/core.typ" === Circuit wiring So far, we've been analyzing single-battery, single-resistor circuits with no regard for the connecting wires between the components, so long as a complete circuit is formed. Does the wire length or circuit "shape" matter to our calculations? Let's look at a couple of ...
https://github.com/polarkac/MTG-Stories
https://raw.githubusercontent.com/polarkac/MTG-Stories/master/stories/054%20-%20Lost%20Caverns%20of%20Ixalan/007_Pawns.typ
typst
#import "@local/mtgstory:0.2.0": conf #show: doc => conf( "Pawns", set_name: "Lost Caverns of Ixalan", story_date: datetime(day: 20, month: 10, year: 2023), author: "<NAME>", doc ) Saheeli stood on the white sand of some lonely strand of Ixalan's northern coast. She held herself and contemplated si...
https://github.com/danilasar/conspectuses-3sem
https://raw.githubusercontent.com/danilasar/conspectuses-3sem/master/Ассемблер/лаба1/lab1.typ
typst
#import "conf.typ" : conf #show: conf.with( title: [Лабораторная работа №1], type: "referat", info: ( author: ( name: [<NAME>], faculty: [КНиИТ], group: "251", sex: "male" ), inspector: ( degree: "Старший преподаватель", name: "<NAME>" ) ),...
https://github.com/VisualFP/docs
https://raw.githubusercontent.com/VisualFP/docs/main/SA/design_concept/content/introduction/tool_research/snap.typ
typst
= Snap! Snap! is a block-based programming tool developed by Berkeley University which allows the creation of imperative programs in a Scratch-like manner. A user can create programs to control a cursor in a graphical environment, e.g., navigate the cursor to a specific position and draw a line. For that, Snap! offe...
https://github.com/ojas-chaturvedi/typst-templates
https://raw.githubusercontent.com/ojas-chaturvedi/typst-templates/master/assignments/README.md
markdown
MIT License
# Assignment Template taken from: <https://github.com/gRox167/typst-assignment-template> ## [Typst.app](https://typst.app) Upload all `*.typ` files to your Typst project. Change what you want and voila! ### Typst CLI ```sh # Compile to assignment.pdf typst compile assignment.typ # Compile to other path and name t...
https://github.com/LDemetrios/Typst4k
https://raw.githubusercontent.com/LDemetrios/Typst4k/master/src/test/resources/suite/math/alignment.typ
typst
// Test implicit alignment math. --- math-align-weird --- // Test alignment step functions. #set page(width: 225pt) $ "a" &= c \ &= c + 1 & "By definition" \ &= d + 100 + 1000 \ &= x && "Even longer" \ $ --- math-align-post-fix --- // Test post-fix alignment. $ & "right" \ "a very long line" \ "left" \ $ --- math-al...
https://github.com/jassielof/typst-templates
https://raw.githubusercontent.com/jassielof/typst-templates/main/upsa-bo/estudio-de-factibilidad/template/capítulos/10.financiamiento.typ
typst
MIT License
= Financiamiento == Selección de las Fuentes de Financiamiento Más Económicas == Plan de Pagos == Estructura de Financiamiento == Relación de Garantías == Flujo de Fuentes y Usos de Fondos === Sin Financiamiento === Con Financiamiento
https://github.com/sitandr/typst-examples-book
https://raw.githubusercontent.com/sitandr/typst-examples-book/main/README.md
markdown
MIT License
# Typst Examples Book See the book there: https://sitandr.github.io/typst-examples-book/book/ ## Highlight & rendering Currently powered by https://github.com/sitandr/mdbook-typst-highlight. ## Contributing If you have a snippet you want to have in a book, feel free to create an issue. Any PR-s are very welcome! ...
https://github.com/yhtq/Notes
https://raw.githubusercontent.com/yhtq/Notes/main/经济学原理/hw/hw5.typ
typst
#import "../../template.typ": * #show: note.with( title: "作业5", author: "YHTQ ", date: none, logo: none, withOutlined: false ) = B 牛奶的效用大于鸡腿肉效用 = A? 在不可微点边际替代率无法定义(? 3. A $ e = ((Delta Q)/(Delta P))/(Q/P)\ = ((((1.02Q P)/(0.95P))-Q)/(0.05P))/(Q/P)\ = (1.02-0.95)/(0.05 dot 0.95) > 1\ ...
https://github.com/typst/packages
https://raw.githubusercontent.com/typst/packages/main/packages/preview/genealotree/0.1.0/manual.typ
typst
Apache License 2.0
#import "@preview/mantys:0.1.3": * #import "@preview/showman:0.1.1" #import "@preview/tidy:0.2.0" #let show-module(name, scope:(:)) = tidy-module( read(name + ".typ"), name: name, include-examples-scope: true, tidy: tidy, extract-headings: 3 ) #import "genealotree.typ": * #show: mantys.with( ..toml("ty...
https://github.com/typst/packages
https://raw.githubusercontent.com/typst/packages/main/packages/preview/bone-resume/0.2.0/lib.typ
typst
Apache License 2.0
#let resume-init(title: none, author: "六个骨头", header: none, footer: none, body) = { set document(author: author, title: title) set page(margin: (x: 3.2em, y: 3.2em), header: header, footer: footer) set text(font: ("Source Han Sans"), lang: "zh") show emph: it => { text(it.body, font: ("Source Han Serif SC",...
https://github.com/yhtq/Notes
https://raw.githubusercontent.com/yhtq/Notes/main/代数学二/作业/hw6.typ
typst
#import "../../template.typ": * #import "@preview/commute:0.2.0": node, arr, commutative-diagram #show: note.with( title: "作业5", author: "YHTQ", date: none, logo: none, withOutlined : false, withTitle :false, ) (应交时间为4月9日) #set heading(numbering: none) = p33-35 == 20 首先注意到有自然的: $ directLimit ...
https://github.com/RaphGL/ElectronicsFromBasics
https://raw.githubusercontent.com/RaphGL/ElectronicsFromBasics/main/DC/chap4/3_metric_notation.typ
typst
Other
#import "../../core/core.typ" === Metric notation The metric system, besides being a collection of measurement units for all sorts of physical quantities, is structured around the concept of scientific notation. The primary difference is that the powers-of-ten are represented with alphabetical prefixes instead of by ...
https://github.com/Entoryvekum/TypstTemplate
https://raw.githubusercontent.com/Entoryvekum/TypstTemplate/main/BasicTemplate/0.1.0/template.typ
typst
#import("@local/MathBasic:0.1.0"):* #let Note(body) = { //Page let Header(l,m,r)={ grid( columns: (1fr,auto,1fr), align(left,text(9pt,par(leading: 0.2em,l))), align(center,text(9pt,par(leading: 0.2em,m))), align(right,text(9pt,par(leading: 0.2em,r))), ...
https://github.com/pawarherschel/typst
https://raw.githubusercontent.com/pawarherschel/typst/main/helpers/helpers.typ
typst
Apache License 2.0
#import "@preview/fontawesome:0.1.0": * #let color-darknight = rgb("131A28") #let color-darkgray = rgb("414141") #let color-gray = rgb("5d5d5d") #let default-accent-color = rgb("333ECC") /// Show a link with an icon, specifically for Github projects /// *Example* /// #example(`resume.github-link("DeveloperPaul123/awe...
https://github.com/Error-418-SWE/Documenti
https://raw.githubusercontent.com/Error-418-SWE/Documenti/src/3%20-%20PB/Documentazione%20interna/Verbali/24-03-30/24-03-30.typ
typst
#import "/template.typ": * #show: project.with( date: "30/03/24", subTitle: "Meeting di retrospettiva e pianificazione", docType: "verbale", authors: ( "<NAME>", ), reviewers: ( "<NAME>", ), missingMembers: ( "<NAME>", ), timeStart: "10:30", timeEnd: "11:15", ); = Ordine del giorno -...
https://github.com/dccsillag/toy-algebraic-effects
https://raw.githubusercontent.com/dccsillag/toy-algebraic-effects/main/README.md
markdown
This is a small programming language, for the purpose of prototyping how [Typst](https://github.com/typst/typst) would look like with its impurities unified as algebraic effects. It is not particularly efficient, but only for the sake of simplicity -- there is nothing inherent that blocks it from being optimized (at l...