repo stringlengths 26 115 | file stringlengths 54 212 | language stringclasses 2
values | license stringclasses 16
values | content stringlengths 19 1.07M |
|---|---|---|---|---|
https://github.com/Omochice/toy-typst | https://raw.githubusercontent.com/Omochice/toy-typst/main/main.typ | typst | = 見出し1
これは段落です。空行は改段落を表します。
// 2つのスラッシュから始まる行はコメントです。このテキストは出力に現れません。
== 見出し2
テキストは _強調 (emphasis)_ することもできれば、
*強調 (strong emphasis)* することもできます。
- これは箇条書きです。
- インデントは箇条書きのネストを表します。
- 先頭を `+` とすれば番号付き箇条書きとなります。
| |
https://github.com/HEIGVD-Experience/docs | https://raw.githubusercontent.com/HEIGVD-Experience/docs/main/_settings/typst/template-lab.typ | typst | #let conf(
title: none,
lesson: none,
lab: none,
author: "<NAME>.",
toc: none,
col: 2,
doc,
) = {
set text(font: "Times New Roman")
set page("a4",
header: [
#columns(2)[
#set align(left)
#set text(size: 12pt)
#author
#colbreak()
#set align(right)
... | |
https://github.com/Myriad-Dreamin/typst.ts | https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/text/features_00.typ | typst | Apache License 2.0 |
#import "/contrib/templates/std-tests/preset.typ": *
#show: test-page
// Test turning kerning off.
#text(kerning: true)[Tq] \
#text(kerning: false)[Tq]
|
https://github.com/polarkac/MTG-Stories | https://raw.githubusercontent.com/polarkac/MTG-Stories/master/stories/024%20-%20Shadows%20over%20Innistrad/006_The%20Drownyard%20Temple.typ | typst | #import "@local/mtgstory:0.2.0": conf
#show: doc => conf(
"The Drownyard Temple",
set_name: "Shadows Over Innistrad",
story_date: datetime(day: 06, month: 04, year: 2016),
author: "<NAME>",
doc
)
#emph[<NAME>'s search for Sorin Markov has been beset by peril and has yielded more questions than answ... | |
https://github.com/Trebor-Huang/HomotopyHistory | https://raw.githubusercontent.com/Trebor-Huang/HomotopyHistory/main/abstract.typ | typst | #set page(paper: "a5", numbering: "— 1 —", margin: (top: 2.5cm, bottom: 2.5cm))
#set text(font: ("New Computer Modern", "Songti SC"), size: 10pt)
#set strong(delta:500)
#show heading: it => {
it
v(1pt)
par()[#text(size:0.5em)[#h(0.0em)]]
}
#set par(leading: 10pt, justify: true, first-line-indent: 2em)
#ali... | |
https://github.com/Tiggax/famnit_typst_template | https://raw.githubusercontent.com/Tiggax/famnit_typst_template/main/lib.typ | typst | MIT No Attribution | // Made By <NAME>
// questions and suggestions => https://github.com/Tiggax/famnit_typst_template
#let col = (
gray: rgb(128,128,128),
)
#let todo = [
#set text(fill: red)
*TODO*
]
#let split_author(author) = {
let a_list = author.split(" ")
(name: a_list.at(0), surname: a_list.slice(1).join(" ") )
}
#let ... |
https://github.com/sysu/better-thesis | https://raw.githubusercontent.com/sysu/better-thesis/main/specifications/bachelor/cover.typ | typst | MIT License | #import "/utils/datetime-display.typ": datetime-display
#import "/utils/style.typ": 字号, 字体, sysucolor
// 封面
#let cover(
info: (:),
// 其他参数
stoke-width: 0.5pt,
min-title-lines: 2,
info-inset: (x: 0pt, bottom: 1pt),
info-key-width: 72pt,
info-key-font: "黑体",
info-value-font: "宋体",
column-gutter: -3pt,... |
https://github.com/ralphmb/My-Dissertation | https://raw.githubusercontent.com/ralphmb/My-Dissertation/main/sections/regression.typ | typst | Creative Commons Zero v1.0 Universal | #show table: set text(8pt)
#show table: set align(center)
== Modelling match outcome
In this section we hope to explore the use of logistic regression in modelling match outcomes in football.
Bernoulli-distributed processes may have the 'success' chance $p$ be dependent on different variables $X$.
Here we have $p_i i... |
https://github.com/lebinyu/typst-thesis-template | https://raw.githubusercontent.com/lebinyu/typst-thesis-template/main/template/chapter_style.typ | typst | Apache License 2.0 | // import heading style
#import "global_style.typ": *
#let chapterpage(
chapterheading: "",
chaptnumber: int,
introduction: "",
mainbody: "",
reference: "",
title:""
) = {
set page(
margin: (x: 3cm, y:3cm),
numbering: "1",
)
set page(footer: {
coun... |
https://github.com/r4ai/typst-code-info | https://raw.githubusercontent.com/r4ai/typst-code-info/main/.github/fixtures/line-numbers.typ | typst | MIT License | #import "../../plugin.typ": init-code-info, code-info
#show: init-code-info.with()
#code-info(show-line-numbers: true)
```rust
pub fn add(a: i32, b: i32) -> i32 {
a + b
}
pub fn sub(a: i32, b: i32) -> i32 {
a - b
}
pub fn mul(a: i32, b: i32) -> i32 {
a * b
}
pub fn div(a: i32, b: i32) -> i32 {
a / ... |
https://github.com/stat20/stat20handout-typst | https://raw.githubusercontent.com/stat20/stat20handout-typst/main/_extensions/stat20handout/typst-template.typ | typst |
#let stat20handout(
title: none,
title-prefix: none,
course-name: none,
semester: none,
cols: 1,
margin: (x: 1in, bottom: 1in, top: 1in),
paper: "us-letter",
font: (),
fontsize: 11pt,
sectionnumbering: none,
doc,
) = {
set page(
paper: paper,
margin: margin,
header: underline(offse... | |
https://github.com/kdog3682/2024-typst | https://raw.githubusercontent.com/kdog3682/2024-typst/main/src/canva.typ | typst | #import "@preview/cetz:0.2.0"
#import "base-utils.typ": *
#set page(width: 8.5in, height: 11in, margin: 0pt)
#let create-page(dimensions, margin) = {
// not doing anything with margins yet
let o = (0, 0)
let (ox, oy) = o
// let ne = dimensions.map(resolve-inches)
let ne = dimensions
let (wid... | |
https://github.com/7sDream/fonts-and-layout-zhCN | https://raw.githubusercontent.com/7sDream/fonts-and-layout-zhCN/master/chapters/05-features/shaping/slide-9.typ | typst | Other | #import "/lib/draw.typ": *
#import "/lib/glossary.typ": tr
#let start = (0, 0)
#let end = (1000, 660)
#let table-border-color = rgb("5595c2")
#let table-gray-color = rgb("e4e5e9")
#let arrow-color = rgb("309843")
#let feature-color = rgb("2e7cac")
#let lookup1-color = rgb("2d9641")
#let lookup2-color = rgb("c4b455")
... |
https://github.com/antonWetzel/prettypst | https://raw.githubusercontent.com/antonWetzel/prettypst/master/test/default/columns.typ | typst | MIT License | #table(
columns: (1fr, 1fr),
[abcedf], [b],
[c], [d],
[e],
)
#table(
columns: (1fr, 1fr, 1fr),
[a000000], [b], [c0],
[d00], [e], [],
)
#table(
columns: (1fr, 1fr),
[C], [D],
[EEEEE], [FF],
)
#table(
columns: (1fr, 1fr),
table.header[A][B],
[C], [D],
)
#table(
columns: (1fr, ... |
https://github.com/undefik/jconv | https://raw.githubusercontent.com/undefik/jconv/master/README.md | markdown | The Unlicense | # JConv - a simple Jupyer notebook converter for Typst
This utility leverages the sourcerer, ansi-render, based, cmarker and showybox packages to convert basic Jupyter notebook files to PDF.
## Usage
First, you need to import the file:
```typst
#import "jconv.typ": jconv
```
To output the notebook's contents as Typst... |
https://github.com/j10ccc/algorithm-analysis-homework-template-typst | https://raw.githubusercontent.com/j10ccc/algorithm-analysis-homework-template-typst/main/config.typ | typst | #let frontmatter = (
name: [xxx],
student_number: [xxxxxxxxxxxx]
)
| |
https://github.com/ClazyChen/Table-Tennis-Rankings | https://raw.githubusercontent.com/ClazyChen/Table-Tennis-Rankings/main/history/2019/MS-05.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], [3659],
[2], [<NAME>], [CHN], [3473],
[3], [<NAME>], [CHN], [3312],
[4], [<NAME>], [CHN], [3303],
... | |
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/hydra/0.1.0/examples/main.typ | typst | Apache License 2.0 | #import "@local/hydra:0.0.1": hydra
#set page(header: hydra() + line(length: 100%))
#set heading(numbering: "1.1")
#show heading.where(level: 1): it => pagebreak(weak: true) + it
= Introduction
#lorem(750)
= Content
== First Section
#lorem(500)
== Second Section
#lorem(250)
== Third Section
#lorem(500)
= Annex
#lor... |
https://github.com/7sDream/fonts-and-layout-zhCN | https://raw.githubusercontent.com/7sDream/fonts-and-layout-zhCN/master/chapters/02-concepts/dimension/notional-size.typ | typst | Other | #import "/lib/draw.typ": *
#import "/template/theme.typ": theme
#import "/template/lang.typ": bengali
#let start = (0, 0)
#let end = (800, 300)
#let graph = with-unit((ux, uy) => {
// mesh(start, end, (100, 50), stroke: 1 * ux + gray)
let lb = (0, 60)
txt([#text(font: ("Noto Sans",))[Hx]#text(font: ("Cinzel",)... |
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/visualization/decide.typ | typst | Creative Commons Attribution Share Alike 4.0 International | #import "/packages.typ": notebookinator, codetastic
#import notebookinator: *
#import themes.radial.components: *
#import codetastic: qrcode
#show: create-body-entry.with(
title: "Decide: Data Visualization",
type: "decide",
date: datetime(year: 2023, month: 11, day: 18),
author: "<NAME>",
witness: "<NAME>"... |
https://github.com/soul667/typst | https://raw.githubusercontent.com/soul667/typst/main/PPT/光电系统集成 - 副本/海洋水质检测系统的设计与开发.typ | typst | #import "touying/lib.typ": *
#import "template.typ": *
// #import "todo.typ": *
#import "@preview/algorithmic:0.1.0"
#import algorithmic: algorithm
#let s = themes.simple.register(s, aspect-ratio: "16-9", footer: [Harbin Engineering University])
#let s = (s.methods.enable-transparent-cover)(self: s)
#let (init, slide,... | |
https://github.com/gigu003/typst-templates | https://raw.githubusercontent.com/gigu003/typst-templates/main/qcreport/_extensions/qcreport/typst-template.typ | typst | MIT License |
// This is an example typst template (based on the default template that ships
// with Quarto). It defines a typst function named 'article' which provides
// various customization options. This function is called from the
// 'typst-show.typ' file (which maps Pandoc metadata function arguments)
//
// If you are creati... |
https://github.com/tiankaima/typst-notes | https://raw.githubusercontent.com/tiankaima/typst-notes/master/7e1810-algo_hw/hw5.typ | typst | #import "@preview/cetz:0.2.2": *
#import "utils.typ": *
== HW5 (Week 6)
Due: 2024.04.14
=== Question 14.5-2
Determine the cost and structure of an optimal binary serach tree for a set of $n=7$ keys with the following probabilities:
#align(center)[
#table(
stroke: none,
columns: (auto, auto, auto, auto, aut... | |
https://github.com/jasonelaw/bes-typst-memo | https://raw.githubusercontent.com/jasonelaw/bes-typst-memo/main/README.md | markdown | # Typst Memo Format for BES
This is a memo format based on the [BES memo template](https://employees.portland.gov/bes/resource-library/bes-forms-and-templates).
## Installing
```bash
quarto use template jasonelaw/bes-typst-memo
```
This will install the extension and create an example .qmd file that you can use as ... | |
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/gentle-clues/0.6.0/CHANGELOG.md | markdown | Apache License 2.0 | # Changelog
## v0.6.0 (latest)
- Added possibility to define default settings via `#show: gentle-clues.with()` - *lang*, *width*, *stroke-width*, *border-width*, *border-radius*, *breakable* - (See all options in [docs.pdf](docs.pdf))
- **Deprecated:** `#gc_header-title-lang.update("de")` use `#show: gentle-clue... |
https://github.com/Jozott00/typst-LLNCS-template | https://raw.githubusercontent.com/Jozott00/typst-LLNCS-template/main/template.typ | typst | #import "template/theorem_proof_cnf.typ": *
// all theorem related elements
#let (
theorem,
__thm-rules,
definition,
__def-rules,
proposition,
__prop-rules,
lemma,
__lem-rules,
proof,
__proof-rules,
corollary,
__corol-rules,
) = __llncs_thm_cnf()
// The project fun... | |
https://github.com/rabotaem-incorporated/calculus-notes-2course | https://raw.githubusercontent.com/rabotaem-incorporated/calculus-notes-2course/master/main.typ | typst | #import "utils/core.typ": *
#show: notes.with(
name: "Конспект лекций по математическому анализу за " + {
if config.sem3 and config.sem4 {
"II курс"
} else if config.sem3 {
"III семестр"
} else if config.sem4 {
"IV семестр"
} else {
panic("empty conspect")
}
},
short-n... | |
https://github.com/ngyngcphu/tick3d-docs | https://raw.githubusercontent.com/ngyngcphu/tick3d-docs/main/contents/02_phan_tich_yeu_cau/index.typ | typst | Apache License 2.0 | = Phân tích yêu cầu
Như đã đề cập ở phần Phạm vi dự án, nhóm sẽ ưu tiên mức hiện thực thủ công bao gồm sáu tính năng chính trên. Phần này sẽ mô tả chi tiết về toàn bộ yêu cầu chức năng và yêu cầu phi chức năng của hệ thống ở mức thủ công:
== Yêu cầu chức năng
=== User Story
==== Đối với khách hàng
#block(inset: (left... |
https://github.com/PuntitOwO/template-informe-memoria-fcfm | https://raw.githubusercontent.com/PuntitOwO/template-informe-memoria-fcfm/main/conf.typ | typst | MIT License | #let logos = (
escudo: "imagenes/institucion/escudoU2014.svg",
fcfm: "imagenes/institucion/fcfm.svg"
)
#let pronombre = (
el: (titulo: "O", guia: ""),
ella: (titulo: "A", guia: "A"),
elle: (titulo: "E", guia: "E"),
)
#let guia(visible: true, body) = if visible [
#set rect(width: 100%, stroke... |
https://github.com/DieracDelta/presentations | https://raw.githubusercontent.com/DieracDelta/presentations/master/polylux/book/src/dynamic/alternatives-repeat-last.typ | typst | #import "../../../polylux.typ": *
#set page(paper: "presentation-16-9")
#set text(size: 50pt)
#polylux-slide[
#alternatives(repeat-last: true)[temporary][transitory][ephemeral][permanent!]
#uncover(5)[Did I miss something?]
]
| |
https://github.com/Myriad-Dreamin/typst.ts | https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/docs/cookery/guide/renderer/angular.typ | typst | Apache License 2.0 | #import "/docs/cookery/book.typ": book-page
#import "/docs/cookery/term.typ" as term
#show: book-page.with(title: "Angular Library")
= Angular Library
Use #link("https://www.npmjs.com/package/@myriaddreamin/typst.angular")[`@myriaddreamin/typst.angular`].
Import the angular module containing the `typst-document` co... |
https://github.com/satshi/modern-physics | https://raw.githubusercontent.com/satshi/modern-physics/main/modernphys.typ | typst | // 今のところjarticleとappendixを定義している。
#import "template.typ": *
//オプションはfontsize, title, authors, date, abstract
#show: doc => jarticle(
fontsize: 12pt,
title: [現代物理学の基礎\ ―特殊相対論と量子力学入門―],
authors: ([山口 哲],),
date: datetime.today().display(年月),
doc,
)
// expvalというコマンドを使うため。
#import "@preview/physica:0.9.2": expva... | |
https://github.com/pluttan/electron | https://raw.githubusercontent.com/pluttan/electron/main/lab3/lab3.typ | typst | #import "@docs/bmstu:1.0.0":*
#import "@preview/tablex:0.0.8": tablex, rowspanx, colspanx, cellx
#show: student_work.with(
caf_name: "Компьютерные системы и сети",
faculty_name: "Информатика и системы управления",
work_type: "лабораторной работе",
work_num: "3",
discipline_name: "Электроника",
theme: "Ключе... | |
https://github.com/SnowManKeepsOnForgeting/NoteofModernControlTheory | https://raw.githubusercontent.com/SnowManKeepsOnForgeting/NoteofModernControlTheory/main/Chapter2/Chapter2.typ | typst | #import "@preview/physica:0.9.3": *
#import "@preview/i-figured:0.2.4"
#set heading(numbering: "1.1")
#show math.equation: i-figured.show-equation.with(level: 2)
#show heading: i-figured.reset-counters.with(level: 2)
#set text(font: "CMU Serif")
#counter(heading).update(1)
= Description of State Space
== Definition
1.... | |
https://github.com/EpicEricEE/typst-marge | https://raw.githubusercontent.com/EpicEricEE/typst-marge/main/tests/parameter/side/test.typ | typst | MIT License | #import "/src/lib.typ": sidenote
#set par(justify: true)
#set page(width: 11cm, height: auto, margin: (x: 4cm, rest: 5mm))
#let sidenote = sidenote.with(numbering: "1")
#lorem(4)
#sidenote[This note is on the outside.]
#lorem(4)
#sidenote(side: "inside")[This note is on the inside.]
#lorem(4)
#sidenote(s... |
https://github.com/Myriad-Dreamin/apollo-typst | https://raw.githubusercontent.com/Myriad-Dreamin/apollo-typst/main/typ/template/pages.typ | typst | #import "@preview/shiroa:0.1.0": *
#import "@preview/typst-apollo:0.1.0": pages
#import pages: *
#let blog-page = project
| |
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/dashy-todo/0.0.1/lib/todo.typ | typst | Apache License 2.0 | #import "place-in-page-margin.typ": place-in-page-margin
#let to-string(content) = {
if type(content) == str {
content
} else if content.has("text") {
content.text
} else if content.has("children") {
content.children.map(to-string).join("")
} else if content.has("body") {
to-string(content.body... |
https://github.com/noahjutz/AD | https://raw.githubusercontent.com/noahjutz/AD/main/notizen/sortieralgorithmen/quicksort/quicksort.typ | typst | #import "/config.typ": theme
#import "@preview/cetz:0.2.2"
#let swap_trace(trace, i, j) = {
let k = trace.position(n => n == i)
let l = trace.position(n => n == j)
(trace.at(k), trace.at(l)) = (trace.at(l), trace.at(k))
return trace
}
#let partition(nums) = {
let trace = range(nums.len())
let j = 1
fo... | |
https://github.com/kdog3682/mathematical | https://raw.githubusercontent.com/kdog3682/mathematical/main/0.1.0/src/draw/utils.typ | typst |
#import "@preview/cetz:0.2.0"
#let translation(c, x: 0, y: 0) = {
cetz.draw.translate(x: x, y: y)
c
cetz.draw.translate(x: -x, y: -y)
}
#let offset((a, b), x: 0, y: 0) = {
(a + x, b + y)
}
#let wrapper(c, x, y, name: none) = {
cetz.draw.group(name: name, ctx => translation(c, x: x, y: y))
}
#le... | |
https://github.com/jomaway/typst-teacher-templates | https://raw.githubusercontent.com/jomaway/typst-teacher-templates/main/examples/exam/mc.typ | typst | MIT License | #import "@local/ttt-exam:0.1.0": assignment, multiple-choice
#let data = toml("quizzes.toml")
#assignment[Kreuzen Sie die richtige Lösung an.
#for mct in data.questions {
multiple-choice(mct)
}
]
|
https://github.com/kdog3682/mathematical | https://raw.githubusercontent.com/kdog3682/mathematical/main/0.1.0/src/demos/fractions-from-ratios.typ | typst | #import "@local/typkit:0.1.0": *
#import "@local/mathematical:0.1.0": *
#let fractions-from-ratios(..sink) = {
let args = sinks.pos()
assert-is-color-value-object-array(args)
let values = args.map((x) => x.value)
let d = values.sum()
let callback(o) = {
return colored(fraction(o.value, d), ... | |
https://github.com/7sDream/fonts-and-layout-zhCN | https://raw.githubusercontent.com/7sDream/fonts-and-layout-zhCN/master/chapters/07-localisation/localisation.typ | typst | Other | #import "/template/template.typ": web-page-template
#import "/template/heading.typ": chapter
#import "/template/components.typ": note, title-ref
#import "/template/lang.typ": arabic, arabic-amiri, balinese, devanagari, hind, sharada, taitham, telugu
#import "/lib/glossary.typ": tr
#show: web-page-template
#chapter[
... |
https://github.com/csimide/cuti | https://raw.githubusercontent.com/csimide/cuti/master/demo-and-doc/demo-and-doc.typ | typst | MIT License | #import "../lib.typ": *
#import "./otr/utils.typ": *
#set page(margin: 2cm)
#set par(justify: true)
#show raw.where(block: false): set text(font: "Fira Code")
#show heading.where(level: 1): it => {pagebreak(weak: true); it}
#show heading.where(level: 2): it => {line(length: 100%); it}
= Cuti Demo & Doc
== Introduc... |
https://github.com/Isaac-Fate/booxtyp | https://raw.githubusercontent.com/Isaac-Fate/booxtyp/master/src/sectioning.typ | typst | Apache License 2.0 | #import "colors.typ": color-schema
#import "equation.typ": equation-counter
#import "counters.typ": figure-counter, theorem-counter, definition-counter, example-counter, exercise-counter
#let chapter-rules(body) = {
// Handle level 1 headings with numbering "1.1"
show heading.where(level: 1, numbering: "1.1"): it ... |
https://github.com/OverflowCat/BUAA-Automatic-Control-Components-Sp2024 | https://raw.githubusercontent.com/OverflowCat/BUAA-Automatic-Control-Components-Sp2024/neko/实验/3.typ | typst | #set text(lang: "zh", font: "Noto Serif CJK SC")
#show "。": "."
= 实验三 三相异步电动机的实验
== 实验(1):三相异步电机起动、改变电机转向
=== 2. 三相异步电动机直接起动的接线和直接起动试验
观察电动机起动瞬间最大的电流值,重复启动过程 5 次,取测得的电流数值的最大值 $ I_"st" = 1.12" A". $
=== 3. 三相异步电动机 Y-Δ起动的接线和 Y-Δ起动试验
观察电动机起动瞬间最大的电流值,重复启动过程 5 次,取测得的电流数值的最大值 $ I_"st" = 0.56" A". $
将 Y ... | |
https://github.com/Lslightly/TypstTemplates | https://raw.githubusercontent.com/Lslightly/TypstTemplates/main/README.md | markdown | MIT License | # TypstTemplates
templates and fonts for Typst
# Usage
use `softlink.xx` to create soft-links.
|
https://github.com/VadimYarovoy/Networks2 | https://raw.githubusercontent.com/VadimYarovoy/Networks2/main/lab3/report/typ/task.typ | typst | #import "@preview/colorful-boxes:1.2.0": *
= Практические задание
== Задание 1
#colorbox(
title: "TODO",
color: "blue",
radius: 2pt,
width: auto
)[
Настройте свой веб-сервер (nginx+php+mysql или что-то подобное). Контент на сервере
мне не важен, подойдет любая дефолтная CMS (Wordpress, Drupal итд)
]
=== Нас... | |
https://github.com/Jollywatt/typst-wordometer | https://raw.githubusercontent.com/Jollywatt/typst-wordometer/master/tests/template.typ | typst | MIT License | #import "/src/lib.typ": *
#set page(width: 15cm, height: auto)
|
https://github.com/sitandr/typst-examples-book | https://raw.githubusercontent.com/sitandr/typst-examples-book/main/src/basics/math/classes.md | markdown | MIT License | # Classes
> See [official documentation](https://typst.app/docs/reference/math/class/)
Each math symbol has its own "class", the way it behaves. That's one of the main reasons why they are layouted differently.
## Classes
```typ
$
a b c\
a class("normal", b) c\
a class("punctuation", b) c\
a class("opening", b) c\
... |
https://github.com/EpicEricEE/typst-marge | https://raw.githubusercontent.com/EpicEricEE/typst-marge/main/src/resolve.typ | typst | MIT License | /// Resolve "auto" values with the given default.
#let resolve-auto(val, default) = {
if val == auto { default } else { val }
}
/// Resolve text direction, depending on the language.
///
/// Requires context.
#let resolve-dir() = {
let rtl-langauges = (
"ar", "dv", "fa", "he", "ks", "pa", "ps", "sd"... |
https://github.com/kotfind/hse-se-2-notes | https://raw.githubusercontent.com/kotfind/hse-se-2-notes/master/prob/seminars/2024-09-09.typ | typst | = Введение
<NAME>
#figure(
caption: "Облако",
table(
columns: 2,
[Link:], `mega.nz/login`,
[Login:], `<EMAIL>`,
[Pass:], `<PASSWORD>`,
)
)
$ "Итог" = 0.1 dot "ИДЗ" + 0.25 dot "КР" + 0.15 dot "Сем" + 0.5 dot "Экз" $
| |
https://github.com/HKFoggyU/hkust-thesis-typst | https://raw.githubusercontent.com/HKFoggyU/hkust-thesis-typst/main/hkust-thesis/layouts/appendix.typ | typst | LaTeX Project Public License v1.3c | #import "../imports.typ": *
#import "../utils/custom-numbering.typ": custom-numbering
// 文稿设置,可以进行一些像页面边距这类的全局设置
#let appendix(
// i-figured settings
show-equation: i-figured.show-equation.with(numbering: "(A.1)"),
show-figure: i-figured.show-figure.with(numbering: "A.1"),
reset-counters: i-figured.r... |
https://github.com/pedrofp4444/BD | https://raw.githubusercontent.com/pedrofp4444/BD/main/report/content/[3] Modelação Concetual/relacionamentos.typ | typst | #let relacionamentos = {
[
== Identificação e Caracterização dos Relacionamentos
Na modelação concetual surgirão vários relacionamentos entre entidades responsáveis por representar as diferentes interações entre os elementos definidos na base de dados.
#figure(
caption: "Caracterização dos relacio... | |
https://github.com/drupol/master-thesis | https://raw.githubusercontent.com/drupol/master-thesis/main/resources/typst/inputs-and-outputs-part4.typ | typst | Other | #import "../../src/thesis/imports/preamble.typ": *
#import "../../src/thesis/theme/colors.typ": *
#set align(center + horizon)
#set text(font: "Virgil 3 YOFF")
#grid(
columns: (1fr, 1fr, 1fr, 1fr, 1fr),
rows: (70pt, 25pt),
{
place(top + left, dx: 15pt, dy: 9pt)[#text(fill: umons-red)[Program]]
place(
... |
https://github.com/Myriad-Dreamin/tinymist | https://raw.githubusercontent.com/Myriad-Dreamin/tinymist/main/CONTRIBUTING.md | markdown | Apache License 2.0 |
# Contributing
Tinymist provides a single integrated language service for Typst.
**Multiple Actors** – The main component, [tinymist](./crates/tinymist/), starts as a thread or process, obeying the [Language Server Protocol](https://microsoft.github.io/language-server-protocol/). tinymist will bootstrap multiple act... |
https://github.com/polarkac/MTG-Stories | https://raw.githubusercontent.com/polarkac/MTG-Stories/master/stories/027%20-%20Conspiracy%3A%20Take%20the%20Crown/002_Tyrants.typ | typst | #import "@local/mtgstory:0.2.0": conf
#show: doc => conf(
"Tyrants",
set_name: "Conspiracy: Take the Crown",
story_date: datetime(day: 10, month: 08, year: 2016),
author: "<NAME>",
doc
)
#emph[Adriana is the captain of the guard of the High City of Paliano, a post that puts her in the service of th... | |
https://github.com/konradroesler/lina-skript | https://raw.githubusercontent.com/konradroesler/lina-skript/main/lina-2.typ | typst | #import "utils.typ": *
#import "template.typ": uni-script-template
#show: doc => uni-script-template(
title: [Vorlesungsskript],
author: [<NAME>],
module-name: [LinA II\* SoSe 24],
doc
)
#bold[Wiederholung:]
$K$ sei ein beliebiger Körper, $V$ ein $n$-dimensionaler $K$-Vektorraum,
$
L(V, V) = { f: V -> V | f "... | |
https://github.com/jgm/typst-hs | https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/regression/issue21.typ | typst | Other | #version(1,2)
#version(1,2).at(3)
|
https://github.com/MrToWy/Bachelorarbeit | https://raw.githubusercontent.com/MrToWy/Bachelorarbeit/master/Template/titlePage.typ | typst | // Title page.
#v(0.6fr)
#align(left, image("Wortmarke.svg", width: 26%))
#v(1.6fr)
#text(2em, weight: 700, title)
#v(1.2em, weak: true)
#text(author)
#v(1.2em, weak: true)
#text(subtitle)
#v(1.2em, weak: true)
#text(1.1em, date)
#align(right, image("Logo.svg", width: 26%))
#pagebreak()
| |
https://github.com/MultisampledNight/diagram | https://raw.githubusercontent.com/MultisampledNight/diagram/main/source/template.typ | typst | Other | #import "@preview/cetz:0.2.2"
#let draw = cetz.draw
#let input(name, default) = if name in sys.inputs {
json.decode(sys.inputs.at(name))
} else {
default
}
#let bg = luma(100%)
#let fg = luma(0%)
#let gamut = gradient.linear(bg, fg)
#let todo(..what) = {
let body = what.pos().at(0, default: [TODO])
text(fill... |
https://github.com/FriendlyUser/IntroductionToTypst | https://raw.githubusercontent.com/FriendlyUser/IntroductionToTypst/main/template.typ | typst | Apache License 2.0 | // 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 resume(
title: "", location: "", postalCode: "", phoneNumber: "", email: "",
authors: (), experiences: (), education: (), body) = {
// Set the docum... |
https://github.com/liuguangxi/fractusist | https://raw.githubusercontent.com/liuguangxi/fractusist/main/tests/test-dragon-curve.typ | typst | MIT License | #set document(date: none)
#import "/src/lib.typ": *
#set page(margin: 1cm)
= n = 1
#align(center)[
#dragon-curve(1, step-size: 40)
]
= n = 2
#align(center)[
#dragon-curve(2, step-size: 20, stroke-style: stroke(paint: red, thickness: 2pt, cap: "square"))
]
= n = 3
#align(center)[
#... |
https://github.com/Kasci/LiturgicalBooks | https://raw.githubusercontent.com/Kasci/LiturgicalBooks/master/CU/postna_triod/1_generated/0_all/Tyzden-01.typ | typst | #import "../../../all.typ": *
#show: book
= -01. #translation.at("TYZDEN")
#include "../Tyzden-01/7_Nedela.typ"
#pagebreak()
| |
https://github.com/Jollywatt/typst-fletcher | https://raw.githubusercontent.com/Jollywatt/typst-fletcher/master/tests/diagram-math-mode/test.typ | typst | MIT License | #set page(width: auto, height: auto, margin: 1em)
#import "/src/exports.typ" as fletcher: diagram, node, edge
= Diagrams in math mode
The following diagrams should be identical:
#diagram($
G edge(f, ->) edge(#(0,1), pi, ->>) & im(f) \
G slash ker(f) edge(#(1,0), tilde(f), "hook-->")
$)
#diagram(
node((0,0), $G$)... |
https://github.com/lucannez64/Notes | https://raw.githubusercontent.com/lucannez64/Notes/master/Refaire_la_France.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: "Refaire la France",
authors: (
"<NAME>",
),
date: "30 Octobre, 2023",
)
#set heading(numbering: "1.1.")
Voici le fichier actualisé en... | |
https://github.com/Myriad-Dreamin/typst.ts | https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/math/frac_04.typ | typst | Apache License 2.0 |
#import "/contrib/templates/std-tests/preset.typ": *
#show: test-page
// Test multinomial coefficients.
$ binom(n, k_1, k_2, k_3) $
|
https://github.com/sa-concept-refactoring/doc | https://raw.githubusercontent.com/sa-concept-refactoring/doc/main/chapters/managementSummary.typ | typst | = Management Summary
The goal of this project was to add new refactorings to the clangd language server to support the use of concepts, which were introduced with C++20.
Two new refactoring operations were implemented and the resulting patches have been submitted to the LLVM project.
As of #datetime(year: 2023, month... | |
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/hydra/0.1.0/README.md | markdown | Apache License 2.0 | # hydra
Hydra is a [typst] package allowing you to easily display the current section anywhere in your
document. By default, it will assume that it is used in the header of your document and display
the last heading if and only if it is numbered and the next heading is not the first on the current
page.
By default hyd... |
https://github.com/Saadaiheb5/lab4 | https://raw.githubusercontent.com/Saadaiheb5/lab4/main/Lab-4.typ | typst | #import "Class.typ": *
#show: ieee.with(
title: [#text(smallcaps("Lab #4: ROS2 using RCLPY in Julia"))],
/*
abstract: [
#lorem(10).
],
*/
authors:
(
(
name: "<NAME>",
department: [Senior-lecturer, Dept. of EE],
organization: [ISET Bizerte --- Tunisia],
profile: "a-mhamdi"... | |
https://github.com/dainbow/MatGos | https://raw.githubusercontent.com/dainbow/MatGos/master/themes/19.typ | typst | #import "../conf.typ": *
= Достаточные условия равномерной сходимости тригонометрического ряда Фурье
#proposition[
Анализ доказательства признака Дини (@dini) показывает, что критерием сходимости
тригонометрического ряда Фурье функции $f in L_(2 pi)$ к $S(x_0)$ в точке $x_0$ является
равенство
#eq[
$lim_(n... | |
https://github.com/rqy2002/typst-experiment | https://raw.githubusercontent.com/rqy2002/typst-experiment/main/README.md | markdown | This is some experimental Typst file by me. Maybe it will become a little library.
I want to implement:
- [x] Basic theorem environments like LaTeX. (here is a better at [Typst-theorems](https://github.com/sahasatvik/typst-theorems))
- [ ] Commutative diagrams like Tikzcd.
- [ ] Fonts configuration as in xeCJK. (... | |
https://github.com/jneug/schule-typst | https://raw.githubusercontent.com/jneug/schule-typst/main/src/api/helper.typ | typst | MIT License | #import "../theme.typ"
/// Hilfesfunktion für die Formatierung von Füllfarben für Tabellen.
/// Die Funktion wird mit der
/// #example[```
/// #table(
/// columns: 4,
/// fill: tablefill(
/// footerfill: gradient.linear(..color.map.vlag, angle:90deg),
/// oddfill: color.map.vlag.first(),
/// headers: 2... |
https://github.com/kom113/typst-examples | https://raw.githubusercontent.com/kom113/typst-examples/master/README.md | markdown | # typst-examples
Personal small code snippets written in typst.
| |
https://github.com/jgm/typst-hs | https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/compiler/spread-12.typ | typst | Other | // Spread at beginning.
#{
let f(..a, b) = (a, b)
test(repr(f(1)), "((), 1)")
test(repr(f(1, 2, 3)), "((1, 2), 3)")
test(repr(f(1, 2, 3, 4, 5)), "((1, 2, 3, 4), 5)")
}
|
https://github.com/TGM-HIT/typst-protocol | https://raw.githubusercontent.com/TGM-HIT/typst-protocol/main/src/l10n.typ | typst | MIT License | #import "@preview/linguify:0.4.0": set-database as _set_database, linguify
/// *Internal function.* Initializes Linguify with the template's translation file.
///
/// -> content
#let set-database() = _set_database(toml("l10n.toml"))
#let supervisor = linguify("supervisor")
#let grade = linguify("grade")
#let version ... |
https://github.com/stephane-klein/typst-sklein-resume-poc | https://raw.githubusercontent.com/stephane-klein/typst-sklein-resume-poc/main/README.md | markdown | # Proof of concept repository to test Typst to build my future resume
Warning, this project is under development, several parts are poorly done.
```sh
$ mise install
$ typst --version
typst 0.10.0 (70ca0d25)
$ ./scripts/watch.sh
$ evince ./resume.pdf
```
I was inspired by the The https://github.com/mintyfrankie/bril... | |
https://github.com/teamdailypractice/pdf-tools | https://raw.githubusercontent.com/teamdailypractice/pdf-tools/main/typst-pdf/thirukkural-thankyou/001-tty.typ | typst | #set page("a4")
#set text(
font: "TSCu_SaiIndira",
size: 16pt
)
#set align(center)
நன்றி
\
\
#set align(left)
#set text(
font: "TSCu_SaiIndira",
size: 14pt
)
#show link: underline
1. #link("https://www.tamilvu.org/")[தமிழ் இணையக் கல்விக்கழகம்]
2. #link("https://www.tamilvu.org/library/l2100/html/l2100ind.htm")... | |
https://github.com/typst-cn/awesome-typst-cn | https://raw.githubusercontent.com/typst-cn/awesome-typst-cn/master/README.draft.md | markdown | # Awesome Typst 中文版
列表收集了 [Typst](https://github.com/typst/typst) 相关的资源,扩展,应用等。
本列表由 [Typst 中文社区](https://typst.cn) 维护,欢迎提交 PR 一起维护。微信群:
<img src="./assets/wechat-qrcode.jpeg" style="height:500px"/>
<!-- 目录由 https://github.com/pbzweihander/markdown-toc 工具生成 -->
<!-- markdown-toc -->
## 官方项目链接
- [typst.app](https... | |
https://github.com/TycheTellsTales/typst-pho | https://raw.githubusercontent.com/TycheTellsTales/typst-pho/main/tests/registerBoard/test.typ | typst | #import "../../lib.typ": boards
= Pre-Registration
#context boards.get()
#context boards.register("Test123", ("Test1", "Test2", "Test3"))
= Post-Registration
#context boards.get()
| |
https://github.com/thornoar/typst-libraries | https://raw.githubusercontent.com/thornoar/typst-libraries/master/drawing.typ | typst | #import "@preview/cetz:0.2.2" as cz
#import "@preview/fletcher:0.4.5" as fr
| |
https://github.com/404Wolf/stainless-technical-breifing-natug | https://raw.githubusercontent.com/404Wolf/stainless-technical-breifing-natug/main/README.md | markdown | # NATuG Technical Breifing
A technical breifing of [NATuG](https://github.com/natug3/natug), a nucleic acid nanotube graphing desktop application, made in preperation for a StainlessAPI interview.
## Building
To build the PDF, run `nix build github:404Wolf/stainless-technical-breifing-natug` (or, if you don't care ab... | |
https://github.com/Roger-luo/tu | https://raw.githubusercontent.com/Roger-luo/tu/main/README.md | markdown | MIT License | # Tu
Collection of drawing tools for typst, built on top of [cetz](https://github.com/johannes-wolf/cetz/)
|
https://github.com/maxgraw/bachelor | https://raw.githubusercontent.com/maxgraw/bachelor/main/apps/document/src/2-theory/web-component.typ | typst | Web Components sind eine Reihe an Web APIs, welche es ermöglichen abgekapselte und wiederverwendbare Komponenten in Webdokumenten sowie Webanwendungen zu erstellen. Die Technologie besteht aus mehreren Komponenten, welche teilweise einzelnd oder in Kombination verwendet werden können. Die drei Kernkomponenten sind Cust... | |
https://github.com/protohaven/printed_materials | https://raw.githubusercontent.com/protohaven/printed_materials/main/common-policy/filing_a_tool_report.typ | typst | = Filing a Tool Report
If you are using a tool, and the tool becomes unsafe, damaged, or is not working properly, you must notify a tech. The tech may instruct you to submit a tool report:
https://airtable.com/appbIlORlmbIxNU1L/shrluff2WSzy8c3xd
Notifying the tech will help us keep signage up to date, and make sure ... | |
https://github.com/kokkonisd/typst-phd-template | https://raw.githubusercontent.com/kokkonisd/typst-phd-template/main/src/lib.typ | typst | The Unlicense | #import "colors.typ": *
#import "common.typ": *
#import "presentation.typ": *
#import "report.typ": *
|
https://github.com/Nikudanngo/typst-ja-resume-template | https://raw.githubusercontent.com/Nikudanngo/typst-ja-resume-template/main/template.typ | typst | MIT License | #let systemFontSize = 8pt
#let nameFontSize = 16pt
#let inputFontSize = 10pt
#let addSpace(input) = {
box(
[#pad(left:1cm,[#input])],
)
}
#let 私(性読み: "",名読み: "", 性: "",名: "",生年月日: "",年齢: 0) = {
stack(
place(
top + right,
dy: -10pt,
datetime.today().display(
"[year]年[month]月[day... |
https://github.com/phinixplus/docs | https://raw.githubusercontent.com/phinixplus/docs/master/source/cpu/intro.typ | typst | Other | #let intro = [
= Introduction <heading-introduction>
This document is the official specification for the PHINIX+ Central Processing
Unit. It is intended to explain in detail the capabilities and the layout of
the processor in an abstract manner in order to remain agnostic of the possible
implementations of it. While t... |
https://github.com/jgm/typst-hs | https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/compiler/hint-01.typ | typst | Other | #{
let a = 2
a = 1-a
a = a -1
// Error: 7-10 unknown variable: a-1 – if you meant to use subtraction, try adding spaces around the minus sign.
a = a-1
}
|
https://github.com/eduardz1/Bachelor-Thesis | https://raw.githubusercontent.com/eduardz1/Bachelor-Thesis/main/main.typ | typst | #import "utils/template.typ": *
#let declaration_of_originality = [
I declare to be responsible for the content I'm presenting in order to obtain
the final degree, not to have plagiarized in all or part of, the work produced
by others and having cited original sources in consistent way with current
plagiarism ... | |
https://github.com/coco33920/.files | https://raw.githubusercontent.com/coco33920/.files/mistress/typst_templates/timeline-cv/template.typ | typst | #let item(title, content) = [
#set align(left)
#text(size: 13pt, title)\
#text(size: 11pt, weight: "light", style: "italic", content)
]
#let s = state("lower_bound")
#let timeline_entry(
start : none,
end : datetime.today().year(),
title : none,
content : none,
) = locate(loc => {
let timeline... | |
https://github.com/supersurviveur/typst-math | https://raw.githubusercontent.com/supersurviveur/typst-math/main/README.md | markdown | MIT License | # Typst math VS Code Extension
A VS Code extension to simplify math writing in [Typst](https://typst.app/home).
# Installation
The extension can be downloaded from the [Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=surv.typst-math).
To preview math symbols, some fonts are required, ... |
https://github.com/Lindronics/skipper-reference | https://raw.githubusercontent.com/Lindronics/skipper-reference/main/appendix/passage_plan.typ | typst | MIT License | #set heading(numbering: "1.")
#set page(
margin: 1.5cm
)
#set text(
size: 10pt,
)
#layout(size => {
let notes = 50%;
let info = 15%;
let latlon = 20%;
let gap = 5%;
let pat = pattern(size: (25pt, 20pt))[
#polygon(
fill: gray,
stroke: none,
(0%, 0%),
(50%, 50%),
(100%, 0... |
https://github.com/TOD-theses/old-paper-T-RACE | https://raw.githubusercontent.com/TOD-theses/old-paper-T-RACE/main/thesis.typ | typst | #import "@preview/fletcher:0.5.1" as fletcher: diagram, node, edge
/*
Notable differences to the Latex template:
- ToC not perfect (contains no Abstract, List of Figures, ...; Bibliography is small)
- Not such a fancy new-chapter style
- Numbered citing rerences instead of letters
- "Figure"/"Table" 1 references are a... | |
https://github.com/KaarelKurik/conditional-plasticity | https://raw.githubusercontent.com/KaarelKurik/conditional-plasticity/main/main.typ | typst | #import "@preview/ctheorems:1.1.2": *
#show: thmrules.with(qed-symbol: $square$)
#import "template.typ": *
#show: project.with(
title: [Conditional plasticity of the unit ball
of the $ell_infinity$‑sum of finitely many strictly convex Banach~spaces],
authors: (
(name:"<NAME>", email:"<EMAIL>",
affiliati... | |
https://github.com/HPDell/typst-starter-journal-article | https://raw.githubusercontent.com/HPDell/typst-starter-journal-article/main/test.typ | typst | MIT License | #import "@preview/starter-journal-article:0.2.0": article, author-meta
#let affiliations = (
"UCL": "UCL Centre for Advanced Spatial Analysis, First Floor, 90 Tottenham Court Road, London W1T 4TJ, United Kingdom",
"TSU": "Haidian District, Beijing, 100084, P. R. China"
)
#let author-list(authors, template, affil... |
https://github.com/AU-Master-Thesis/thesis | https://raw.githubusercontent.com/AU-Master-Thesis/thesis/main/sections/0-predoc/preface.typ | typst | MIT License | #import "../../lib/mod.typ": *
= Preface <preface>
// Master Thesis
// Computer Engineering
// Authors
// - <NAME>
// - <NAME>
// Supervisor: <NAME>
// Co-supervisor: <NAME>
// Department of Electrical and Computer Engineering
// Aarhus University
// Aarhus, Denmark
// Dates
// - Start: 29th of January 2024
// - E... |
https://github.com/8LWXpg/typst-ansi-render | https://raw.githubusercontent.com/8LWXpg/typst-ansi-render/master/CHANGELOG.md | markdown | MIT License | # Changelog 📝
## [0.6.1] - 2023-12-26
### Changed
* Changed default foreground color name to `default-fg`
* Slightly reduce pdf size by removing default box fill
## [0.6.0] - 2023-12-06
### Fixed
* Removed workaround for a bug in `raw` that fixed in Typst 0.10.0
## [0.5.1] - 2023-10-21
### Fixed
* Fixed heigh... |
https://github.com/jgm/typst-hs | https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/compiler/ops-prec-03.typ | typst | Other | // Not in handles precedence.
#test(-1 not in (1, 2, 3), true)
|
https://github.com/goshakowska/Typstdiff | https://raw.githubusercontent.com/goshakowska/Typstdiff/main/tests/test_complex/ordered_list/ordered_list_mix.typ | typst | + The climate
- Precipitation
- Temperature factors
+ degree
- hot
- cold
+ Something new
+ Monkey | |
https://github.com/sysu/better-thesis | https://raw.githubusercontent.com/sysu/better-thesis/main/CHANGELOG.md | markdown | MIT License | # Changelog
All notable changes to this project will be documented in this file.
## [0.3.0] - 2024-06-15
### 🚀 Features
- *(heading)* 正文及附录部分一级标题前分页
- *(header)* 使用章标题与论文标题作为页眉
### 🐛 Bug Fixes
- 用 i-figured 修复图标题没有重置按章重置的问题
- *(appendix)* 修复附录图表、公式编码样式
### 📚 Documentation
- *(README)* 修复 README 文档中没有链接到规范问题
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.