repo
stringlengths
26
115
file
stringlengths
54
212
language
stringclasses
2 values
license
stringclasses
16 values
content
stringlengths
19
1.07M
https://github.com/TempContainer/typnotes
https://raw.githubusercontent.com/TempContainer/typnotes/main/sample-page.typ
typst
#import "/book.typ": book-page #import "/templates/my-template.typ": * #show: book-page.with(title: "Home") // #show: template = Home 这个网站是博客的一部分, 用来记录数学和物理等带有大量公式的文章. 由于不想用 TeX 的冗杂语法写公式, 但同时 typst 也不支持 HTML 渲染, 只能出此权宜之计: 使用 #link("https://github.com/Myriad-Dreamin/shiroa")[shiroa] 将 typst 的结果导出为 SVG 并渲染为网页. 期待 typs...
https://github.com/jgm/typst-hs
https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/compute/calc-11.typ
typst
Other
// Error: 16-19 divisor must not be zero #calc.rem(3.0, 0.0)
https://github.com/7sDream/fonts-and-layout-zhCN
https://raw.githubusercontent.com/7sDream/fonts-and-layout-zhCN/master/chapters/02-concepts/dimension/adv-position.typ
typst
Other
#import "/template/template.typ": web-page-template #import "/template/components.typ": note #import "/template/lang.typ": arabic #import "/lib/glossary.typ": tr #show: web-page-template // ### Advance and Positioning === #tr[advance]和#tr[position] // *advance*, whether horizontal or vertical, tells you how far to ...
https://github.com/miyaji255/Typst-Utilities
https://raw.githubusercontent.com/miyaji255/Typst-Utilities/main/src/lib.typ
typst
MIT License
#let _era-map = json("./era-map.json").map( era => ( :..era, from: datetime(year: era.from.year, month: era.from.month, day: era.from.day), ), ) #let _get-year-regex = regex("\[year( sign:(kanji|alphabet|upper_alphabet|lower_alphabet))?\]") #let get-era(date, with-nen: true, era-style: "kanji") = { asse...
https://github.com/camp-d/Notes
https://raw.githubusercontent.com/camp-d/Notes/main/ece3520.typ
typst
#set par(justify: true) = ECE 3520 - Digital Computer Design - Dr. Ligon = Formal Grammar - Formal grammar describes how to form valid strings in a language from an alphabet of symbols. = Chapter 4 minic and parsing - Parsing is done recursively via recursive descent. - recusrion can be right recursive or left recur...
https://github.com/Kasci/LiturgicalBooks
https://raw.githubusercontent.com/Kasci/LiturgicalBooks/master/SK/casoslov/utierne/velkaUtierenBezKnaza.typ
typst
#import "../../../style.typ": * #import "/SK/texts.typ": * #import "../styleCasoslov.typ": * = Veľká utiereň <X> #show: rest => columns(2, rest) TODO: zaciatok #lettrine("Pane Ježišu Kriste, Bože náš, pre modlitby našich svätých otcov zmiluj sa nad nami.") #lettrine("Amen.") #lettrine("Sláva na výso...
https://github.com/polarkac/MTG-Stories
https://raw.githubusercontent.com/polarkac/MTG-Stories/master/stories/021%20-%20Battle%20for%20Zendikar/010_Shaping%20an%20Army.typ
typst
#import "@local/mtgstory:0.2.0": conf #show: doc => conf( "Shaping an Army", set_name: "Battle for Zendikar", story_date: datetime(day: 21, month: 10, year: 2015), author: "<NAME>", doc ) #emph[<NAME> was once a lullmage, one of a specialized tradition of wizards who learned, through painstaking pr...
https://github.com/mattyoung101/uqthesis_eecs_hons
https://raw.githubusercontent.com/mattyoung101/uqthesis_eecs_hons/master/uqthesis.typ
typst
ISC License
// Main thesis file. #import "util/macros.typ": * // Page layout #set page( margin: ( left: 30mm, right: 30mm, top: 30mm, bottom: 30mm ) ) // Colour links blue like LaTeX #show cite: set text(fill: blue) #show link: set text(fill: blue) #show ref: set text(fill: blue) #show foot...
https://github.com/typst/packages
https://raw.githubusercontent.com/typst/packages/main/packages/preview/cetz/0.2.0/src/anchor.typ
typst
Apache License 2.0
#import "deps.typ" #import deps.oxifmt: strfmt #import "util.typ" #import "intersection.typ" #import "drawable.typ" #import "path-util.typ" #import "matrix.typ" #import "vector.typ" // Compass direction to angle #let compass-angle = ( east: 0deg, north-east: 45deg, north: 90deg, north-west: 135deg, west: 18...
https://github.com/katamyra/Notes
https://raw.githubusercontent.com/katamyra/Notes/main/Compiled%20School%20Notes/CS2110/Modules/DigitalLogic.typ
typst
#import "../../../template.typ": * = Digital Logic Structures == Sequential Logic === K-Maps #note[ *Karnaugh maps* are an easy way to make a truth table and convert it into a circuit using the least number of gates. ] ==== K-Maps Setup Karnaugh maps are setup using gray code, which means that only one variabl...
https://github.com/rxt1077/it610
https://raw.githubusercontent.com/rxt1077/it610/master/markup/exercises/dev-env.typ
typst
#import "/templates/exercise.typ": exercise, code, admonition #show: doc => exercise( course-name: "Systems Administration", exercise-name: "Creating a Developer Environment", doc, ) == Goals - Create a multi-container development environment using a container orchestration tool == Background Imagine that yo...
https://github.com/Fabian-Heinrich/typst_homework
https://raw.githubusercontent.com/Fabian-Heinrich/typst_homework/main/example.typ
typst
MIT License
#import "homework_template.typ": * #show: doc => conf( title: "Homework Example", subtitle: "Assignment Group 5", authors: ( (name: "Alice", email: "<EMAIL>", student_number: "18859"), (name: "Bob", email: "<EMAIL>", student_number: "45893"), ), language: "en", date_format: "[month]/[day]/[year]", ...
https://github.com/Servostar/dhbw-abb-typst-template
https://raw.githubusercontent.com/Servostar/dhbw-abb-typst-template/main/src/pages/confidentiality-statement.typ
typst
MIT License
// .--------------------------------------------------------------------------. // | Confidentiality Statement | // '--------------------------------------------------------------------------' // Author: <NAME> // Edited: 28.06.2024 // License: MIT #let new_confidentiali...
https://github.com/sicheng1806/pytez
https://raw.githubusercontent.com/sicheng1806/pytez/main/doc/README.typ
typst
== 编程命名约定 + 对象属性命名一般使用小写,命名写全,一般不使用下划线连接单词, 如 `maxlength` + 私有属性前加下划线,如 `_previous` + 类属性和全局变量命名大写,可加下划线, 如 `MAX_NUM` + 方法写简称,加下划线,一般以谓词结构命名,如 `get_ctx,set_ctx` + 与内部其他部分属性相配合的属性都设为私有属性,相应的设立对应的只读属性用于读取使用。如果需要更改,一般使用方法进行更改和读写。 == 参数设置 === 位置的表示方法 用户操作的坐标为相对数据坐标,对应的表示方法: + XY直角坐标系表示 坐标可以使用字典表示, 如`{x:1};{y...
https://github.com/grodino/uni-rennes-typst
https://raw.githubusercontent.com/grodino/uni-rennes-typst/main/lib.typ
typst
MIT License
#import "src/poster.typ": unirennes-poster #import "src/slides.typ": unirennes-slides, title-slide, slide, slide-full, note #import "src/colors.typ" as unirennes-colors
https://github.com/yonatankremer/matrix-utils
https://raw.githubusercontent.com/yonatankremer/matrix-utils/main/src/matrix.typ
typst
MIT License
#import "complex.typ": * //todo - determinant?, adj, inverse, rank?, row-reduce?, diagonal, row operations, is symmtetric/hermitian/unitary/orth... #let _mrows-content(m) = m.rows #let _mtrans(m) = { let i = 0 let j = 0 while i < m.at(0).len() { while j < m.len() { let temp = m.at(j).at(i) m.a...
https://github.com/gongke6642/tuling
https://raw.githubusercontent.com/gongke6642/tuling/main/Math/vec.typ
typst
#set text( size:10pt, ) #set page( paper:"a5", margin:(x:1.8cm,y:1.5cm), ) #set par( justify: true, leading: 0.52em, ) = 列向量 列向量。 矢量元素中的内容可以与&符号对齐。 = 例 #image("63.png") = 参数 #image("64.png") = 分隔符 要使用的分隔符。 #image("65.png") = 间距 元素之间的间距。 默认0.5em = 元素 向量的元素
https://github.com/qujihan/toydb-book
https://raw.githubusercontent.com/qujihan/toydb-book/main/src/chapter4.typ
typst
#import "../typst-book-template/book.typ": * #let path-prefix = figure-root-path + "src/pics/" = SQL引擎 #code( "tree src/sql", "SQL引擎的代码结构", ```zsh src/sql ├── engine │ ├── engine.rs # 定义了SQL引擎的接口. │ ├── local.rs # 本地存储的SQL引擎. │ ├── mod.rs │ ├── raft.rs # 基于Raft的分布式SQL引擎. │ └── session.rs ...
https://github.com/usertam/curriculum-vitae
https://raw.githubusercontent.com/usertam/curriculum-vitae/resume/main.typ
typst
Other
#import "template.typ": * #show: project.with( title: "Résumé", author: ( name: "<NAME>", email: "<EMAIL>", email-alt: "<EMAIL>", bio: "Final Year in Computer Engineering.", ), links: ( ("icons/linkedin.svg", "https://linkedin.com/in/usertam"), ("icons/github.svg", "https://github.com/u...
https://github.com/janlauber/bachelor-thesis
https://raw.githubusercontent.com/janlauber/bachelor-thesis/main/chapters/introduction.typ
typst
Creative Commons Zero v1.0 Universal
= Introduction #set quote(block: true) #quote(attribution: [*<NAME>*, Tweet from Nov 27, 2017])[ Kubernetes is a platform for building platforms. It's a better place to start; not the endgame. ] Deploying and managing open-source software (OSS) has become increasingly complex, especially with the rise of Kubernete...
https://github.com/Enter-tainer/typstyle
https://raw.githubusercontent.com/Enter-tainer/typstyle/master/tests/assets/unit/comment/comment-in-closure.typ
typst
Apache License 2.0
#let conf( title: none, //comments authors: (), abstract: [], lang: "zh", // language doctype: "book", //comments doc // all comments will be deleted by typstyle )={doc}
https://github.com/trondhauklien/typst-resume
https://raw.githubusercontent.com/trondhauklien/typst-resume/main/main.typ
typst
#let userData = json("data.json") #set text(font: "Cambria", size: 12pt) #show heading: set text(font: "Georgia") #box(height: 5cm, columns(2)[ #align(bottom)[ = #userData.name #userData.contact.email | #userData.contact.phone ] #colbreak() #align(end)[ #block( stroke: black, radi...
https://github.com/swaits/typst-collection
https://raw.githubusercontent.com/swaits/typst-collection/main/glossy/0.1.0/src/gloss.typ
typst
MIT License
#import "./themes.typ": * #import "./utils.typ": * #let __gloss_entries = state("__gloss_entries", (:)) #let __gloss_used = state("__gloss_used", (:)) #let __gloss_label_prefix = "__gloss:" // given an array of dictionaries, make sure each has all the keys we'll // reference, using default values if needed #let __no...
https://github.com/Fr4nk1inCs/typreset
https://raw.githubusercontent.com/Fr4nk1inCs/typreset/master/src/utils/question.typ
typst
MIT License
#let question_counter = counter("question") // simple question frame // - heading-counter(bool): whether to show heading counter // - number(auto | str | int): question number, if auto, then it will be auto-incremented // - desc(content): question description #let simple_question( heading-counter: false, number: a...
https://github.com/SeniorMars/tree-sitter-typst
https://raw.githubusercontent.com/SeniorMars/tree-sitter-typst/main/examples/math/style.typ
typst
MIT License
// Test text styling in math. --- // Test italic defaults. $a, A, delta, ϵ, diff, Delta, ϴ$ --- // Test forcing a specific style. $A, italic(A), upright(A), bold(A), bold(upright(A)), \ serif(A), sans(A), cal(A), frak(A), mono(A), bb(A), \ italic(diff), upright(diff), \ bb("hello") + bold(cal("world")), \ mono("S...
https://github.com/PLASTA0728/CV-for-High-School-Student
https://raw.githubusercontent.com/PLASTA0728/CV-for-High-School-Student/main/README.md
markdown
MIT License
# My own CV template in Typst based on [typst-chi-cv-template](https://github.com/matchy233/typst-chi-cv-template) This is my first time trying to change a template in Typst and this helped me in getting familiar with `typst` functionalities. And I think errors or some shortages are inevitable so PRs and questions are...
https://github.com/RodolpheThienard/typst-template
https://raw.githubusercontent.com/RodolpheThienard/typst-template/main/reports/1/template1.typ
typst
MIT License
#let date = datetime( year: 2024, month: 01, day: 29, ) #let template( title: none, subtitle: none, subsubtitle: none, authors: (), supervisors: (), abstract: [], doc, ) = { set page(numbering: "1/1") set text(font: "Linux Libertine", lang: "en", size: 11pt) set heading(numbering: "1.1", out...
https://github.com/xrarch/books
https://raw.githubusercontent.com/xrarch/books/main/xrcomputerbook/main.typ
typst
#import "@preview/hydra:0.2.0": hydra #set page(header: hydra(paper: "iso-b5"), paper: "iso-b5") #set document(title: "XR/computer Platform Handbook") #set text(font: "IBM Plex Mono", size: 9pt) #show math.equation: set text(font: "Fira Math") #show raw: set text(font: "Cascadia Code", size: 9pt) #set heading(numberi...
https://github.com/RaphGL/ElectronicsFromBasics
https://raw.githubusercontent.com/RaphGL/ElectronicsFromBasics/main/DC/chap4/5_hand_calculator_use.typ
typst
Other
#import "../../core/core.typ" === Hand calculator use To enter numbers in scientific notation into a hand calculator, there is usually a button marked \"E\" or \"EE\" used to enter the correct power of ten. For example, to enter the mass of a proton in grams $1.67 times 10^-24 "grams"$) into a hand calculator, I woul...
https://github.com/Enter-tainer/typstyle
https://raw.githubusercontent.com/Enter-tainer/typstyle/master/tests/assets/unit/comment/comment-in-if.typ
typst
Apache License 2.0
#{ if /*(condition)*/ true { } if true /*(condition)*/ { } if // (condition) false { } if true { } // (condition) else { } if true { } else /*(condition)*/ { } }
https://github.com/touying-typ/touying
https://raw.githubusercontent.com/touying-typ/touying/main/themes/stargazer.typ
typst
MIT License
// Stargazer theme. // Authors: Coekjan, QuadnucYard, OrangeX4 // Inspired by https://github.com/Coekjan/touying-buaa and https://github.com/QuadnucYard/touying-theme-seu #import "../src/exports.typ": * #let _typst-builtin-align = align #let _tblock(self: none, title: none, it) = { grid( columns: 1, row-gu...
https://github.com/typst/packages
https://raw.githubusercontent.com/typst/packages/main/packages/preview/scholarly-tauthesis/0.4.1/template/main.typ
typst
Apache License 2.0
/*** main.typ * * The main document to be compiled. Run * * typst compile main.typ * * to perform the compilation. If you are writing a multi-file * project, this file is where you need to include your content * files. * ***/ //// Initialize document type. #import "@preview/scholarly-tauthesis:0.4.1" as ta...
https://github.com/piepert/grape-suite
https://raw.githubusercontent.com/piepert/grape-suite/main/src/exercise.typ
typst
MIT License
#import "colors.typ" as colors: * #import "tasks.typ": * #import "todo.typ": todo, list-todos, todo-state, hide-todos #let standard-box-translations = ( "task": [Task], "hint": [Hint], "solution": [Suggested solution], "definition": [Definition], "notice": [Notice!], "example": [Example], ) #l...
https://github.com/LDemetrios/Conspects-4sem
https://raw.githubusercontent.com/LDemetrios/Conspects-4sem/master/typst/sources/probability.typ
typst
#import "header.typ": * #show: general-style
https://github.com/Kasci/LiturgicalBooks
https://raw.githubusercontent.com/Kasci/LiturgicalBooks/master/SK/zalmy/Z037.typ
typst
Nekarhaj ma, Pane, vo svojom rozhorčení \* a netrestaj ma vo svojom hneve, lebo tvoje šípy utkveli vo mne, \* dopadla na mňa tvoja ruka. Pre tvoje rozhorčenie niet na mojom tele zdravého miesta, \* pre môj hriech nemajú pokoj moje kosti. Hriechy mi prerástli nad hlavu \* a ťažia ma príliš sťa veľké bremeno. Ran...
https://github.com/Riesi/typst_stains
https://raw.githubusercontent.com/Riesi/typst_stains/main/stains.typ
typst
The Unlicense
#let coffee_list = ( "stain_A.svg", "stain_B.svg", "stain_C.svg", "stain_D.svg", ) #let stain_list = ( coffee: coffee_list, ) #let stain( type: "coffee", index: 0, dx: 0em, dy: 0em, scale: 100%, rotation: 0deg, //opacity: 100%, TODO not yet supported in Typst ) = { let stain_pat...
https://github.com/yonatanmgr/summaries-template
https://raw.githubusercontent.com/yonatanmgr/summaries-template/main/template/utils.typ
typst
#let zero_pad(number) = { return ("00"+str(number)).slice(-2) } #let concat_hebrew(arr) = [ #arr.slice(0, -1).join(", ") #if arr.len() > 1 [ו#arr.last()] else [#arr.first()] ] #let graph(style: "school-book", w: 2, h: 2, start: -2, end: 2, y-tick-step: 1, x-tick-step:1, functions: (), v-asymptotes: (), h-asymp...
https://github.com/HiiGHoVuTi/requin
https://raw.githubusercontent.com/HiiGHoVuTi/requin/main/lib.typ
typst
#let show_correct = false #let q_count = counter("questions") #let setup_ex() = { q_count.update(0) } #let levels_emojis = ( "emojis/chick.svg", "emojis/cat.svg", "emojis/octopus.svg", "emojis/shark.svg", "emojis/dragon.svg", "emojis/biohazard.svg", ).map(x => box(image(x))) // ---- headings ---- #le...
https://github.com/japrozs/resume
https://raw.githubusercontent.com/japrozs/resume/master/template.typ
typst
#import "utils.typ" // Load CV Data from YAML //#let info = yaml("cv.typ.yml") // Variables //#let headingfont = "Linux Libertine" // Set font for headings //#let bodyfont = "Linux Libertine" // Set font for body //#let fontsize = 10pt // 10pt, 11pt, 12pt //#let linespacing = 6pt //#let showAddress = true // true/...
https://github.com/darkMatter781x/OverUnderNotebook
https://raw.githubusercontent.com/darkMatter781x/OverUnderNotebook/main/main.typ
typst
#import "/packages.typ": notebookinator, codly #import notebookinator: * #import codly: * #import themes.radial: radial-theme, components #show: notebook.with(theme: radial-theme, cover: align(center)[ #text(size: 24pt, font: "Tele-Marines")[ #v(3em) #text(size: 28pt)[ Code Notebook | 781X ] #...
https://github.com/RiccardoTonioloDev/Bachelor-Thesis
https://raw.githubusercontent.com/RiccardoTonioloDev/Bachelor-Thesis/main/appendix/glossary.typ
typst
Other
#set heading(numbering: none) #import "@preview/glossarium:0.4.1": print-glossary #show figure.caption : set text(font: "EB Garamond",size: 12pt) #pagebreak() = Glossario #print-glossary( ( (key: "MDE", short: "MDE", desc: "Monocular depth estimation, è il campo che si occupa di trovare soluzioni in grado di stim...
https://github.com/m4cey/mace-typst
https://raw.githubusercontent.com/m4cey/mace-typst/main/templates/colors.typ
typst
#let colors(colorscheme: (), doc) = { let colors = colorscheme if colorscheme.len() == 0 { import "./colorschemes/default.typ" as colorscheme colors = colorscheme } set page( fill: colors.background ) set text( fill: colors.foreground ) doc } // TESTS #show: doc => colors(doc) #set text(size: 2em) #let...
https://github.com/TypstApp-team/typst
https://raw.githubusercontent.com/TypstApp-team/typst/master/tests/typ/math/font-features.typ
typst
Apache License 2.0
// Test that setting font features in math.equation has an effect. --- $ nothing $ $ "hi ∅ hey" $ $ sum_(i in NN) 1 + i $ #show math.equation: set text(features: ("cv01",), fallback: false) $ nothing $ $ "hi ∅ hey" $ $ sum_(i in NN) 1 + i $
https://github.com/typst/packages
https://raw.githubusercontent.com/typst/packages/main/packages/preview/cetz/0.1.1/src/lib/angle.typ
typst
Apache License 2.0
#import "../draw.typ" #import "../cmd.typ" #import "../styles.typ" #import "../vector.typ" #import "../util.typ" // Angle default-style #let default-style = ( fill: none, stroke: auto, radius: .5, label-radius: .25, mark: ( start: none, end: none, size: auto, fill: none, stroke: auto, )...
https://github.com/SkytAsul/INSA-Typst-Template
https://raw.githubusercontent.com/SkytAsul/INSA-Typst-Template/main/packages/silky-report-insa/template/main.typ
typst
MIT License
#import "@preview/silky-report-insa:{{VERSION}}": * #show: doc => insa-report( id: 1, pre-title: "DPT XA", title: "Titre du TP", authors: [ *NOM 1 Prénom 1* *NOM 2 Prénom 2* <NAME> <NAME> ], date: "jj/mm/aaaa", doc) Bonjour
https://github.com/k0tran/typst
https://raw.githubusercontent.com/k0tran/typst/sisyphus/vendor/hayagriva/docs/file-format.md
markdown
# The Hayagriva YAML File Format The Hayagriva YAML file format enables you to feed a collection of literature items into Hayagriva. It is built on the [YAML standard](https://en.wikipedia.org/wiki/YAML). This documentation starts with a basic introduction with examples into the format, explains how to represent sever...
https://github.com/OverflowCat/BUAA-Digital-Image-Processing-Sp2024
https://raw.githubusercontent.com/OverflowCat/BUAA-Digital-Image-Processing-Sp2024/master/chap04/3.typ
typst
#import "@preview/unify:0.6.0": qty #import "helper.typ": Q #let a = qty(0.5, "mm") #Q[考虑一幅棋盘图像,其中每一个方格的大小为 #a×#a。假定图像在两个坐标方向上无限扩展,为避免混淆,问最小取样率是多少(样本数/mm)?(教材P192页,第4.12题。)] 记方格边长为 $a = #a $,则其最高频率 $ f_max = 1 / a = #qty(2, "mm^-1"). $ 根据 Nyquist 采样定理,取样率至少应为最高频率的两倍,所以 $ f_upright(s) = 2 f_max = #qty(4...
https://github.com/gongke6642/tuling
https://raw.githubusercontent.com/gongke6642/tuling/main/Text/raw.typ
typst
#set text( size:10pt, ) #set page( paper:"a5", margin:(x:1.8cm,y:1.5cm), ) #set par( justify: true, leading: 0.52em, ) = 原始文本 带有可选语法高亮的原始文本。 使用等宽字体逐字显示文本,通常用于将代码嵌入文档中。 = 例 #image("11.png") = 语法 此函数还具有专用语法。您可以将文本括在 1 或 3+ 反引号 () 中以使其原始。两个反引号将生成空的原始文本。当您使用三个或更多反引号时,还可以指定一个语言标记,以便在开始反引号之后直接突出显示语法。在原始块中,所有内容(...
https://github.com/tweaselORG/ReportHAR
https://raw.githubusercontent.com/tweaselORG/ReportHAR/main/README.md
markdown
MIT License
# ReportHAR > Generate technical reports, controller notices and GDPR complaints concerning tracking by mobile apps for the tweasel project. ReportHAR is the library for generating the following documents for the tweasel project based on network traffic recordings in HAR files: * **Technical reports** detailing the ...
https://github.com/jomaway/typst-gentle-clues
https://raw.githubusercontent.com/jomaway/typst-gentle-clues/main/lib/predefined.typ
typst
MIT License
#import "@preview/linguify:0.4.0": * #import "clues.typ": clue, if-auto-then #import "theme.typ": catppuccin as theme // load linguify language database #let lang_database = toml("lang.toml") /// Helper for fetching the translated title #let get-title-for(id) = { assert.eq(type(id),str); return linguify(id, from:...
https://github.com/typst/packages
https://raw.githubusercontent.com/typst/packages/main/packages/preview/cetz/0.0.2/manual.typ
typst
Apache License 2.0
#import "lib.typ" #import "styles.typ" #import lib: * #import "deps/typst-doc/typst-doc.typ": parse-module, show-module // This is a wrapper around typs-doc show-module that // strips all but one function from the module first. // As soon as typst-doc supports examples, this is no longer // needed. #let show-module-fn...
https://github.com/tingerrr/chiral-thesis-fhe
https://raw.githubusercontent.com/tingerrr/chiral-thesis-fhe/main/src/core/component/acknowledgement.typ
typst
#let make-acknowledgement( body: lorem(100), ) = { heading(level: 1)[Danksagung] body }
https://github.com/Woodman3/modern-ysu-thesis
https://raw.githubusercontent.com/Woodman3/modern-ysu-thesis/main/pages/bachelor-decl-page.typ
typst
MIT License
#import "../utils/indent.typ": indent #import "../utils/style.typ": 字号, 字体 // 本科生声明页 #let bachelor-decl-page( anonymous: false, twoside: false, fonts: (:), info: (:), ) = { // 0. 如果需要匿名则短路返回 if anonymous { return } // 1. 默认参数 fonts = 字体 + fonts info = ( title: ("基于 Typst 的", "南京大学学位论文"), ...
https://github.com/Myriad-Dreamin/typst.ts
https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/text/emoji_00.typ
typst
Apache License 2.0
#import "/contrib/templates/std-tests/preset.typ": * #show: test-page // This should form a three-member family. 👩‍👩‍👦 // This should form a pride flag. 🏳️‍🌈 // Skin tone modifier should be applied. 👍🏿 // This should be a 1 in a box. 1️⃣
https://github.com/crd2333/Astro_typst_notebook
https://raw.githubusercontent.com/crd2333/Astro_typst_notebook/main/src/docs/note.typ
typst
#set page(margin: 1em, height: auto) #show link: it => text(fill: blue)[#it] #import "@preview/cheq:0.1.0": checklist Home page of notebook. $arrow.t$ 点击上面的 here 查看更多例子 一个基于 #link("https://github.com/OverflowCat/astro-typst/tree/master")[astro-typst] 的网页笔记本,支持 md 和 typ 两种格式 #show: checklist.with(fill: luma(95%), st...
https://github.com/HiiGHoVuTi/requin
https://raw.githubusercontent.com/HiiGHoVuTi/requin/main/graph/croissant.typ
typst
#import "../lib.typ": * #show heading: heading_fct #import "@preview/gloss-awe:0.0.5": gls #show figure.where(kind: "jkrb_glossary"): it => {it.body} #import "@preview/syntree:0.2.0": tree _Ce sujet est adapté de l'épreuve d'informatique A 2014._ #correct[ Dans ce sujet, il faut faire _très attention_ à la rigueu...
https://github.com/dariasc/notebook
https://raw.githubusercontent.com/dariasc/notebook/master/template.typ
typst
#let project(body) = { set document(title: "Notebook") set page( paper: "a4", flipped: true, margin: ( left: 0.75cm, right: 0.75cm, bottom: 0.75cm, top: 1.25cm ), header-ascent: 40%, header: locate(loc => { let headings = query( selector(heading.where(level: 2)).after(loc), ...
https://github.com/mrknorman/evolving_attention_thesis
https://raw.githubusercontent.com/mrknorman/evolving_attention_thesis/main/02_gravitation/02_gravitational_waves.typ
typst
#set page(numbering: "1", number-align: center) #set math.equation(numbering: it => {[2.#it]}) #counter(math.equation).update(0) // #set math.mat(delim: "[") #import "../notation.typ": vectorn, uvectorn, dvectorn, udvectorn, matrixn = Gravitational Waves <gravitational-waves-sec> Since time immemorial, humanity has...
https://github.com/EpicEricEE/typst-quick-maths
https://raw.githubusercontent.com/EpicEricEE/typst-quick-maths/master/README.md
markdown
MIT License
# quick-maths A package for creating custom shorthands for math equations. ## Usage The package comes with a single template function `shorthands` that takes one or more tuples of the form `(shorthand, replacement)`, where `shorthand` can be a string or content. ```typ #import "@preview/quick-maths:0.1.0": shorthands...
https://github.com/hei-templates/hevs-typsttemplate-thesis
https://raw.githubusercontent.com/hei-templates/hevs-typsttemplate-thesis/main/00-templates/sections.typ
typst
MIT License
// // Description: Some recurrent section elements mainly for exams // Author : <NAME> // #import "constants.typ": * #import "boxes.typ": * #import "tablex.typ": * #let part( title: [], number: 1, size: huge, ) = { pagebreak() v(1fr) align(center, smallcaps(text(size, [Part #number]))) v(2em) align...
https://github.com/magicwenli/keyle
https://raw.githubusercontent.com/magicwenli/keyle/main/CHANGELOG.md
markdown
MIT License
## Unreleased ### Feat - suit project to commentizen ## 0.2.0 (2024-08-19) ### Fix - theme type-writer overlaps; add test cases ## 0.1.2 (2024-08-13) ### Feat - support shadow for themes and modify example ## 0.1.1 (2024-08-09) ### Feat - format keyle.typ and bump to 0.1.1 - add example for theme - add `conf...
https://github.com/jneug/schule-typst
https://raw.githubusercontent.com/jneug/schule-typst/main/src/schule.typ
typst
MIT License
#import "ab.typ" #import "kl.typ" #import "ka.typ" #import "pt.typ" #import "cu.typ" #import "wp.typ" #import "lt.typ"
https://github.com/typst/packages
https://raw.githubusercontent.com/typst/packages/main/packages/preview/tuhi-course-poster-vuw/0.1.0/tuhi-course-poster-vuw.typ
typst
Apache License 2.0
#import "@preview/codetastic:0.1.0": qrcode #let scaps(body, tracking: 1pt, weight: "regular") = { set text(tracking: tracking, weight: weight) smallcaps[#lower[#body]] } #let caps(body, tracking: 0pt, weight: "semibold") = { set text(tracking: tracking, weight: weight) smallcaps[#lower[#body]] } #let tuhi-c...
https://github.com/mrcinv/nummat-typst
https://raw.githubusercontent.com/mrcinv/nummat-typst/master/07_page_rank.typ
typst
= Invariantna porazdelitev Markovske verige == Naloga - Implementiraj potenčno metodo za iskanje največje lastne vrednosti. - Uporabi potenčno metodo in poišči invariantno porazdelitev Markovske verige z dano prehodno matriko $P$. Poišči invariantne porazdelitve za naslednja primera: - veriga, ki opisuje skakan...
https://github.com/Seasawher/typst-cv-template
https://raw.githubusercontent.com/Seasawher/typst-cv-template/main/resume.typ
typst
#show link: underline #set page( margin: (x: 0.9cm, y: 1.3cm), ) #set par(justify: true) #let chiline() = {v(-3pt); line(length: 100%); v(-5pt)} = 履歴書 2023年5月 現在 #grid( columns: (3fr, 1fr), align(center)[ #table( columns: (1fr, 3fr), inset: 10pt, align: horizon, [氏名],[], ...
https://github.com/hei-templates/hevs-typsttemplate-thesis
https://raw.githubusercontent.com/hei-templates/hevs-typsttemplate-thesis/main/02-main/05-implementation.typ
typst
MIT License
#import "../00-templates/helpers.typ": * #pagebreak() = Implementation <sec:impl> #lorem(50) #minitoc(after:<sec:impl>, before:<sec:validation>) #pagebreak() == Section 1 #lorem(50) == Section 2 #lorem(50) == Conclusion #lorem(50)
https://github.com/sysu/better-thesis
https://raw.githubusercontent.com/sysu/better-thesis/main/specifications/bachelor/acknowledgement.typ
typst
MIT License
// 利用 state 捕获摘要参数,并通过 context 传递给渲染函数 #import "/utils/style.typ": 字号, 字体 #import "/utils/indent.typ": fake-par // 致谢内容 #let acknowledgement-content = state("acknowledgement", [ 致谢应以简短的文字对课题研究与论文撰写过程中曾直接给予帮助的人员(例如指导教师、答疑教师 及其他人员)表达自己的谢意,这不仅是一种礼貌,也是对他人劳动的尊重,是治学者应当遵循的学 术规范。内容限一页。 ]) #let acknowledgement( body ) = { ...
https://github.com/jrihon/multi-bibs
https://raw.githubusercontent.com/jrihon/multi-bibs/main/chapters/01_chapter/introduction.typ
typst
MIT License
#import "../../lib/multi-bib.typ": * #import "bib_01_chapter.typ": biblio == Introduction #lorem(50) We follow the nomenclature of IUPAC #mcite(("Iupac1983nucleicacids"), biblio)
https://github.com/typst/packages
https://raw.githubusercontent.com/typst/packages/main/packages/preview/unichar/0.1.0/ucd/block-105C0.typ
typst
Apache License 2.0
#let data = ( ("TODHRI LETTER A", "Lo", 0), ("TODHRI LETTER AS", "Lo", 0), ("TODHRI LETTER BA", "Lo", 0), ("TODHRI LETTER MBA", "Lo", 0), ("TODHRI LETTER CA", "Lo", 0), ("TODHRI LETTER CHA", "Lo", 0), ("TODHRI LETTER DA", "Lo", 0), ("TODHRI LETTER NDA", "Lo", 0), ("TODHRI LETTER DHA", "Lo", 0), ("TO...
https://github.com/mismorgano/UG-DifferentialGeometry23
https://raw.githubusercontent.com/mismorgano/UG-DifferentialGeometry23/main/Examenes/PrimerExamen-ABR.typ
typst
#set text(font: "New Computer Modern Math") == Problema 1 Sea $gamma : I -> RR^3 without {0}$ una curva regular tal que $gamma''(t) != 0$ para todo $t in I$ ($I subset RR $ es un intervalo). Supongamos que para todo $t in I$ existe una constante $lambda(t)$ tal que $gamma(t) + lambda(t)n(t) = bold(0) in RR^3$. Pribar...
https://github.com/chomosuke/PMC-notes
https://raw.githubusercontent.com/chomosuke/PMC-notes/master/notes.typ
typst
#set page(numbering: "1") = Introduction == Background and Motivation - Parallel computing is a part of HPC. - HPC also includes everything else that makes the computation fast. - No point parallelizing without increasing performance. - You might want to optimize for the architecture. - Sometimes overh...
https://github.com/drupol/master-thesis
https://raw.githubusercontent.com/drupol/master-thesis/main/resources/typst/essawy.typ
typst
Other
#{ set text( font: "<NAME>", size: .9em, ) box[ #grid( columns: 1, rows: 4, gutter: 0pt, polygon( fill: blue.lighten(80%), stroke: blue, (0pt, 3.5cm), (70pt, 0cm), (140pt, 3.5cm), ), polygon( fill: blue.lighten(80%), ...
https://github.com/parallel101/cppguidebook
https://raw.githubusercontent.com/parallel101/cppguidebook/main/misc/typst/cppguidebook.typ
typst
Other
#set text( font: "Noto Serif CJK SC", size: 7pt, ) #set page( paper: "a6", margin: (x: 1.8cm, y: 1.5cm), header: align(right, text(5pt)[ 小彭大典 ]), numbering: "1", ) #set par(justify: true) #set heading(numbering: "1.") #show "小彭大典": name => box[ #text(font: "Arial")[✝️]小彭大典#text(font: "Arial")[✝️] ...
https://github.com/jassielof/typst-templates
https://raw.githubusercontent.com/jassielof/typst-templates/main/apa7/template/sections/introduction.typ
typst
MIT License
// Implicit introduction heading level 1 #lorem(100) #lorem(100) == Subsection #lorem(100) === Subsubsection #lorem(100) ==== Paragraph #lorem(100) ===== Subparagraph #lorem(100)
https://github.com/frectonz/the-pg-book
https://raw.githubusercontent.com/frectonz/the-pg-book/main/book/202.%20newideas.html.typ
typst
newideas.html Crazy New Ideas May 2021There's one kind of opinion I'd be very afraid to express publicly. If someone I knew to be both a domain expert and a reasonable person proposed an idea that sounded preposterous, I'd be very reluctant to say "That will never work."Anyone who has studied the history of ideas, and...
https://github.com/LDemetrios/Typst4k
https://raw.githubusercontent.com/LDemetrios/Typst4k/master/src/test/resources/suite/layout/inline/hyphenate.typ
typst
// Test hyphenation. --- hyphenate --- // Test hyphenating english and greek. #set text(hyphenate: true) #set page(width: auto) #grid( columns: (50pt, 50pt), [Warm welcomes to Typst.], text(lang: "el")[διαμερίσματα. \ λατρευτός], ) --- hyphenate-off-temporarily --- // Test disabling hyphenation for short passag...
https://github.com/Anastasia-Labs/project-close-out-reports
https://raw.githubusercontent.com/Anastasia-Labs/project-close-out-reports/main/f10-design-patterns-closeout-report/design-patterns-close-out-report.typ
typst
#let image-background = image("images/Background-Carbon-Anastasia-Labs-01.jpg", height: 100%) #set page( background: image-background, paper: "a4", margin: (left: 20mm, right: 20mm, top: 40mm, bottom: 30mm) ) #set text(15pt, font: "Barlow") #v(3cm) #align(center)[#box(width: 75%, image("images/Logo-Anastasia-L...
https://github.com/Mouwrice/thesis-typst
https://raw.githubusercontent.com/Mouwrice/thesis-typst/main/introduction.typ
typst
#import "lib.typ": * = Introduction This introductory chapter provides the necessary context for this master's dissertation. It starts by presenting the concept of body pose estimation and motion capture. Next is an introduction to the demo application that will be developed as part of this project and the motivatio...
https://github.com/RiccardoTonioloDev/Bachelor-Thesis
https://raw.githubusercontent.com/RiccardoTonioloDev/Bachelor-Thesis/main/chapters/results.typ
typst
Other
#pagebreak(to: "odd") #import "../config/functions.typ": * = Risultati <ch:risultati> Nel seguente capitolo si farà un breve riepilogo sui risultati quantitativi ottenuti usando le metriche di valutazione usate in @eigen e le due metriche in più introdotte nella valutazione dei modelli PyXiNet, soffermandosi ad analiz...
https://github.com/teamdailypractice/pdf-tools
https://raw.githubusercontent.com/teamdailypractice/pdf-tools/main/typst-pdf/readme.md
markdown
# typst - how to generate pdf * <https://typst.app/docs/tutorial/writing-in-typst/> * filename - `filename.typ` ## Installations * typst compiler * vs code extension - **typst LSP** ## How to use? ```bash # Creates `file.pdf` in working directory. typst compile file.typ # Creates PDF file at the desired path. SET...
https://github.com/tfachada/thesist
https://raw.githubusercontent.com/tfachada/thesist/main/template/Chapters/Appendix-A.typ
typst
MIT License
#import "@preview/thesist:0.2.0": flex-caption, subfigure-grid #import "@preview/glossarium:0.5.0": gls, glspl = An appendix #lorem(500)
https://github.com/Myriad-Dreamin/typst.ts
https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/layout/par-bidi_01.typ
typst
Apache License 2.0
#import "/contrib/templates/std-tests/preset.typ": * #show: test-page // Test that consecutive, embedded LTR runs stay LTR. // Here, we have two runs: "A" and italic "B". #let content = par[أنت A#emph[B]مطرC] #set text(font: ("PT Sans", "Noto Sans Arabic")) #text(lang: "ar", content) #text(lang: "de", content)
https://github.com/typst-jp/typst-jp.github.io
https://raw.githubusercontent.com/typst-jp/typst-jp.github.io/main/docs/tutorial/welcome.md
markdown
Apache License 2.0
--- description: Typst チュートリアル --- # チュートリアル Typstのチュートリアルへようこそ!このチュートリアルでは、Typstを使って文書を書き、書式を整える方法を学びます。 まずは日常的な作業から始め、徐々に高度な機能を導入していきます。 このチュートリアルではTypstや他のマークアップ言語、プログラミングに対する予備知識は前提としていません。ただし、テキストファイルの編集方法はすでにご存知であることを前提とします。 最も良い始め方は、Typst appに無料で登録し、下記の各章を順番に見ていくことです。 Typst appはリアルタイムプレビュー、シンタックスハイライト、強力なオートコン...
https://github.com/max-niederman/MATH51
https://raw.githubusercontent.com/max-niederman/MATH51/main/midterm_6-a_justification.typ
typst
#import "lib.typ": * #set page(numbering: "1/1") #let note(content) = text( style: "italic", weight: "bold", size: 0.9em, content ) Suppose there is a function $f : RR^2 -> RR$ such that $ f_x = e^x^2 sin y #h(0.25in) "and" #h(0.25in) f_y = e^x^2 cos y $ Then, because $f$ is a scalar field, we can ...
https://github.com/Lelidle/Q12-cs-scripts
https://raw.githubusercontent.com/Lelidle/Q12-cs-scripts/main/complexity.typ
typst
#import "template.typ": * #import "@preview/truthfy:0.2.0": generate-table, generate-empty #import "@preview/tablex:0.0.6": tablex, cellx, rowspanx, colspanx #import "@preview/codelst:2.0.0": sourcecode #show: setup #set heading ( numbering: "1." ) #let sc = sourcecode.with( numbers-style: (lno) => text( ...
https://github.com/Myriad-Dreamin/typst.ts
https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/text/numbers_06.typ
typst
Apache License 2.0
#import "/contrib/templates/std-tests/preset.typ": * #show: test-page // Test the `repr` function with floats. #repr(12.0) \ #repr(3.14) \ #repr(1234567890.0) \ #repr(0123456789.0) \ #repr(0.0) \ #repr(-0.0) \ #repr(-1.0) \ #repr(-9876543210.0) \ #repr(-0987654321.0) \ #repr(-3.14) \ #repr(4.0 - 8.0)
https://github.com/ivaquero/scibook
https://raw.githubusercontent.com/ivaquero/scibook/main/README.md
markdown
# SciBook A simple book template for scientific books and manuals. ## Usage ### Clone Official Repository To compile, please refer to the guide on [typst-packages](https://github.com/typst/packages) and clone this repository in the following path: - Linux: - `$XDG_DATA_HOME/typst` - `~/.local/share/typst` - ma...
https://github.com/jbirnick/typst-rich-counters
https://raw.githubusercontent.com/jbirnick/typst-rich-counters/main/README.md
markdown
MIT License
> [!NOTE] > This is a [Typst](https://typst.app/) package. Click [here](https://typst.app/universe/package/rich-counters/) to find it in the Typst Universe. # `rich-counters` This package allows you to have **counters which can inherit from other counters**. Concretely, it implements `rich-counter`, which is a count...
https://github.com/typst/packages
https://raw.githubusercontent.com/typst/packages/main/packages/preview/cetz-plot/0.1.0/src/plot/annotation.typ
typst
Apache License 2.0
#import "/src/cetz.typ" #import cetz: draw, process, util, matrix #import "util.typ" #import "sample.typ" /// Add an annotation to the plot /// /// An annotation is a sub-canvas that uses the plots coordinates specified /// by its x and y axis. /// /// #example(``` /// plot.plot(size: (2,2), x-tick-step: none, y-tick-...
https://github.com/sitandr/typst-examples-book
https://raw.githubusercontent.com/sitandr/typst-examples-book/main/src/basics/must_know/tables.md
markdown
MIT License
# Tables and grids While tables are not that necessary to know if you don't plan to use them in your documents, grids may be very useful for _document layout_. We will use both of them them in the book later. Let's not bother with copying examples from official documentation. Just make sure to skim through it, okay? ...
https://github.com/typst/templates
https://raw.githubusercontent.com/typst/templates/main/badformer/README.md
markdown
MIT No Attribution
# badformer Reach the goal in this retro-inspired wireframing platformer. Play in 3 dimensions and compete for the lowest number of steps to win! This small game is playable in the Typst editor and best enjoyed with the web app or `typst watch`. It was first released for the 24 Days to Christmas campaign in winter of ...
https://github.com/andymeneely/examify.typst
https://raw.githubusercontent.com/andymeneely/examify.typst/master/examples/full/questions/lorem_ipsum.typ
typst
MIT License
#import "@local/exam:0.1.0": * #question[ #points(10) #lorem(15) + Incorrect + Incorrect + #correct[Correct] ]
https://github.com/yongweiy/cv
https://raw.githubusercontent.com/yongweiy/cv/master/publications.typ
typst
// Imports #import "@preview/brilliant-cv:2.0.2": cvSection, cvPublication #let metadata = toml("./metadata.toml") #let cvSection = cvSection.with(metadata: metadata, highlighted: false) #cvSection("Publications") #cvPublication( bib: bibliography("./src/publications.bib"), refStyle: "association-for-computi...
https://github.com/maucejo/book_template
https://raw.githubusercontent.com/maucejo/book_template/main/template/chapters/conclusion.typ
typst
MIT License
#import "../../src/book.typ": * #chapter("Conclusion et perspectives", toc: false, numbered: false)[ #lorem(100) ]
https://github.com/RandomcodeDev/FalseKing-Design
https://raw.githubusercontent.com/RandomcodeDev/FalseKing-Design/main/game/audio.typ
typst
= Audio == Music There will be three types of track for each region: exploration music, combat music, and boss music. There might be a few varieties of each, and they'll be cycled between. This system isn't too dissimilar to how Faster Than Light handles music. == Sound effects There will be sounds for different atta...
https://github.com/soul667/typst
https://raw.githubusercontent.com/soul667/typst/main/PPT/typst-slides-fudan/themes/polylux/book/src/themes/gallery/bipartite.md
markdown
# Bipartite theme ![bipartite](bipartite.png) This theme is inspired by [Modern Annual Report](https://slidesgo.com/theme/modern-annual-report). and a bit more opinionated. It features a dominant partition of space into a bright and a dark side and is rather on the "artsy" than functional side. Use it via ```typ #im...
https://github.com/mcanouil/generate-quarto-invoices
https://raw.githubusercontent.com/mcanouil/generate-quarto-invoices/main/_extensions/mcanouil/invoice/typst-template.typ
typst
MIT License
#let parse-date(date) = { let date = date.replace("\\", "") let date = str(date).split("-").map(int) datetime(year: date.at(0), month: date.at(1), day: date.at(2)) } #let format-date(date) = { let day = date.day() let ord = super(if 10 < day and day < 20 { "th" } else if calc.rem(day, 10) == 1 { "s...
https://github.com/bchaber/typst-template
https://raw.githubusercontent.com/bchaber/typst-template/main/documents/ncn.typ
typst
#let ncn( title: none, bibliography-file: none, body ) = { set text(font: "Times New Roman", size: 11pt) set par(justify: true, leading: 13pt) set page(margin: (x: 2cm, y: 1.5cm)) if title != none { v(3pt, weak: true) align(center, text(18pt, title)) v(8.35mm, weak: true) } body if bi...
https://github.com/protohaven/printed_materials
https://raw.githubusercontent.com/protohaven/printed_materials/main/common-tools/mig_welder.typ
typst
#import "../environment/env-protohaven-class_handouts.typ": * = MIG Welder (Overview paragraph(s)) == Notes === Safety === Common Hazards === Care === Use === Consumables == Parts of the TOOL === == Basic Operation === Setting Up + Power the MIG Welder on. + Turn gas tank valve knob 2-3 turns counter-clo...
https://github.com/saecki/zig-grep
https://raw.githubusercontent.com/saecki/zig-grep/main/README.md
markdown
# zig-grep ## Build & Run - Install the [zig toolchain](https://ziglang.org/download) - Install the [rust toolchain](https://rustup.rs/) - Initialize the rust regex (`rure`) submodule `git submodule init rure` - Build the `rure` crate `cargo build --release --manifest-path=rure/regex-capi/Cargo.toml` - Build and run t...