repo
stringlengths
26
115
file
stringlengths
54
212
language
stringclasses
2 values
license
stringclasses
16 values
content
stringlengths
19
1.07M
https://github.com/Toniolo-Marco/git-for-dummies
https://raw.githubusercontent.com/Toniolo-Marco/git-for-dummies/main/slides/theory/fork.typ
typst
#import "@preview/touying:0.5.2": * #import themes.university: * #import "@preview/numbly:0.1.0": numbly #import "@preview/fletcher:0.5.1" as fletcher: node, edge #let fletcher-diagram = touying-reducer.with(reduce: fletcher.diagram, cover: fletcher.hide) #import "../components/gh-button.typ": gh_button #import "../c...
https://github.com/kdog3682/2024-typst
https://raw.githubusercontent.com/kdog3682/2024-typst/main/src/style-attrs.typ
typst
let table-attrs = ( align: auto, column-gutter: auto, row-gutter: auto, columns: 2, fill: auto, stroke: ( top: none, left: none, right: none, bottom: none, ), rows: auto, ) let box-attrs = ( inset: 3pt, outset: 0pt, fill: none, radius: 0pt,...
https://github.com/Daillusorisch/HYSeminarAssignment
https://raw.githubusercontent.com/Daillusorisch/HYSeminarAssignment/main/template/components/declaration.typ
typst
#import "../utils/style.typ": * #let declaration( author_signature_path: "", mentor_signature_path: "" ) = { let signature_block() = { let text_block(margin_top, content) = { text( font: 字体.宋体, size: 字号.小四, )[ #v(margin_top) #content ] } align(right...
https://github.com/sicheng1806/typst-book-for-sicheng
https://raw.githubusercontent.com/sicheng1806/typst-book-for-sicheng/main/scr/basic_pkg/note_CN.typ
typst
/* 1. 笔记标题 : 居中 + 黑体 + 18pt 2. 目录 : 3. 章节编号 : 4. 正文: 5. 提供点击标题回到目录的功能 6. 提供添加术语表的函数 term-list */ #import "numbering.typ": notenumbering #let weboutline() = { show outline : set par(leading: 1em) show outline : set text(blue) [#outline(title: text(black,strong[目录]),indent: 1em)] } #let conf( title:[标题], ...
https://github.com/0x6e66/hbrs-typst
https://raw.githubusercontent.com/0x6e66/hbrs-typst/main/template/template.typ
typst
#import "@preview/fontawesome:0.1.0": * #import "../ads/meta.typ": * #import "utils.typ": * #import "titlepage.typ": titlepage #import "declaration.typ": declaration #import "../ads/acronyms.typ": acronyms #import "../ads/abstract.typ": abstract #let thesis(doc) = { set text( font: "New Computer Modern", we...
https://github.com/elinscott/psi-slides-template
https://raw.githubusercontent.com/elinscott/psi-slides-template/main/README.md
markdown
# Typst template for PSI slides Created by <NAME> based on the [university theme](https://touying-typ.github.io/touying/docs/themes/university) For use by PSI researchers only For an example see [slides.pdf](./slides.pdf) ## Installing fonts To install the Arial font in Ubuntu, run ``` sudo apt install ttf-mscore...
https://github.com/TypstApp-team/typst
https://raw.githubusercontent.com/TypstApp-team/typst/master/tests/typ/layout/page-style.typ
typst
Apache License 2.0
// Test setting page styles. --- // Empty with styles // Should result in one conifer-colored A11 page. #set page("a11", flipped: true, fill: conifer) --- // Empty with styles and then pagebreak // Should result in two forest-colored pages. #set page(fill: forest) #pagebreak() --- // Empty with multiple page styles....
https://github.com/maxgraw/bachelor
https://raw.githubusercontent.com/maxgraw/bachelor/main/apps/document/src/4-concept/shop-interface.typ
typst
Im @architecture-chapter der Anwendung wurde bereits das Import/Export-Modul beschrieben. Im folgenden Kapitel wird eine Schnittstelle konzipiert, welche die Verbindung zu einem Shop-System ermöglicht. Hierfür wurde im Rahmen der Bachelorarbeit von <NAME> mit dem Titel "Entwicklung eines Onlineshops mit AR-Integration ...
https://github.com/typst/packages
https://raw.githubusercontent.com/typst/packages/main/packages/preview/embiggen/0.0.1/src/lib.typ
typst
Apache License 2.0
// This is an implementation of some basic LaTeX primitives as Typst functions // See https://github.com/typst/typst/issues/4048 for this package's motivation // Functional exponential growth and decay scale factor calculation #let _embiggen_size_mult = 125% #let _embiggen_inv_size_mult = 80% #let _embiggen_comp_size(...
https://github.com/typst/packages
https://raw.githubusercontent.com/typst/packages/main/packages/preview/unichar/0.1.0/ucd/block-0000.typ
typst
Apache License 2.0
#let data = ( ("<control>", "Cc", 0), ("<control>", "Cc", 0), ("<control>", "Cc", 0), ("<control>", "Cc", 0), ("<control>", "Cc", 0), ("<control>", "Cc", 0), ("<control>", "Cc", 0), ("<control>", "Cc", 0), ("<control>", "Cc", 0), ("<control>", "Cc", 0), ("<control>", "Cc", 0), ("<control>", "Cc"...
https://github.com/HULKs/rust-introduction
https://raw.githubusercontent.com/HULKs/rust-introduction/main/slides/theme.typ
typst
#import "@preview/polylux:0.3.1": * #let slide-footer = state("slide-footer", []) #let slide-cell = block.with( width: 100%, height: 100%, above: 0pt, below: 0pt, breakable: false, ) #let slide-progress-bar = utils.polylux-progress( ratio => { grid( columns: (ratio * 100%, 1fr), slide-cell(fill: ...
https://github.com/zenor0/FZU-report-typst-template
https://raw.githubusercontent.com/zenor0/FZU-report-typst-template/main/fzu-report/utils/figure-and-ref.typ
typst
MIT License
// 原本想改用 i-figure ,但是我发现各种要求挺烦的,最后还是用自己造的轮子了 #import "states.typ": part-state #import "fonts.typ": 字体, 字号 // 用法: // #show figure: show-figure // #show ref: show-ref // #show #let tb-numbering( it, loc: none, baseloc: none, main-body-table-numbering: "1.1", main-body-image-numbering: "1-1", // 其他也会视为 ...
https://github.com/Shuenhoy/modern-zju-thesis
https://raw.githubusercontent.com/Shuenhoy/modern-zju-thesis/master/utils/near-chapter.typ
typst
MIT License
#let near-chapter = context { let headings_after = query(selector(heading.where(level: 1)).after(here())) let headings_before = query(selector(heading.where(level: 1)).before(here())) if headings_after.len() == 0 { return } let heading = headings_after.first() if heading.location().page() > here().pa...
https://github.com/swaits/typst-collection
https://raw.githubusercontent.com/swaits/typst-collection/main/pro-letter/0.1.0/template/main.typ
typst
MIT License
#import "@preview/pro-letter:0.1.0": pro-letter #show: pro-letter.with( sender: ( name: "<NAME>", street: "123 Blueberry Lane", city: "Wonderland", state: "NA", zip: "56789", phone: "+1-555-987-6543", email: "<EMAIL>", ), recipient: ( company: "Fantasy Finance Faucets", atten...
https://github.com/donghoony/KUPC-2023
https://raw.githubusercontent.com/donghoony/KUPC-2023/master/colors.typ
typst
#let AC_BRONZE = rgb("9d4900") #let AC_SILVER = rgb("38546e") #let AC_GOLD = rgb("d28500") #let AC_PLATINUM = rgb("00c78b") #let AC_DIAMOND = rgb("009ee5") #let AC_RUBY = rgb("e0004c") #let KUPC_GREEN = rgb("036b3f") #let PALE_RED = rgb("e74c3c")
https://github.com/duskmoon314/THU_AMA
https://raw.githubusercontent.com/duskmoon314/THU_AMA/main/docs/ch3/2-环的内部结构.typ
typst
Creative Commons Attribution 4.0 International
#import "/book.typ": * #show: thmrules #show: book-page.with(title: "环的内部结构") = 环的内部结构 == 子环、理想与商环 #definition()[ 设$lr((R , + , dot.op))$为环,$nothing eq.not S subset.eq R$,若$S$对于$+$和$dot.op$也构成一个环,则称$S$为$R$的#strong[子环\(subring)]。反之,称$R$为$S$的#strong[扩环]。 ] #property()[ + 平凡子环:${ 0 } , R$ + 子环判则:$nothing eq.n...
https://github.com/MasiarNovine/typst_resume_template
https://raw.githubusercontent.com/MasiarNovine/typst_resume_template/main/README.md
markdown
MIT License
# A resume template in typst This is a template for a resume in typst. It can be simply imported at the start of a `typ` file: ```rust #import "template": * //... ``` Currently, the functions `headerblock()`, `cventry` and `cvitem` are used to compose the resume. For usage and the arguments, see the `example.typ` f...
https://github.com/jimipj/kamk-typst-templates
https://raw.githubusercontent.com/jimipj/kamk-typst-templates/main/project-plan.typ
typst
MIT License
#let project-plan( author: (), course: "Opintojakso", cover: "", date: none, degree: "Tutkinto", keywords: (), monospace: "Monospace", title: none, doc, ) = { set document( author: author, date: date, keywords: keywords, title: title, ) set heading( numbering: "1.1" + sym.sp...
https://github.com/k4zuy/Typst-Template-HTW
https://raw.githubusercontent.com/k4zuy/Typst-Template-HTW/main/common/titlepage.typ
typst
#let titlepage( title: "", titleGerman: "", degree: "", program: "", supervisor: "", advisors: (), author: "", studentNumber: "", startDate: none, submissionDate: none, ) = { set document(title: title, author: author) set page( margin: (left: 25mm, right: 25mm, top: 30mm, bottom: 40mm), ...
https://github.com/tweaselORG/ReportHAR
https://raw.githubusercontent.com/tweaselORG/ReportHAR/main/templates/en/complaint.typ
typst
MIT License
#import "style.typ": tweaselStyle #show: tweaselStyle // Title page #align(center)[ #v(120pt) #block(text(weight: 700, 2.5em, [ {% if type === 'complaint' %} Complaint under the GDPR{% if complaintOptions.nationalEPrivacyLaw %} and {{ complaintOptions.nationalEPrivacyLaw }}{% endif %} {% else %} ...
https://github.com/dainbow/FunctionalAnalysis2
https://raw.githubusercontent.com/dainbow/FunctionalAnalysis2/main/themes/1.typ
typst
#import "../conf.typ": * = Слабая сходимость в банаховом пространстве == Изометричность вложения $E$ в $E^(**)$. Критерий слабой сходимости последовательности. #theorem( "<NAME>, напоминание", )[ Пусть $E$ -- ЛНП. $M subset E$ -- линейное многообразие, $f$ -- линейный ограниченный функционал на $M$. Тогда $exis...
https://github.com/lemonTree42/Typster
https://raw.githubusercontent.com/lemonTree42/Typster/main/README.md
markdown
# Typster A small typing game. ## Deployment https://typster42.herokuapp.com
https://github.com/Lucas-Wye/tech-note
https://raw.githubusercontent.com/Lucas-Wye/tech-note/main/src/java.typ
typst
= Java #label("java") - Java 是由Sun Microsystems公司于1995年5月推出的高级程序设计语言。 Java可运行于多个平台,如Windows, Mac OS,及其他多种UNIX版本的系统。 == Install #label("install") #link("https://www.oracle.com/technetwork/java/javase/downloads/index.html")[JDK] \ #link("https://www.jetbrains.com/idea/")[IntelliJ IDEA] ```sh # 配置环境变量 export JAVA_HOME=/...
https://github.com/polarkac/MTG-Stories
https://raw.githubusercontent.com/polarkac/MTG-Stories/master/stories/049%20-%20The%20Brothers'%20War/009_Chapter%205%3A%20Exodus.typ
typst
#import "@local/mtgstory:0.2.0": conf #show: doc => conf( "Chapter 5: Exodus", set_name: "The Brothers' War", story_date: datetime(day: 26, month: 10, year: 2022), author: "<NAME>", doc ) #align(center)[#emph[Read the roots, tell the tale]] #align(center)[#emph[Future forms in waving weeds]] #ali...
https://github.com/duskmoon314/mdbook-typst-math
https://raw.githubusercontent.com/duskmoon314/mdbook-typst-math/main/example/src/chapter_1.md
markdown
MIT License
# mdbook-typst-math example Here is some simple examples showing how `mdbook-typst-math` renders math blocks with `typst`. --- ```markdown This is an inline example $Q = rho A v + C$ ``` This is an inline example $Q = rho A v + C$ --- ```markdown This is a block example $$ Q = rho A v + C $$ ``` This is a block...
https://github.com/EliasRothfuss/vorlage_typst_doku-master
https://raw.githubusercontent.com/EliasRothfuss/vorlage_typst_doku-master/main/chapter/einleitung.typ
typst
= Einleitung <Einleitung> Folgende Stichworte können zum Aufbau der Einleitung herangezogen werden. - Hinführung, Begründung, Zweck und Ziel der Aufgabenstellung - Erläuterung der Problemstellung - Konkretisierung der zu lösenden Aufgabe - Gegebenenfalls Formulierung einer Leitfrage oder Forschungsfrage - Ausgan...
https://github.com/janlauber/bachelor-thesis
https://raw.githubusercontent.com/janlauber/bachelor-thesis/main/thesis_typ/acknowledgement.typ
typst
Creative Commons Zero v1.0 Universal
#let acknowledgement() = { set page( margin: (left: 25mm, right: 25mm, top: 25mm, bottom: 25mm), numbering: none, number-align: center, ) let body-font = "New Computer Modern" let sans-font = "New Computer Modern Sans" set text( font: body-font, size: 12pt, lang: "en" ) set pa...
https://github.com/flechonn/typst
https://raw.githubusercontent.com/flechonn/typst/main/data/suivi.typ
typst
= Fiche de suivi de projet Groupe 5 == Semaine 1 (29/01) Durant cette séance, nous avons principalement discuté des différentes étapes et nous avons mieux défini le cahier des charges de ce projet. Nous avons également contacté <NAME>, qui est à l’initiative du sujet, pour obtenir des précisions. Finalement, nous ...
https://github.com/typst/packages
https://raw.githubusercontent.com/typst/packages/main/packages/preview/rivet/0.1.0/src/lib.typ
typst
Apache License 2.0
#let version = version(0,1,0) #import "config.typ" #import "schema.typ"
https://github.com/crd2333/template-report
https://raw.githubusercontent.com/crd2333/template-report/master/utils.typ
typst
MIT License
// 导入本地包 #import "fonts.typ":* #import "packages/admonition/0.3.0/lib.typ": * #import "packages/thms/0.2.0/lib.typ": * // 导入 preview 包 // 树、图文包裹、图标、真值表 #import "@preview/syntree:0.2.0": syntree, tree #import "@preview/treet:0.1.1": tree-list #import "@preview/wrap-it:0.1.0": wrap-content, wrap-top-bottom #import "@pre...
https://github.com/v411e/optimal-ovgu-thesis
https://raw.githubusercontent.com/v411e/optimal-ovgu-thesis/main/components.typ
typst
MIT License
#let body-font = "New Computer Modern" #let sans-font = "New Computer Modern Sans" // This numbering function cuts of the first levels of a heading // This is useful if the structure gets too deep // Example with max-level = 3: [1.2.3.4.5.] → [4.5.] #let number-until-with(max-level, schema) = (..numbers) => { // sel...
https://github.com/Nerixyz/icu-typ
https://raw.githubusercontent.com/Nerixyz/icu-typ/main/impl.typ
typst
MIT License
#let plug = plugin("icu-datetime.wasm") /// Creates a dictionary from a datetime or echos a dictionary passed as `dt`. #let datetime-to-dict(dt) = { if type(dt) == datetime { ( year: dt.year(), month: dt.month(), day: dt.day(), hour: dt.hour(), minute: dt.minute(), second: dt...
https://github.com/justmejulian/typst-documentation-template
https://raw.githubusercontent.com/justmejulian/typst-documentation-template/main/theme/abstract.typ
typst
#import "constant.typ": body-font, sans-font #let abstract(body) = { set page( margin: (left: 30mm, right: 30mm, top: 40mm, bottom: 40mm), numbering: none, number-align: center, ) set text( font: body-font, size: 12pt, lang: "en" ) set par( leading: 1em, justify: true ) ...
https://github.com/MLAkainu/Network-Comuter-Report
https://raw.githubusercontent.com/MLAkainu/Network-Comuter-Report/main/contents/02_yeu_cau/index.typ
typst
Apache License 2.0
= Phân tích yêu cầu == Functional requirements Xây dựng một ứng dụng chia sẻ file đơn giản với giao thức được định nghĩa sẵn, sử dụng những giao thức trong TCP/IP stack. === Client Functions #block()[ *Basic functions* #block(inset:(left:1cm))[ *Đăng ký trong kho lưu trữ* #linebreak() - Máy khách có...
https://github.com/jgm/typst-hs
https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/math/frac-03.typ
typst
Other
// Test binomial. $ binom(circle, square) $
https://github.com/liamaxelrod/Resume
https://raw.githubusercontent.com/liamaxelrod/Resume/main/resume%201/resume.typ
typst
#let data = yaml("data.yml") #let template(body) = { set list(indent: 1em) show list: set text(size: 0.92em) show link: underline show link: set underline(offset: 3pt) set page( paper: "us-letter", margin: (x: 0.5in, y: 0.5in) ) set text( size: 11pt, font: "New Computer Modern", ) ...
https://github.com/ist199211-ist199311/continuous-ifc-devops
https://raw.githubusercontent.com/ist199211-ist199311/continuous-ifc-devops/master/presentation.typ
typst
#import "@preview/polylux:0.3.1": * #import "./go-theme.typ": * // compile .pdfpc wth `polylux2pdfpc {fname}.typ` // then present with, e.g., `pdfpc --windowed both {fname}.pdf` // uncomment to get a "submittable" PDF // #enable-handout-mode(true) #let kthblue = rgb("#000060") #show: clean-theme.with( short-title:...
https://github.com/RhenzoHideki/com1
https://raw.githubusercontent.com/RhenzoHideki/com1/main/Relatorio-01/Relatorio-01.typ
typst
#import "../typst-ifsc/templates/article.typ": article #show: doc => article( title: "Laboratorio 01", subtitle: " Sistemas de comunicação I (COM029007)", // Se apenas um autor colocar , no final para indicar que é um array authors:("<NAME>",), date: "17 de março de 2024", doc, ) = Introdu...
https://github.com/Mufanc/hnuslides-typst
https://raw.githubusercontent.com/Mufanc/hnuslides-typst/master/utils/decoration.typ
typst
#import "/utils/background.typ": bg #let image-1 = [ #place( dx: -5%, dy: -11%, left + bottom, image(width: 60%, "/assets/images/decoration-01.png") ) ] #let image-2 = [ #place( dx: 14%, dy: 27.5%, right + bottom, image(width: 70%, "/assets/images/decorati...
https://github.com/typst/packages
https://raw.githubusercontent.com/typst/packages/main/packages/preview/fletcher/0.1.1/src/utils.typ
typst
Apache License 2.0
#import calc: floor, ceil, min, max #import "@preview/cetz:0.1.2": draw, vector #let DEBUG_COLOR = rgb("f008") #let zip(a, ..others) = if others.pos().len() == 0 { a.map(i => (i,)) } else { a.zip(..others) } #let to-abs-length(len, em-size) = { len.abs + len.em*em-size } #let min-max(array) = (calc.min(..array),...
https://github.com/jgm/typst-hs
https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/layout/columns-06.typ
typst
Other
// Test an empty second column. #set page(width: 7.05cm, columns: 2) #rect(width: 100%, inset: 3pt)[So there isn't anything in the second column?]
https://github.com/polarkac/MTG-Stories
https://raw.githubusercontent.com/polarkac/MTG-Stories/master/stories/032%20-%20Ixalan/006_The%20Race%2C%20Part%201.typ
typst
#import "@local/mtgstory:0.2.0": conf #show: doc => conf( "The Race, Part 1", set_name: "Ixalan", story_date: datetime(day: 11, month: 10, year: 2017), author: "<NAME> & <NAME>", doc ) #figure(image("006_The Race, Part 1/01.jpg", width: 100%), caption: [Adanto, the First Fort | Art by Svetlin Velin...
https://github.com/Tiggax/zakljucna_naloga
https://raw.githubusercontent.com/Tiggax/zakljucna_naloga/main/src/sec/5summary.typ
typst
#set heading(offset: 1) #import "/src/additional.typ": todo The model, which employs differential equations solved by the Runge-Kutta method, has proven effective in predicting key parameters such as cell density, nutrient consumption, and product concentration over time. The use of the Nelder-Mead algorithm for param...
https://github.com/Myriad-Dreamin/typst.ts
https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/bugs/bidi-tofus_00.typ
typst
Apache License 2.0
#import "/contrib/templates/std-tests/preset.typ": * #show: test-page #"\u{590}\u{591}\u{592}\u{593}" #"\u{30000}\u{30001}\u{30002}\u{30003}"
https://github.com/7sDream/fonts-and-layout-zhCN
https://raw.githubusercontent.com/7sDream/fonts-and-layout-zhCN/master/template/page.typ
typst
Other
#import "consts.typ" #import "util.typ" #import "theme.typ": theme, code-highlighting #import "components.typ": hr, note #let __current_chapter_title(loc) = { let current_page = loc.page() let next_heading = util.query-first( selector(heading.where(level: 1, outlined: true)), loc, none, ) if next_head...
https://github.com/Myriad-Dreamin/typst.ts
https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/meta/figure_00.typ
typst
Apache License 2.0
#import "/contrib/templates/std-tests/preset.typ": * #show: test-page #set page(width: 150pt) #set figure(numbering: "I") We can clearly see that @fig-cylinder and @tab-complex are relevant in this context. #figure( table(columns: 2)[a][b], caption: [The basic table.], ) <tab-basic> #figure( pad(y: -6pt, ima...
https://github.com/xsro/xsro.github.io
https://raw.githubusercontent.com/xsro/xsro.github.io/zola/typst/nlct/solution/1.1.typ
typst
#import "common.typ":exercise #exercise(code:"1.1")[ A mathematical model that describes a wide variety of physical nonlinear systems is the $n$th-order differential equation $ y^"(n)"=g(t,y,dot(y),dots,y^"(n-1)",u) $ where $u$ and $y$ are scalar variables. With $u$ as input and $y$ as output, find a st...
https://github.com/jneug/typst-tools4typst
https://raw.githubusercontent.com/jneug/typst-tools4typst/main/get.typ
typst
MIT License
#import "is.typ": all-of-type // ================================= // Dictionaries // ================================= /// Create a new dictionary from #args[values]. /// /// All named arguments are stored in the new dictionary as is. /// All positional arguments are grouped in key/value-pairs and /// inserted int...
https://github.com/VisualFP/docs
https://raw.githubusercontent.com/VisualFP/docs/main/SA/design_concept/content/results/results_requirement_validation.typ
typst
#import "@preview/tablex:0.0.5": tablex, cellx #import "../../../acronyms.typ": * = Requirement Validation <requirement_validation> @functional_requirements and @non_functional_requirements defined 9 use cases and 2 #ac("NFR")s. @requirement_validation_table shows which of these requirements were fulfilled during the...
https://github.com/jens-hj/ds-exam-notes
https://raw.githubusercontent.com/jens-hj/ds-exam-notes/main/lectures/13.typ
typst
#import "../lib.typ": * #show link: it => underline(emph(it)) #set math.equation(numbering: "(1)") #set enum(full: true) #set math.mat(delim: "[") #set math.vec(delim: "[") #set list(marker: text(catppuccin.latte.lavender, sym.diamond.filled)) #show heading.where(level: 1): it => text(size: 22pt, it) #show heading.wh...
https://github.com/maxgraw/bachelor
https://raw.githubusercontent.com/maxgraw/bachelor/main/apps/document/src/main.typ
typst
#import "template.typ": * #show: project.with( title: "Konzeption und Entwicklung einer Augmented Reality Konstruktionsumgebung für Möbelsysteme auf Basis von WebXR", type: "Bachelorarbeit", course: "Mensch Technik Interaktion", author: "<NAME>", number: "10012985", date: "28.05.2024", logo: image("./med...
https://github.com/adam-zhang-lcps/papers
https://raw.githubusercontent.com/adam-zhang-lcps/papers/main/toilet-paper-challenge-problem.typ
typst
Creative Commons Attribution Share Alike 4.0 International
#set document( title: "Challenge Problem: Toilet Paper Roll", author: "<NAME>", date: datetime.today(), ) #set page(paper: "us-letter") #set text(font: "New Computer Modern") #set quote(block: true) #show quote: set pad(x: 2em) #align(center)[ #text(size: 24pt)[Challenge Problem: Toilet Paper Roll] ] ...
https://github.com/jgm/typst-hs
https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/compute/calc-22.typ
typst
Other
// Error: 12-14 cannot take square root of negative number #calc.sqrt(-1)
https://github.com/TypstApp-team/typst
https://raw.githubusercontent.com/TypstApp-team/typst/master/tests/typ/layout/list-attach.typ
typst
Apache License 2.0
// Test list attaching. --- // Test basic attached list. Attached to: - the bottom - of the paragraph Next paragraph. --- // Test that attached list isn't affected by block spacing. #show list: set block(above: 100pt) Hello - A World - B --- // Test non-attached list followed by attached list, // separated by only ...
https://github.com/Myriad-Dreamin/shiroa
https://raw.githubusercontent.com/Myriad-Dreamin/shiroa/main/packages/shiroa/template-theme.typ
typst
Apache License 2.0
#import "sys.typ": target #let book-theme-from(preset, xml: xml, target: target) = { // todo: move theme style parser to another lib file let theme-target = if target.contains("-") { target.split("-").at(1) } else { "light" } let theme-style = preset.at(theme-target) let is-dark-theme = theme-sty...
https://github.com/Clamentos/FabRISC
https://raw.githubusercontent.com/Clamentos/FabRISC/main/src/spec/Macros.typ
typst
Creative Commons Attribution Share Alike 4.0 International
/// #import "@preview/tablex:0.0.5": tablex, colspanx, rowspanx /// #let comment(body) = { v(10pt) line(length: 100%, stroke: 0.5pt) emph(body) line(length: 100%, stroke: 0.5pt) v(10pt) } ///.. #let section(title, ..body) = { text(18pt)[#heading(level: 1, title)] v(14pt) for text in...
https://github.com/HEIGVD-Experience/docs
https://raw.githubusercontent.com/HEIGVD-Experience/docs/main/S4/ARO/docs/TE/TE2.typ
typst
#import "/_settings/typst/template-te.typ": * #show: resume.with( "Résumé ARO - TE2", "<NAME>", cols: 2 ) = Pipeline == Découpage des instructions Découpage d’une instruction - *Fetch* : Recherche d’instruction - *Decode* : Décodage instruction & lecture registres opérandes - *Execute* : Exécution de l’opérati...
https://github.com/enseignantePC/2023-24
https://raw.githubusercontent.com/enseignantePC/2023-24/master/Chapitre1/chap1.typ
typst
#import "../chapter_template.typ": * #show : it => chapitre( title: [ Identification des espèces chimiques. ], objectifs: ( [Notions d'entités et d'espèce chimiques.], [Apprendre à identifier des espèces chimiques.], [Corps purs, mélanges.], [Masse volumique et densité.], [Température de changem...
https://github.com/julyfun/fr-art-test
https://raw.githubusercontent.com/julyfun/fr-art-test/main/exam.typ
typst
#import "@preview/ttt-exam:0.1.2": * #set text(size: 12pt, font: ("Rubik"), weight: 300, lang: "fr") #show: exam.with( ..toml("meta.toml").info, logo: image("sjtu.png"), cover: true, // true or false eval-table: false, // true or false appendix: none, // content or none ) = Partie 1: Création artistique ...
https://github.com/liuguangxi/suiji
https://raw.githubusercontent.com/liuguangxi/suiji/main/examples/random-walk.typ
typst
MIT License
#set document(date: none) #import "/src/lib.typ": * #import "@preview/cetz:0.2.2" #set page(width: auto, height: auto, margin: 0.5cm) #cetz.canvas(length: 5pt, { import cetz.draw: * let n = 2000 let (x, y) = (0, 0) let (x-new, y-new) = (0, 0) let rng = gen-rng(42) let v = () for...
https://github.com/AHaliq/CategoryTheoryReport
https://raw.githubusercontent.com/AHaliq/CategoryTheoryReport/main/preamble/lemmas.typ
typst
#import "@preview/lemmify:0.1.6": * #import "@preview/showybox:2.0.1": showybox // Define default theorem environments. #let (theorem, lemma, corollary, remark, proposition, example, proof, definition, rules: thm-rules) = default-theorems( "thm-group", lang: "en", thm-numbering: thm-numbering-heading.with(max-he...
https://github.com/julyfun/fr-art-test
https://raw.githubusercontent.com/julyfun/fr-art-test/main/eval.typ
typst
#import "@preview/ttt-utils:0.1.2": grading, components #import "@preview/ttt-exam:0.1.2": small-grading-table #let get-info(data) = { return data.at("info", default: ( class:"unknown", subject:"unknown", title: "1. Exam", subtitle: "", date: 2024-01-01, authors: "unknown", )) } #let pro...
https://github.com/typst/packages
https://raw.githubusercontent.com/typst/packages/main/packages/preview/unichar/0.1.0/ucd/block-11C00.typ
typst
Apache License 2.0
#let data = ( ("BHAIKSUKI LETTER A", "Lo", 0), ("BHAIKSUKI LETTER AA", "Lo", 0), ("BHAIKSUKI LETTER I", "Lo", 0), ("BHAIKSUKI LETTER II", "Lo", 0), ("BHAIKSUKI LETTER U", "Lo", 0), ("BHAIKSUKI LETTER UU", "Lo", 0), ("BHAIKSUKI LETTER VOCALIC R", "Lo", 0), ("BHAIKSUKI LETTER VOCALIC RR", "Lo", 0), ("BH...
https://github.com/Mc-Zen/quill
https://raw.githubusercontent.com/Mc-Zen/quill/main/tests/layout/relative%20for%20row%2Ccol%20spacing/test.typ
typst
MIT License
#set page(width: auto, height: auto, margin: 0pt) #import "/src/quill.typ": * #quantum-circuit( column-spacing: 1em, row-spacing: 1em, gate($H$), gate($H$), [\ ], gate($H$), 1 ) #pagebreak() #quantum-circuit( min-row-height: 1em, min-column-width: 1em, gate($H$), gate($H$), [\ ], gate($H$), 1 )
https://github.com/polarkac/MTG-Stories
https://raw.githubusercontent.com/polarkac/MTG-Stories/master/stories/002%20-%20Return%20to%20Ravnica/005_In%20Praise%20of%20the%20Worldsoul%2C%20Part%202.typ
typst
#import "@local/mtgstory:0.2.0": conf #show: doc => conf( "In Praise of the Worldsoul, Part 2", set_name: "Return to Ravnica", story_date: datetime(day: 03, month: 10, year: 2012), author: "<NAME>", doc ) Cecilee came to build gardens. Instead, she built walls. At first, the woodshapers made the w...
https://github.com/QuadnucYard/cswc-lecture-report-typst
https://raw.githubusercontent.com/QuadnucYard/cswc-lecture-report-typst/main/main.typ
typst
MIT License
#import "lib.typ": lec-report #show: lec-report.with( stu-id: [61520000], stu-name: [漫游者], time: [2024/04/01], loc: [健雄书院报告厅], speaker: [穹天帝], subject: [现代排版工具\ Typst的使用], ) #text(fill: rgb("#595959"))[参考格式:宋体,5号字,左对齐,单倍行距(或固定值18磅)] 东南大学吴健雄学院是东南大学培养拔尖创新优秀人才的荣誉学院。学院汇聚了全校的高端资源培养优秀人才:以享誉世界的著名物理学家、东南大学杰出校友吴健...
https://github.com/EGmux/TheoryOfComputation
https://raw.githubusercontent.com/EGmux/TheoryOfComputation/master/style.typ
typst
#set text(font: ( "PragmaPro Mono", // "PragmaPro Mono Liga" // "Noto Color Emoji" // "Noto Font Emoji" ))
https://github.com/RaphGL/ElectronicsFromBasics
https://raw.githubusercontent.com/RaphGL/ElectronicsFromBasics/main/DC/chap5/2_simple_series_circuits.typ
typst
Other
#import "../../core/core.typ" // todo: change the tables for a better formatted one === Simple series circuits Let\'s start with a series circuit consisting of three resistors and a single battery: #image("static/00087.png") The first principle to understand about series circuits is that the amount of current is th...
https://github.com/typst/packages
https://raw.githubusercontent.com/typst/packages/main/packages/preview/commute/0.1.0/lib.typ
typst
Apache License 2.0
#let node(pos, label) = (kind: "node", pos: pos, label: label) #let arr(start, end, label, start-space: none, end-space: none, label-pos: 1em, curve: 0deg, stroke: 0.45pt, ..options) = { ( kind: "arrow", start: start, end: end, label: label, start-space: start-space, end-space: end-space, ...
https://github.com/AU-Master-Thesis/thesis
https://raw.githubusercontent.com/AU-Master-Thesis/thesis/main/lib/durationfmt.typ
typst
MIT License
#let durationfmt(d) = { assert(type(d) == duration) let weeks = calc.floor(d.weeks()) let years = calc.div-euclid(weeks, 52) let days = d.days() - 7 * weeks weeks = calc.rem(weeks, 52) let parts = () if years > 0 { if years == 1 { parts.push([1 year]) } else { parts.push([#years y...
https://github.com/f-ttok/polylux-template
https://raw.githubusercontent.com/f-ttok/polylux-template/main/ja-169.typ
typst
MIT License
#import "@preview/polylux:0.3.1": * #set page(paper: "presentation-16-9", margin: (x: 1em, y: 1.2em)) #let fgcolor = rgb("#222") #let bgcolor = rgb("#fff") #show heading: set block(below: 1em) #set text(size: 24pt, font: ("Inter", "Noto Sans JP"), fill: fgcolor, weight: 400) #show math.equation: set text(size: 27pt, ...
https://github.com/kairosiot/software.2024.11-Document_Template
https://raw.githubusercontent.com/kairosiot/software.2024.11-Document_Template/main/example/example.typ
typst
Other
#import "../typst-orange.typ": project, part, chapter, my-bibliography, appendices, make-index, index, theorem, mathcal //#set text(font: "Linux Libertine") //#set text(font: "TeX Gyre Pagella") #set text(font: "Lato") //#show math.equation: set text(font: "Fira Math") #show math.equation: set text(font: "Lato Math") ...
https://github.com/Myriad-Dreamin/typst.ts
https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/math/linebreak_03.typ
typst
Apache License 2.0
#import "/contrib/templates/std-tests/preset.typ": * #show: test-page // A single linebreak at the end still counts as one line. #let hrule(x) = box(line(length: x)) #hrule(60pt)$e^(pi i)+1 = 0\ $
https://github.com/Myriad-Dreamin/typst.ts
https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/math/matrix-gaps_01.typ
typst
Apache License 2.0
#import "/contrib/templates/std-tests/preset.typ": * #show: test-page #set math.mat(gap: 1em) $ mat(1, 2; 3, 4) $
https://github.com/Enter-tainer/typstyle
https://raw.githubusercontent.com/Enter-tainer/typstyle/master/tests/assets/cetz-tree.typ
typst
Apache License 2.0
// CeTZ Library for Layouting Tree-Nodes #import "../util.typ" #import "../draw.typ" #import "../coordinate.typ" #import "../vector.typ" #import "../matrix.typ" #let typst-content = content /// Layout and render tree nodes /// /// - root (array): Tree structure represented by nested lists /// Example:...
https://github.com/Mc-Zen/quill
https://raw.githubusercontent.com/Mc-Zen/quill/main/tests/gates/nwire/test.typ
typst
MIT License
#set page(width: auto, height: auto, margin: 0pt) #import "/src/quill.typ": * #quantum-circuit( 1, nwire(1), nwire($2$), nwire($n$), nwire("p"), nwire($2n+1$), 2, )
https://github.com/Myriad-Dreamin/typst.ts
https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/crates/conversion/vec2bbox/README.md
markdown
Apache License 2.0
# reflexo-vec2bbox Render bounding box of vector items. See [Typst.ts](https://github.com/Myriad-Dreamin/typst.ts)
https://github.com/polarkac/MTG-Stories
https://raw.githubusercontent.com/polarkac/MTG-Stories/master/stories/022_Commander%20(2015%20Edition).typ
typst
#import "@local/mtgset:0.1.0": conf #show: doc => conf("Commander (2015 Edition)", doc) #include "./022 - Commander (2015 Edition)/001_All the Cairns of Jund.typ" #include "./022 - Commander (2015 Edition)/002_Family Values.typ"
https://github.com/Enter-tainer/typstyle
https://raw.githubusercontent.com/Enter-tainer/typstyle/master/tests/assets/unit/math/complex-math.typ
typst
Apache License 2.0
$ Re[epsilon(omega) \/ epsilon.alt_0] =& 1 + 2 / pi cal(P) integral_0^oo (omega' Im[ epsilon(omega') \/ epsilon_0 ]) / (omega'^2 - omega^2) dif omega' \ Im[epsilon(omega) \/ epsilon.alt_0] =& sigma / (epsilon_0 omega) - (2 omega) / pi cal(P) integral_0^oo (omega' Re[ epsilon(omega') \/ epsilon_0 - 1 ]) / ...
https://github.com/Blezz-tech/math-typst
https://raw.githubusercontent.com/Blezz-tech/math-typst/main/lib/my.typ
typst
#import "@preview/showybox:2.0.1": showybox #let task(term) = box[ #showybox( frame: ( border-color: blue.darken(50%), title-color: blue.lighten(60%), body-color: blue.lighten(70%) ), body-style: ( color: black, weight: "regular", align: center ), [#term] ) ]...
https://github.com/shiki-01/typst
https://raw.githubusercontent.com/shiki-01/typst/main/school/syspro/1st_term_1/1_1.typ
typst
#import "../../../lib/conf.typ": conf, come, desc, ce, light #import "@preview/codelst:2.0.1": #import "@preview/pintorita:0.1.1" #import "@preview/fletcher:0.4.3" as fletcher: diagram, node, edge #show raw.where(lang: "pintora"): it => pintorita.render(it.text) #show: doc => conf( title: [情報システム 1学期], date: [2024...
https://github.com/soul667/typst
https://raw.githubusercontent.com/soul667/typst/main/PPT/MATLAB/touying/docs/docs/layout.md
markdown
--- sidebar_position: 3 --- # Layout Your Contents To better manage every detail in the slides and achieve better rendering results, like Beamer, Touying has introduced some unique concepts. This helps you maintain global information better and easily switch between different themes. ## Global Information You can s...
https://github.com/An-314/Notes-of-DSA
https://raw.githubusercontent.com/An-314/Notes-of-DSA/main/list.typ
typst
= 列表List 根据是否修改数据结构,所有操作大致分为两类方式 - 静态: 仅读取,数据结构的内容及组成一般不变:`get`、`search` - 动态: 需写入,数据结构的局部或整体将改变: `put`、`insert`、`remove` 与操作方式相对应地,数据元素的存储与组织方式也分为两种 - 静态:数据空间整体创建或销毁 数据元素的物理次序与其逻辑次序严格一致;可支持高效的静态操作;比如向量,元素的物理地址与其逻辑次序线性对应 - 动态:为各数据元素动态地分配和回收的物理空间 相邻元素记录彼此的物理地址,在逻辑上形成一个整体;可支持高效的动态操作 列表(`list`)是采用动态储存策略的典型结构 ...
https://github.com/protohaven/printed_materials
https://raw.githubusercontent.com/protohaven/printed_materials/main/common-tools/chop_saw_metal.typ
typst
#import "/meta-environments/env-features.typ": * = Metal Chop Saw The metal chop saw is a power tool suited for making cuts through thin stock: square rod, round rod, angle iron, or square tube. The metal chop saw can be very dangerous: make sure you have a good understanding of how to operate this tool, and be ver...
https://github.com/next-generation-cartographers/ngc-code-of-conduct
https://raw.githubusercontent.com/next-generation-cartographers/ngc-code-of-conduct/main/code-of-conduct.typ
typst
#let body-font = "Source Sans Pro" #let display-font = "Space Grotesk" #let gray = luma(150) #let light-gray = luma(240) #set page( margin: (x: 3.5cm, top: 3cm, bottom: 4cm), background: { set text(font: display-font, weight: "black", size: 10em, tracking: .2em, fill: light-gray) set box(stroke: .05em + l...
https://github.com/Isaac-Duan/ousr_typst_templates
https://raw.githubusercontent.com/Isaac-Duan/ousr_typst_templates/main/t1.typ
typst
MIT License
#set text(size:10pt, font: ("simsun"), lang: "zh") #set page("a4", flipped: true, columns: 2) // 设置heading的格式 // 在每一个heading后添加一个不可见的段落(par),这样正文的缩进可以保持2个字符 #show heading: it => { if it.level == 1 { set align(center) set text(font:"Microsoft Yahei UI", size: 30pt) it par(l...
https://github.com/Error-418-SWE/Documenti
https://raw.githubusercontent.com/Error-418-SWE/Documenti/src/2%20-%20RTB/Documentazione%20interna/Verbali/23-12-10/23-12-10.typ
typst
#import "/template.typ": * #show: project.with( date: "10/12/23", subTitle: "Meeting di retrospettiva e pianificazione", docType: "verbale", authors: ( "<NAME>", ), timeStart: "15:00", timeEnd: "16:10", ); = Ordine del giorno - Analisi dei keep doing e degli improvements; - Esposizione avanzamenti ...
https://github.com/polarkac/MTG-Stories
https://raw.githubusercontent.com/polarkac/MTG-Stories/master/stories/026%20-%20Eldritch%20Moon/003_Emrakul%20Rises.typ
typst
#import "@local/mtgstory:0.2.0": conf #show: doc => conf( "<NAME>", set_name: "<NAME>", story_date: datetime(day: 22, month: 06, year: 2016), author: "<NAME>", doc ) #emph[The madness on Innistrad has come to a head. Jace and Tamiyo witnessed Sorin's confrontation with Avacyn, and then they watched...
https://github.com/edvinsyk/quarto-landscape
https://raw.githubusercontent.com/edvinsyk/quarto-landscape/main/README.md
markdown
# Landscape Extension For Quarto > [!IMPORTANT] > This extension has been merged into quarto version 1.6.6. (see. quarto-dev/quarto-cli#10581) and should work out of the box. The 'quarto-landscape' filter enables a landscape div, that switches the pages within the selection to landscape. It implements the same div ...
https://github.com/jgm/typst-hs
https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/layout/enum-numbering-05.typ
typst
Other
// Error: 22-24 invalid numbering pattern #set enum(numbering: "")
https://github.com/YunkaiZhang233/PMT-notes
https://raw.githubusercontent.com/YunkaiZhang233/PMT-notes/main/week1/week1.typ
typst
MIT License
#import "@preview/dvdtyp:1.0.0": * #import "../misc.typ" : * #show: title(1) #show link: set text(blue) #outline() = So Many Contradictions! Many of the problems I found people to be confused with are with *not*, *contradiction*, and *proof by contradiction*. I do admit it to be hard as this is indeed confusing....
https://github.com/vEnhance/1802
https://raw.githubusercontent.com/vEnhance/1802/main/r02.typ
typst
MIT License
#import "@local/evan:1.0.0":* #show: evan.with( title: [Notes for 18.02 Recitation 2], subtitle: [18.02 Recitation MW9], author: "<NAME>", date: [9 September 2024], ) #quote[ You all have a little bit of "I want to save the world" in you, that's why you're here, in college. I want you to know that it's ...
https://github.com/Edubmstr/typst_public
https://raw.githubusercontent.com/Edubmstr/typst_public/main/supercharged-dhbw1/titlepage.typ
typst
#let titlepage( authors, date, heading-font, language, left-logo-height, logo-left, logo-right, many-authors, right-logo-height, supervisor, title, type-of-degree, type-of-degree-specification, type-of-thesis, time-of-thesis, university, university-location, at-university, date-for...
https://github.com/tshu-w/CV
https://raw.githubusercontent.com/tshu-w/CV/main/zh.typ
typst
#import "tmpl.typ": * #let author = "王天舒" #show: body => tmpl( author: author, lang: "zh", body ) = #author #let sep = [ #h(0.5pt) | #h(0.5pt) ] #fa.fa-envelope(solid: true) #link("mailto:<EMAIL>")[<EMAIL>] #sep #fa.fa-github() #link("https://github.com/tshu-w")[github.com/tshu-w] #sep // #fa.fa-phone() (+86...
https://github.com/sitandr/typst-examples-book
https://raw.githubusercontent.com/sitandr/typst-examples-book/main/src/snippets/grids.md
markdown
MIT License
## Fractional grids For tables with lines of changing length, you can try using _grids in grids_. <div class="warning"> Don't use this where <a href="https://typst.app/docs/reference/model/table/#definitions-cell-colspan">cell.colspan and rowspan</a> will do. </div> ```typ // author: jimpjorps #grid( columns: (1...
https://github.com/tilman151/pypst
https://raw.githubusercontent.com/tilman151/pypst/main/docs/usage.md
markdown
MIT License
# Usage Pypst can be used to create Typst documents programmatically. This can be useful for generating reports, slides, or other documents directly in Python to avoid copy-pasting data. A full example can be found in the [examples](https://github.com/tilman151/pypst/docs/examples/document) directory of the repository...
https://github.com/miliog/typst-penreport
https://raw.githubusercontent.com/miliog/typst-penreport/master/typst-penreport/helper/cwe.typ
typst
MIT No Attribution
#let cweXmlData = xml("../static/cwec_v4.12.xml") #let findWeaknessById(id) = { for weakness in cweXmlData.first().children.at(1).children { if ("attrs" in weakness and weakness.attrs.ID == str(id)) { let description = weakness.children.at(1).children.at(0) // A fix for CWE-20 and probably others as ...
https://github.com/dyc3/senior-design
https://raw.githubusercontent.com/dyc3/senior-design/main/expo/expo-abstract.typ
typst
*School of Systems and Enterprises* *Project Name* OpenTogetherTube Load Balancer *Description* OpenTogetherTube (OTT) is an open source web application that allows users to watch videos together in real-time. The nature of the application makes it non-trivial to scale to a large number of users. To solve this, the...
https://github.com/TypstApp-team/typst
https://raw.githubusercontent.com/TypstApp-team/typst/master/tests/typ/bugs/bidi-tofus.typ
typst
Apache License 2.0
// Test that shaping missing characters in both left-to-right and // right-to-left directions does not cause a crash. --- #"\u{590}\u{591}\u{592}\u{593}" #"\u{30000}\u{30001}\u{30002}\u{30003}"
https://github.com/ZaninAndrea/physics-rl
https://raw.githubusercontent.com/ZaninAndrea/physics-rl/main/report/template.typ
typst
#let script-size = 7.97224pt #let footnote-size = 8.50012pt #let small-size = 9.24994pt #let normal-size = 12.0000pt #let large-size = 15pt // This function gets your whole document as its `body` and formats // it as an article in the style of the American Mathematical Society. #let ams-article( // The article's tit...