repo
stringlengths
26
115
file
stringlengths
54
212
language
stringclasses
2 values
license
stringclasses
16 values
content
stringlengths
19
1.07M
https://github.com/augustebaum/epfl-thesis-typst
https://raw.githubusercontent.com/augustebaum/epfl-thesis-typst/main/example/main/ch2_figures_tables.typ
typst
MIT License
#import "@preview/scholarly-epfl-thesis:0.1.1": flex-caption = Tables and Figures In this chapter we will see some examples of tables and figures. == Tables Let's see how to make a well designed table. #let my-table = "figure( table( columns: 3, align: center, table.hline(), table.header( [...
https://github.com/polarkac/MTG-Stories
https://raw.githubusercontent.com/polarkac/MTG-Stories/master/stories/044%20-%20Innistrad%3A%20Crimson%20Vow/007_Episode%204%3A%20The%20Wedding%20Crashers.typ
typst
#import "@local/mtgstory:0.2.0": conf #show: doc => conf( "Episode 4: The Wedding Crashers", set_name: "Innistrad: Crimson Vow", story_date: datetime(day: 17, month: 11, year: 2021), author: "<NAME>", doc ) A spear of light shatters the windows of Voldaren Manor. Invitation wards crumble, scatterin...
https://github.com/npujol/chuli-cv
https://raw.githubusercontent.com/npujol/chuli-cv/main/modules/piechart.typ
typst
MIT License
#import "@preview/cetz:0.2.2" #import "styles.typ": * #let render-activities(slices: ()) = { cetz.canvas({ import cetz.chart // A linear gradient from blue navy to blue aqua let gradient = gradient.linear(colors.navy, colors.aqua) chart.piechart( slices, rad...
https://github.com/Gchism94/PrettyTypst
https://raw.githubusercontent.com/Gchism94/PrettyTypst/main/README.md
markdown
Creative Commons Zero v1.0 Universal
# PrettyTypst Quarto extension for a template to generate a PDF with (pretty) styling using either Typst. Use `PrettyTypst-typst` for the format. Note that version 1.4 or greater of Quarto is required. > Note: see [github.com/nrennie/PrettyPDF](https://github.com/nrennie/PrettyPDF) for the LaTeX version of this templ...
https://github.com/Jollywatt/typst-fletcher
https://raw.githubusercontent.com/Jollywatt/typst-fletcher/master/tests/mark-debug/test.typ
typst
MIT License
#set page(width: auto, height: auto, margin: 1em) #import "/src/exports.typ" as fletcher #context fletcher.MARKS.get().pairs().map(((key, mark)) => [ #raw(key) #set align(center) #fletcher.mark-debug(mark, show-offsets: true) #fletcher.mark-demo(mark) ]).join(pagebreak())
https://github.com/xichen1/typst-resume
https://raw.githubusercontent.com/xichen1/typst-resume/main/main.typ
typst
#import "template.typ": * // Take a look at the file `template.typ` in the file panel // to customize this template and discover how it works. #show: project.with( title: "resume", authors: ( "rrr_pan", ), ) #show link: underline // We generated the example code below so you can see how // your document wi...
https://github.com/chubetho/Bachelor_Thesis
https://raw.githubusercontent.com/chubetho/Bachelor_Thesis/main/utils/header.typ
typst
#let buildMainHeader(mainHeading) = { [ #text(mainHeading.body) #line(length: 100%, stroke: 0.5pt) ] } #let buildSecondaryHeader(mainHeading, secondaryHeading) = { [ #text(mainHeading.body) #h(1fr) #context (counter(heading).display()) #text(secondaryHeading.body) #line(length: 100%, ...
https://github.com/0x1B05/nju_os
https://raw.githubusercontent.com/0x1B05/nju_os/main/book_notes/content/02_virtualization_02_memory_02_paging.typ
typst
#import "../template.typ": * #pagebreak() == Intro to Paging Another approach to solve the external-fragment problems: to chop up space into *fixed-sized* pieces. - We divide it into fixed-sized units, each of which we call a *page*. - Correspondingly,we view physical memory as an array of fixed-sized slots ca...
https://github.com/TypstApp-team/typst
https://raw.githubusercontent.com/TypstApp-team/typst/master/tests/typ/meta/query-before-after.typ
typst
Apache License 2.0
--- #set page( paper: "a7", numbering: "1 / 1", margin: (bottom: 1cm, rest: 0.5cm), ) #show heading.where(level: 1, outlined: true): it => [ #it #set text(size: 12pt, weight: "regular") #outline( title: "Chapter outline", indent: true, target: heading .where(level: 1) .or(heading....
https://github.com/typst/packages
https://raw.githubusercontent.com/typst/packages/main/packages/preview/cetz-plot/0.1.0/src/plot/contour.typ
typst
Apache License 2.0
#import "/src/cetz.typ": draw #import "util.typ" #import "sample.typ" // Find contours of a 2D array by using marching squares algorithm // // - data (array): A 2D array of floats where the first index is the row and the second index is the column // - offset (float): Z value threshold of a cell compare with `op` to,...
https://github.com/lucifer1004/leetcode.typ
https://raw.githubusercontent.com/lucifer1004/leetcode.typ/main/problems/p0003.typ
typst
#import "../helpers.typ": * #import "../solutions/s0003.typ": * = Longest Substring Without Repeating Characters Given a string `s`, find the length of the *longest substring* without repeating characters. #let longest-substring-without-repeating-charaters(s) = { // Solve the problem here } #testcases( longest-...
https://github.com/jgm/typst-hs
https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/compute/construct-05.typ
typst
Other
// Error: 5-11 missing argument: blue component #rgb(0, 1)
https://github.com/CheneyNine/Resume-in-Typst-Template
https://raw.githubusercontent.com/CheneyNine/Resume-in-Typst-Template/main/README.md
markdown
# Resume Template in Typst 使用 Typst 编写的简历模板. 代码上,以[OrangeX4](https://github.com/OrangeX4/Chinese-Resume-in-Typst) 所提供的模板为基础,增加了一定的行距控制,丰富了图标内容。同时也参考了一部分Typst的[中文手册](https://typst-doc-cn.github.io/docs/tutorial/). 功能与外观上,参考了[doubleZ](https://github.com/doubleZ0108)的个人简历作品,非常感谢大佬的耐心指导. 图标来源:https://fontawesome.com/ic...
https://github.com/TycheTellsTales/typst-pho
https://raw.githubusercontent.com/TycheTellsTales/typst-pho/main/private.typ
typst
#import emoji: suit #import sym: triangle #import "./boards.typ" #import "./people.typ" /////////////// // Variables // /////////////// #let originalPoster = "Original Poster" //////////////////// // PHO Formatting // //////////////////// #let centerSquare() = {align(center)[■]} #let header(username: "Tin Mother")...
https://github.com/antonWetzel/Masterarbeit
https://raw.githubusercontent.com/antonWetzel/Masterarbeit/main/arbeit/triangulierung.typ
typst
#import "setup.typ": * = Triangulierung <triangulierung> == Ziel Das Ziel der Triangulierung ist eine Approximation der ursprünglichen Oberfläche von den gescannten Bäumen, welche weiterverarbeitet oder angezeigt werden kann. Die meisten Programme und Hardware sind auf das Anzeigen von Dreiecken spezialisiert und ...
https://github.com/TypstApp-team/typst
https://raw.githubusercontent.com/TypstApp-team/typst/master/docs/reference/styling.md
markdown
Apache License 2.0
--- description: All concepts needed to style your document with Typst. --- # Styling Typst includes a flexible styling system that automatically applies styling of your choice to your document. With _set rules,_ you can configure basic properties of elements. This way, you create most common styles. However, there mi...
https://github.com/pku-typst/meppp
https://raw.githubusercontent.com/pku-typst/meppp/main/README.md
markdown
MIT License
# meppp A simple template for modern physics experiments (MPE) courses at the Physics School of PKU. ## meppp-lab-report The recommended report format of MPE course. Default arguments are shown as below: ```typ #import "@preview/meppp:0.2.1": * #let meppp-lab-report( title: "", author: "", info: [], abstra...
https://github.com/jomaway/typst-linguify
https://raw.githubusercontent.com/jomaway/typst-linguify/main/lib/fluent.typ
typst
MIT License
#let ftl = plugin("./linguify_fluent_rs/linguify_fluent_rs.wasm") /// returns a bool #let has_message(ftl_str, msg_id) = { str(ftl.has_id(bytes(ftl_str), bytes(msg_id))) == "true" } /// Returns the message from the ftl file /// - `ftl_str` (str): the content of the ftl file /// - `msg_id` (str): the identifier of t...
https://github.com/jgm/typst-hs
https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/compiler/comment-01.typ
typst
Other
// End should not appear without start. // Error: 7-9 unexpected end of block comment /* */ */ // Unterminated is okay. /*
https://github.com/kotfind/hse-se-2-notes
https://raw.githubusercontent.com/kotfind/hse-se-2-notes/master/cpp/lectures/2024-10-18.typ
typst
= Параллельное программирование Зачем: - хотим выполнять разные операции в одно и то же время (например, одновременно считать и взаимодействовать с пользователем) - ускорение на многоядерной системой Параллельное или конкурентное: - Параллельное --- хотим решить одну задачу быстрее - Конкурентное --- есть много зад...
https://github.com/sarah-quinones/inria-slides-2024-02-20
https://raw.githubusercontent.com/sarah-quinones/inria-slides-2024-02-20/main/slides.typ
typst
// Get Polylux from the official package repository #import "@preview/polylux:0.3.1": * // Make the paper dimensions fit for a presentation and the text larger #set page(paper: "presentation-16-9") #set text(size: 25pt) #set text( font: ("New Computer Modern Sans", "Noto Color Emoji"), ) // Use #polylux-slide to c...
https://github.com/RolfBremer/gloss-awe
https://raw.githubusercontent.com/RolfBremer/gloss-awe/main/gloss-awe.typ
typst
Apache License 2.0
// Copyright 2023 <NAME>, <NAME> // Extracts (nested) content or text to text #let as-text(element, sep: "") = { if element == none { return none } let elementtype = type(element) if elementtype in (array, dictionary, smartquote) { return none } if elementtype == content { if element.has("tex...
https://github.com/YunkaiZhang233/a-level-further-maths-topic-questions-david-game
https://raw.githubusercontent.com/YunkaiZhang233/a-level-further-maths-topic-questions-david-game/main/README.md
markdown
# typst-assignment-template This is a simple template for topic questions, modified from the [typst-assignment-template](https://github.com/gRox167/typst-assignment-template) repository.
https://github.com/DieracDelta/presentations
https://raw.githubusercontent.com/DieracDelta/presentations/master/polylux/book/src/dynamic/alternatives-fn.typ
typst
#import "../../../polylux.typ": * #set page(paper: "presentation-16-9") #set text(size: 60pt) #polylux-slide[ #alternatives-fn(start: 2, count: 7, subslide => { numbering("(i)", subslide) }) ]
https://github.com/frectonz/the-pg-book
https://raw.githubusercontent.com/frectonz/the-pg-book/main/book/180.%20lesson.html.typ
typst
lesson.html The Lesson to Unlearn December 2019 The most damaging thing you learned in school wasn't something you learned in any specific class. It was learning to get good grades.When I was in college, a particularly earnest philosophy grad student once told me that he never cared what grade he got in a class, only ...
https://github.com/TypstApp-team/typst
https://raw.githubusercontent.com/TypstApp-team/typst/master/tests/typ/math/attach-p3.typ
typst
Apache License 2.0
// Test t and b attachments, part 3. --- // Test limit. $ lim_(n->oo \ n "grows") sum_(k=0 \ k in NN)^n k $ --- // Test forcing scripts and limits. $ limits(A)_1^2 != A_1^2 $ $ scripts(sum)_1^2 != sum_1^2 $ $ limits(integral)_a^b != integral_a^b $ --- // Error: 30-34 unknown variable: oops $ attach(A, t: #locate(it ...
https://github.com/TypstApp-team/typst
https://raw.githubusercontent.com/TypstApp-team/typst/master/tests/typ/layout/enum-numbering.typ
typst
Apache License 2.0
// Test enum numbering styles. --- // Test numbering pattern. #set enum(numbering: "(1.a.*)") + First + Second 2. Nested + Deep + Normal --- // Test full numbering. #set enum(numbering: "1.a.", full: true) + First + Nested --- // Test numbering with closure. #enum( start: 3, spacing: 0.65em - 3pt, tig...
https://github.com/polarkac/MTG-Stories
https://raw.githubusercontent.com/polarkac/MTG-Stories/master/stories/056%20-%20Outlaws%20of%20Thunder%20Junction/010_Episode%206%3A%20The%20Ballad%20of%20Thieves%20and%20Thunderslingers.typ
typst
#import "@local/mtgstory:0.2.0": conf #show: doc => conf( "Episode 6: The Ballad of Thieves and Thunderslingers", set_name: "Outlaws of Thunder Junction", story_date: datetime(day: 25, month: 03, year: 2024), author: "<NAME>", doc ) The hot wind carried a flurry of embers that swirled around Oko li...
https://github.com/ntjess/typst-invoice-template
https://raw.githubusercontent.com/ntjess/typst-invoice-template/main/README.md
markdown
Apache License 2.0
# Invoice Template for Typst ![](sample-use.gif) Generates a minimalist invoice from provided company, customer and charges data. One nice upside of this template vs manually configuring an invoice is that totals are automatically calculated, reducing the chance of human error. All required information can be change...
https://github.com/ludwig-austermann/typst-idwtet
https://raw.githubusercontent.com/ludwig-austermann/typst-idwtet/main/CHANGELOG.md
markdown
MIT License
# v0.3.0 - added `%ENDHIDDEN%` - updated to typst 0.8 - expanded `typst.toml` file with compiler, exclude to publish everything to the package repo
https://github.com/HEIGVD-Experience/docs
https://raw.githubusercontent.com/HEIGVD-Experience/docs/main/S4/ISI/docs/2-Intrusions/intrusion-logicielles.typ
typst
#import "/_settings/typst/template-note.typ": conf #show: doc => conf( title: [ Intrusions logicielles ], lesson: "ISI", chapter: "2 - Intrusions", definition: "Ce document traite des principales attaques logicielles, dont Heartbleed et Log4Shell, ainsi que des vulnérabilités courantes comme les débordeme...
https://github.com/RaphGL/ElectronicsFromBasics
https://raw.githubusercontent.com/RaphGL/ElectronicsFromBasics/main/DC/chap1/1_static_electricity.typ
typst
Other
#import "../../core/core.typ" === Static electricity It was discovered centuries ago that certain types of materials would mysteriously attract one another after being rubbed together. For example: after rubbing a piece of silk against a piece of glass, the silk and glass would tend to stick together. Indeed, there w...
https://github.com/EpicEricEE/typst-plugins
https://raw.githubusercontent.com/EpicEricEE/typst-plugins/master/united/README.md
markdown
# united A package for easy typesetting of numbers with units. This fork of the [unify](https://github.com/ChHecker/unify) package, which was inspired by the [siunitx](https://ctan.org/pkg/siunitx) package for LaTeX, aims to further enhance the functionality and usability of the original package. ## Usage The package...
https://github.com/Myriad-Dreamin/typst.ts
https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/math/attach-p3_05.typ
typst
Apache License 2.0
#import "/contrib/templates/std-tests/preset.typ": * #show: test-page // Test default of scripts attachments on integrals at display size $ integral.sect_a^b quad \u{2a1b}_a^b quad limits(\u{2a1b})_a^b $ $integral.sect_a^b quad \u{2a1b}_a^b quad limits(\u{2a1b})_a^b$
https://github.com/faber222/RAW-CODE-TYPST
https://raw.githubusercontent.com/faber222/RAW-CODE-TYPST/main/main.typ
typst
MIT License
#import "@preview/klaro-ifsc-sj:0.1.0": report #show: doc => report( title: "Enumarated Raw Code", subtitle: "Um template para o Typst voltado para criar um Enumarated raw code", authors: ("Faber222",), date: "16 de Julho de 2024", doc, ) // A partir dessa parte #let style-number(number) = text(gray)[#numb...
https://github.com/hakureiR-eimu/my-typst-documents
https://raw.githubusercontent.com/hakureiR-eimu/my-typst-documents/template/mySample.typ
typst
MIT License
#import "myTemplate.typ": * #import "@preview/codelst:2.0.0": sourcecode #show: project.with( anonymous: false, title: "114514基于 ChatGPT 的狗屁通文章生成器但是把标题加长到两行", author: "张钧玮", school: "计算机学院", id: "U202115520", mentor: "114514你的老板", class: "大数据 专业 2102 班", date: (114514, 8, 17) ) = 绪论 // == typst 介绍 ...
https://github.com/HKFoggyU/hkust-thesis-typst
https://raw.githubusercontent.com/HKFoggyU/hkust-thesis-typst/main/hkust-thesis/template.typ
typst
LaTeX Project Public License v1.3c
// Repo: https://github.com/HKFoggyU/hkust-thesis-typst // Author: HKFoggyU // License: LPPL-1.3c // Import #import "layouts/doc.typ": doc #import "layouts/mainmatter.typ": mainmatter #import "layouts/refmatter.typ": refmatter #import "layouts/postmatter.typ": postmatter #import "layouts/appendix.typ": appe...
https://github.com/typst/packages
https://raw.githubusercontent.com/typst/packages/main/packages/preview/weave/0.1.0/README.md
markdown
Apache License 2.0
# weave A helper library for chaining lambda abstractions, imitating the `|>` or `.` operator in some functional languages. ## Import You can import the latest version of this package with: ```typ #import "@preview/weave:0.1.0": pipe, pipe_ ``` Functions suffixed with underscore are flipped and curried version. ## Ba...
https://github.com/LDemetrios/Typst4k
https://raw.githubusercontent.com/LDemetrios/Typst4k/master/src/test/resources/suite/layout/spacing.typ
typst
// Test the `h` and `v` functions. --- spacing-h-and-v --- // Linebreak and leading-sized weak spacing are equivalent. #box[A \ B] #box[A #v(0.65em, weak: true) B] // Eating up soft spacing. Inv#h(0pt)isible // Multiple spacings in a row. Add #h(10pt) #h(10pt) up // Relative to area. #let x = 25% - 4pt |#h(x)|#h(x)...
https://github.com/jgm/typst-hs
https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/regression/issue2.typ
typst
Other
$lr(#sym.alpha#sym.beta)$
https://github.com/EpicEricEE/typst-plugins
https://raw.githubusercontent.com/EpicEricEE/typst-plugins/master/hash/assets/example.typ
typst
#import "../src/lib.typ": hash, hex, md5, sha256, sha3 #set text(size: 14pt) #set page( width: auto, height: auto, margin: 1em, background: pad(0.5pt, box( width: 100%, height: 100%, radius: 4pt, fill: white, stroke: white.darken(10%), )), ) #table( columns: 2, inset: 0.5em, table...
https://github.com/TypstApp-team/typst
https://raw.githubusercontent.com/TypstApp-team/typst/master/tests/typ/layout/par-justify.typ
typst
Apache License 2.0
--- #set page(width: 180pt) #set block(spacing: 5pt) #set par(justify: true, first-line-indent: 14pt, leading: 5pt) This text is justified, meaning that spaces are stretched so that the text forms a "block" with flush edges at both sides. First line indents and hyphenation play nicely with justified text. --- // Te...
https://github.com/howardlau1999/sysu-thesis-typst
https://raw.githubusercontent.com/howardlau1999/sysu-thesis-typst/master/functions/allinone.typ
typst
MIT License
#import "booktab.typ": * #import "codeblock.typ": * #import "figurelist.typ": * #import "helpers.typ": * #import "numbering.typ": * #import "style.typ": * #import "underline.typ": * #import "@preview/tablex:0.0.6": tablex
https://github.com/ClazyChen/Table-Tennis-Rankings
https://raw.githubusercontent.com/ClazyChen/Table-Tennis-Rankings/main/history/2019/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>], [CHN], [3546], [2], [XU Xin], [CHN], [3436], [3], [FAN Zhendong], [CHN], [3399], [4], [<NAME>], [CHN], [33...
https://github.com/qujihan/toydb-book
https://raw.githubusercontent.com/qujihan/toydb-book/main/src/chapter2/memory.typ
typst
#import "../../typst-book-template/book.typ": * #let path-prefix = figure-root-path + "src/pics/" == Memory 存储引擎 TODO: 比较简单,可以直接看代码。
https://github.com/Namacha411/shogi-board
https://raw.githubusercontent.com/Namacha411/shogi-board/main/README.md
markdown
MIT License
# Shogi-board Typst向けの将棋盤プラグインです。 詳細は[こちらのpdf](./manual.pdf)をご覧ください。
https://github.com/typst/packages
https://raw.githubusercontent.com/typst/packages/main/packages/preview/grayness/0.1.0/manual.typ
typst
Apache License 2.0
#import "@preview/tidy:0.2.0" = GrayNess This Package provides the following basic image editing functions: #let docs = tidy.parse-module(read("lib.typ")) #tidy.show-module(docs, style: tidy.styles.default)
https://github.com/skylee03/skylee-homework-typst
https://raw.githubusercontent.com/skylee03/skylee-homework-typst/main/skylee-hw.typ
typst
MIT License
#let _shw-problem-counter = counter("_shw:problem-counter") #let problem = (content) => { _shw-problem-counter.update(n => n + 1) grid( columns: (auto, 1fr), column-gutter: 1em, _shw-problem-counter.display("1."), content ) } #let parts = (..args) => { enum( tight: false, numbering: "(...
https://github.com/Skimmeroni/Appunti
https://raw.githubusercontent.com/Skimmeroni/Appunti/main/C++/Introduzione/Stringhe.typ
typst
Creative Commons Zero v1.0 Universal
#import "@preview/showybox:2.0.1": showybox Una *stringa* é un tipo di dato che permette di memorizzare informazioni alfanumeriche. In C, le stringhe sono degli array di `char` il cui ultimo carattere é il carattere speciale `\0`. Quando a `cout` viene fornito un array di `char` con queste caratteristiche, vengono ord...
https://github.com/robinhundt/tpmpc24-talk
https://raw.githubusercontent.com/robinhundt/tpmpc24-talk/main/circuit.typ
typst
MIT License
#import "@preview/cetz:0.2.2" #import cetz.draw: * #let anchors(anchors) = { for (k, v) in anchors { anchor(k, v) } } #let and-gate-body = { group(name: "and", { merge-path(close: true, { arc((0,0), start: -90deg, stop: 90deg, radius: 0.5, name: "curve", anchor: "origin") line( (0, 0...
https://github.com/piepert/philodidaktik-hro-phf-ifp
https://raw.githubusercontent.com/piepert/philodidaktik-hro-phf-ifp/main/src/kurzentwuerfe/template.typ
typst
Other
#let the-date = datetime( year: datetime.today().year(), month: datetime.today().month(), day: datetime.today().day() ).display("[day].[month].[year]") #let cheat-sheet = [ ] #let schedule(class: 9, title-lesson: none, title-series: none, justification: none, time: none, date: datetime.today(),...
https://github.com/7sDream/fonts-and-layout-zhCN
https://raw.githubusercontent.com/7sDream/fonts-and-layout-zhCN/master/chapters/07-localisation/USE-cluster.typ
typst
Other
#import "/lib/draw.typ": * #let start = (100, -20) #let end = (800, 700) #let graph = with-unit((ux, uy) => { // mesh(start, end, (100, 100), stroke: 1 * ux + gray) let txt = txt.with(size: 15 * ux) let highlight-stroke = stroke( paint: green.darken(20%), thickness: 2 * ux, dash: (23*ux, 8*ux, 6*...
https://github.com/jgm/typst-hs
https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/compiler/array-25.typ
typst
Other
// Error: 2-10 cannot calculate sum of empty array with no default #().sum()
https://github.com/loqusion/typix
https://raw.githubusercontent.com/loqusion/typix/main/docs/recipes/specifying-sources.md
markdown
MIT License
# Specifying sources A number of derivations in Typix accept source trees as parameters, such as [`src`](../api/derivations/mk-typst-derivation.md#src), [`fontPaths`](../api/derivations/mk-typst-derivation.md#fontpaths), and [`virtualPaths`](../api/derivations/mk-typst-derivation.md#virtualpaths). Specifying these is ...
https://github.com/jamesrswift/journal-ensemble
https://raw.githubusercontent.com/jamesrswift/journal-ensemble/main/template/main.typ
typst
The Unlicense
#import "/src/lib.typ" as journal #show: journal.ensemble.rule() #let logo = { v(1fr) set align(right) block({ set align(left) set text(weight: 600) context text( size: 20pt, fill: journal.ensemble.color-accent-1.get(), h(0.3em) + upper[Journal Of\ ] ) text(size: 32pt, fi...
https://github.com/rose-pine/typst
https://raw.githubusercontent.com/rose-pine/typst/main/src/themes/rose-pine.typ
typst
MIT License
#let rose-pine = ( base : rgb("#191724"), surface : rgb("#1f1d2e"), overlay : rgb("#26233a"), muted : rgb("#6e6a86"), subtle : rgb("#908caa"), text : rgb("#e0def4"), love : rgb("#eb6f92"), gold : rgb("#f6c177"), rose : rgb("#ebbcba"), pine : rgb("#31748f"), ...
https://github.com/rzmk/various-dsat-math-notes
https://raw.githubusercontent.com/rzmk/various-dsat-math-notes/main/README.md
markdown
# 📝 Various Digital SAT Math Notes A **supplemental resource** of notes based on various resources for individuals studying for the Digital SAT's math section. ## **[View notes.pdf for the compiled notes.](notes.pdf)** [![Cover page](cover.png)](notes.pdf) ## 📚 Tech Stack - [Typst](https://typst.app) - Typeset...
https://github.com/JamesWrigley/euxfel-polylux-theme
https://raw.githubusercontent.com/JamesWrigley/euxfel-polylux-theme/master/README.md
markdown
# An XFEL Polylux theme This is a [Polylux](https://polylux.dev/book/) theme for [European XFEL](https://xfel.eu) presentations. Here's a quick demo: ```typst #import "euxfel-polylux-theme/theme.typ": * // Default options are shown commented out #show: euxfel-theme.with( title: "Optimising treat delivery", autho...
https://github.com/lxl66566/my-college-files
https://raw.githubusercontent.com/lxl66566/my-college-files/main/信息科学与工程学院/机器视觉实践/报告/1/1.typ
typst
The Unlicense
#import "../template.typ": * #show: project.with( title: "1", authors: ("absolutex",), ) = 机器视觉实践 一 == 实验目的 图像划痕修复: + 编程实现图像划痕修复 + 要求算法具有一定实时性能够处理较密集的图像划痕 + 具体实现方法不限 + 编程语言不限,可通过C++,Python或Matlab实现 == 实验内容 === 高斯模糊 课上有学习过,高斯模糊是一种平滑滤波器,它通过在图像的每个像素周围应用加权平均来减少图像中的高频噪声和细节。这种模糊操作会丢失图像中的细节信息,包括瑕疵的边缘和纹理。所以我尝试用高斯模糊...
https://github.com/nafkhanzam/typst-common
https://raw.githubusercontent.com/nafkhanzam/typst-common/main/src/common/style.typ
typst
#let headz(outlined: true, body) = heading(outlined: outlined, numbering: none, body) #let phantom(body) = place(top, scale(x: 0%, y: 0%, hide(body))) #let s-center(body) = align(center + horizon, body) #let enable-todo-hl(body) = { show "TODO": box( fill: red.darken(25%), outset: .15em, text(fill: white...
https://github.com/KrisjanisP/lu-icpc-notebook
https://raw.githubusercontent.com/KrisjanisP/lu-icpc-notebook/main/2-algebra.typ
typst
#block( breakable: false,[ = Algebra == Binary exponentiation ```cpp ll m_pow(ll base, ll exp, ll mod) { base %= mod; ll result = 1; while (exp > 0) { if (exp & 1) result = (result * base) % mod; base = (base * base) % mod; exp >>= 1; } return result; } ``` ]) #block( breakable: fal...
https://github.com/jgm/typst-hs
https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/compiler/return-04.typ
typst
Other
// Test that the expression is evaluated to the end. #let sum(..args) = { let s = 0 for v in args.pos() { s += v } s } #let f() = { sum(..return, 1, 2, 3) "nope" } #test(f(), 6)
https://github.com/KNnut/neoplot
https://raw.githubusercontent.com/KNnut/neoplot/main/pkg/examples/demo.typ
typst
BSD 3-Clause "New" or "Revised" License
#import "../lib.typ" as gp #let title = [Gnuplot demos] #let subtitle = [in Typst] #align(center, text(17pt)[ *#title* ] + text(12pt)[ *#subtitle* ] ) ```typ gp.exec(kind: "command", command)``` can be used to run gnuplot commands: #figure( gp.exec( kind: "command", ...
https://github.com/Myriad-Dreamin/typst.ts
https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/visualize/shape-rect_00.typ
typst
Apache License 2.0
#import "/contrib/templates/std-tests/preset.typ": * #show: test-page // Default rectangle. #rect()
https://github.com/maxgraw/bachelor
https://raw.githubusercontent.com/maxgraw/bachelor/main/apps/document/src/0-base/4-outline.typ
typst
#show outline.entry.where( level: 1 ): it => { v(16pt, weak: true) strong(it) } #outline(indent: auto, depth: 2, target: heading.where(supplement: [Abschnitt])) #pagebreak()
https://github.com/T1mVo/shadowed
https://raw.githubusercontent.com/T1mVo/shadowed/main/benchmarks/results.md
markdown
MIT License
# Results Benchmarks were run on a Apple MacBook Pro 2020 with 8 cores and 16 GB RAM. | Version | Compiler | Templating | Time | |:-------:|:------------:|:----------:|:------------:| | 0.1.0 | 0.11.1 | Rust | 00:00:08.839 | | 0.1.0 | 0.11.1 | Typst | 00:00:08.942 | | 0.1.0 | ...
https://github.com/dismint/docmint
https://raw.githubusercontent.com/dismint/docmint/main/security/bitlocker.typ
typst
#import "template.typ": * #show: template.with( title: "BitLocker", subtitle: "6.566" ) = Introduction BitLocker is a feature of of Windows shipped in Vista onward which encrypts all the data on the system volume. The main motivation for BitLocker is to prevent any dangerous interactions when laptops are lost - a...
https://github.com/jgm/typst-hs
https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/compiler/show-selector-01.typ
typst
Other
#show heading.where(level: 1): set text(red) #show heading.where(level: 2): set text(blue) #show heading: set text(green) = Red == Blue === Green
https://github.com/Hucy/cv_typst_template
https://raw.githubusercontent.com/Hucy/cv_typst_template/main/README.md
markdown
MIT License
# cv_typst_template | [zh](./cv_zh.typ) \| [zh_PDF](./cv_zh.pdf) | [en](./cv_en.typ) \| [en_PDF](./cv_en.pdf) | | -------------------------------------------------------------------------------------- | --------------------------...
https://github.com/SeniorMars/typst-raytracer
https://raw.githubusercontent.com/SeniorMars/typst-raytracer/main/mandel.typ
typst
#set par(leading:0em) #let mandelbrot() = { let red = 0 let green = 0 let blue = 0 let width = 164 let height = 250 let max_iter = 256 let cxmin = -2.0 let cxmax = 1.0 let cymin = -1.5 let cymax = 1.5 let scalex = ((cxmax - cxmin) / width) let scaley = ((cymax - cymin) / height) let zx; l...
https://github.com/EmileVezinaCoulombe/Planner
https://raw.githubusercontent.com/EmileVezinaCoulombe/Planner/main/README.md
markdown
# Personal Planner This is my daily and weekly planner made with 💖 and [typst](https://typst.app/) ![Daily planner](./assets/planner-1.png) ![Weekly planner](./assets/planner-2.png)
https://github.com/typst-community/valkyrie
https://raw.githubusercontent.com/typst-community/valkyrie/main/src/types/logical.typ
typst
Other
#import "../base-type.typ": base-type #import "../assertions-util.typ": assert-base-type-array #import "../ctx.typ": z-ctx /// Valkyrie schema generator for objects that can be any of multiple types. /// /// -> schema #let either( strict: false, ..args, ) = { assert( args.pos().len() > 0, message: "z.ei...
https://github.com/augustebaum/petri
https://raw.githubusercontent.com/augustebaum/petri/main/tests/fletcher/colored-places/test.typ
typst
MIT License
#import "/src/lib.typ": * #set page(width: auto, height: auto, margin: 1cm) #import "@preview/fletcher:0.4.2" as fletcher /// % Place 1 /// \node[place, /// fill=red!25, /// draw=red!75, /// tokens=2, /// label=$P_1$] (place1) at (0,0) {}; /// /// % Place 2 /// \node[place, /// fill=teal!25, /// draw=teal!75, ...
https://github.com/Jollywatt/typst-fletcher
https://raw.githubusercontent.com/Jollywatt/typst-fletcher/master/tests/mark-math-matching/test.typ
typst
MIT License
#set page(width: 6cm, height: auto, margin: 1em) #import "/src/exports.typ" as fletcher: diagram, node, edge Compare to $->$, $=>$, $arrow.triple$, $arrow.twohead$, $arrow.hook$, $|->$. #let (result-color, target-color) = (rgb("f066"), rgb("0bf5")) #text(result-color)[Our output] versus #text(target-color)[reference...
https://github.com/Area-53-Robotics/53E-Notebook-Over-Under-2023-2024
https://raw.githubusercontent.com/Area-53-Robotics/53E-Notebook-Over-Under-2023-2024/giga-notebook/entries/lift/decide.typ
typst
Creative Commons Attribution Share Alike 4.0 International
#import "/packages.typ": notebookinator #import notebookinator: * #import themes.radial.components: * #show: create-body-entry.with( title: "Decide: Lift", type: "decide", date: datetime(year: 2024, month: 1, day: 5), author: "<NAME>", witness: "Violet Ridge", ) After identifying our options, we compared th...
https://github.com/catppuccin/typst
https://raw.githubusercontent.com/catppuccin/typst/main/manual/manual.typ
typst
MIT License
#import "../src/catppuccin.typ": themes, get-palette, config-code-blocks #import "../src/tidy/styles.typ": get-tidy-colors, show-type as sh-type #import "../src/tidy/show-module.typ": show-module #import "template.typ": * #import "@preview/tidy:0.3.0" #import "@preview/oxifmt:0.2.1": strfmt #let version = toml("../typ...
https://github.com/TypstApp-team/typst
https://raw.githubusercontent.com/TypstApp-team/typst/master/tests/typ/bugs/justify-hanging-indent.typ
typst
Apache License 2.0
// Test that combination of justification and hanging indent doesn't result in // an underfull first line. --- #set par(hanging-indent: 2.5cm, justify: true) #lorem(5)
https://github.com/TechnoElf/mqt-qcec-diff-thesis
https://raw.githubusercontent.com/TechnoElf/mqt-qcec-diff-thesis/main/content/implementation/application.typ
typst
#import "@preview/lovelace:0.3.0": pseudocode-list == QCEC Application Scheme Based on the lessons learnt from Kaleidoscope, the Myers' algorithm was implemented as an application scheme in @mqt @qcec. This was accomplished by adding appropriate C++ classes and extending the existing functionality for configuring equi...
https://github.com/HFU-CV-projects/typst-template
https://raw.githubusercontent.com/HFU-CV-projects/typst-template/main/README.md
markdown
# typst-template A template to write the thesis with typst. - You can use Typst in the browser: https://typst.app/ - Or as extension in VSCode: https://marketplace.visualstudio.com/items?itemName=nvarner.typst-lsp - You can translate your Latex-Project in Typst at https://typst.app/ ("Start from Template -> Start fro...
https://github.com/dyc3/senior-design
https://raw.githubusercontent.com/dyc3/senior-design/main/poster.typ
typst
#import "@preview/fletcher:0.4.2" as fletcher: node, edge #import "@preview/t4t:0.3.2": * #import "@preview/cades:0.3.0": qr-code #let stevens-red = rgb(160, 1, 42) #let stevens-gray = rgb(127, 129, 130) #set par( justify: true, leading: 0.60em, ) #set page( footer: [ #set align(horizon) #line(len...
https://github.com/frectonz/the-pg-book
https://raw.githubusercontent.com/frectonz/the-pg-book/main/book/014.%20power.html.typ
typst
#set page( paper: "a5", margin: (x: 1.8cm, y: 1.5cm), ) #set text( font: "Liberation Serif", size: 10pt, hyphenate: false ) #set par(justify: true) #set quote(block: true) #v(10pt) = Succinctness is Power #v(10pt) _May 2002_ #quote(attribution: [<NAME>, quoted in Iverson's Turing Award Lecture ])[ "The q...
https://github.com/jijinbei/typst_template
https://raw.githubusercontent.com/jijinbei/typst_template/main/manual/README.md
markdown
# 取扱説明書テンプレート ## インストール方法 > git clone https://github.com/jijinbei/typst_template.git (dirname) でクローンする。 dirnameを好きなファイル名に ## 注意 デフォルトのフォントは`Noto Sans JP`と`Kosugi Maru`を用いているので、それらをインストールをしてください
https://github.com/Skimmeroni/Appunti
https://raw.githubusercontent.com/Skimmeroni/Appunti/main/Metodi%20Algebrici/Insiemi/Insiemi.typ
typst
Creative Commons Zero v1.0 Universal
Sia $NN$ un insieme e sia $S$ una funzione. Si supponga che per $NN$ ed $S$ siano rispettati i seguenti cinque assiomi, detti *Assiomi di Peano*: + Esiste un elemento, chiamato $0$, che appartiene ad $NN$; + Per ogni elemento $n in NN$, esiste un $S(n)$ a sua volta membro di $NN$. Ovvero, $NN$ é un insieme chiuso ri...
https://github.com/N4tus/uf_algo
https://raw.githubusercontent.com/N4tus/uf_algo/main/style_base.typ
typst
MIT License
#import "types.typ": * #let _ex_style(name, elem, styler, pred) = { let ex_style = (elem, makeup) => { let style = if t_check(TMakeup, makeup) { makeup.style } else { makeup } if type(style) == "string" { panic(sytle) } if name != none and name in style { styler(elem,...
https://github.com/Myriad-Dreamin/typst.ts
https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/packages/typst.vue3/README.md
markdown
Apache License 2.0
# Typst.vue3 [WIP] This is a basic vue component for rendering typst documents. ## Installation ```bash yarn add @myriaddreamin/typst.ts yarn add @myriaddreamin/typst.vue3 ``` ## Usage First, set path to wasm files: ```ts import { $typst } from '@myriaddreamin/typst.ts/dist/esm/contrib/snippet.mjs'; $typst.setCo...
https://github.com/yongweiy/cv
https://raw.githubusercontent.com/yongweiy/cv/master/honors.typ
typst
// Imports #import "@preview/brilliant-cv:2.0.2": cvSection, cvEntry #let metadata = toml("./metadata.toml") #let cvSection = cvSection.with(metadata: metadata, highlighted: false) #let cvEntry = cvEntry.with(metadata: metadata) #cvSection("Honors and Awards") #list( [Merit Recognition Award 2024, Purdue Univers...
https://github.com/GYPpro/Java-coures-report
https://raw.githubusercontent.com/GYPpro/Java-coures-report/main/Report/9.typ
typst
#set text(font:("Times New Roman","Source Han Serif SC")) #show raw.where(block: false): box.with( fill: luma(240), inset: (x: 3pt, y: 0pt), outset: (y: 3pt), radius: 2pt, ) // Display block code in a larger block // with more padding. #show raw.where(block: true): block.with( fill: luma(240), inset: 10pt,...
https://github.com/kazuyanagimoto/quarto-slides-typst
https://raw.githubusercontent.com/kazuyanagimoto/quarto-slides-typst/main/slides/quarto-clean-typst/custom.typ
typst
MIT License
#let _small-cite(self: none, it) = text( size: 0.7em, fill: self.colors.neutral-darkest.lighten(30%), it ) #let small-cite(it) = touying-fn-wrapper(_small-cite.with(it))
https://github.com/csimide/SEU-Typst-Template
https://raw.githubusercontent.com/csimide/SEU-Typst-Template/master/seu-thesis/pages/cover-bachelor-fn.typ
typst
MIT License
#import "../utils/packages.typ": fakebold #import "../utils/fonts.typ": 字体, 字号, chineseunderline, justify-words #let bachelor-cover-conf( student_id: "00121001", author: "王东南", school: "示例学院", major: "示例专业", advisor: "湖牌桥", thesis-name: "示例论文标题\n此行空白时下划线自动消失", date: "某个起止日期", ) = page( paper: "a4", m...
https://github.com/DieracDelta/presentations
https://raw.githubusercontent.com/DieracDelta/presentations/master/08_02_24/main.typ
typst
#import "polylux/polylux.typ": * #import themes.metropolis: * #import "common.typ": * #show: metropolis-theme.with( footer: [#logic.logical-slide.display() / #utils.last-slide-number] ) #set text(font: font, weight: wt, size: 25pt) // #show math.equation: set text(font: "Fira Math") #set strong(delta: 100) #set par...
https://github.com/takotori/PhAI-Spick
https://raw.githubusercontent.com/takotori/PhAI-Spick/main/sections/arbeit.typ
typst
= Arbeit $W$ *Beziehung zwischen Arbeit und Energie:* #grid( columns: (auto, auto), gutter: 5pt, $ Delta E = W_"AB" $, [*$Delta E$*: Energieänderung eines offenen Systems \ *$W_"AB"$*: Arbeit, einer äusseren Kraft an diesem System] ) #grid( columns: (auto, auto), gutter: 5pt, $ W &= F_s dot s \ W &= ...
https://github.com/Harry-Chen/kouhu
https://raw.githubusercontent.com/Harry-Chen/kouhu/master/lib.typ
typst
MIT License
/// Get all builtin texts. Returns in `dictionary[string, list[string]]`. /// /// *Example:* /// Show the number of paragraphs in each builtin text. /// #example(`#builtin-text-list().pairs().map(p => (p.at(0), p.at(1).len())))`, mode: "markup") /// /// -> dictionary #let builtin-text-list() = { return json("data/zh...
https://github.com/jeffa5/typst-cambridge
https://raw.githubusercontent.com/jeffa5/typst-cambridge/main/slides/cambridge.typ
typst
MIT License
/// This theme is inspired by the Cambridge University presentation templates #import "@preview/polylux:0.3.1": * /// The polylux theme for the University of Cambridge. #let cambridge-theme( aspect-ratio: "16-9", font: "Liberation Sans", body, ) = { let background = rgb("#FFFFFF") set text(font: font) set...
https://github.com/jgm/typst-hs
https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/compiler/ops-04.typ
typst
Other
// Test numbers with alternative bases. #test(0x10, 16) #test(0b1101, 13) #test(0xA + 0xa, 0x14)
https://github.com/goshakowska/Typstdiff
https://raw.githubusercontent.com/goshakowska/Typstdiff/main/tests/test_working_types/link/link_inserted.typ
typst
https://typst.app/ https://pl.wikipedia.org/ https://gitlab-stud.elka.pw.edu.pl/dferfeck/zprp-typstdiff
https://github.com/jgm/typst-hs
https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/text/raw-05.typ
typst
Other
// Single ticks should not have a language. `rust let`
https://github.com/kilpkonn/msc-thesis
https://raw.githubusercontent.com/kilpkonn/msc-thesis/master/appendixes.typ
typst
#import "@preview/codelst:2.0.0": sourcecode = Non-Exclusive License for Reproduction and Publication of a Graduation Thesis I, <NAME> 1. Grant Tallinn University of Technology free licence (non-exclusive licence) for my thesis “Term Search in Rust”, supervised by <NAME> 1. to be reproduced for the purposes of pr...
https://github.com/frectonz/the-pg-book
https://raw.githubusercontent.com/frectonz/the-pg-book/main/book/144.%20speak.html.typ
typst
speak.html Writing and Speaking March 2012I'm not a very good speaker. I say "um" a lot. Sometimes I have to pause when I lose my train of thought. I wish I were a better speaker. But I don't wish I were a better speaker like I wish I were a better writer. What I really want is to have good ideas, and that's a muc...
https://github.com/metamuffin/typst
https://raw.githubusercontent.com/metamuffin/typst/main/docs/src/reference/types.md
markdown
Apache License 2.0
# None A value that indicates the absence of any other value. The none type has exactly one value: `{none}`. When inserted into the document, it is not visible. This is also the value that is produced by empty code blocks. It can be [joined]($scripting/#blocks) with any value, yielding the other value. ## Example ``...
https://github.com/paugarcia32/CV
https://raw.githubusercontent.com/paugarcia32/CV/main/modules_es/skills.typ
typst
Apache License 2.0
#import "../brilliant-CV/template.typ": * #cvSection("Habilidades") #cvSkill( type: [Idiomas], info: [Español #hBar() Catalán #hBar() Inglés ] ) #cvSkill( type: [Soft Skills], info: [Voluntad de aprender #hBar() Trabajo en equipo #hBar() Metodologías Agile y SCRUM #hBar() Resolución de problemas] ) #cvSkil...