repo
stringlengths
26
115
file
stringlengths
54
212
language
stringclasses
2 values
license
stringclasses
16 values
content
stringlengths
19
1.07M
https://github.com/jgm/typst-hs
https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/compiler/closure-03.typ
typst
Other
// Capture environment. #{ let mark = "!" let greet = { let hi = "Hi" name => { hi + ", " + name + mark } } test(greet("Typst"), "Hi, Typst!") // Changing the captured variable after the closure definition has no effect. mark = "?" test(greet("Typst"), "Hi, Typst!") }
https://github.com/0x1B05/algorithm-journey
https://raw.githubusercontent.com/0x1B05/algorithm-journey/main/practice/note/content/数论.typ
typst
#import "../template.typ": * #pagebreak() = 数论 == 最大公约数 and 最小公倍数 证明辗转相除法就是证明关系: `gcd(a, b) = gcd(b, a % b)` 假设`a % b = r`,即需要证明的关系为:`gcd(a, b) = gcd(b, r)` 证明过程: 因为`a % b = r`,所以如下两个等式必然成立 1. `a = b * n + r`,n 为 0、1、2、3....中的一个整数 2. `r = a − b * n`,n 为 0、1、2、3....中的一个整数 假设 u 是 b 和 r 的公因子,则有: `b =...
https://github.com/kotfind/hse-se-2-notes
https://raw.githubusercontent.com/kotfind/hse-se-2-notes/master/algo/seminars/2024-09-09.typ
typst
= Введение Семинарская оценка --- работа на семинаре, задачки на дом (до следующего семинара) Посещение не учитывается == Проверка цикличности списка (алгоритм зайца и черепахи) Черепаха прыгает на 1, заяц --- на два Если заяц упирается в конец списка, то ацикличен Если заяц и черепаха встретились, то цикличен
https://github.com/xrarch/books
https://raw.githubusercontent.com/xrarch/books/main/xrcomputerbook/titlepage.typ
typst
#page([ #image("xrcomputersystemshandbook.png", fit: "stretch") ], margin: ( top: 0cm, bottom: 0cm, left: 0cm, right: 0cm, )) #pagebreak() *XR/station Project* \ *XR/computer Systems Handbook* \ _Revision 1.0, January 5, 2024_
https://github.com/whs/typst-govdoc
https://raw.githubusercontent.com/whs/typst-govdoc/master/README.md
markdown
# Thai Government Document with Typst (เขียนหนังสือราชการด้วยโปรแกรม Typst) เพื่อเป็นการฝึกใช้งานระบบจัดหน้า [Typst](https://typst.app) ซึ่งเป็นซอฟต์แวร์ Open Source จึงได้ทดลองจัดทำตามรูปแบบหนังสือราชการ และอัพโหลดไว้สำหรับผู้สนใจ * [ตัวอย่างเอกสาร](govdoctest.pdf) ## คุณสมบัติ สามารถจัดเนื้อหาในส่วนต่อไปนี้ * ชั...
https://github.com/catppuccin/typst
https://raw.githubusercontent.com/catppuccin/typst/main/manual/template.typ
typst
MIT License
#import "../src/lib.typ": catppuccin, themes, get-palette #import "@preview/codly:0.1.0": * // 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: "", abstract: [], autho...
https://github.com/EpicEricEE/typst-equate
https://raw.githubusercontent.com/EpicEricEE/typst-equate/master/tests/align-points/test.typ
typst
MIT License
#import "/src/lib.typ": equate #set page(width: 8cm, height: auto, margin: 1em) #show: equate // Test re-implemented alignment algorithm. $ a + b &= c \ &= d + e $ $ a + b &= c + d &= e + f \ g &= & + h $ $ a + b &= c + d &&= e + f \ g & &&= h $ $ a + b &= c \ d & &= e...
https://github.com/fabriceHategekimana/master
https://raw.githubusercontent.com/fabriceHategekimana/master/main/2_Etat_de_l_art/STLC.typ
typst
#import "@preview/simplebnf:0.1.0": * #import "../src/module.typ" : * === Le lambda calcul simplement typé Malgré le fait qu'il soit Turing-complet. Le lambda calcul simple manque de pas mal de fonctionnalités qui vont nous aider à représenter les tableaux multidimensionnels. L'une d'entre elle et la notion de type. ...
https://github.com/GabrielDTB/basalt-backlinks
https://raw.githubusercontent.com/GabrielDTB/basalt-backlinks/main/README.md
markdown
MIT License
A Typst package for generating and getting backlinks. # Setup ```typ #import "@preview/basalt-backlinks:0.1.0" as backlinks #show link: backlinks.generate ``` # Usage ```typ Here's some content I want to link to. <linktome> #pagebreak() #link(<linktome>)[I'm linking to the content.] #pagebreak() #link(<linktome>)...
https://github.com/leesum1/brilliant-cv
https://raw.githubusercontent.com/leesum1/brilliant-cv/master/cv.typ
typst
// Imports #import "@preview/brilliant-cv:2.0.2": cv #let metadata = toml("./metadata.toml") #let importModules(modules, lang: metadata.language) = { for module in modules { include { "modules_" + lang + "/" + module + ".typ" } } } #show: cv.with( metadata, profilePhoto: image("./src/github.png...
https://github.com/typst/packages
https://raw.githubusercontent.com/typst/packages/main/packages/preview/unichar/0.1.0/ucd/block-10190.typ
typst
Apache License 2.0
#let data = ( ("ROMAN SEXTANS SIGN", "So", 0), ("ROMAN UNCIA SIGN", "So", 0), ("ROMAN SEMUNCIA SIGN", "So", 0), ("ROMAN SEXTULA SIGN", "So", 0), ("ROMAN DIMIDIA SEXTULA SIGN", "So", 0), ("ROMAN SILIQUA SIGN", "So", 0), ("ROMAN DENARIUS SIGN", "So", 0), ("ROMAN QUINARIUS SIGN", "So", 0), ("ROMAN SESTER...
https://github.com/GeorgeDong32/GD-Typst-Templates
https://raw.githubusercontent.com/GeorgeDong32/GD-Typst-Templates/main/examples/example-for-homework.typ
typst
Apache License 2.0
#import "../templates/homework.typ": * #show: homework.with( title: "作业一", subject: "Typst作业编写课程", name: "张三三", stdid: "11223344", ) = 作业第一部分 #lorem(50) == 第一题 #booktab( width: 100%, aligns: (left + horizon, center, right + bottom), columns: (1fr, 1fr, 1fr), caption: [`booktab` 示例], [左对齐]...
https://github.com/QuadnucYard/crossregex-typ
https://raw.githubusercontent.com/QuadnucYard/crossregex-typ/main/src/regex.typ
typst
MIT License
#let regex-plugin = plugin("crossregex.wasm") // we use a plugin because typst regex does not support back-ref #let regex-match(re, str) = { let r = regex-plugin.regex_match(bytes(re), bytes(str)) r.at(0) > 0 }
https://github.com/The-Notebookinator/notebookinator
https://raw.githubusercontent.com/The-Notebookinator/notebookinator/main/themes/linear/linear.typ
typst
The Unlicense
#import "rules.typ": rules #import "entries.typ": cover, frontmatter-entry, body-entry, appendix-entry #import "format.typ": set-border, set-heading #import "components/components.typ" #import "colors.typ": * #import "/utils.typ" #let linear-theme = utils.make-theme( // Global show rules rules: rules, cover: cov...
https://github.com/SWATEngineering/Docs
https://raw.githubusercontent.com/SWATEngineering/Docs/main/src/2_RTB/LetteraDiPresentazioneRTB/content.typ
typst
MIT License
#import "functions.typ": glossary, team /*************************************/ /* INSERIRE SOTTO IL CONTENUTO */ /*************************************/ E<NAME> Vardanega e Cardin, #v(25pt) con la presente il gruppo #team esprime la propria intenzione di candidarsi alla revisione di avanzamento _Requirement...
https://github.com/qlaush/template_thesis_stuttgart_imvt
https://raw.githubusercontent.com/qlaush/template_thesis_stuttgart_imvt/main/content/proposal.typ
typst
MIT License
#import "/utils/todo.typ": TODO #TODO(color: red)[ // Remove this block Before you start with your thesis, have a look at our guides on Confluence! #link("https://confluence.ase.in.tum.de/display/EduResStud/How+to+thesis") ] #set heading(numbering: none) = Abstract #TODO[ // Remove this block *Abstract* - Pro...
https://github.com/polarkac/MTG-Stories
https://raw.githubusercontent.com/polarkac/MTG-Stories/master/stories/011_Journey%20into%20Nyx.typ
typst
#import "@local/mtgset:0.1.0": conf #show: doc => conf("Journey into Nyx", doc) #include "./011 - Journey into Nyx/001_Ajani, Mentor of Heroes.typ" #include "./011 - Journey into Nyx/002_Desperate Stand.typ" #include "./011 - Journey into Nyx/003_Dreams of the City.typ" #include "./011 - Journey into Nyx/004_Thank the...
https://github.com/cyx2015s/PhyLabReportTemplateTypst
https://raw.githubusercontent.com/cyx2015s/PhyLabReportTemplateTypst/main/phylab.typ
typst
#let phylab( name: "实验名称", instructor: "指导教师", class: "班级", author: "姓名", author-id: "学号", date: datetime.today(), week: 1, am-pm: "上午", body ) = { let 小初 = 36pt let 三号 = 16pt let 四号 = 14pt let 小四 = 12pt // 设置文档元数据 set document(title: author + "-"+ name, author: author) // 设置字体 set tex...
https://github.com/jgm/typst-hs
https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/text/edge-01.typ
typst
Other
// Error: 21-23 expected "ascender", "cap-height", "x-height", "baseline", "descender", or length, found array #set text(top-edge: ())
https://github.com/Myriad-Dreamin/typst.ts
https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/crates/conversion/typst2vec/README.md
markdown
Apache License 2.0
# reflexo-typst2vec Convert typst items to vector format. The vector format is abstracted from SVG and doesn't depend on typst. - See [Typst.ts](https://github.com/Myriad-Dreamin/typst.ts) - See [Vector Format](https://github.com/Myriad-Dreamin/typst.ts/blob/main/docs/proposals/8-vector-representation-for-rendering....
https://github.com/TypstApp-team/typst
https://raw.githubusercontent.com/TypstApp-team/typst/master/tests/typ/visualize/gradient-text-decorations.typ
typst
Apache License 2.0
// Tests gradients on text decorations. --- #set text(fill: gradient.linear(red, blue)) Hello #underline[World]! \ Hello #overline[World]! \ Hello #strike[World]! \
https://github.com/Le-foucheur/dotfile
https://raw.githubusercontent.com/Le-foucheur/dotfile/main/.config/Code/User/History/4f8ef55/0UjW.typ
typst
#import "/template.typ": * #import "/transposition.typ": * #import "@preview/drafting:0.2.0": * #import "@preview/vartable:0.1.0": * #show: template <NAME> #align(center, text(20pt)[Maths : ES 1]) #set-page-properties() = Groupe \ \ === \ Comme $Q$ est non commutatif, alors $Q$ est nécessairement non monogène === ...
https://github.com/jbro/supernote-templates
https://raw.githubusercontent.com/jbro/supernote-templates/main/include/elements.typ
typst
The Unlicense
#let titled-box(contents, title: "title", text-size: 12pt,) = box(stroke: 2pt + gray, inset: 6pt, radius: 5pt, width: 100%, [ #v(2pt) #text(size: text-size, [#place(top+left, [#v(-1.2em) #box(fill: white, inset: 1pt, title)])]) #v(2pt) #contents ] ) #let task-lines(count) = { let line = (mark: r...
https://github.com/RaphGL/ElectronicsFromBasics
https://raw.githubusercontent.com/RaphGL/ElectronicsFromBasics/main/DC/chap3/chap3.typ
typst
Other
== Electrical Safety #include "1_importance_of_electrical_safety.typ" #include "2_physiological_effects_of_electricity.typ" #include "3_shock_current_path.typ" #include "4_ohms_law_again.typ" #include "5_safe_practices.typ" #include "6_emergency_response.typ" #include "7_common_hazards.typ" #include "8_safe_circuit_de...
https://github.com/0x1B05/english
https://raw.githubusercontent.com/0x1B05/english/main/cnn10/content/20240521.typ
typst
#import "../template.typ": * #pagebreak() = 20240521 == Start What's up, everybody? It's your boy Coy here. Time to #strike[a few hours ...]#underline[*fuel* our minds] this terrific Tuesday, but man, what a #underline[*bittersweet*] week! Summertime #underline[is almost _upon us_, and that is awesome] But it's also...
https://github.com/tingerrr/anti-matter
https://raw.githubusercontent.com/tingerrr/anti-matter/main/docs/manual.typ
typst
MIT License
#import "@preview/tidy:0.1.0" #import "template.typ": project #let package = toml("/typst.toml").package #show: project.with( package: package, date: datetime.today().display(), abstract: [ This packages automatically numbers the front and back matter of your document separately from the m...
https://github.com/duskmoon314/THU_AMA
https://raw.githubusercontent.com/duskmoon314/THU_AMA/main/docs/ch2/4-群在集合上的作用.typ
typst
Creative Commons Attribution 4.0 International
#import "/book.typ": * #show: thmrules #show: book-page.with(title: "群在集合上的作用") = 群在集合上的作用 == 群对集合的作用 #example()[ 设$X = { 1 , 2 , dots.h.c , n } , S_n$对$X$可产生作用$lr((G lt.eq S_n))$:$forall g in G , forall x in X , g lr((x))$为$g$在$X$上的作用 ] #definition()[ 设$G$为群,$Omega$是一个集合,若$forall g in G$对应$Omega$上对一个变换$g lr(...
https://github.com/Student-Smart-Printing-Service-HCMUT/ssps-docs
https://raw.githubusercontent.com/Student-Smart-Printing-Service-HCMUT/ssps-docs/main/contents/categories/task4/4.conclude.typ
typst
Apache License 2.0
#{include "./4.1.typ"} #{include "./4.2.typ"} #{include "./4.3.typ"}
https://github.com/LDemetrios/Typst4k
https://raw.githubusercontent.com/LDemetrios/Typst4k/master/src/test/resources/suite/layout/flow/footnote.typ
typst
// Test footnotes. --- footnote-basic --- #footnote[Hi] --- footnote-space-collapsing --- // Test space collapsing before footnote. A#footnote[A] \ A #footnote[A] --- footnote-nested --- // Currently, numbers a bit out of order if a nested footnote ends up in the // same frame as another one. :( First \ Second #foot...
https://github.com/HarryLuoo/sp24
https://raw.githubusercontent.com/HarryLuoo/sp24/main/431/notes/part1.typ
typst
#set math.equation(numbering:"(1)") = Sample Spaces, collection of events, probability measure - Sample space $Omega$: set of all possible outcomes of an experiment. Comes in n-tuples where n represents number of repeated trials. - Collection of events $cal(F) $: subset of state space to which we assign a probability...
https://github.com/EstebanMunoz/typst-template-informe
https://raw.githubusercontent.com/EstebanMunoz/typst-template-informe/main/template/main.typ
typst
MIT No Attribution
#import "@local/fcfm-informe:0.1.0": conf, subfigures, today // Parámetros para la configuración del documento. Descomentar aquellas que se quieran usar #let document-params = ( // "include-title-page": false, "title": "Título del documento", "subject": "Tema del documento", // "course-name": "", // "course-...
https://github.com/cu1ch3n/karenda
https://raw.githubusercontent.com/cu1ch3n/karenda/main/lib.typ
typst
#import "nord.typ": * #import "date.typ": * #let karenda(year: datetime.today().year(), begin-weekday: 1, body) = { let dates-by-month-week = get-dates(year, begin-weekday) let left-margin = 15pt let left-margin-content = 60pt let top-margin = 20pt let top-margin-content = 50pt let radius = 5pt...
https://github.com/Kasci/LiturgicalBooks
https://raw.githubusercontent.com/Kasci/LiturgicalBooks/master/tmp.typ
typst
Kňaz: Sláva svätej, jednopodstatnej, životodarnej a nedeliteľnej Trojici v každom čase, teraz i vždycky, i na veky vekov. (ak nie je kňaz, prednášaj: Pane Ježišu Kriste, Bože náš, pre modlitby našich svätých otcov, zmiluj sa nad nami.) Ľud: Amen. Sláva na výsostiach Bohu a na zemi pokoj ľuďom dobrej vôle. (3x) ...
https://github.com/PauKaifler/typst-template-dhbw
https://raw.githubusercontent.com/PauKaifler/typst-template-dhbw/main/example.typ
typst
Apache License 2.0
#import "template.typ": template #import "@preview/glossarium:0.4.1": make-glossary, print-glossary, gls, glspl #set document( title: "Development of an LLM-Based Pet Entertainment System", author: "<NAME>", ) #set text(lang: "en") #show: make-glossary #show: template.with( article-kind: "Bachelorarbeit", aut...
https://github.com/GZTimeWalker/GZ-Typst-Templates
https://raw.githubusercontent.com/GZTimeWalker/GZ-Typst-Templates/main/functions/fonts.typ
typst
MIT License
#let line_height = 1em #let fonts = ( serif: ("Source Han Serif SC", "Source Han Serif"), sans: ("Source Han Sans SC", "Source Han Sans"), monospace: ("JetBrains Mono", "Consolas"), ) #let textbf(it) = block(text(font: fonts.sans, weight: "semibold", it)) #let textit(it) = block(text(style: "italic", it))
https://github.com/dadn-dream-home/documents
https://raw.githubusercontent.com/dadn-dream-home/documents/main/contents/07-thiet-ke-kien-truc/1-backend/index.typ
typst
== Mô hình MVC ở Backend Lược đồ các class ở backend được biểu diễn ở @fig:backend-architecture. #figure( image("backend-architecture.drawio.svg", width: 100%), caption: "Lược đồ các class ở backend" ) <fig:backend-architecture> Các class này tạo thành mô hình MVC thành phần: / `VerbNounHandler`: là các cla...
https://github.com/jgm/typst-hs
https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/compiler/dict-07.typ
typst
Other
// Error: 17-20 duplicate key: a #(a: 1, "b": 2, "a": 3)
https://github.com/typst/packages
https://raw.githubusercontent.com/typst/packages/main/packages/preview/unichar/0.1.0/ucd/block-2C80.typ
typst
Apache License 2.0
#let data = ( ("COPTIC CAPITAL LETTER ALFA", "Lu", 0), ("COPTIC SMALL LETTER ALFA", "Ll", 0), ("COPTIC CAPITAL LETTER VIDA", "Lu", 0), ("COPTIC SMALL LETTER VIDA", "Ll", 0), ("COPTIC CAPITAL LETTER GAMMA", "Lu", 0), ("COPTIC SMALL LETTER GAMMA", "Ll", 0), ("COPTIC CAPITAL LETTER DALDA", "Lu", 0), ("COPT...
https://github.com/ysthakur/PHYS121-Notes
https://raw.githubusercontent.com/ysthakur/PHYS121-Notes/main/Notes/Ch12.typ
typst
MIT License
#import "@preview/gentle-clues:0.3.0": note, important = Chapter 12: Thermal Properties of Matter == The Atomic Model of Matter / Gas: System in which each particle moves freely through space until it occasionally collides with another particle or the wall / Liquid: Weak bonds permit motion while keeping the particl...
https://github.com/LDemetrios/Typst4k
https://raw.githubusercontent.com/LDemetrios/Typst4k/master/dir/test.typ
typst
// Test all gradient presets. #set page(width: 100pt, height: auto, margin: 0pt) #set text(fill: white, size: 18pt) #set text(top-edge: "bounds", bottom-edge: "bounds") #let presets = ( ("turbo", color.map.turbo), ("cividis", color.map.cividis), ("rainbow", color.map.rainbow), ("spectral", color.map.spectral),...
https://github.com/Myriad-Dreamin/typst.ts
https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/layout/repeat_02.typ
typst
Apache License 2.0
#import "/contrib/templates/std-tests/preset.typ": * #show: test-page // Test empty repeat. A #box(width: 1fr, repeat[]) B
https://github.com/jgm/typst-hs
https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/compiler/ops-invalid-17.typ
typst
Other
// Error: 13-20 cannot subtract integer from ratio #((1234567, 40% - 1))
https://github.com/polarkac/MTG-Stories
https://raw.githubusercontent.com/polarkac/MTG-Stories/master/stories/036%20-%20Guilds%20of%20Ravnica/014_The%20Gathering%20Storm%3A%20Chapter%209.typ
typst
#import "@local/mtgstory:0.2.0": conf #show: doc => conf( "The Gathering Storm: Chapter 9", set_name: "Guilds of Ravnica", story_date: datetime(day: 07, month: 08, year: 2019), author: "<NAME>", doc ) Ral awoke in a cold sweat, the long-ago slum-dweller’s scream still ringing in his ears. He lay ba...
https://github.com/ukihot/igonna
https://raw.githubusercontent.com/ukihot/igonna/main/articles/rust/syntax.typ
typst
#import "@preview/codly:0.2.0": * #let ruby(rt, rb, size: 0.4em, alignment: "between") = { let gutter = if (alignment=="center" or alignment=="start") {h(0pt)} else if (alignment=="between" or alignment=="around") {h(1fr)} let chars = if(alignment=="around") { [#h(0.5fr)#rt.clusters().join(gutter)#h(0.5...
https://github.com/VisualFP/docs
https://raw.githubusercontent.com/VisualFP/docs/main/SA/design_concept/content/results/results_ui_demonstration.typ
typst
#import "../../../acronyms.typ": * = UI Demonstration @visual-fp-ui-demo-step-one through @visual-fp-ui-demo-step-six depict a step-by-step construction of the `mapAdd5` code scenario, described in @design_eval_code_scenarios, using the #ac("PoC") application. #figure( image("../../static/ui-demo-one.png"), capt...
https://github.com/mitsuyukiLab/grad_thesis_typst
https://raw.githubusercontent.com/mitsuyukiLab/grad_thesis_typst/main/main.typ
typst
#import "lib/grad_thesis_lib.typ": thesis, toc, toc_img, toc_table #show: thesis.with( type: "卒業論文", // "卒業論文", "修士論文", "博士論文" title: "論文タイトルを入れる入れる \n 君の名は", title_en: "Please input your thesis title \n Your Name", submittion_date: "2050年3月4日", supervisor_name: "<NAME>", supervisor_title: "准教授", author_...
https://github.com/sitandr/typst-examples-book
https://raw.githubusercontent.com/sitandr/typst-examples-book/main/src/packages/glossary.md
markdown
MIT License
# Glossary ## glossarium >[Link to the universe](https://typst.app/universe/package/glossarium) Package to manage glossary and abbreviations. <div class="info">One of the very first cool packages of Typst, made specially for (probably) the first thesis written in Typst.<div> ```typ #import "@preview/glossarium:0.4...
https://github.com/Myriad-Dreamin/typst.ts
https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/packages/typst.node/__test__/inputs/post2.typ
typst
Apache License 2.0
#set document(title: "Post 2") = This is Post 2
https://github.com/katamyra/Notes
https://raw.githubusercontent.com/katamyra/Notes/main/Compiled%20School%20Notes/CS3001/Modules/Privacy.typ
typst
#import "../../../template.typ": * = Privacy *What is Privacy?* - Freedom from intrusion - Control of information about oneself - Freedom from surveillance == Free Market View #theorem[ From the free market view, you can choose how much information you want to exchange and if you don't like a company's privacy ...
https://github.com/AnsgarLichter/light-cv
https://raw.githubusercontent.com/AnsgarLichter/light-cv/main/modules/utils.typ
typst
MIT License
#let vLine() = [ #h(5pt) ] #let hline() = [ #box(width: 1fr, line(stroke: 0.9pt, length: 100%)) ]
https://github.com/Many5900/aau-typst
https://raw.githubusercontent.com/Many5900/aau-typst/main/custom.typ
typst
#import "@preview/showybox:2.0.1": * #import "@preview/codly:1.0.0": * #import "@preview/dashy-todo:0.0.1": todo //####################################// //############ CODE BLOCK ############// //####################################// #let code(lang: "", title, body) = { if title != [] { [ #codly( ...
https://github.com/0x1B05/algorithm-journey
https://raw.githubusercontent.com/0x1B05/algorithm-journey/main/practice/note/content/图.typ
typst
#import "../template.typ": * #pagebreak() = 图 == 建图 - 邻接矩阵(适合点的数量不多的图) - 邻接表(最常用的方式) - 链式前向星(空间要求严苛情况下使用。比赛必用,大厂笔试、面试不常用) #code(caption: [三种方式建图])[ ```java import java.util.ArrayList; import java.util.Arrays; /** * Code01_CreateGraph */ public class Code01_CreateGraph { // 点的最大数量 public static int MAXN = ...
https://github.com/dainbow/MatGos
https://raw.githubusercontent.com/dainbow/MatGos/master/themes/10.typ
typst
#import "../conf.typ": * = Экстремумы функций многих переменных. Необходимые условия, достаточные условия. == Необходимые условия #definition[ Точка $x_0 in RR^n$ называется точкой *локального максимума* функции $f(x)$, если #eq[ $exists delta > 0 : forall x in U_delta (x_0) : space f(x) <= f(x_0)$ ] ] #d...
https://github.com/soul667/typst
https://raw.githubusercontent.com/soul667/typst/main/PPT/typst-slides-fudan/themes/polylux/examples/demo.typ
typst
#import "../polylux.typ": * #import themes.clean: * #show link: set text(blue) #set text(font: "Inria Sans") // #show heading: set text(font: "Vollkorn") #show raw: set text(font: "JuliaMono") #show: clean-theme.with( footer: [<NAME>, July 2023], short-title: [Polylux demo], logo: image("../assets/log...
https://github.com/wuespace/vos
https://raw.githubusercontent.com/wuespace/vos/main/vo/pubvo.typ
typst
#import "@preview/delegis:0.3.0": * #show: delegis.with( logo: image("wuespace.svg"), title: "Vereinsordnung zur Publikation von wissenschaftlichen Arbeiten des WüSpace e. V.", abbreviation: "PubVO", resolution: "1. Vorstandsbeschluss vom 23.11.2023, 2023/V-16", in-effect: "23.11.2023" ) #outline() = Allge...
https://github.com/fabriceHategekimana/master
https://raw.githubusercontent.com/fabriceHategekimana/master/main/3_Theorie/Types_de_données_basiques.typ
typst
#import "../src/module.typ" : * == Types de données basiques Nous allons représenter les données qu'on voit habituellement en algèbre linéaire et voir comment ceux-ci s'articulent dans le concept de notre langage. Aujourd'hui les réseaux de neurones sont l'outil le plus populaire utilisé jusqu'à présent dans les sc...
https://github.com/MLAkainu/Network-Comuter-Report
https://raw.githubusercontent.com/MLAkainu/Network-Comuter-Report/main/main.typ
typst
Apache License 2.0
#import "metadata.typ": meta #set document(title: meta.title, author: meta.students.values()) #set page( paper: "a4", header: { include "components/header.typ" }, footer: { include "components/footer.typ" }, margin: ( top: 30mm, bottom: 20mm, left: 30mm, right: 20mm, ), ) #set heading(numberin...
https://github.com/qujihan/typst-book-template
https://raw.githubusercontent.com/qujihan/typst-book-template/main/template/parts/figure/pic.typ
typst
#import "../../params.typ": * #let pic-num(_) = { let chapter-num = counter(heading.where(level: 1)).display() let type-num = counter(figure-kind-pic + chapter-num).display() str(chapter-num) + "-" + str(int(type-num) + 1) } #let picIn(path) = block( above: 2em, width: 100%, fill: white, )[ #align(cente...
https://github.com/tfachmann/unveiling-the-dark-arts-of-rotations
https://raw.githubusercontent.com/tfachmann/unveiling-the-dark-arts-of-rotations/main/utils.typ
typst
#let todo(body) = [ #let rblock = block.with(stroke: red, radius: 0.5em, fill: red.lighten(80%)) #let top-left = place.with(top + left, dx: 1em, dy: -0.35em) #block(inset: (top: 0.35em), { rblock(width: 100%, inset: 1em, body) top-left(rblock(fill: white, outset: 0.25em, text(fill: red)[*TODO*])) }) <...
https://github.com/noahjutz/AD
https://raw.githubusercontent.com/noahjutz/AD/main/notizen/sortieralgorithmen/quicksort/recursion_tree.typ
typst
#import "@preview/cetz:0.2.2" #import "/config.typ": theme #set text(font: "Noto Sans Mono") #set table(align: center) #show table.cell: box.with(width: 24pt) #let nums = (34, 45, 12, 34, 23, 18, 38, 17, 43, 7) #let row(nums) = table( align: center, ..nums.map(n => str(n)), fill: if nums.len() == 1 {theme.succ...
https://github.com/VisualFP/docs
https://raw.githubusercontent.com/VisualFP/docs/main/SA/design_concept/content/results/results.typ
typst
#import "../../../style.typ": include_section, part #import "../../../acronyms.typ": * #part("Results & Outlook") = Results <results> This section evaluates the results of the project, including a review of which of the initially stated requirements have been implemented, how the concept and the #ac("PoC") applicati...
https://github.com/mumblingdrunkard/mscs-thesis
https://raw.githubusercontent.com/mumblingdrunkard/mscs-thesis/master/src/utils/utils.typ
typst
#let todo = text.with(fill: red, weight: "black")
https://github.com/jgm/typst-hs
https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/compiler/let-24.typ
typst
Other
// Error: 10-11 destructuring key not found in dictionary #let (a, b) = (a: 1)
https://github.com/TypstApp-team/typst
https://raw.githubusercontent.com/TypstApp-team/typst/master/tests/typ/meta/query-header.typ
typst
Apache License 2.0
// Test creating a header with the query function. --- #set page( paper: "a7", margin: (y: 1cm, x: 0.5cm), header: { smallcaps[Typst Academy] h(1fr) locate(it => { let after = query(selector(heading).after(it), it) let before = query(selector(heading).before(it), it) let elem = if b...
https://github.com/senaalem/ISMIN_reports_template
https://raw.githubusercontent.com/senaalem/ISMIN_reports_template/main/main.typ
typst
#import "template.typ": * #show: rectangle.with( title: "Titre", subtitle: "Sous-titre", authors: ( ( surname: "1", name: "Auteur", affiliation: "Filière 1", year: "Année 1", class: "Classe 1" ), ( surname: "2", name: "Auteur", affiliation: "Filière 2"...
https://github.com/cderv/test-actions
https://raw.githubusercontent.com/cderv/test-actions/main/resources/demo.typ
typst
MIT License
#import "@preview/algo:0.3.3": algo, i, d, comment, code #algo( title: "Fib", parameters: ("n",) )[ if $n < 0$:#i\ // use #i to indent the following lines return null#d\ // use #d to dedent the following lines if $n = 0$ or $n = 1$:#i #comment[you can also]\ return $n$#d #comment[add commen...
https://github.com/OverflowCat/sigfig
https://raw.githubusercontent.com/OverflowCat/sigfig/neko/utils.typ
typst
MIT License
/** Returns the exponent of 10 for the first digit of a given number. */ #let getHighest(x) = calc.floor(calc.log(calc.abs(x))) /** Returns the first significant digit of a given positive number. */ #let getFirstDigit(x) = { assert(x > 0) calc.floor(x / calc.pow(10, getHighest(x))) }
https://github.com/Harry-Chen/kouhu
https://raw.githubusercontent.com/Harry-Chen/kouhu/master/README.md
markdown
MIT License
# kouhu (口胡) `kouhu` (口胡) is a Chinese lipsum text generator for [Typst](https://typst.app). It provides a set of built-in text samples containing both Simplified and Traditional Chinese characters. You can choose from generated fake text, classic or modern Chinese literature, or specify your own text. `kouhu` is ins...
https://github.com/OrangeX4/typst-tablem
https://raw.githubusercontent.com/OrangeX4/typst-tablem/main/tablem.typ
typst
MIT License
// convert a sequence to a array splited by "|" #let _tablem-tokenize(seq) = { let res = () for cont in seq.children { if cont.func() == text { res = res + cont.text .split("|") .map(s => text(s.trim())) .intersperse([|]) .filter(it => it.text != "") } else { res....
https://github.com/1sSay/USPTU_conspects
https://raw.githubusercontent.com/1sSay/USPTU_conspects/main/src/discrete_math/Relations.typ
typst
// Global settings and templates #set text(14pt) #let def(term, color: black) = { box(stroke: color, inset: 7pt, text()[ #term ]) } // Lecture header and date #let lecture_header = text()[Отношения] #let date = text()[27.09.2024] // Header #align(center, heading(level: 1)[Дискретная математика. \ #lecture_header ]) ...
https://github.com/Dherse/masterproef
https://raw.githubusercontent.com/Dherse/masterproef/main/masterproef/ugent-template.typ
typst
#import "../common/colors.typ": * #import "../common/glossary.typ": gloss-init, gloss, glossary #import "../common/info.typ": uinfo, udefinition, uquestion, uimportant, uconclusion, ugood, unote #import "@preview/codly:0.2.1": codly-init, codly, codly-offset, codly-range, disable-codly #let ugent-font = "UGent Panno T...
https://github.com/Myriad-Dreamin/typst.ts
https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/layout/clip_01.typ
typst
Apache License 2.0
#import "/contrib/templates/std-tests/preset.typ": * #show: test-page // Test cliping text #block(width: 5em, height: 2em, clip: false, stroke: 1pt + black)[ But, soft! what light through ] #v(2em) #block(width: 5em, height: 2em, clip: true, stroke: 1pt + black)[ But, soft! what light through yonder window brea...
https://github.com/jgm/typst-hs
https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/layout/stack-1-02.typ
typst
Other
// Test overflow. #set page(width: 50pt, height: 30pt, margin: 0pt) #box(stack( rect(width: 40pt, height: 20pt, fill: green), rect(width: 30pt, height: 13pt, fill: red), ))
https://github.com/eliapasquali/typst-thesis-template
https://raw.githubusercontent.com/eliapasquali/typst-thesis-template/main/chapters/introduction.typ
typst
Other
// Non su primo capitolo //#pagebreak(to:"odd") = Introduzione Introduzione al contesto applicativo. // TODO: aggiungere riferimenti a: // Termine nel glossario // Citazione in linea // Citazione nel pie' di pagina Al momento glossario e citazioni devo ancora capirli. == L'azienda Descrizione dell'azienda. == L'...
https://github.com/NaviHX/bupt-master-dissertation.typ
https://raw.githubusercontent.com/NaviHX/bupt-master-dissertation.typ/main/english-cover.typ
typst
#import "@preview/tablex:0.0.7": gridx, hlinex #let english-cover( roman: "Times New Roman", songti: "Noto Serif CJK SC", heiti: "Noto CJKSans SC", title: [Master/Doctoral Disstertation], dissertation-title, student-id, name, major, supervisor, institute, date, ) = { set page(paper: "a4", margin: (x: 3.17cm, y:...
https://github.com/kaarmu/splash
https://raw.githubusercontent.com/kaarmu/splash/main/src/palettes/kth.typ
typst
MIT License
/* The official color palette for KTH Royal Institute of Technology. * * Source: https://intra.kth.se/en/administration/kommunikation/grafiskprofil/profilfarger-1.845077 * Accessed: 2023-04-22 */ #let kth-rgb = ( blue : rgb(25, 84, 166), pale-blue : rgb(36, 160, 216), pink : rgb(216, 84, ...
https://github.com/19pdh/suplement-sprawnosci
https://raw.githubusercontent.com/19pdh/suplement-sprawnosci/master/style.typ
typst
#let lay(left, right) = grid( columns: 2, gutter: 1cm, left, right ) #let tagi(str) = text(fill: rgb("#2b2"))[#str] #let proba(spr) = lay( image(spr.img, width: 3.5cm), [= #spr.nazwa #spr.tagi #spr.opis ] )
https://github.com/hei-templates/hevs-typsttemplate-thesis
https://raw.githubusercontent.com/hei-templates/hevs-typsttemplate-thesis/main/00-templates/helpers.typ
typst
MIT License
// // Description: Import other modules so you only need to import the helpers // Use : #import "../00-templates/helpers.typ": * // Author : <NAME> // #import "../00-templates/boxes.typ": * #import "../00-templates/constants.typ": * #import "../00-templates/items.typ": * #import "../00-templates/sections.typ...
https://github.com/stat20/stat20handout-typst
https://raw.githubusercontent.com/stat20/stat20handout-typst/main/README.md
markdown
# Stat20handout-typst Format ## Installing ```bash quarto use template stat20/stat20handout-typst ``` This will install the format extension and create an example qmd file that you can use as a starting place for your document. ## Features Beyond some small changes to margins and line spacing, this template adds a...
https://github.com/krestenlaust/AAU-Typst-Template
https://raw.githubusercontent.com/krestenlaust/AAU-Typst-Template/main/README.md
markdown
MIT License
# AAU Typst Template The widely used AAU LaTeX report template, rewritten in Typst. ## Template Overview This project contains the following templates: - `Report template` This is the general template, it contains good examples of how to use Typst for common tasks. - `Report template (empty)` (based on `Report te...
https://github.com/noriHanda/my-resume
https://raw.githubusercontent.com/noriHanda/my-resume/main/main.typ
typst
The Unlicense
#import "modern-resume.typ": modern-resume, workExperience, educationalExperience, project, pill #let data = ( name: "<NAME>", jobTitle: "Mobile App Engineer", bio: "An experienced Flutter developer", // Optional parameter avatarImagePath: "picture.jpeg", // Optional parameter contactOption...
https://github.com/alexanderkoller/typst-blinky
https://raw.githubusercontent.com/alexanderkoller/typst-blinky/main/README.md
markdown
MIT License
# Blinky: Bibliography Linker for Typst This package permits the creation of Typst bibliographies in which paper titles are typeset as hyperlinks. Here's an example (with links typeset in blue): <center> <img src="https://github.com/alexanderkoller/typst-blinky/blob/main/examples/screenshot.png" width="80%" /> </cent...
https://github.com/KiranWells/hackable-typst-resume
https://raw.githubusercontent.com/KiranWells/hackable-typst-resume/main/resume.typ
typst
/* * Typst Resume Template * * Designed as a simple and hackable template for resumes. * It is recommended to change the template to fit your needs. */ // These are used to add the accent color and gradient in the header #let default_accent = color.map.flare.at(37) #let default_gradient = ( ..color.map.flare, ) #let...
https://github.com/lucannez64/Notes
https://raw.githubusercontent.com/lucannez64/Notes/master/Physique_Ex_18_12_2023.typ
typst
#import "template.typ": * // Take a look at the file `template.typ` in the file panel // to customize this template and discover how it works. #show: project.with( title: "Physique Ex 18 12 2023", authors: ( "<NAME>", ), date: "17 Décembre, 2023", ) #set heading(numbering: "1.1.") === Exercice 4 p164 <ex...
https://github.com/LDemetrios/Programnomicon
https://raw.githubusercontent.com/LDemetrios/Programnomicon/main/reinterpret_cast%20and%20java/reinterpret-cast-and-java.typ
typst
#import "/common/java-kotlin-launch.typ": * #set page(height:auto) #show: single-file-sample( "/reinterpret_cast and java/reinterpret-cast-and-java.typ", add-imports: "import sun.misc.Unsafe;\nimport java.lang.reflect.*;", start-marker: "//Start\n", end-marker: "//End\n", ) = #smallcaps[Is it possible to do ...
https://github.com/khawarizmus/hijri-week-calendar-proposal
https://raw.githubusercontent.com/khawarizmus/hijri-week-calendar-proposal/main/main.typ
typst
ISC License
#import "layout.typ": title, subtitle, authors, affiliations, abstract, margins, publishDate, keywords #import "lapreprint.typ": template #show: template.with( title: title, subtitle: subtitle, open-access: true, font-face: "Noto Sans", heading-numbering: "1.1.1", keywords: keywords, theme: green.darken...
https://github.com/Area-53-Robotics/53A-Notebook-Over-Under-2023-2024
https://raw.githubusercontent.com/Area-53-Robotics/53A-Notebook-Over-Under-2023-2024/master/Vex%20Robotics%2053A%20Notebook%202023%20-%202024/Entries/Misc.%20Entry/Digital-Notebook.typ
typst
#set page(header: [ VR #h(1fr) October 23, 2023 ]) = Digital Notebook \ *Switch* \ Today 53A decided to proceed with a digitally formatted notebook. After handwriting the first 144 pages of our notebook, we found that it was a waste of time and team resources. I handwrote our notebook because I was taught...
https://github.com/taooceros/MATH-542-HW
https://raw.githubusercontent.com/taooceros/MATH-542-HW/main/HW5/HW5.typ
typst
#import "@local/homework-template:0.1.0": * // Take a look at the file `template.typ` in the file panel // to customize this template and discover how it works. #show: project.with( title: "Math 542 HW4", authors: ("<NAME>",), ) #let Wedge = $Lambda$ #let wedge = $and$ = Adjugates and Laplace == #let proj = $o...
https://github.com/mangkoran/utm-thesis-typst
https://raw.githubusercontent.com/mangkoran/utm-thesis-typst/main/01_cover.typ
typst
MIT License
#import "utils.typ": empty #let content( title: empty[title], author: empty[author], ) = [ #set align(center) #set page(margin: (x: 3.25cm, y: 5cm)) #upper[#title] #v(1fr) #upper[#author] #v(1fr) #upper[Universiti Teknologi Malaysia] #pagebreak(weak: true) ] #content()
https://github.com/yingziyu-llt/blog
https://raw.githubusercontent.com/yingziyu-llt/blog/main/typst_document/linear_algebra/content/chapter4.typ
typst
#import "../template.typ":* #let ker = $"Ker"$ #let im = $"Im"$ = 本征值,本征向量,不变子空间 我们已经建立了一些工具来描述一个算子的结构,我们下面来学习描述一个算子的其他角度。 == 不变子空间 先假设$V$有一种直和分解$V = U_1 plus.circle U_2 plus.circle dots plus.circle U_n$,如果我们认真的去构造$U_1,U_2,dots,U_n$, 那么我们有可能可以构造出某种分解$forall u in U_i,T(u) = v in U_i$.$U_i$是一个很有趣的子空间。下面来定义这个子空间。 #d...
https://github.com/gekoke/resume
https://raw.githubusercontent.com/gekoke/resume/main/lib.typ
typst
#let resume(author: "", contacts: (), body) = { set document(author: author, title: author) set page(margin: ( top: 1em, left: 3em, right: 3em, bottom: 1em, )) set text(font: "Linux Libertine", lang: "en") show link: underline show heading: heading => [ #pad(bottom: -16pt, [#smallcaps(...
https://github.com/FlandiaYingman/note-me
https://raw.githubusercontent.com/FlandiaYingman/note-me/main/README.md
markdown
MIT License
# GitHub Admonition for Typst > [!NOTE] > Add GitHub style admonitions (also known as alerts) to Typst. ## Usage Import this package, and do ```typ // Import from @preview namespace is suggested // #import "@preview/note-me:0.3.0": * // Import from @local namespace is only for debugging purpose // #import "@local/...
https://github.com/Stautaffly/typ
https://raw.githubusercontent.com/Stautaffly/typ/main/note/note-model.typ
typst
#import "@preview/lemmify:0.1.5": * #import "@preview/lemmify:0.1.5": * #let ( proposition, rules: thm-rules ) = default-theorems("thm-group", lang: "en") /*分别计数*/ #let ( //定理,引理,推论 theorem, lemma,corollary, rules: thm-rules-a ) = default-theorems("thm-group-a",lang:"en",t...
https://github.com/Az-21/typst-components
https://raw.githubusercontent.com/Az-21/typst-components/main/README.md
markdown
Creative Commons Zero v1.0 Universal
# Typst Components 🐦 Reusable, pre-styled components for typst ## Inline Code ### [View source code ↗️](https://github.com/Az-21/typst-components/blob/main/components/code.typ) ```typst #code( "if(success) { return [>=, <=, ===, !=, ***]; }", background: tailwind.violet-300, // Default: #rgb("#d2f0d4") foregro...
https://github.com/RodolpheThienard/typst-template
https://raw.githubusercontent.com/RodolpheThienard/typst-template/main/beamer/beamer.typ
typst
MIT License
#let main_color = rgb("663399") #let transition_color = rgb("663399") #let backgroung_start = none #let beamer_start( title:none, subtitle:none, author:none, date:none) = { page( margin: (top:5%, bottom: 5%, left: 5%, right:5%), background:none, // image(backgroung_start), header: none )[ #alig...
https://github.com/HiiGHoVuTi/requin
https://raw.githubusercontent.com/HiiGHoVuTi/requin/main/graph/konig.typ
typst
#import "../lib.typ": * #show heading: heading_fct Un arbre est dit d'_arborescence finie_ si tous ses noeuds sont de degré fini. === <NAME> _Tout arbre infini d'arborescence finie admet un chemin simple infini commençant à la racine._ #question(2)[Démontrer ce résultat. _Justifier soigneusement_.] #correct[ On ...
https://github.com/julius2718/entempura
https://raw.githubusercontent.com/julius2718/entempura/main/0.0.1/test.typ
typst
MIT License
#import "@local/entempura:0.0.1": * #show: doc => endoc(doc) #signature( title: "Typst English Template", date: today, author: "julius2718", ) = Typst English Template Lorem ipsum dolor sit amet, officia excepteur ex fugiat reprehenderit enim labore culpa sint ad nisi Lorem pariatur mollit ex esse exercitatio...
https://github.com/thornoar/hkust-courses
https://raw.githubusercontent.com/thornoar/hkust-courses/master/MATH1023-Honors-Calculus-I/homeworks/homework-2/main.typ
typst
#import "@local/common:0.0.0": * #import "@local/templates:0.0.0": * #show: math-preamble("Part 2", "Fri, Sep 20") #math-problem("1.1.31 (11)") Find the limit ($n -> oo$) of $(a n^2 + b)^(c/(n+d))$, where $a > 0$.\ #math-solution In the following inequalities the $<=$ sign will mean "less than or equal to, for suffic...
https://github.com/masaori/diffusion-model-quantum-annealing
https://raw.githubusercontent.com/masaori/diffusion-model-quantum-annealing/main/old_note/main.md
markdown
# ゴール - 拡散モデルの数理を流し読みして、量子コンピューティング (量子アニーリング) と関係ありそうだと思った - ので、これの数理的な関連をざっくりと理解したい - 年内いっぱいくらいで「わかった」という気分になりたい - なんでかというと、今から量子コンピューティングの勉強にリソース割いておくかどうかを見定めたい ## 関連しそうな項目 - 拡散モデル - 確率過程 - シミュレーティッドアニーリング - 量子アニーリング - 代数的確率空間 - 量子力学においては、行列(=作用素)のtraceが期待値 - この辺を抽象...
https://github.com/LDemetrios/Typst4k
https://raw.githubusercontent.com/LDemetrios/Typst4k/master/src/test/resources/suite/text/smallcaps.typ
typst
--- smallcaps --- // Test smallcaps. #smallcaps[Smallcaps] --- smallcaps-show-rule --- // There is no dedicated smallcaps font in typst-dev-assets, so we just use some // other font to test this show rule. #show smallcaps: set text(font: "PT Sans") #smallcaps[Smallcaps] #show smallcaps: set text(fill: red) #smallcaps...