repo
stringlengths
26
115
file
stringlengths
54
212
language
stringclasses
2 values
license
stringclasses
16 values
content
stringlengths
19
1.07M
https://github.com/Enter-tainer/typstyle
https://raw.githubusercontent.com/Enter-tainer/typstyle/master/tests/assets/unit/comment/line-comment-attach.typ
typst
Apache License 2.0
#import "@preview/cheq:0.1.0": checklist #{ show: checklist.with(fill: luma(95%), stroke: blue, radius: .2em)// 复选框 } #{ show: checklist.with(fill: luma(95%), stroke: blue, radius: .2em)// 复选框 123 } #{ // 复选框 show: checklist.with(fill: luma(95%), stroke: blue, radius: .2em) }
https://github.com/SamK/typst-fonts-showcase
https://raw.githubusercontent.com/SamK/typst-fonts-showcase/master/fonts-latin.typ
typst
// vim: tabstop=2 softtabstop=2 shiftwidth=2 #import "template.typ": template #let pangram = [ #set block(above: 0.5em, below: 0.5em) #let pangram-text = "The quick brown fox jumps over the lazy dog" abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ 0123456789.:,;(\*!?'-"\_\\) àâä éèêë ïĩñ ö...
https://github.com/dead-summer/math-notes
https://raw.githubusercontent.com/dead-summer/math-notes/main/templates/conf.typ
typst
#import "/templates/theorems1.1.2.typ": * // #import "@preview/ctheorems:1.1.2": * #import "@preview/codly:1.0.0": * // Theorem #let thm = thmbox( "theorem", "Theorem", fill: rgb("#eeffee"), base_level: 0 ) #let prp = thmbox( "proposition", "Proposition", stroke: 0.5pt, base_level: 0 ) #let cor = thm...
https://github.com/Kasci/LiturgicalBooks
https://raw.githubusercontent.com/Kasci/LiturgicalBooks/master/CSL_old/oktoich/Hlas2/3_Streda.typ
typst
#let V = ( "HV": ( ("", "Jehdá ot dréva", "Svitíti svitíla ne terpjášče omračíšasja, na kresťí zašédšu tebí Slóve: zemľá že podvizášesja, i kámenije razsidášesja, cerkóvnoje blahoľípije razdirášesja posreďí, hróby otverzáchusja, mértviji vostajáchu, ád izdajáše vsjá súščyja dólu, bísy pobiždáchusja, i són vsím vm...
https://github.com/tingerrr/subpar
https://raw.githubusercontent.com/tingerrr/subpar/main/test/default/test.typ
typst
MIT License
// Synopsis: // - references in text and outlines and figures themselves are correctly numbered // - the super figure supplement is propagated down to sub figures #import "/test/util.typ": * #import "/src/lib.typ" as subpar #outline(target: figure.where(kind: image)) #figure(fake-image, caption: [aaa]) #subpar.grid...
https://github.com/SWATEngineering/Docs
https://raw.githubusercontent.com/SWATEngineering/Docs/main/src/2_RTB/PianoDiProgetto/sections/AnalisiDeiRischi.typ
typst
MIT License
#import "../functions.typ": glossary, team = Analisi dei rischi L'attività di analisi dei rischi mira ad anticipare possibili situazioni avverse che possono emergere durante l'iter del progetto. Questa pratica consiste nel riconoscere, comprendere e classificare tali rischi in base alla loro probabilità di occorrenz...
https://github.com/The-Notebookinator/notebookinator
https://raw.githubusercontent.com/The-Notebookinator/notebookinator/main/.github/CONTRIBUTING.md
markdown
The Unlicense
<!-- omit in toc --> # Contributing to the Notebookinator First off, thanks for taking the time to contribute! ❤️ All types of contributions are encouraged and valued. See the [Table of Contents](#table-of-contents) for different ways to help and details about how this project handles them. Please make sure to read ...
https://github.com/Nerixyz/icu-typ
https://raw.githubusercontent.com/Nerixyz/icu-typ/main/docs/docs/fmt-time.md
markdown
MIT License
# `fmt-time` ```typst-code let fmt-time( dt, locale: "en", length: "short" ) ``` Formats a time in some [`locale`](#locale). ## Arguments ### `dt` The time to format. This can be a [`datetime`][datetime] or a dictionary with `hour`, `minute`, `second`. example{ ```typst +preview #fmt-time(datetime( hou...
https://github.com/ilsubyeega/circuits-dalaby
https://raw.githubusercontent.com/ilsubyeega/circuits-dalaby/master/Type%201/final.typ
typst
2024-04-11 2326031 #include "1/mod.typ" #include "2/mod.typ"
https://github.com/hrbrmstr/2023-10-20-wpe-quarto-typst
https://raw.githubusercontent.com/hrbrmstr/2023-10-20-wpe-quarto-typst/main/blank-test/_extensions/blank/typst-template.typ
typst
#let article( margin: (x: 1.25in, y: 1.25in), paper: "us-letter", lang: "en", region: "US", doc ) = { set page( paper: paper, margin: margin, ) set text( lang: lang, region: region, ) doc }
https://github.com/rdboyes/resume
https://raw.githubusercontent.com/rdboyes/resume/main/modules_en/professional.typ
typst
// Imports #import "@preview/brilliant-cv:2.0.2": cvSection, cvEntry #let metadata = toml("../metadata.toml") #let cvSection = cvSection.with(metadata: metadata) #let cvEntry = cvEntry.with(metadata: metadata) #cvSection("Professional Experience") #cvEntry( title: [Director of Analytics], society: [Presage Group...
https://github.com/Myriad-Dreamin/typst.ts
https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/math/opticalsize_03.typ
typst
Apache License 2.0
#import "/contrib/templates/std-tests/preset.typ": * #show: test-page // Test script-script in a fraction. $ 1/(x^A) $ #[#set text(size:18pt); $1/(x^A)$] vs. #[#set text(size:14pt); $x^A$]
https://github.com/msakuta/typst-test
https://raw.githubusercontent.com/msakuta/typst-test/master/euler-lagrange.typ
typst
#set page( numbering: "1", ) #set heading(numbering: "1.") #set math.equation(numbering: "(1)") #show link: underline #align(center, text(17pt)[ *Euler-Lagrange Equation* ]) #outline() = Euler-lagrange equation Euler-Lagrange equation is defined as below. $ (diff cal(L)) / (diff q_i) - d / (d t) (diff cal(L))...
https://github.com/Mc-Zen/quill
https://raw.githubusercontent.com/Mc-Zen/quill/main/src/length-helpers.typ
typst
MIT License
#let get-length(len, container-length) = { if type(len) == length { return len } if type(len) == ratio { return len * container-length} if type(len) == relative { return len.length + len.ratio * container-length} }
https://github.com/jgm/typst-hs
https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/layout/enum-01.typ
typst
Other
0. Before first! 1. First. 2. Indented + Second
https://github.com/QQKdeGit/bupt-typst
https://raw.githubusercontent.com/QQKdeGit/bupt-typst/master/README.md
markdown
MIT License
# 北京邮电大学本科学士学位论文模板 北邮苦 Word 和 LaTeX 久矣,于是就出现了用 [Typst](https://github.com/typst/typst) 编写的毕业论文模板。 欢迎提出任何 Issue 和 PR 帮助完善这个模板。 ## 在线编辑 进入 [Typst 官网](https://typst.app/) ,并将本模板的文件导入进去,但是你还需要导入一些**在线编辑器暂不支持**的字体(比如 `楷体` ),最终你的目录看起来会像是这个样子: ``` - images - bupt.png - main.typ - template.typ - FZKTK.ttf ``` 然后只要修改 `ma...
https://github.com/htlwienwest/da-vorlage-typst
https://raw.githubusercontent.com/htlwienwest/da-vorlage-typst/main/lib/settings.typ
typst
MIT License
// ------ global settings -------- // these values were read from word reference template #let HEADER_HEIGHT = 3.78cm #let HEADER_INNER_MARGIN = 1.3cm #let FOOTER_HEIGHT = 2cm #let FOOTER_INNER_UPPER_MARGIN = 2cm - 1.26cm // margins... binding side (inner side) has 1cm more space #let PAGE_MARGIN_INSIDE = 3cm #let...
https://github.com/rxt1077/it610
https://raw.githubusercontent.com/rxt1077/it610/master/markup/templates/slides.typ
typst
//#import "@preview/polylux:0.3.1": * #import "/polylux/polylux.typ": * // NJIT theme based on University theme // // Modified by <NAME> // Originally contributed by <NAME> - https://github.com/drupol #let njit-red = rgb("#D22630") #let njit-blue = rgb("#071D49") // https://github.com/typst/typst/discussions/4260 #...
https://github.com/typst/packages
https://raw.githubusercontent.com/typst/packages/main/packages/preview/valkyrie/0.1.0/src/base-type.typ
typst
Apache License 2.0
#import "context.typ": context /// Asserts the presence of the magic number on the given object. /// /// - arg (any): /// - scope (scope): Array of strings containing information for error generation. /// -> none #let assert-base-type(arg, scope: ("arguments",)) = { assert("valkyrie-type" in arg, message: "Inval...
https://github.com/jgm/typst-hs
https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/compute/calc-36.typ
typst
Other
// Test the `range` function. #test(range(4), (0, 1, 2, 3)) #test(range(1, 4), (1, 2, 3)) #test(range(-4, 2), (-4, -3, -2, -1, 0, 1)) #test(range(10, 5), ()) #test(range(10, step: 3), (0, 3, 6, 9)) #test(range(1, 4, step: 1), (1, 2, 3)) #test(range(1, 8, step: 2), (1, 3, 5, 7)) #test(range(5, 2, step: -1), (5, 4, 3)) #...
https://github.com/randyttruong/496notes
https://raw.githubusercontent.com/randyttruong/496notes/master/preamble.typ
typst
#let var = math.italic #let bl = [#h(0.35cm)] #let sc = smallcaps #let qt(x) = [ #v(0.5cm) #align(center)[#text(style: "italic")[#x]] #v(0.5cm) ] #let uC = counter("unit") #let rmkProps = ( fill: rgb(255, 225, 225), outline: rgb(200, 100,100), color: rgb(125,0,0), ) #let dfnProps = ( fill: rg...
https://github.com/frectonz/the-pg-book
https://raw.githubusercontent.com/frectonz/the-pg-book/main/book/031.%20bubble.html.typ
typst
bubble.html What the Bubble Got Right September 2004(This essay is derived from an invited talk at ICFP 2004.)I had a front row seat for the Internet Bubble, because I worked at Yahoo during 1998 and 1999. One day, when the stock was trading around $200, I sat down and calculated what I thought the price should be. T...
https://github.com/mitsuyukiLab/grad_thesis_typst
https://raw.githubusercontent.com/mitsuyukiLab/grad_thesis_typst/main/contents/conclusion.typ
typst
= 結論 <conclusion> == 本研究の結論 <conclusion_in_this_study> 本研究の貢献は次の2つである。 - your contribution 1 - your contribution 2 == 今後の展望 <future_work> 俺たちの冒険はこれからだ!!
https://github.com/soul667/typst
https://raw.githubusercontent.com/soul667/typst/main/PPT/MATLAB/touying/docs/i18n/zh/docusaurus-plugin-content-docs/current/dynamic/complex.md
markdown
--- sidebar_position: 2 --- # 复杂动画 得益于 [Polylux](https://polylux.dev/book/dynamic/syntax.html) 提供的语法,我们同样能够在 Touying 中使用 `only`、`uncover` 和 `alternatives`。 ## 回调风格的函数 为了避免上文提到的 `styled` 与 `layout` 限制,Touying 利用回调函数巧妙实现了总是能生效的 `only`、`uncover` 和 `alternatives`,具体来说,您要这样引入这三个函数: ```typst #slide(repeat: 3, self => [...
https://github.com/vmysak/modern-cv-typst
https://raw.githubusercontent.com/vmysak/modern-cv-typst/main/src/my-cv.typ
typst
Apache License 2.0
#import "./definitions/cv-page-frame.typ": cvPageFrame #import "./definitions/cv-page-styles.typ": cvStyle #import "./definitions/cv-page-items.typ": cvItem #import "./my-config.typ": * #show: cvStyle.page.with(cvPageFrame.footer) #show: cvStyle.textStyles.with() // Custom Header - Example 3 /* = #userInfo....
https://github.com/dark-flames/resume
https://raw.githubusercontent.com/dark-flames/resume/main/data.typ
typst
MIT License
#import "data/award.typ": award #import "data/basic.typ": name, links #import "data/edu.typ": edu #import "data/work.typ": work #import "data/research.typ": research #import "data/open_source.typ": openSource #import "data/project.typ": project #import "data/skill.typ": skill #import "data/pub.typ": pub #import "data/i...
https://github.com/mgoulao/IST-MSc-Thesis-Typst-Template
https://raw.githubusercontent.com/mgoulao/IST-MSc-Thesis-Typst-Template/main/section_2.typ
typst
= Related Work #lorem(200)
https://github.com/dyc3/senior-design
https://raw.githubusercontent.com/dyc3/senior-design/main/main.typ
typst
#import "@preview/in-dexter:0.0.5": * #set document( title: "OpenTogetherTube Load Balancer", author: ("<NAME>", "<NAME>"), ) #set heading(numbering: "1.") #set page( "us-letter", numbering: "1", margin: 1in, binding: left, ) #show link: underline #show ref: underline // hack: https://github.com/typst/typst/iss...
https://github.com/ukcw/typst-cv-template
https://raw.githubusercontent.com/ukcw/typst-cv-template/main/cv.typ
typst
MIT License
#set text( font: "New Computer Modern", size: 9pt, ) #set page("us-letter") #set par(justify: true) #let chiline() = {v(-3pt); line(length: 100%); v(-5pt)} #let experience(header, location, subheader, date_string, bullets) = { [*#subheader* #h(1fr) #location \ #emph(header) #h(1fr) #date_string] for item i...
https://github.com/Error-418-SWE/Documenti
https://raw.githubusercontent.com/Error-418-SWE/Documenti/src/1%20-%20Candidatura/Verbali/Esterni/26-10-23/26-10-23.typ
typst
ERROR\_418 \ Verbale 26/10/23 #figure( align(center)[#table( columns: 2, align: (col, row) => (left,left,).at(col), inset: 6pt, [Mail:], [<EMAIL>], [Redattori:], [<NAME>, <NAME>], [Verificatori:], [<NAME>, <NAME>, <NAME>], [Amministratori:], [<NAME>, <NAME>], [Destinatari:], [<NAME>, <NAME>],...
https://github.com/kimushun1101/How-to-use-typst-for-paper-jp
https://raw.githubusercontent.com/kimushun1101/How-to-use-typst-for-paper-jp/main/README.md
markdown
MIT License
# How-to-use-typst-for-paper-jp Typst の特徴と使い方,論文を書くときに使えるコード例をまとめた資料 PDF はこちらからご覧になれます. https://kimushun1101.github.io/How-to-use-typst-for-paper-jp/How-to-use-typst-for-paper-jp.pdf --- [制御工学勉強会](https://control-engineering-seminar.notion.site/5c6643a330184bea9a9f72e2ce87f6ff) 第11回 (2024-08-03) で発表 ア...
https://github.com/ymgyt/techbook
https://raw.githubusercontent.com/ymgyt/techbook/master/cloud/aws/cdk/construct.md
markdown
# Construct * represents "cloud component" * 再利用の単位 * CloudFormationをどの程度抽象化しているかでL1とL2に分かれる * CDK v2から、`constructs` moduleに分離された(v1ではcore) * Layerの概念をもつ * L1.CfnResource * Cloudformationに対応する * L2. intent-based API * default値を設定してくれている * `bucket.addLifeCycleRule()`とかでbucketの設定できるイメージ ## Const...
https://github.com/mrtz-j/typst-thesis-template
https://raw.githubusercontent.com/mrtz-j/typst-thesis-template/main/template/utils/subfigure.typ
typst
MIT License
#import "../chapters/global.typ": subpar, in-appendix #let subfigure = { subpar.grid.with( numbering: n => if in-appendix.get() { numbering("A.1", counter(heading).get().first(), n) } else { numbering("1.1", counter(heading).get().first(), n) }, numbering-sub-ref: (m, n) => if in-appendix...
https://github.com/dmtr-m/typst-bot
https://raw.githubusercontent.com/dmtr-m/typst-bot/main/README.md
markdown
MIT License
# typst-bot Typst bot for Telegam Messenger. This bot generates images from code written in typst markdown language. Works both in inline mode and in private messages. ### Features + Generate images from typst in inline mode ```@typst_bot mat(1, 0; 0, 1)```. + Get your most recent request to the inline mode. \...
https://github.com/typst-doc-cn/tutorial
https://raw.githubusercontent.com/typst-doc-cn/tutorial/main/src/basic/reference-date.typ
typst
Apache License 2.0
#import "mod.typ": * #show: book.ref-page.with(title: [参考:时间类型]) #let table-lnk(name, ref, it, scope: (:), res: none, ..args) = ( align(center + horizon, link("todo", name)), it, align(horizon, { set heading(bookmarked: false, outlined: false) eval(it.text, mode: "markup", scope: scope) }), ) == 日期 ...
https://github.com/FurryAcetylCoA/sgu-thesis-typst
https://raw.githubusercontent.com/FurryAcetylCoA/sgu-thesis-typst/main/thesis.typ
typst
MIT License
#import "nju-thesis/template.typ": documentclass, tablex, fig, tlt, indent #import "nju-thesis/utils/style.typ": 字号, 字体 // 双面模式,会加入空白页,便于打印 #let twoside = false // #let twoside = true #let ( doc, preface, mainmatter, mainmatter-end, appendix, fonts-display-page, cover, abstract, abstract-en, outline-page, list-...
https://github.com/Myriad-Dreamin/typst.ts
https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/meta/heading_00.typ
typst
Apache License 2.0
#import "/contrib/templates/std-tests/preset.typ": * #show: test-page // Different number of equals signs. = Level 1 == Level 2 === Level 3 // After three, it stops shrinking. =========== Level 11
https://github.com/AngleSideAngle/AngleSideAngle
https://raw.githubusercontent.com/AngleSideAngle/AngleSideAngle/main/cv.typ
typst
#set page("us-letter") #show heading: set text(font: "Linux Biolinum") #show link: underline #set text( size: 11pt, ) // Feel free to change the margin below to best fit your own CV #set page( margin: (x: 0.9cm, y: 1.3cm), // margin: (x: 0.4in, y: 0.2in) ) #set par(justify: true) #let linebreak() = {v(-3pt);...
https://github.com/typst/packages
https://raw.githubusercontent.com/typst/packages/main/packages/preview/unichar/0.1.0/ucd/block-1CC0.typ
typst
Apache License 2.0
#let data = ( ("SUNDANESE PUNCTUATION BINDU SURYA", "Po", 0), ("SUNDANESE PUNCTUATION BINDU PANGLONG", "Po", 0), ("SUNDANESE PUNCTUATION BINDU PURNAMA", "Po", 0), ("SUNDANESE PUNCTUATION BINDU CAKRA", "Po", 0), ("SUNDANESE PUNCTUATION BINDU LEU SATANGA", "Po", 0), ("SUNDANESE PUNCTUATION BINDU KA SATANGA", ...
https://github.com/yhtq/Notes
https://raw.githubusercontent.com/yhtq/Notes/main/数理逻辑/作业/ml-1_2-hw.typ
typst
#import "../../template.typ": proof, note, corollary, lemma, theorem, definition, example, remark #import "../../template.typ": * #import "../main.typ": not1, True, False, infer #import "../main.typ": * #import "@preview/prooftrees:0.1.0": axi, uni, tree #show: note.with( title: "作业12", author: "YHTQ", date: date...
https://github.com/VisualFP/docs
https://raw.githubusercontent.com/VisualFP/docs/main/SA/design_concept/content/poc/poc.typ
typst
#import "../../../style.typ": * #part("Proof of Concept") This part describes the development of the proof of concept application as described in the goals defined in @goals. #include_section("design_concept/content/poc/scope.typ") #include_section("design_concept/content/poc/options.typ") #include_section("design_c...
https://github.com/typst/packages
https://raw.githubusercontent.com/typst/packages/main/packages/preview/polytonoi/0.1.0/README.md
markdown
Apache License 2.0
# Polytonoi | Πολλοί Τόνοι A typst package for rendering text into polytonic Greek using a hopefully-intuitive transliteration scheme. ## Usage First, be sure you include the package at the top of your typst file: ```typ @import "preview/polytonoi@0.1.0: * ``` The package currently exposes one function, ``#ptgk(<str...
https://github.com/mrknorman/evolving_attention_thesis
https://raw.githubusercontent.com/mrknorman/evolving_attention_thesis/main/preface.typ
typst
#set page(numbering: "i", number-align: center) #counter(page).update(1) #set heading(numbering: "I.a") = Summary This thesis investigates the application of machine learning to gravitational-wave data analysis. Primarily, it focuses on artificial neural networks, but it also presents work to optimize the design and ...
https://github.com/TypstApp-team/typst
https://raw.githubusercontent.com/TypstApp-team/typst/master/tests/typ/meta/footnote-refs.typ
typst
Apache License 2.0
// Test references to footnotes. --- A footnote #footnote[Hi]<fn> \ A reference to it @fn --- // Multiple footnotes are refs First #footnote[A]<fn1> \ Second #footnote[B]<fn2> \ First ref @fn1 \ Third #footnote[C] \ Fourth #footnote[D]<fn4> \ Fourth ref @fn4 \ Second ref @fn2 \ Second ref again @fn2 --- // Forward r...
https://github.com/Kasci/LiturgicalBooks
https://raw.githubusercontent.com/Kasci/LiturgicalBooks/master/main.typ
typst
//#include "misal/advent.typ" // #include "_general/sluzebnik.typ" // #include "_general/oktoich.typ" // #include "_general/minea.typ" // #include "_general/akatistnik.typ" // #include "_general/casoslov.typ" // #include "_general/molebenik.typ" // #include "test.typ" // #include "tmp.typ" // #include "CU-SK/sobas.t...
https://github.com/schmidma/typst-workshop
https://raw.githubusercontent.com/schmidma/typst-workshop/main/examples/01-basics.typ
typst
Creative Commons Zero v1.0 Universal
When you begin typing words into a document, those words are automatically arranged into a visually coherent form known as typeset text.
https://github.com/Lancern/resume-template
https://raw.githubusercontent.com/Lancern/resume-template/master/github-pl-colors.typ
typst
Creative Commons Zero v1.0 Universal
// This list is generated from https://raw.githubusercontent.com/github/linguist/master/lib/linguist/languages.yml #let github-pl-colors = ( "1c enterprise": rgb("#814CCC"), "4d": rgb("#004289"), "abap": rgb("#E8274B"), "abap cds": rgb("#555e25"), "ags script": rgb("#B9D9FF"), "aidl": rgb("#34EB6B"), "al"...
https://github.com/ClazyChen/Table-Tennis-Rankings
https://raw.githubusercontent.com/ClazyChen/Table-Tennis-Rankings/main/history/2004/MS-10.typ
typst
#set text(font: ("Courier New", "NSimSun")) #figure( caption: "Men's Singles (1 - 32)", table( columns: 4, [Ranking], [Player], [Country/Region], [Rating], [1], [<NAME>], [KOR], [2722], [2], [WANG Liqin], [CHN], [2687], [3], [WANG Hao], [CHN], [2625], [4], [CHEN Qi], [CHN], [2...
https://github.com/profetia/me
https://raw.githubusercontent.com/profetia/me/main/src/bin/resume.typ
typst
#import "../lib.typ": option, option_ext #set page( margin: (x: 0.9cm, y: 1.3cm), ) #set par(justify: true) #let lang = "en" #option.option("lang", lang) #let zh(content) = [ #set text(font: "Microsoft YaHei") #option_ext.zh(content) ] #let en = option_ext.en #let present = [ #en[present] #z...
https://github.com/0x1B05/algorithm-journey
https://raw.githubusercontent.com/0x1B05/algorithm-journey/main/practice/note/content/KMP.typ
typst
#import "../template.typ": * #pagebreak() = KMP 1. 理解`next`数组:不包含当前字符,前面字符串,前缀和后缀最大匹配长度(不包含整体,于是`next[0]=-1`,`next[1]=0`) 2. 假设已经有了`next`数组,匹配过程如何得到加速的(两个核心) 3. 理解匹配主流程之后,详解`next`数组如何快速生成(一个核心) 4. 复杂度证明 == #link("https://leetcode.cn/problems/find-the-index-of-the-first-occurrence-in-a-string/")[KMP问题引入] 长为 n 的字符串`s...
https://github.com/lxl66566/my-college-files
https://raw.githubusercontent.com/lxl66566/my-college-files/main/信息科学与工程学院/算法导论/哈希表.typ
typst
The Unlicense
#import "../template.typ": * #show: project.with( title: "3", authors: ( "absolutex", ) ) = 哈希表 == 哈希表的一个应用,是Python的数据结构:字典。大家可以阅读一下构建Python字典的设计需求:http://svn.python.org/projects/python/trunk/Objects/dictnotes.txt (这不是必须的)。其中,提到了字典的一个应用场景: ``` Membership Testing Dictionaries of any size. Created onc...
https://github.com/Error-418-SWE/Documenti
https://raw.githubusercontent.com/Error-418-SWE/Documenti/src/1%20-%20Candidatura/Verbali/Interni/29-10-23/29-10-23.typ
typst
ERROR\_418 \ Verbale 29/10/23 #figure( align(center)[#table( columns: 2, align: (col, row) => (left,left,).at(col), inset: 6pt, [Mail:], [<EMAIL>], [Redattori:], [<NAME>, <NAME>], [Verificatori:], [<NAME>, <NAME>, <NAME>], [Amministratori:], [<NAME>, <NAME>], [Destinatari:], [<NAME>, <NAME>],...
https://github.com/FlandiaYingman/note-me
https://raw.githubusercontent.com/FlandiaYingman/note-me/main/note-me.typ
typst
MIT License
#import "stick-together.typ": stick-together // From: https://github.com/typst/typst/issues/1939#issuecomment-1680154871 #let colorize(svg, color) = { let blk = black.to-hex(); if svg.contains(blk) { svg.replace(blk, color.to-hex()) } else { svg.replace("<svg ", "<svg fill=\""+color.to-hex()+"\" ") } ...
https://github.com/jneug/schule-typst
https://raw.githubusercontent.com/jneug/schule-typst/main/src/core/base.typ
typst
MIT License
// TODO: i18n verbessern #import "../util/args.typ" #import "../util/typst.typ" #import "../util/marks.typ" #import "../util/util.typ" #import "document.typ" #import "layout.typ" #import "../theme.typ" // Basisvorlage für alle Dokumentvorlagen #let base-template( title-block: layout.base-title, // _tpl: (:), ...
https://github.com/ymgyt/techbook
https://raw.githubusercontent.com/ymgyt/techbook/master/programmings/js/typescript/specification/object.md
markdown
# object ## optional property ```typescript let x: { width?: number }; x = {}; x = { width: undefined}; // nullはassignできない // x = { width: null }; ``` ## excess property checking * 変数の型より多くのfiledをもつ値をassignできるかという問題 * object literalではだめ * それ以外では許可される ```typescript const xy: { x: number; y: number } = { x: 1, y...
https://github.com/Myriad-Dreamin/typst.ts
https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/layout/pagebreak-weak_02.typ
typst
Apache License 2.0
#import "/contrib/templates/std-tests/preset.typ": * #show: test-page // After only ignorables, but regular break // Should result in three pages. First #pagebreak() #counter(page).update(1) #metadata("Some") #pagebreak() Third
https://github.com/TypstApp-team/typst
https://raw.githubusercontent.com/TypstApp-team/typst/master/tests/typ/bugs/block-width-box.typ
typst
Apache License 2.0
// Test box in 100% width block. --- #block(width: 100%, fill: red, box("a box")) #block(width: 100%, fill: red, [#box("a box") #box()])
https://github.com/magic3007/cv-typst
https://raw.githubusercontent.com/magic3007/cv-typst/master/doc/honor_awards.typ
typst
- IEEE/ACM MLCAD 2023 FPGA Macro Placement Contest, Second Place #h(1fr) Sept 2023 - The 43rd ACM-ICPC Asia Regional Competition, Gold Award #h(1fr) Oct 2018 - Outstanding Undergraduate Graduate (top 1% province-wide) #h(1fr) May 2021 // - Outstanding Undergraduate Graduate in Peking University #h(1fr) May 2021 - Ubiq...
https://github.com/jamesrswift/chemicoms-paper
https://raw.githubusercontent.com/jamesrswift/chemicoms-paper/main/src/elements.typ
typst
#import "elements/header-block.typ": *; #import "elements/header-journal.typ": *; #import "elements/precis.typ": precis; #import "elements/footer.typ": footer; #import "elements/float.typ": float;
https://github.com/Enter-tainer/delimitizer
https://raw.githubusercontent.com/Enter-tainer/delimitizer/main/impl.typ
typst
MIT License
#let base-size = 1.2em #let sizes = (base-size, base-size * 1.5, base-size * 2, base-size * 2.5) #let scaled-delimiter(delimiter, size) = math.lr(delimiter, size: size) #let big(delimiter) = scaled-delimiter(delimiter, sizes.at(0)) #let Big(delimiter) = scaled-delimiter(delimiter, sizes.at(1)) #let bigg(delimiter) = ...
https://github.com/p-will/thesis_typst_template
https://raw.githubusercontent.com/p-will/thesis_typst_template/main/MA.typ
typst
#let header_heading(loc) = { //get all headings let headings = query(heading.where(level:1),loc) //look for first level 1 heading on page let first_heading = headings.find(h => h.location().page() == loc.page()) //look for last level 1 heading before this one let last_heading = query(heading.where(le...
https://github.com/elteammate/typst-compiler
https://raw.githubusercontent.com/elteammate/typst-compiler/main/src/utils.typ
typst
#let mk_enum(debug: false, name: none, ..options) = { let result = (:) for i, v in options.pos() { if debug { if name == none { result.insert(v, v) } else { result.insert(v, name + "." + v) } } else { result.insert(v, i) } } result } #let unique(arr) = { ...
https://github.com/piepert/philodidaktik-hro-phf-ifp
https://raw.githubusercontent.com/piepert/philodidaktik-hro-phf-ifp/main/src/parts/ephid/unterrichtsplanung/strukturen.typ
typst
Other
#import "/src/template.typ": * == #ix("Unterrichtsstrukturen", "Unterrichtsstruktur")
https://github.com/ARKye03/MathSummary
https://raw.githubusercontent.com/ARKye03/MathSummary/main/src/main.typ
typst
#set page() #align(center, text(17pt)[ *Calculus Cheat Sheet* ]) #columns( 2, )[ = Integrals $\u{222B}d x = x + c$ $\u{222B}k d x = k x + c$ $\u{222B}x^n d x = x^(n+1)/(n+1) + c$, $n != -1$ $\u{222B}1/x d x = ln|x| + c$ $\u{222B}e^x d x = e^x + c$ $\u{222B}a^x d x = a^x/ln(a) + c$ $\u{222B}c...
https://github.com/curvenote/pubmatter
https://raw.githubusercontent.com/curvenote/pubmatter/main/README.md
markdown
MIT License
# pubmatter _Beautiful scientific documents with structured metadata for publishers_ [![Documentation](https://img.shields.io/badge/typst-docs-orange.svg)](https://github.com/curvenote/pubmatter/blob/main/docs.pdf) [![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/curvenote/pubmatter/...
https://github.com/Totti95U/ExerciseBattale2023
https://raw.githubusercontent.com/Totti95U/ExerciseBattale2023/main/src/main.typ
typst
The Unlicense
#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: "魔方陣の線形代数", authors: ( "32842327" ), ) // We generated the example code below so you can see how // your document will look. Go ahead and...
https://github.com/gyarab/2023-4e-ruzicka-jako_pavouk
https://raw.githubusercontent.com/gyarab/2023-4e-ruzicka-jako_pavouk/main/src-docs/kapitoly/do-budoucna.typ
typst
= Další vývoj aplikace == Statistika mezi uživateli Aby se uživatelé necítili na stránce sami, plánuji přidat různé statistiky, díky kterým by se mohli *porovnat s ostatními*, co se týče rychlosti, přesnosti nebo i prostým procentem dokončených lekcí. Představuji si hlášky typu: _"Jsi lepší než 62% uživatelů!"_...
https://github.com/DieracDelta/presentations
https://raw.githubusercontent.com/DieracDelta/presentations/master/polylux/book/src/dynamic/one-by-one-start.typ
typst
#import "../../../polylux.typ": * #set page(paper: "presentation-16-9") #set text(size: 50pt) #polylux-slide[ #one-by-one(start: 3)[This ][came ][pretty late.] ]
https://github.com/Gekkio/gb-ctr
https://raw.githubusercontent.com/Gekkio/gb-ctr/main/chapter/peripherals/dma.typ
typst
Creative Commons Attribution Share Alike 4.0 International
#import "../../common.typ": * == DMA (Direct Memory Access) === Object Attribute Memory (OAM) DMA OAM DMA is a high-throughput mechanism for copying data to the OAM area (a.k.a. Object Attribute Memory, a.k.a. sprite memory). It can copy one byte per machine cycle without involving the CPU at all, which is much fast...
https://github.com/vitto4/ttuile
https://raw.githubusercontent.com/vitto4/ttuile/main/DOC.EN.md
markdown
MIT License
# 📚 Documentation ### `ttuile` Entry point of the package. Should be called at the beginning of your document, as described in [README.md > Usage](https://github.com/vitto4/ttuile/blob/main/README.md#-usage). You'll also find a table listing the arguments there. ### `annexe` "Annexe" is the french word for "append...
https://github.com/AliothCancer/AppuntiUniversity
https://raw.githubusercontent.com/AliothCancer/AppuntiUniversity/main/capitoli_fisica/trasformazioni.typ
typst
#import "../transf_graph.typ": trasformazioni_graph = Trasformazione Politropica <trasformazione-politropica> Con una trasf. politropica si può descrivere una qualsiasi trasformazione termodinamica. $ p = p_1 (v_1/v)^(n) $ #trasformazioni_graph(mode:"a4") #h(1em) === Equazione di stato $ p dot.op V^n = upright(...
https://github.com/goshakowska/Typstdiff
https://raw.githubusercontent.com/goshakowska/Typstdiff/main/assets/example1/compared_new.typ
typst
#show underline : it => {highlight(fill: gray, text(red, it))} #show strike : it => {highlight(fill: yellow, text(blue, it))} ZMIANY NA HEADERZE = Introduction #strike[niezmieniony];#underline[zmeniony] ZMIANY NA PARAGRAFIE \ In#strike[ ];#strike[this] #strike[report,];#underline[eport,] we will explore the various #s...
https://github.com/rodrigo72/typst-LNCS-template
https://raw.githubusercontent.com/rodrigo72/typst-LNCS-template/main/README.md
markdown
# Typst LNCS Template A simple Typst LNCS (Lecture Notes in Computer Science) template. ![pdf-example](example.jpg)
https://github.com/MrToWy/hsh-thesis
https://raw.githubusercontent.com/MrToWy/hsh-thesis/main/README.md
markdown
MIT License
# The `modern-hsh-thesis` Package <div align="center">Version 1.0.0</div> A template for writing a bachelors or masters thesis at the Hochschule Hannover, Faculty 4. ## Getting Started ### WebApp Choose the template in the typst web app and follow the instructions there. ### Terminal ```bash typst init @preview/mod...
https://github.com/typst-tud/tud-slides
https://raw.githubusercontent.com/typst-tud/tud-slides/main/README.md
markdown
Apache License 2.0
# tud-slides This is a [Typst](https://typst.app/) template for slides and presentations in the corporate design of the [Technische Universität Dresden](https://tu-dresden.de/). Please be aware that this template is unofficial and may not fully adhere to the CD specifications. Any corrections, modifications, or enhan...
https://github.com/typst/packages
https://raw.githubusercontent.com/typst/packages/main/packages/preview/fh-joanneum-iit-thesis/1.1.0/README.md
markdown
Apache License 2.0
# Typst Thesis Template Template for Your Bachelor's or Master's Thesis at [FH JOANNEUM, IIT](http://www.fh-joanneum.at/iit). ### TL;DR Using the typst universe preview package/template ``` typst init @preview/fh-joanneum-iit-thesis ```
https://github.com/frectonz/the-pg-book
https://raw.githubusercontent.com/frectonz/the-pg-book/main/book/102.%20identity.html.typ
typst
identity.html Keep Your Identity Small February 2009I finally realized today why politics and religion yield such uniquely useless discussions.As a rule, any mention of religion on an online forum degenerates into a religious argument. Why? Why does this happen with religion and not with Javascript or baking or ot...
https://github.com/Xe/automuse
https://raw.githubusercontent.com/Xe/automuse/main/paper/automuse_2/main.typ
typst
zlib License
#import "template.typ": conf, quote #show: doc => conf( title: [ Optmizing Automuse with GPT-4 Turbo-128k ], authors: ( ( name: "<NAME>", affiliation: "xn--g28h", email: "<EMAIL>", ), ( name: "<NAME>", affiliation: "xn--g28h", email: "<EMAIL>", ), ( ...
https://github.com/LDemetrios/Typst4k
https://raw.githubusercontent.com/LDemetrios/Typst4k/master/src/test/resources/suite/scripting/if.typ
typst
// Test if-else expressions. --- if-markup --- // Test condition evaluation. #if 1 < 2 [ One. ] #if true == false [ {Bad}, but we {dont-care}! ] --- if-condition-complex --- // Braced condition. #if {true} [ One. ] // Content block in condition. #if [] != none [ Two. ] // Multi-line condition with parens. ...
https://github.com/lvignoli/typst-pandoc
https://raw.githubusercontent.com/lvignoli/typst-pandoc/main/test_files/writer_test_file.md
markdown
MIT License
--- title: Writer test file author: <NAME> date: 2022-02-09 --- # Title Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. ## Subtitle This is a _test_ file. It is **important** that it renders well, not ~~bad~~. A line with a line break (c...
https://github.com/jneug/schule-typst
https://raw.githubusercontent.com/jneug/schule-typst/main/docs/examples/ab.typ
typst
MIT License
#import "../../src/schule.typ": ab #import ab: * #show: arbeitsblatt.with( /* @typstyle:off */ titel: "Arbeitsblatt", reihe: "Entwicklung eines Typst-Pakets", datum: datetime.today(), nummer: "1", fach: "Typst", kurs: "101", autor: ( name: "<NAME>", kuerzel: "Ngb",...
https://github.com/boladouro/ME
https://raw.githubusercontent.com/boladouro/ME/main/1/pro%20prof/relatorio/main.typ
typst
#import "template.typ": * #import "functions.typ": ifrac #include "capa.typ" #import "@preview/algo:0.3.3": algo, i, d, comment, code //https://github.com/typst/packages/tree/main/packages/preview/algo/0.3.3 #import "@preview/tablex:0.0.5": gridx, tablex, rowspanx, colspanx, vlinex, hlinex // #counter(page).update(1) ...
https://github.com/Mc-Zen/zero
https://raw.githubusercontent.com/Mc-Zen/zero/main/docs/zero-docs.typ
typst
MIT License
#import "/src/zero.typ": * #import "@preview/cetz:0.2.2" // #align(center, text(2em, weight: "bold")[Zero]) #align(center, text(2em, weight: "bold")[$Z dot e^(r o)$]) // #align(center, image("logo.svg", height: 5em)) _Advanced scientific number formatting._ = Introduction Proper formatting of numbers requires so...
https://github.com/rikhuijzer/phd-thesis
https://raw.githubusercontent.com/rikhuijzer/phd-thesis/main/chapters/summary.typ
typst
The Unlicense
#import "../style.typ": citefig #import "../functions.typ": chapter, textcite, parencite, note, avoid_indent #pagebreak() = Summary #avoid_indent() #lorem(10)
https://github.com/Quentindeve/tp_b2_symfony
https://raw.githubusercontent.com/Quentindeve/tp_b2_symfony/master/documents/cours_twig.typ
typst
#set document(title: "TP B2 - Contrôleurs et Twig", author: "<NAME>") #set page(paper: "presentation-4-3", header: [ #figure( image("images/sio.png", width: 10%) ) ]) #set text(size: 24pt, font: "Cascadia", weight: "medium") #set heading(numbering: "1.a >") #show heading: it => [ #set align(center) #set ...
https://github.com/Myriad-Dreamin/tinymist
https://raw.githubusercontent.com/Myriad-Dreamin/tinymist/main/crates/tinymist-query/src/fixtures/folding_range/let-tuple.typ
typst
Apache License 2.0
#let f(a) = ( let g(x) = 1, let h(x) = 2, )
https://github.com/rlpundit/typst
https://raw.githubusercontent.com/rlpundit/typst/main/Typst/fr-Rapport/chaps/chpt2.typ
typst
MIT License
/* ------------------------------- NE PAS MODIFIER ------------------------------ */ #import "../common/metadata.typ": title, chap2 #set page(header: smallcaps(title) + h(1fr) + emph(chap2) + line(length: 100%)) #text(white)[= #chap2 <chp:chap2>]#v(-1cm) /* -------------------------------------------------------------...
https://github.com/suiranruofeng/notebook
https://raw.githubusercontent.com/suiranruofeng/notebook/main/GW/Basic.typ
typst
= 快速傅里叶变换 def:运用计算机计算离散傅里叶变换(DFT)的快速计算方法
https://github.com/tgeorg-ethz/Tanzquotient-Playlist-Printer
https://raw.githubusercontent.com/tgeorg-ethz/Tanzquotient-Playlist-Printer/main/src/main.typ
typst
MIT License
#import "@preview/tablex:0.0.8": tablex, hlinex, vlinex #import "@preview/tiaoma:0.2.0" #let csv_file = "scripts/open-dancing-playlist.csv" // Update if necessary #let playlist_url = "https://www.youtube.com/watch?v=dQw4w9WgXcQ" // Replace with link to actual playlist #set page( footer: context [ #set align(ce...
https://github.com/warab1moch1/MathmaticalFinance
https://raw.githubusercontent.com/warab1moch1/MathmaticalFinance/main/20240629.typ
typst
#import "manual_template.typ": * #import "theorems.typ": * #show: thmrules // Define theorem environments #let theorem = thmbox( "theorem", "Theorem", fill: rgb("#e8e8f8") ) #let lemma = thmbox( "theorem", // Lemmas use the same counter as Theorems "Lemma", fill: rgb("#efe6ff") )...
https://github.com/dogeystamp/typst-templates
https://raw.githubusercontent.com/dogeystamp/typst-templates/master/legacy/chem.typ
typst
The Unlicense
// chemistry notes #import "../main.typ": gen_preamble, doc_template, lref // chemical state indicators (use these as subscripts) #let aq = [$("aq")$] #let liq = [$("l")$] #let gaz = [$("g")$] #let sol = [$("s")$] #let chem = (block: false, body) => { math.equation(block: block, math.upright(body)) } #let templ...
https://github.com/peteole/relai_poster_template
https://raw.githubusercontent.com/peteole/relai_poster_template/main/relai_poster_template.typ
typst
#import "@preview/cades:0.3.0": qr-code #let sponsored_by() = { grid( columns: (55mm,40mm,55mm), rows: (25mm), align( left, text(size: 9.4pt, "relAI is supported by the DAAD programme Konrad Zuse Schools of Excellence in Artificial Intelligence, sponsored by the Federal Ministry of Education ...
https://github.com/hugo-b-r/insa-template-typst
https://raw.githubusercontent.com/hugo-b-r/insa-template-typst/master/templates/long-report.typ
typst
#import "@preview/datify:0.1.2": day-name, month-name, custom-date-format #let project(title: "", authors: (), date: datetime.today(), body) = { // Set the document's basic properties. set document(author: authors, title: title) set page( paper: "a4", header: context { if counter(page).get().first(...
https://github.com/7sDream/fonts-and-layout-zhCN
https://raw.githubusercontent.com/7sDream/fonts-and-layout-zhCN/master/chapters/02-concepts/dimension/height.typ
typst
Other
#import "/template/template.typ": web-page-template #import "/template/components.typ": note #import "/lib/glossary.typ": tr #show: web-page-template // ### Heights === 高度 // But first, let's think a little bit about the different measurements of height used in a glyph. Again, we're going to be assuming that we are...
https://github.com/thornoar/lambda-calculus-course
https://raw.githubusercontent.com/thornoar/lambda-calculus-course/master/main-lectures/exam-questions.typ
typst
#import "template.lib.typ": * #show: formatting #set page(background: image("pictures/troubles-faded.jpg", width: 100%, height: 100%, fit: "stretch")) #head([ Программа курса ]) + Определение множества л-выражений. Сокращённая нотация. Свободные и связанные переменные. Совместимость отношения с операциями. ал-конгруэ...
https://github.com/darioglasl/Arbeiten-Vorlage-Typst
https://raw.githubusercontent.com/darioglasl/Arbeiten-Vorlage-Typst/main/main.typ
typst
// ---------------------------------------------------------------------------- // "THE BEER-WARE LICENSE" (Revision 42): // <<EMAIL>> wrote this file. As long as you retain this notice you can do whatever you want with this stuff. If we meet some day, and you think this stuff is worth it, you can buy me a beer in ret...
https://github.com/xrarch/books
https://raw.githubusercontent.com/xrarch/books/main/xrcomputerbook/chapinter.typ
typst
#import "@preview/tablex:0.0.6": tablex, cellx, colspanx, rowspanx = Interrupt Architecture == Introduction Interrupts on the XR/computer platform are mediated between the devices and the processors by the Local Symmetric Interrupt Controller (LSIC), of which there is one for each processor in the system. The XR/1703...
https://github.com/mst2k/HSOS-PTP-Typst-Template
https://raw.githubusercontent.com/mst2k/HSOS-PTP-Typst-Template/main/README.md
markdown
# HSOS PTP Typst Template 🚀 Dieses Repository enthält ein [Typst](https://typst.app/) Template für Praxistransferprojekte (PTPe) an der Hochschule Osnabrück. Das Template dient als Grundlage für die Erstellung von PTP-Dokumenten. Die zentrale Datei [main.typ](main.typ) bildet das Herzstück des Templates, aus dem das ...
https://github.com/jomaway/typst-teacher-templates
https://raw.githubusercontent.com/jomaway/typst-teacher-templates/main/ttt-utils/lib/grading.typ
typst
MIT License
#import "assignments.typ": get-questions, _question_counter /// Fetch the total points which can be reached from the questions metadata /// ! needs context. /// /// -> integer #let total-points() = get-questions().map(q => q.points).sum(default: 0) /// Sums up all question points, grouped by assignments. /// ! needs...
https://github.com/typst/packages
https://raw.githubusercontent.com/typst/packages/main/packages/preview/unichar/0.1.0/ucd/block-102E0.typ
typst
Apache License 2.0
#let data = ( ("COPTIC EPACT THOUSANDS MARK", "Mn", 220), ("COPTIC EPACT DIGIT ONE", "No", 0), ("COPTIC EPACT DIGIT TWO", "No", 0), ("COPTIC EPACT DIGIT THREE", "No", 0), ("COPTIC EPACT DIGIT FOUR", "No", 0), ("COPTIC EPACT DIGIT FIVE", "No", 0), ("COPTIC EPACT DIGIT SIX", "No", 0), ("COPTIC EPACT DIGIT...