repo stringlengths 26 115 | file stringlengths 54 212 | language stringclasses 2
values | license stringclasses 16
values | content stringlengths 19 1.07M |
|---|---|---|---|---|
https://github.com/Manato1fg/My-Typst-Template | https://raw.githubusercontent.com/Manato1fg/My-Typst-Template/main/README.md | markdown | MIT License | # My-Typst-Template
Typst 用のテンプレート(随時更新)
## 使用しているフォント
[夜永オールド明朝](https://booth.pm/ja/items/3489185)
## Library
@preview/ctheorems:1.1.0"
@preview/physica:0.9.2"
|
https://github.com/ClazyChen/Table-Tennis-Rankings | https://raw.githubusercontent.com/ClazyChen/Table-Tennis-Rankings/main/history_CN/2018/WS-07.typ | typst |
#set text(font: ("Courier New", "NSimSun"))
#figure(
caption: "Women's Singles (1 - 32)",
table(
columns: 4,
[排名], [运动员], [国家/地区], [积分],
[1], [丁宁], [CHN], [3421],
[2], [朱雨玲], [MAC], [3388],
[3], [刘诗雯], [CHN], [3325],
[4], [陈梦], [CHN], [3307],
[5], [王曼昱], [CHN], [3295],
... | |
https://github.com/Cheng0Xin/typst-libs | https://raw.githubusercontent.com/Cheng0Xin/typst-libs/master/acg-comment/comment.typ | typst | #let create-comment-img(img-src) = image(img-src, height: 1.5cm)
#let create-comment(img-src, text-src) = block(
breakable: false,
stroke: 0.5pt + rgb("#5E1675"),
radius: 5pt,
inset: (x: 2pt, y: 4pt),
stack(
dir: ltr,
create-comment-img(img-src),
align(start+horizon, box(width: 90%, text[#text-src... | |
https://github.com/jassielof/cv | https://raw.githubusercontent.com/jassielof/cv/main/doc/typst/cv-es.typ | typst | #import "template.typ": *
#show: resume
#header(
name: "<NAME>",
phone: "+591 7 508 1884",
email: "<EMAIL>",
linkedin: "jassiel-ovando",
github: "jassielof",
gitlab: "jassiel",
// site: "jassielof",
location: "Santa Cruz, Bolivia",
)
#resume_heading[Educación]
#edu_item(
name: "Universidad Privada ... | |
https://github.com/lucannez64/Notes | https://raw.githubusercontent.com/lucannez64/Notes/master/Physique_Rev_12_01_2023.typ | typst | #import "template.typ": *
// Take a look at the file `template.typ` in the file panel
// to customize this template and discover how it works.
#show: project.with(
title: "Physique Rev 12 01 2023",
authors: (
"<NAME>",
),
date: "30 Octobre, 2023",
)
#set heading(numbering: "1.1.")
Partie 1 QCM 1 1.a c 2.... | |
https://github.com/chamik/gympl-skripta | https://raw.githubusercontent.com/chamik/gympl-skripta/main/cj-autori/nezval.typ | typst | Creative Commons Attribution Share Alike 4.0 International | #import "/helper.typ": autor
#autor("<NAME>", "1900", "1958 (58 let)", "básník, spisovatel, překladatel", "gymnázium v Třebíči", "poetismus, surrealismus", "/cj-autori/media/nezval.jpg")
Roku 1922 vstoupil do Devětsilu, v jeho rámci se podílel na založení poetismu, nového básnického směru. Chtěl najít metodu, jak nah... |
https://github.com/konradroesler/lina-skript | https://raw.githubusercontent.com/konradroesler/lina-skript/main/numla.typ | typst | #import "utils.typ": *
#import "template.typ": uni-script-template
#show: doc => uni-script-template(
title: [Vorlesungsskript],
author: [<NAME>],
module-name: [Num. Lin. Algebra],
doc
)
= Einleitung
Wichtige Aufgabenklassen der linearen Algebra sind #bold[lineare Gleichungssysteme].
Gegeben: $A in RR^(m tim... | |
https://github.com/ParaN3xus/typress | https://raw.githubusercontent.com/ParaN3xus/typress/main/README.md | markdown | MIT License | # Typress
[](https://opensource.org/license/mit)
[](https://huggingface.co/paran3xus/typress_ocr)
[ = {
set heading(numbering: "1.1.")
doc
} | |
https://github.com/mitex-rs/mitex | https://raw.githubusercontent.com/mitex-rs/mitex/main/fixtures/underleaf/ieee/main.typ | typst | Apache License 2.0 |
#import "@preview/mitex:0.2.4": *
#let res = mitex-convert(mode: "text", read("main.tex"))
#eval(res, mode: "markup", scope: mitex-scope)
|
https://github.com/Kasci/LiturgicalBooks | https://raw.githubusercontent.com/Kasci/LiturgicalBooks/master/CSL_old/casoslov/vecierenBezKnaza.typ | typst | #import "../../style.typ": *
#import "/CSL/texts.typ": *
#import "../styleCasoslov.typ": *
= Vsednévna večerňa <X>
#show: rest => columns(2, rest)
#nacaloBezKnaza
#include "../zalmy/Z103.typ"
#si
#lettrine("Allilúia, allilúia, allilúia. Sláva tebí, Bóže.") #primText[(3x)]
#ektenia(12)
#note[Nasleduje predpísaná... | |
https://github.com/jamesrswift/springer-spaniel | https://raw.githubusercontent.com/jamesrswift/springer-spaniel/main/src/package/gentle-clues.typ | typst | The Unlicense | #import "@preview/gentle-clues:0.9.0": *
#let gentle-clues = gentle-clues.with(border-radius: 0.5pt) |
https://github.com/Myriad-Dreamin/typst.ts | https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/text/tracking-spacing_05.typ | typst | Apache License 2.0 |
#import "/contrib/templates/std-tests/preset.typ": *
#show: test-page
// Test word spacing relative to the font's space width.
#set text(spacing: 50% + 1pt)
This is tight.
|
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/cheq/0.1.0/README.md | markdown | Apache License 2.0 | # Cheq
Write markdown-like checklist easily.
## Usage
Checklists are incredibly useful for keeping track of important items. We can use the cheq package to achieve checklist syntax similar to [GitHub Flavored Markdown](https://github.github.com/gfm/#task-list-items-extension-).
```typ
#import "@preview/cheq:0.1.0":... |
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/fh-joanneum-iit-thesis/1.2.2/template/chapters/4-background.typ | typst | Apache License 2.0 | #import "global.typ": *
= Background
#lorem(45)
#todo(
[
In the background section you might give explanations which are necessary to
read the remainder of the thesis. For example define and/or explain the terms
used. Optionally, you might provide a glossary (index of terms used with/without
explanations).... |
https://github.com/wzy1935/Typst-Blocks | https://raw.githubusercontent.com/wzy1935/Typst-Blocks/master/examples/tech_doc.typ | typst | #import "../blocks.typ": *
#main_block([
= Introduction
#warning_block([
*You are reading the documentation for Vue 3!*
- Vue 2 support will end on Dec 31, 2023. Learn more about #link("https://v2.vuejs.org/lts/")[Vue 2 Extended LTS].
- Vue 2 documentation has been moved to #link("https://v2.vuejs.org/")[v2.v... | |
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/cetz/0.2.0/src/deps.typ | typst | Apache License 2.0 | #import "@preview/oxifmt:0.2.0"
|
https://github.com/Myriad-Dreamin/typst.ts | https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/visualize/shape-circle_03.typ | typst | Apache License 2.0 |
#import "/contrib/templates/std-tests/preset.typ": *
#show: test-page
// Test relative sizing.
#set text(fill: white)
#show: rect.with(width: 100pt, height: 50pt, inset: 0pt, fill: rgb("aaa"))
#set align(center + horizon)
#stack(
dir: ltr,
spacing: 1fr,
1fr,
circle(radius: 10pt, fill: eastern, [A]), // D... |
https://github.com/morel-olivier/template-typst | https://raw.githubusercontent.com/morel-olivier/template-typst/master/letter/main.typ | typst | /*******************************************************************************
* This template is based on the template of <NAME> : typst-letter-template
* available on GitHub :
* https://github.com/pascal-huber/typst-letter-template/tree/master
************************************************************************... | |
https://github.com/polarkac/MTG-Stories | https://raw.githubusercontent.com/polarkac/MTG-Stories/master/stories/013%20-%20Magic%202015/007_Comin'%20Through!.typ | typst | #import "@local/mtgstory:0.2.0": conf
#show: doc => conf(
"Comin' Through!",
set_name: "Magic 2015",
story_date: datetime(day: 30, month: 07, year: 2014),
author: "<NAME>",
doc
)
Fizz poked her head out of the trench long enough to see that she didn't want to do it any longer. Orc raiders fought in... | |
https://github.com/0xPARC/0xparc-intro-book | https://raw.githubusercontent.com/0xPARC/0xparc-intro-book/main/README.md | markdown | # Introduction to Programmable Cryptography
This is an attempt at an introductory lecture notes on programmable cryptography.
It is developed by [0xPARC](https://0xparc.org/).
The source files are written in [Typst](https://typst.app).
## Downloading the book
- If you want the latest **tagged** version (i.e. that ha... | |
https://github.com/TOD-theses/paper-T-RACE | https://raw.githubusercontent.com/TOD-theses/paper-T-RACE/main/utils.typ | typst | #import "@preview/dashy-todo:0.0.1": todo
#import "@preview/fletcher:0.5.1" as fletcher: diagram, node, edge
#import "@preview/ctheorems:1.1.2": *
#let theorem = thmbox("theorem", "Theorem")
#let definition = thmbox("definition", "Definition", inset: (x: 1.2em, top: 1em))
#let proof = thmproof("proof", "Proof")
#let p... | |
https://github.com/RanolP/resume | https://raw.githubusercontent.com/RanolP/resume/main/modules/github.typ | typst | #import "components.typ": chip, icon
#let gh-repo(name-with-owner) = link("https://github.com/" + name-with-owner)[
#icon("devicon/github", bottom: -1em / 6) #text(weight: 700)[#name-with-owner]
]
#let gh-pull-chip-open(content: "Open") = {
chip(background: color.rgb("#238636"))[
#set text(size: 0.75em, weigh... | |
https://github.com/maucejo/book_template | https://raw.githubusercontent.com/maucejo/book_template/main/template/chapters/ch2.typ | typst | MIT License | #import "../../src/book.typ": *
#show: chapter.with(title: "Deuxième chapitre")
== Objectifs
#lorem(100)
$
arrow(V)(M slash R_0) = lr((d arrow(O M))/(d t)|)_(R_0) + theta
$
La Figure @b2 présente la carte du Cnam @Jon22.
#subfigure(
figure(image("../images/chapitre1/cnam_region.png"), caption: []),
... |
https://github.com/liuguangxi/suiji | https://raw.githubusercontent.com/liuguangxi/suiji/main/tests/test-choice-f.typ | typst | MIT License | #set document(date: none)
#import "/src/lib.typ": *
#let print-arr(arr) = {
if type(arr) != array {
[#raw(str(arr) + " ")]
} else {
[#raw(arr.map(it => str(it)).join(" "))]
}
}
#{
let rng = gen-rng-f(42)
let arr = ()
(rng, arr) = choice-f(rng, range(30))
raw(repr(arr)); ... |
https://github.com/jgm/typst-hs | https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/compiler/array-05.typ | typst | Other | // Test lvalue out of bounds.
#{
let array = (1, 2, 3)
// Error: 3-14 array index out of bounds (index: 3, len: 3) and no default value was specified
array.at(3) = 5
}
|
https://github.com/talal/pesha | https://raw.githubusercontent.com/talal/pesha/main/lib.typ | typst | MIT No Attribution | #let pesha(
name: "",
address: "",
contacts: (),
profile-picture: none,
paper-size: "a4",
footer-text: none,
page-numbering-format: "1 of 1",
body,
) = {
// Set document metadata.
set document(
title: name,
author: name,
keywords: (name, "curriculum vitae", "cv", "resume"),
)
// Con... |
https://github.com/barrel111/readings | https://raw.githubusercontent.com/barrel111/readings/main/notes/mira.typ | typst | #import "@local/preamble:0.1.0": *
#import "@preview/commute:0.2.0": node, arr, commutative-diagram
#show: project.with(
course: "Analysis",
sem: "Summer",
title: "Measure, Integration and Real Analysis",
subtitle: "Axler",
authors: ("<NAME>",),
)
#set enum(indent: 15pt, numbering: "a.")
= Riemann Integrat... | |
https://github.com/Myriad-Dreamin/typst.ts | https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/visualize/stroke_07.typ | typst | Apache License 2.0 |
#import "/contrib/templates/std-tests/preset.typ": *
#show: test-page
// 0pt strokes must function exactly like 'none' strokes and not draw anything
#rect(width: 10pt, height: 10pt, stroke: none)
#rect(width: 10pt, height: 10pt, stroke: 0pt)
#rect(width: 10pt, height: 10pt, stroke: none, fill: blue)
#rect(width: 10pt... |
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/exzellenz-tum-thesis/0.1.0/template.typ | typst | Apache License 2.0 | #import "cover.typ": *
#import "titlepage.typ": *
#import "disclaimer.typ": *
#import "acknowledgement.typ": *
#import "abstract.typ": *
#let exzellenz-tum-thesis(
degree: "The degree",
program: "The Program",
school: "The School",
supervisor: "Your Supervisor",
advisors: ("The first advisor", "The second a... |
https://github.com/frectonz/the-pg-book | https://raw.githubusercontent.com/frectonz/the-pg-book/main/book/110.%20foundervisa.html.typ | typst | foundervisa.html
The Founder Visa
April 2009I usually avoid politics, but since we now seem to have an administration that's open to suggestions, I'm going to risk making one. The single biggest thing the government could do to increase the number of startups in this country is a policy that would cost nothing: esta... | |
https://github.com/sa-concept-refactoring/doc | https://raw.githubusercontent.com/sa-concept-refactoring/doc/main/progress-bar.typ | typst | #let printProgressBar(progress, fill: gray, label: "") = {
let colorScale = (red, orange, yellow, green)
let colorScalePosition = if progress < 0.25 {0}
else if progress < 0.5 {1}
else if progress < 0.75 {2}
else {3}
set text(white, size: 8pt, )
set align(center)
rect(
fil... | |
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/cetz/0.2.0/gallery/waves.typ | typst | Apache License 2.0 | #import "@preview/cetz:0.2.0": canvas, draw, vector
#set page(width: auto, height: auto, margin: .5cm)
#let transform-rotate-dir(dir, up) = {
dir = vector.norm(dir)
up = vector.norm(up)
let (dx, dy, dz) = dir
let (ux, uy, uz) = up
let (rx, ry, rz) = vector.norm(vector.cross(dir, up))
((rx, dx, ux, 0),
... |
https://github.com/Jollywatt/typst-fletcher | https://raw.githubusercontent.com/Jollywatt/typst-fletcher/master/docs/gallery/io-flowchart.typ | typst | MIT License | #import "@preview/fletcher:0.5.1" as fletcher: diagram, node, edge
#set page(width: auto, height: auto, margin: 5mm, fill: white)
#set text(white, font: "Fira Sans")
#let colors = (maroon, olive, eastern)
#diagram(
edge-stroke: 1pt,
node-corner-radius: 5pt,
edge-corner-radius: 8pt,
mark-scale: 80%,
node((0,0), [... |
https://github.com/jneug/typst-tools4typst | https://raw.githubusercontent.com/jneug/typst-tools4typst/main/assert.typ | typst | MIT License |
#import "alias.typ"
#import "is.typ"
// =================================
// Asserts
// =================================
#let lazy-message(
user-message,
..args
) = {
if user-message == none {
return ""
}
let lazy = user-message
if type(lazy) != "function" {
lazy = (..) => str(lazy)
}
retu... |
https://github.com/N4tus/uf_algo | https://raw.githubusercontent.com/N4tus/uf_algo/main/style.typ | typst | MIT License | #import "style_base.typ": elem, sp, join, gs, ge, if_string, if_string_else, if_number, if_number_else, pipe
#let keyword(k) = elem(k, "keyword")
#let kw_function(f) = elem(f, "keyword", "function")
#let kw_operator(o) = elem(o, "keyword", "operator")
#let kw_control(c) = elem(c, "keyword", "control")
#let lo... |
https://github.com/matthiasbeyer/ttt | https://raw.githubusercontent.com/matthiasbeyer/ttt/master/example.typ | typst | MIT License | #import "ttt.typ": *
#set text(lang: "en")
#show: ttt.with(
author: "<NAME>",
class: [Computer Science],
subject: [Trees],
date: datetime(year: 2024, month: 03, day: 19),
bibliography: bibliography("refs.bib"),
)
= Text
== External links
`ttt` adds a small maroon circle to external (outgoing) links
#link... |
https://github.com/typst-doc-cn/tutorial | https://raw.githubusercontent.com/typst-doc-cn/tutorial/main/src/basic/modulize-multi-files-doc.typ | typst | Apache License 2.0 | #import "mod.typ": *
#show: book.page.with(title: "多文件文档")
尽管本书提倡你尽可能将所有文档内容放在单个文件中,本书给出构建一个多文件文档的合理方案。
- 工作区中包含多个主文件
- 每个主文件可以`include`多个子文件
```
typ/packages
├── util.typ
└── util2.typ
typ/templates
├── book-template.typ
└── note-template.typ
documents/
└── my-book/
├── main.typ
├── mod.typ
├── part1/
... |
https://github.com/flaribbit/typst-sdu-master-thesis | https://raw.githubusercontent.com/flaribbit/typst-sdu-master-thesis/master/demo.typ | typst | #import "template.typ": *
#show: project.with(
分类号: [XXXXX.X],
密级: [公开],
学号: [200000000],
标题: [基于Typst的毕业论文模板],
title: [Graduation Thesis Template Based on Typst],
日期: [2024年3月26日],
作者姓名: [Typst],
培养单位: [Typst],
专业名称: [Typst],
指导教师: [Typst],
合作导师: [Typst],
摘要: [Typst 是一门面向出版与学术写作的可编程标记语言。它于 2023... | |
https://github.com/LDemetrios/Typst4k | https://raw.githubusercontent.com/LDemetrios/Typst4k/master/src/test/resources/suite/layout/grid/rowspan.typ | typst | --- grid-rowspan ---
#grid(
columns: 4,
fill: (x, y) => if calc.odd(x + y) { blue.lighten(50%) } else { blue.lighten(10%) },
inset: 5pt,
align: center,
grid.cell(rowspan: 2, fill: orange)[*Left*],
[Right A], [Right A], [Right A],
[Right B], grid.cell(colspan: 2, rowspan: 2, fill: orange.darken(10%))[B Wid... | |
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/tuhi-labscript-vuw/0.1.0/tuhi-labscript-vuw.typ | typst | Apache License 2.0 | #let darkgrey = rgb(29, 27, 28)
#let darkgreen = rgb(0,81,55)
#let middlegreen = rgb(113, 135, 121)
#let lightgreen = rgb(206,220,215)
#let tuhi-labscript-vuw(
experiment: text[murphy's l\ aws -- an investigation],
script: "pre-lab script",
coursetitle: "experimental physics ii",
coursecode: "phys345",
date:... |
https://github.com/exAClior/touying-simpl-hkustgz | https://raw.githubusercontent.com/exAClior/touying-simpl-hkustgz/master/template/main.typ | typst | MIT License | #import "@preview/touying:0.4.2": *
#import "@preview/touying-hkustgz:0.1.0" as hkustgz-theme
#let s = hkustgz-theme.register()
// Global information configuration
#let s = (s.methods.info)(
self: s,
title: [Touying for HKUSTGZ: Customize Your Slide Title Here],
subtitle: [Customize Your Slide Subtitle Here],
... |
https://github.com/Maso03/Bachelor | https://raw.githubusercontent.com/Maso03/Bachelor/main/Bachelorarbeit/chapters/grundlagen.typ | typst | MIT License | = Grundlagen
== Einführung in Künstliche Intelligenz (KI)
Künstliche Intelligenz (KI) bezeichnet den Bereich der Informatik, der sich mit der Schaffung von Systemen befasst, die in der Lage sind, Aufgaben zu erledigen, die normalerweise menschliche Intelligenz erfordern @KI. Dazu gehören Fähigkeiten wie Lernen, Proble... |
https://github.com/Andres-AM/CV_typst | https://raw.githubusercontent.com/Andres-AM/CV_typst/main/README.md | markdown |
Personal CV using typst based on modern CV | |
https://github.com/crd2333/Astro_typst_notebook | https://raw.githubusercontent.com/crd2333/Astro_typst_notebook/main/src/components/TypstTemplate/lib.typ | typst | #import "fonts.typ": *
#import "utils.typ": *
#import "math.typ": *
#import "figures.typ": *
#let project(
title: "",
lang: "zh",
show_toc: true,
toc_break: true,
toc_depth: 4,
body
) = {
set document(title: title,)
set page(
paper: "a4",
height: auto,
margin: (x: 2cm, y: 1.5cm),
)
//... | |
https://github.com/giZoes/justsit-thesis-typst-template | https://raw.githubusercontent.com/giZoes/justsit-thesis-typst-template/main/resources/utils/invisible-heading.typ | typst | MIT License | // 用于创建一个不可见的标题,用于给 outline 加上短标题
#let invisible-heading(..args) = {
set text(size: 0pt, fill: white)
heading(numbering: none, ..args)
} |
https://github.com/The-Notebookinator/notebookinator | https://raw.githubusercontent.com/The-Notebookinator/notebookinator/main/themes/radial/format.typ | typst | The Unlicense | #import "/packages.typ": tablex
#import tablex: *
#import "./colors.typ": *
#let table(it) = {
tablex(
columns: it.columns,
auto-lines: false,
inset: 10pt,
fill: (_, row) => {
if calc.odd(row) {
surface-3
}
if calc.even(row) {
surface-1
}
},
hlinex(stro... |
https://github.com/Myriad-Dreamin/shiroa | https://raw.githubusercontent.com/Myriad-Dreamin/shiroa/main/github-pages/docs/format/book-meta.typ | typst | Apache License 2.0 | #import "/github-pages/docs/book.typ": book-page
#show: book-page.with(title: "Book Metadata")
= Book Metadata
#let type-hint(t, required: false) = {
{
set text(weight: 400, size: 16pt)
if required {
" (required) "
}
}
{
// show "<": set text(fill: blue)
// show ">": set text(fill: ... |
https://github.com/qujihan/toydb-book | https://raw.githubusercontent.com/qujihan/toydb-book/main/src/chapter6/isolation.typ | typst | #import "../../typst-book-template/book.typ": *
#let path-prefix = figure-root-path + "src/pics/"
== 隔离级别
=== 写倾斜(Write Skew)问题 <write-skew>
=== 参考
+ https://justinjaffray.com/what-does-write-skew-look-like/ | |
https://github.com/fywc/Resume_Template | https://raw.githubusercontent.com/fywc/Resume_Template/main/main.typ | typst | #import "template.typ": *
#show heading: set text(black)
// 项目具体描述的item设定
#set list(indent:12pt,body-indent:6pt)
// 个人信息
#show: project.with(
name: "Name",
)
#info(
phone:"(+86) xxxxxxxxxx",
email:"<EMAIL>",
github:"github.com/xxxx"
)
== 教育背景
#line(length: 100%,stroke:0.7pt+black)
#education(
school:"XXXX... | |
https://github.com/qujihan/typst-book-template | https://raw.githubusercontent.com/qujihan/typst-book-template/main/book.typ | typst | #import "template/parts/lib.typ": *
#import "template/params.typ": *
#import "template/utils.typ": *
#let book(info: (), body) = {
if not "title" in info {
info.insert("title", "Unnamed Book")
}
if not "name" in info {
info.insert("name", "Unnamed Author")
}
if not "outline-depth" in info {
inf... | |
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/indenta/0.0.1/lib.typ | typst | Apache License 2.0 | #let fix-indent(len: 2em, unsafe: false)={
return it=>{
let st=0
let _is_block(e,fn)=(fn==math.equation and e.block) or fn==figure or fn==block or fn==list.item or fn==enum.item
let _is_inline(e,fn)=fn==text or (fn==math.equation and not e.block) or fn==box
for e in it.children{
let fn=e.func()
if st=... |
https://github.com/VisualFP/docs | https://raw.githubusercontent.com/VisualFP/docs/main/Presentations/Midpoint/presentation.typ | typst | #import "@preview/polylux:0.3.1": *
#set page(paper: "presentation-16-9")
#set text(size: 25pt)
#polylux-slide[
#align(horizon + center)[
= Visual FP
=== _Design Decision_
]
]
#polylux-slide[
= Outline
#v(1fr)
- Goals
#v(1fr)
- Flo inspired
#v(1fr)
- Scratch inspired
#v(1fr)
- Mehta-drawing inspired
#v(1... | |
https://github.com/alerque/polytype | https://raw.githubusercontent.com/alerque/polytype/master/content/integral-alignment.md | markdown | +++
title = "Alignment of Integrals"
description = "Compare the baseline alignment of integrals."
extra.typesetters = [ "typst", "sile", "xelatex" ]
+++
Compare the baseline alignment of integrals.
aka. What's up must come down.
| |
https://github.com/binhtran432k/ungrammar-docs | https://raw.githubusercontent.com/binhtran432k/ungrammar-docs/main/contents/requirements-analysis/playground.typ | typst | === Ungrammar Online Demonstration Playground
==== List of Usecase
- Try Code Editor
- Change Theme
- View Security
- View Documentation
==== Usecase Diagram
#figure(
image("/diagrams/generated/usecase/uc-ungram-playground.svg", width: 80%),
caption: [Usecase Diagram of Ungrammar Online Demonstrati... | |
https://github.com/pku-typst/PKU-typst-template | https://raw.githubusercontent.com/pku-typst/PKU-typst-template/main/utils/zihao.typ | typst | MIT License | #let 初号 = 42pt
#let 小初 = 36pt
#let 一号 = 26pt
// #let 小一 = 24pt
#let 二号 = 22pt
#let 小二 = 18pt
#let 三号 = 16pt
#let 小三 = 15pt
#let 四号 = 14pt
#let 小四 = 12pt
#let 五号 = 10.5pt
#let 小五 = 9pt
#let 六号 = 7.5pt
#let 小六 = 6.5pt
#let 七号 = 5.5pt
#let 八号 = 5pt |
https://github.com/lucannez64/Notes | https://raw.githubusercontent.com/lucannez64/Notes/master/Symmetry%20Groups%20and%20Degeneracy.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: "Symmetry Groups and Degeneracy",
authors: (
"<NAME>",
),
date: "10 Août, 2024",
)
#set heading(numbering: "1.1.")
== Symmetry Groups ... | |
https://github.com/jgm/typst-hs | https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/meta/document-01.typ | typst | Other | // This, too.
// Ref: false
#set document(author: ("A", "B"))
|
https://github.com/Quaternijkon/notebook | https://raw.githubusercontent.com/Quaternijkon/notebook/main/book/book-Android%20Compose.typ | typst | #import "@preview/ilm:1.1.2": *
#set text(
lang: "zh",
font: "PingFang SC",
// font: "JetBrains Mono",
)
#show: ilm.with(
title: [Android Compose],
author: "dry",
date: datetime(year: 2024, month: 07, day: 2),
abstract: [
Android Compose的开发记录。
],
preface: [
#align(center + horizon)[
//... | |
https://github.com/AOx0/expo-nosql | https://raw.githubusercontent.com/AOx0/expo-nosql/main/themes/bipartite.typ | typst | MIT License | // This theme is inspired by https://slidesgo.com/theme/modern-annual-report
#let bipartite-theme() = data => {
let my-dark = rgb("#192e41")
let my-bright = rgb("#fafafa")
let my-accent = rgb("#fc9278")
let title-slide(slide-info, bodies) = {
if bodies.len() != 0 {
panic("title slide of bipartite... |
https://github.com/MyPedagogicalRessources/BUT1-R1-01-Initiation-developpement | https://raw.githubusercontent.com/MyPedagogicalRessources/BUT1-R1-01-Initiation-developpement/main/TD/R1-01-Initiation_developpement-TD.typ | typst | #import "@preview/ilm:1.1.2": *
#show: ilm.with(
title: [R1-01 - Initiation au développement - TD],
author: "<NAME>, <NAME>",
date: datetime(year: 2024, month: 08, day: 19),
abstract: [],
preface: [],
// bibliography: bibliography("refs.bib"),
figure-index: (enabled: false),
table-index: (enabled: fals... | |
https://github.com/miyaji255/Typst-Utilities | https://raw.githubusercontent.com/miyaji255/Typst-Utilities/main/templates/電気電子工学実験A.typ | typst | MIT License | #let myname = "<NAME>"
#let mynumber = "00A01234"
#let mycourse = "~~コース"
#let mymail = "<EMAIL>"
#let mygroup = 1
#let members = ("阪大 太郎", "阪大 太郎")
#let first_page = (
number,
title,
experiment_date,
write_date: datetime.today(),
members: members,
) => [
#set text(font: "Yu Mincho", size: 14pt)
#set und... |
https://github.com/Myriad-Dreamin/typst.ts | https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/bugs/grid-2_01.typ | typst | Apache License 2.0 |
#import "/contrib/templates/std-tests/preset.typ": *
#show: test-page
#set page(height: 60pt)
#lorem(5)
- #lorem(5)
|
https://github.com/lucannez64/Notes | https://raw.githubusercontent.com/lucannez64/Notes/master/Maths_Prepa_MPSI_Chap1_Ex.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: "Maths Prepa MPSI Chap1 Ex",
authors: (
"<NAME>",
),
date: "30 Octobre, 2023",
)
#set heading(numbering: "1.1.")
== Ex 2
<ex-2>
#block... | |
https://github.com/0x6b/typster | https://raw.githubusercontent.com/0x6b/typster/main/examples/sample.typ | typst | Apache License 2.0 | // Shamelessly copied from https://zenn.dev/monaqa/articles/2023-04-19-typst-introduction
// Thank you!
#set document(
title: "確率論の基礎",
author: "typster",
keywords: "確率論, 確率空間, 確率測度, 確率質量関数, 可測空間, 可測集合, 事象, Event, 確率, 定理, 定義, 例",
date: auto
)
// --------- ちょっとした設定 ---------
// フォント周り
#set text(font: "Noto Se... |
https://github.com/i-am-wololo/cours | https://raw.githubusercontent.com/i-am-wololo/cours/master/main/parties_i23/relations.typ | typst | #import "../templates.typ": *
#title("Relations et applications")
| |
https://github.com/han0126/MCM-test | https://raw.githubusercontent.com/han0126/MCM-test/main/2024亚太杯typst/chapter/chapter6.typ | typst | #import "../template/template.typ": *
= 问题三的模型建立与求解
== 问题分析
题目要求在第一问的相关性基础上,建立洪水概率模型。而洪水发生与$20$个指标均有关系,模型过于庞大,故从中选取相关性较强的几组指标建立模型。则洪水概率可以直接由各项指标的值进行线性运算得出。紧接着,为进一步简化模型,仍是依据相关系数仅选取$5$项指标,对模型进行修改。同时,我们考虑到由于选取指标的个数差异会导致建立的洪水发生概率模型的精度产生不同,即分析选取$5$组指标建立的模型与原来选取的多组指标所建立的模型进行精度比较。从而可以得到选取相关性较强的指标对于模型的影响。
== 基于$"MLP"$神经网... | |
https://github.com/mkhoatd/Typst-CV-Resume | https://raw.githubusercontent.com/mkhoatd/Typst-CV-Resume/main/CV/example_single.typ | typst | MIT License | #import "typstcv_single.typ": *
// TODO: add more bibstyle and try to use yaml and xml to replace json
//
// select the font type: "macfont" or "openfont"
#let fonttype = "macfont"
#show: mainbody => main(
continue_header: "false",
name: [<NAME>], //name:"" or name:[]
// address: [#lorem(4)],
lastupdated: "true",
pagec... |
https://github.com/djakish/render-typst | https://raw.githubusercontent.com/djakish/render-typst/main/README.md | markdown | Apache License 2.0 |
SVG/PDF render some typst text, only got it working with vite, and kind of with webpack.
# Usage
```ts
import init, { addFont, addSource, renderSvgMerged } from '@djakish/render-typst'
import lin_font_r from '../assets/fonts/LinLibertine_R.ttf'
// Load a font
await addFont(lin_font_r)
// Set input values
setInputs... |
https://github.com/fenjalien/metro | https://raw.githubusercontent.com/fenjalien/metro/main/tests/complex/output-complex-root/test.typ | typst | Apache License 2.0 | #import "/src/lib.typ": *
#set page(width: auto, height: auto, margin: 1cm)
#complex(1, 2, output-complex-root: [i])
#complex(1, 2, output-complex-root: [j]) |
https://github.com/enseignantePC/2023-24 | https://raw.githubusercontent.com/enseignantePC/2023-24/master/presentation.typ | typst | #import "chapter_template.typ": chapitre, doc
#let doc = doc.with(
show_doc: false,
boxed: false,
breakable: false,
)
#show: it => chapitre(
it,
number: [zéro],
title: [Introduction],
objectifs: (
[Apprendre à se connaître],
[Fondations pour travailler ensemble (le respect, l'écoute)],
[Constr... | |
https://github.com/EGmux/ControlTheory-2023.2 | https://raw.githubusercontent.com/EGmux/ControlTheory-2023.2/main/classNotes/comentarioResolucao.typ | typst | #set heading(numbering: "1.")
= Poles and stability
=== Every single pole in left semi plane $->$ stable
=== Any pole in imaginary axis with 1 multiplicity $->$ partially stable
=== Any pole in right semi plane/ pole in imaginary axis/ higher multiplicity than 1 $->$ unstable
= Good practices
=== ... | |
https://github.com/0x1B05/nju_os | https://raw.githubusercontent.com/0x1B05/nju_os/main/lecture_notes/content/01_操作系统概述.typ | typst | #import "../template.typ": *
= 操作系统概述
== (Why): 为什么要学操作系统?
=== 为什么要学 "任何东西"?
为什么要学操作系统呢? 为什么要学微积分/离散数学/XXXX/...?
=== 学过微积分以后, 再看为什么要学微积分
微积分的几个重要主题
- 启蒙, 应用与挑战 (Newton 时代)
- 机械论世界观 (模型驱动的系统分析)
- 数学是理解世界的 "基本工具": 导数, 微积分基本定理, ...
- 严格化与公理化 (Cauchy 时代)
- 各种卡出的 bug (Weierstrass 函数, Peano 曲线...)
- 大规模问题的数值计算 (v... | |
https://github.com/WinstonMDP/math | https://raw.githubusercontent.com/WinstonMDP/math/main/knowledge/rings.typ | typst | #import "../cfg.typ": cfg
#show: cfg
= Rings
$(K, +, *)$ is a ring $:=$
+ $(K, +)$ is an abelian group.
+ $K$ is closed under $*$.
+ $a(b + c) = a b + a c$.
+ $(b + c)a = b a + c a$.
$|K| > 1 -> 0 != 1$.
*Binomial theorem:*
$(a + b)^n = sum_(i = 0)^n binom(n, i) a^i b^(n - i)$ in a commutative ring.
A ring is integ... | |
https://github.com/i-am-wololo/cours | https://raw.githubusercontent.com/i-am-wololo/cours/master/main/i21/pilesfiles.typ | typst | = Piles et Files
= Piles
Les piles (ou stack) sont des structures de donnees | |
https://github.com/YXalix/resume | https://raw.githubusercontent.com/YXalix/resume/main/resume.typ | typst | #import "template.typ": *
// 设置图标, 来源: https://fontawesome.com/icons/
// 如果要修改图标颜色, 请手动修改 svg 文件中的 fill="rgb(38, 38, 125)" 属性
#let faAward = icon("fa-award.svg")
#let faBuildingColumns = icon("fa-building-columns.svg")
#let faCode = icon("fa-code.svg")
#let faEnvelope = icon("fa-envelope.svg")
#let faGithub = icon("fa-... | |
https://github.com/jgm/typst-hs | https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/math/frac-01.typ | typst | Other | // Test parenthesis removal.
$ (|x| + |y|)/2 < [1+2]/3 $
|
https://github.com/LDemetrios/Typst4k | https://raw.githubusercontent.com/LDemetrios/Typst4k/master/src/test/resources/suite/text/em.typ | typst | // Test font-relative sizing.
--- text-size-em-nesting ---
#set text(size: 5pt)
A // 5pt
#[
#set text(size: 2em)
B // 10pt
#[
#set text(size: 1.5em + 1pt)
C // 16pt
#text(size: 2em)[D] // 32pt
E // 16pt
]
F // 10pt
]
G // 5pt
--- text-size-em ---
// Test using ems in arbitrary places.
#set t... | |
https://github.com/chaosarium/typst-templates | https://raw.githubusercontent.com/chaosarium/typst-templates/main/examples/slides-simple.typ | typst | #import "../slides-simple/lib.typ": *
#show: slides.with(
title: [Some Random Presentation],
subtitle: [Making slides in Typst],
date: [21 October 2024],
authors: [list of authors],
ratio: 16/9,
layout: "medium",
title-color: rgb("#4a1c8a"),
footer: true,
slides_counter: true,
toc: true,
// cod... | |
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/fireside/1.0.0/.demo/demo_long.typ | typst | Apache License 2.0 | #import "@preview/fireside:1.0.0": *
#set page(numbering: "1")
#show: fireside.with(
title: [Anakin \ Skywalker],
from-details: [
Appt. x, \
<NAME>, \
Tatooine \
<EMAIL> \ +999 xxxx xxx
],
to-details: [
<NAME>ine \
500 Republica, \
Ambassadorial Sector, Senate District, \
Galac... |
https://github.com/EGmux/TheoryOfComputation | https://raw.githubusercontent.com/EGmux/TheoryOfComputation/master/unit2/decidibilidade.typ | typst | #set heading(numbering: "1.")
| |
https://github.com/LDemetrios/Typst4k | https://raw.githubusercontent.com/LDemetrios/Typst4k/master/src/test/resources/suite/foundations/dict.typ | typst | // Test dictionaries.
--- dict-basic-syntax ---
// Empty
#(:)
// Two pairs and string key.
#let dict = (normal: 1, "spacy key": 2)
#dict
#test(dict.normal, 1)
#test(dict.at("spacy key"), 2)
--- dict-fields ---
// Test field on dictionary.
#let dict = (nothing: "ness", hello: "world")
#test(dict.nothing, "ness")
#{... | |
https://github.com/xdoardo/co-thesis | https://raw.githubusercontent.com/xdoardo/co-thesis/master/thesis/ris.typ | typst | #import "@local/summary:1.0.0": *
#import "./includes.typ": *
#set cite(style: "numerical")
#show bibliography: set text(13pt)
#show: summary.with(
title: "Program Transformations in the Delay Monad",
subtitle: "A Case Study for Coinduction via Copatterns and Sized Types",
author: "<NAME>",
figure: align(bott... | |
https://github.com/sast-summer-training-2024/sast2024-neural-network | https://raw.githubusercontent.com/sast-summer-training-2024/sast2024-neural-network/master/slide.typ | typst | #import "@preview/touying:0.4.2": *
#let s = themes.metropolis.register(aspect-ratio: "16-9", footer: [#counter(page).display() of #locate((loc) => {counter(page).final(loc).first()})])
#let s = (s.methods.info)(
self: s,
title: "(人工)神经网络",
subtitle: "Artificial Neural Networks",
date: "2024-8-4",
institutio... | |
https://github.com/ntjess/showman | https://raw.githubusercontent.com/ntjess/showman/main/examples/external-code.typ | typst | MIT License | #import "@preview/showman:0.1.1": runner, formatter
#set page(height: auto)
#show raw: it => {
let kwargs = if it.block {
(width: 100%, line-numbers: false)
} else {
(inline: true)
}
formatter.format-raw(it, ..kwargs)
}
#show <example-output>: formatter.format-raw
// #show <example-input>: formatter.... |
https://github.com/An-314/Notes-of-DSA | https://raw.githubusercontent.com/An-314/Notes-of-DSA/main/advanced_BST.typ | typst | = 高级BST
== 伸展树Splay Tree
=== 局部性/Locality
时间:刚被访问过的节点,极有可能很快地再次被访问
空间:下一将要访问的节点,极有可能就在刚被访问过节点的附近
AVL连续的m次查找(m >> n),共需$O(m log n)$时间,希望可以利用局部性加速。
- 自适应链表:节点一旦被访问,随即移动到最前端
- 模仿:希望BST的节点一旦被访问,随即调整到树根
如果节点被访问,就将其旋转到根节点,这样下次访问时,就可以直接访问到了。
=== 逐层伸展
#figure(
image("fig\BST\33.png", width: 80%),
caption: "逐层伸展"
)
但这... | |
https://github.com/xbunax/tongji-undergrad-thesis | https://raw.githubusercontent.com/xbunax/tongji-undergrad-thesis/main/README-EN.md | markdown | MIT License |
# :page_facing_up: Tongji University Undergraduate Thesis Typst Template (STEM)
[中文](README.md) | English
> [!CAUTION]
> Since the Typst project is still in the development stage and support for some features is not perfect, there may be some issues with this template. If you encounter problems while using it, pleas... |
https://github.com/Myriad-Dreamin/typst.ts | https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/bugs/clamp-panic_00.typ | typst | Apache License 2.0 |
#import "/contrib/templates/std-tests/preset.typ": *
#show: test-page
#set page(height: 20pt, margin: 0pt)
#v(22pt)
#block(fill: red, width: 100%, height: 10pt, radius: 4pt)
|
https://github.com/OR-gatti/ThesisTemplate-Typst | https://raw.githubusercontent.com/OR-gatti/ThesisTemplate-Typst/main/README.md | markdown | # ThesisTemplate-Typst
論文をTypstで書く人向けのサンプル、テンプレートです。添付の[PDFファイル](https://github.com/OR-gatti/ThesisTemplate-Typst/blob/main/sample.pdf)でどのようになるのか確認できます。足りないところは各自補ってください。
フォントや空白、改行などのフォーマットが調整不足なところがあるので随時修正します。
| |
https://github.com/Blezz-tech/math-typst | https://raw.githubusercontent.com/Blezz-tech/math-typst/main/Варианты/Остальное.typ | typst | #import "/lib/my.typ": *
= Остальное
== Задание 50.
#task("Задание")
Смешав $43%$ и $89%$ растворы кислоты и добавив $10$ кг чистой воды, получили $69%$ раствор кислоты. Если бы вместо $10$ кг воды добавили $10$ кг $50%$ раствора той же кислоты, то получили бы $73%$ раствор кислоты. Сколько килограммов $43%$ раство... | |
https://github.com/QRWells/uni-theme | https://raw.githubusercontent.com/QRWells/uni-theme/main/uni-theme-en.typ | typst | MIT License | #import "@preview/polylux:0.3.1": *
#let theme-colors = state("theme-colors", (:))
#let theme-short-title = state("theme-short-title", none)
#let theme-short-author = state("theme-short-author", none)
#let theme-progress-bar = state("theme-progress-bar", true)
#let theme-date = state("theme-date", datetime.today())
#l... |
https://github.com/typst-cn/typst-programming-tutorial | https://raw.githubusercontent.com/typst-cn/typst-programming-tutorial/master/README.md | markdown | # Typst 编程入门(WIP)
## Hello Typst
`代码`
```rust
#let content = "Hello Typst! \n 你好, Typst!"
#[
#content
]
```
`输出`

| |
https://github.com/dikkadev/typst-statastic | https://raw.githubusercontent.com/dikkadev/typst-statastic/main/lib.typ | typst | The Unlicense | /// Extracts a specific column from the given dataset based on the column.
///
/// - data (array): The dataset.
/// - colId (int): The identifier for the column to be extracted.
/// -> array
#let extractColumn(data, colId) = {
let column = ()
for row in data {
column.push(row.at(colId))
}
colum... |
https://github.com/HKFoggyU/hkust-thesis-typst | https://raw.githubusercontent.com/HKFoggyU/hkust-thesis-typst/main/hkust-thesis/templates/abstract-page.typ | typst | LaTeX Project Public License v1.3c | #import "../imports.typ": *
#import "../utils/invisible-heading.typ": invisible-heading
#let abstract-page(
config: (:),
info: (:),
it,
) = {
let (degreeFull, degreeShort) = set-degree(info.degree)
[
#set align(center)
#pagebreak(weak: true, to: if config.twoside { "odd" })
#invisib... |
https://github.com/NamLe0609/bias-ai-report | https://raw.githubusercontent.com/NamLe0609/bias-ai-report/main/table.typ | typst | = Ethical impact assessment informed by VSD
#show figure: set block(breakable: true)
#figure(
table(
columns: (1fr, 2fr, 2fr),
inset: 5.9pt,
align: left,
[Stakeholders], [Values], [Potential risks/harms],
[Healthcare providers, such as a doctor or a nurse (Direct)],
[Respect for human autonomy -\
-... | |
https://github.com/haxibami/haxipst | https://raw.githubusercontent.com/haxibami/haxipst/main/src/main.typ | typst | #import "./resume/resume.typ": *
#import "./lib/set-metadata.typ": *
#import "./lib/better-indent.typ": *
#import "./lib/better-heading.typ": *
#import "./lib/macro.typ"
| |
https://github.com/frectonz/the-pg-book | https://raw.githubusercontent.com/frectonz/the-pg-book/main/book/101.%20credentials.html.typ | typst | credentials.html
After Credentials
December 2008A few months ago I read a New York Times article on South
Korean cram schools that said
Admission to the right university can make or break an ambitious
young South Korean.
A parent added:
"In our country, college entrance exams determine 70 to 80 percent
of a... | |
https://github.com/mst2k/HSOS-PTP-Typst-Template | https://raw.githubusercontent.com/mst2k/HSOS-PTP-Typst-Template/main/main.typ | typst | #import "templates/template.typ": *
#import "templates/acronyms.typ": *
//Hier werden die Abkürzungen definiert. Die Abkürzungen werden automatisch in ein Verzeichniss geschrieben und können im Text
//mit #acr("Abkürzung") bzw #acrpl("Abkürzung")referenziert werden.
#let acronyms = (
//"Abkürzung": ("Vollständige ... | |
https://github.com/sean-clayton/typst-bullet-test | https://raw.githubusercontent.com/sean-clayton/typst-bullet-test/main/test.typ | typst | #set text(font: "Gentium Book Plus", size: 24pt)
▸ | |
https://github.com/DaAlbrecht/thesis-TEKO | https://raw.githubusercontent.com/DaAlbrecht/thesis-TEKO/main/template.typ | typst | // The project function defines how your document looks.
// It takes your content and some metadata and formats it.
// Go ahead and customize it to your liking!
#let project(title: "", abstract: [], authors: (), date: none, logo: none, school: "", degree: "", class: "", body) = {
// Set the document's basic propertie... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.