repo stringlengths 26 115 | file stringlengths 54 212 | language stringclasses 2
values | license stringclasses 16
values | content stringlengths 19 1.07M |
|---|---|---|---|---|
https://github.com/typst-community/valkyrie | https://raw.githubusercontent.com/typst-community/valkyrie/main/tests/types/array/test.typ | typst | Other | #import "/src/lib.typ" as z
#import "/tests/utility.typ": *
#show: show-rule.with();
#let schema = z.array()
= types/array
== Input types
#{
let input-types = (
"array (empty)": (),
"array (single)": (0,),
)
for (name, value) in input-types {
utility-expect-eq(
test: value,
schema: sch... |
https://github.com/IdoWinter/UnitedDumplingsLegislatureArchive | https://raw.githubusercontent.com/IdoWinter/UnitedDumplingsLegislatureArchive/main/elections/ballot.typ | typst | MIT License |
#let ballot(initials, name) = {
set align(center)
rect([
#set text(lang: "he", font: "FrankRuehl")
#set text(size: 72pt)
#v(0.5cm)
#initials
#v(-60pt)
#set text(size: 16pt)
#name
], height: 5.96cm, width: 4.2cm)
}
#let pm_ballot(first_name, last_name) = {
... |
https://github.com/chendaohan/bevy_tutorials_typ | https://raw.githubusercontent.com/chendaohan/bevy_tutorials_typ/main/18_change_the_background_color/change_the_background_color.typ | typst | #set page(fill: rgb(35, 35, 38, 255), height: auto, paper: "a3")
#set text(fill: color.hsv(0deg, 0%, 90%, 100%), size: 22pt, font: "Microsoft YaHei")
#set raw(theme: "themes/Material-Theme.tmTheme")
= 1. 更改背景颜色
使用 ClearColor 资源来选择默认的背景颜色。此颜色将作为所有相机的默认颜色,除非被覆盖。
请注意,如果没有相机存在,窗口将是黑色的。你必须至少生成一个相机。
```Rust
.insert_resourc... | |
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/t4t/0.2.0/def.typ | typst | Apache License 2.0 | // Defaults
#let if-true( test, default, do:none, value ) = if test {
return default
} else if do == none {
return value
} else {
return do(value)
}
#let if-false( test, default, do:none, value ) = if not test {
return default
} else if do == none {
return value
} else {
return do(value)
}
#let if-none( d... |
https://github.com/sa-concept-refactoring/doc | https://raw.githubusercontent.com/sa-concept-refactoring/doc/main/chapters/developmentProcess.typ | typst | = Development Process <development_process>
Within this section, it is explained how the working environment was setup and what tools were used for development.
@workflow documents what the work process looked like.
In @setup, it is described how the project was setup for Windows and Linux.
== Workflow <workflow>
A... | |
https://github.com/L364CY-FM/typst-thesis | https://raw.githubusercontent.com/L364CY-FM/typst-thesis/main/projektarbeit/metadata.typ | typst | MIT License | // Enter your thesis data here:
#let title = "Titel der Arbeit"
#let degree = "Projekt 3"
#let supervisor = "Prof. Dr. <NAME>"
#let advisors = ("<NAME>, M.Sc.",)
#let author = "(Author)"
#let location = "(Location)"
#let startDate = "(Start Date)"
#let submissionDate = "(Handover Date)" |
https://github.com/VisualFP/docs | https://raw.githubusercontent.com/VisualFP/docs/main/SA/project_documentation/content/used_tools.typ | typst | = Used Tools
We used these tools to realize this project.
/ Jira: is a software management tool to manage agile teams.
We are using it to plan the project and keep track of the progress.
#footnote("https://visual-fp-ost.atlassian.net/jira/")
/ GitHub: is a web-based hosting service for version control using Git. ... | |
https://github.com/chendaohan/bevy_tutorials_typ | https://raw.githubusercontent.com/chendaohan/bevy_tutorials_typ/main/13_cameras/cameras.typ | typst | #set page(fill: rgb(35, 35, 38, 255), height: auto, paper: "a3")
#set text(fill: color.hsv(0deg, 0%, 90%, 100%), size: 22pt, font: "Microsoft YaHei")
#set raw(theme: "themes/Material-Theme.tmTheme")
= 1. 摄像机
Camera 在 Bevy 中驱动所有渲染。它们负责配置绘制内容、绘制方式和绘制位置。
你必须至少拥有一个摄像机实体,才能显示任何内容!如果忘记生成摄像机,会看到一个空的黑屏。
在最简单的情况下,可以使用默认设置创建... | |
https://github.com/herbhuang/utdallas-thesis-template-typst | https://raw.githubusercontent.com/herbhuang/utdallas-thesis-template-typst/main/thesis.typ | typst | MIT License | #import "/layout/thesis_template.typ": *
#import "/metadata.typ": *
#set document(title: titleEnglish, author: author)
#show: thesis.with(
title: titleEnglish,
titleGerman: titleGerman,
degree: degree,
program: program,
supervisor: supervisor,
advisors: advisors,
author: author,
startDate: startDate,
... |
https://github.com/goshakowska/Typstdiff | https://raw.githubusercontent.com/goshakowska/Typstdiff/main/tests/test_complex/text_formats/text_formats_inserted_result.typ | typst | = Heading1
Paragraph with quotes “This is in quotes.”#underline[
];#underline[“New];#underline[ ];#underline[quote”]
#strong[Date:] 26.12.2022 \
Date used in paragraph #strong[Date:] 26.12.2022#strike[ \
];#strike[#strong[Topic:];];#strike[ ];#strike[Infrastructure]
#strike[Test];#strike[ \
];#strong[#strike[Severity:... | |
https://github.com/jgm/typst-hs | https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/compiler/array-32.typ | typst | Other | // Test joining content.
// Ref: true
#([One], [Two], [Three]).join([, ], last: [ and ]).
|
https://github.com/polarkac/MTG-Stories | https://raw.githubusercontent.com/polarkac/MTG-Stories/master/stories/046%20-%20Streets%20of%20New%20Capenna/008_The%20Family%20Man.typ | typst | #import "@local/mtgstory:0.2.0": conf
#show: doc => conf(
"The Family Man",
set_name: "Streets of New Capenna",
story_date: datetime(day: 04, month: 04, year: 2022),
author: "<NAME>",
doc
)
"Do we#emph[ have] to stop here tonight, Dad? This place~it's plain old gauche, ain't it?"
Anhelo winced. S... | |
https://github.com/jneug/typst-typopts | https://raw.githubusercontent.com/jneug/typst-typopts/main/typopts.typ | typst | MIT License | #import "options.typ"
#import "states.typ"
|
https://github.com/alberto-lazari/computer-science | https://raw.githubusercontent.com/alberto-lazari/computer-science/main/lcd/project-presentation/sections/components.typ | typst | #import "/common.typ": *
#new-section-slide[Compiler components]
#slide(title: [Architecture])[
- vCCS parser
- CCS interface
- vCCS to CCS encoder
- vCCS encoding utilities
]
#slide(title: [vCCS parser])[
Classic components to parse a language
- Abstract syntax tree (AST)
- Parser
- Lexer
]
#slide(t... | |
https://github.com/jbro/supernote-templates | https://raw.githubusercontent.com/jbro/supernote-templates/main/work-one-on-one.typ | typst | The Unlicense | #import "include/a5x-template.typ": template
#show: doc => template(doc)
#import "include/elements.typ": titled-box, note-lines, week-box
#grid(columns: (1fr, 170pt, 136pt), column-gutter: 5pt,
[
#set text(size: 20pt)
#h(5pt)
1 on 1
],
[
#titled-box(title: "Name", v(16.8pt))
],
week-box()
)
... |
https://github.com/janlauber/bachelor-thesis | https://raw.githubusercontent.com/janlauber/bachelor-thesis/main/chapters/conclusion.typ | typst | Creative Commons Zero v1.0 Universal | = Conlusion and Future Work
== Summary of Contributions
The development and implementation of the One-Click Deployment system has significantly advanced the efficiency and accessibility of deploying applications, particularly within Kubernetes environments. This system stands out for its integration of a straightforw... |
https://github.com/GYPpro/ACM_res | https://raw.githubusercontent.com/GYPpro/ACM_res/main/2_Notes/lambdaFunc_inDFS.typ | typst | #import "@preview/tablex:0.0.6": tablex, hlinex, vlinex, colspanx, rowspanx
// Display inline code in a small box
// that retains the correct baseline.
#set text(font:("Times New Roman","Source Han Serif SC"))
#show raw.where(block: false): box.with(
fill: luma(230),
inset: (x: 3pt, y: 0pt),
outset: (y: 3pt),
... | |
https://github.com/Myriad-Dreamin/typst.ts | https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/templates/compiler-node/examples/main.typ | typst | Apache License 2.0 |
= Example Document
Hello World.
你好世界。
こんにちは世界。
|
https://github.com/liuguangxi/fractusist | https://raw.githubusercontent.com/liuguangxi/fractusist/main/tests/test-koch-curve.typ | typst | MIT License | #set document(date: none)
#import "/src/lib.typ": *
#set page(margin: 1cm)
= n = 1
#align(center)[
#koch-curve(1, step-size: 40)
]
= n = 2
#align(center)[
#koch-curve(2, step-size: 20, stroke-style: red + 2pt)
]
= n = 3
#align(center)[
#koch-curve(3, step-size: 10, stroke-style: s... |
https://github.com/AU-Master-Thesis/thesis | https://raw.githubusercontent.com/AU-Master-Thesis/thesis/main/lib/table.typ | typst | MIT License | #import "blocks.typ": *
#import "@preview/funarray:0.4.0": *
#import "marker.typ"
#let term-table(colors: (catppuccin.latte.lavender, ), ..rows) = {
// insert a marker.arrow.single as a third column between the terms and their definitions
let colors = cycle(colors, rows.pos().len())
let rows = chunks(rows.pos(... |
https://github.com/rytst/convex_analysis | https://raw.githubusercontent.com/rytst/convex_analysis/main/03_convex_functions/proposition_3.6/unequivocal-ams/proposition_3.6.typ | typst | #import "@preview/unequivocal-ams:0.1.0": ams-article, theorem, proof
#show: ams-article.with(
title: [Convex Analysis Workshop],
authors: (
(
name: "<NAME>",
email: "<EMAIL>",
),
),
bibliography: bibliography("refs.bib"),
)
#import "@preview/ctheorems:1.1.2": *
#show: thmrules.with(qed-s... | |
https://github.com/RedGl0w/TypHex | https://raw.githubusercontent.com/RedGl0w/TypHex/main/sgf.typ | typst | // Basic implementation of a Smart Game Format (SGF) parser
// For specification, see https://www.red-bean.com/sgf/sgf4.html
// We should get rid off whitespaces :
// White space (space, tab, carriage return, line feed, vertical tab and so on) may appear anywhere between PropValues, Properties, Nodes, Sequences and G... | |
https://github.com/exdevutem/taller-git | https://raw.githubusercontent.com/exdevutem/taller-git/main/src/branches.typ | typst | = Trabajar en paralelo
Durante el desarrollo de tu proyecto, es muy común que no puedas mantener una serie lineal de cambios por diversas razones. Quizás estás trabajando con mucha gente, quizás estás trabajando en un cambio muy grande, y otro cambio menor, pero más urgente, requiere que pauses este trabajo brevemente... | |
https://github.com/PraneethJain/Science-1 | https://raw.githubusercontent.com/PraneethJain/Science-1/main/Assignment-2/2022101093_Assignment_2.typ | typst | #align(center, text(17pt)[*Science-1*])
#align(center, text(16pt)[Assignment-2])
#align(center, text(13pt)[<NAME>, 2022010193])
= Question 1
== (a)
For a perfect gas
$ p V_m^o = R T "(ideal gas equation)" - (1) $
$ Z = V_m / V_m^o "(by definition)" $
$ Z = V_m / ((R T) / p) "(on substituing (1))" $
$ p V_m = R T... | |
https://github.com/jakoblistabarth/tud-corporate-design-slides-typst | https://raw.githubusercontent.com/jakoblistabarth/tud-corporate-design-slides-typst/main/lib.typ | typst | MIT No Attribution | #import "tud-slides/template.typ": * |
https://github.com/liuguangxi/suiji | https://raw.githubusercontent.com/liuguangxi/suiji/main/examples/matrix-rain.typ | typst | MIT License | #set document(date: none)
#import "/src/lib.typ": *
#import "@preview/cetz:0.2.2"
#set page(width: auto, height: auto, margin: 0pt)
#cetz.canvas(length: 1pt, {
import cetz.draw: *
let font-size = 10
let num-col = 80
let num-row = 32
let text-len = 16
let seq = "abcdefghijklmnopqrstuv... |
https://github.com/barddust/Kuafu | https://raw.githubusercontent.com/barddust/Kuafu/main/src/Meta/build.typ | typst | #{
import "/config.typ": project
project(
bio: false,
"夸父:元认知",
"0.1",
"Meta",
(
"intro.typ",
"resources.typ",
"reading.typ",
"sleep.typ",
"yoga.typ",
"study.typ",
"exercise.typ",
"feynman.typ",
)
)
}
| |
https://github.com/BeiyanYunyi/Architectural-Technology-and-Art-Paper | https://raw.githubusercontent.com/BeiyanYunyi/Architectural-Technology-and-Art-Paper/main/nju-thesis/utils/custom-tablex.typ | typst | MIT License | #import "@preview/t4t:0.3.2": is
#import "@preview/tablex:0.0.6": *
// 让 figure 的 kind 默认为 table,以支持 tablex 识别
#let fig(body, kind: auto, ..args) = figure(
kind: if (kind != auto) {
kind
} else if (is.elem(image, body) or is.elem(raw, body)) {
auto
} else {
// 让其默认为 table
table
},
body,
..a... |
https://github.com/jomaway/typst-linguify | https://raw.githubusercontent.com/jomaway/typst-linguify/main/lib/lib.typ | typst | MIT License | #import "linguify.typ": set-database, reset-database, linguify
#import "fluent.typ": load_ftl_data
#import "utils.typ": if-auto-then
|
https://github.com/Shambuwu/stage-docs | https://raw.githubusercontent.com/Shambuwu/stage-docs/main/documenten/adviesrapport.typ | typst | #align(
center,
text(
size: 1.2em,
[
*Competentie: Adviseren* \
Adviesrapport en aanbevelingen \
],
)
)
#align(
center,
figure(
image("../bijlagen/adviesrapport/OIG.jpg",
width: 400pt
)
)
)
#let date = datetime(
year: 2023,
month: 6,
day: 30
)
#place(
bottom + ... | |
https://github.com/maxgraw/bachelor | https://raw.githubusercontent.com/maxgraw/bachelor/main/apps/document/src/4-concept/architecture.typ | typst | Im folgenden Kapitel wird die Struktur der Anwendung definiert, welche auf Grundlage der Zielgruppen- und Anforderungsanalyse entwickelt wurde. Hierbei wird zunächst eine theoretische Grundstruktur der Anwendung definiert, welche auf Grundlage der zuvor gesammelten Informationen definiert wird.
=== Hardware
Zunächst k... | |
https://github.com/wjakethompson/wjt-quarto-ext | https://raw.githubusercontent.com/wjakethompson/wjt-quarto-ext/main/ku-letter/_extensions/ku-letter/typst-template.typ | typst | Creative Commons Zero v1.0 Universal | // This function gets your whole document as its `body`
// and formats it as a simple letter.
#let letter(
// The subject line.
subject: none,
// The letter's recipient, which is displayed close to the top.
recipient: none,
// The letter's sender, which is display at the top of the page.
sender: none,... |
https://github.com/ilsubyeega/circuits-dalaby | https://raw.githubusercontent.com/ilsubyeega/circuits-dalaby/master/Type%201/2/13.typ | typst | #set enum(numbering: "(a)")
#import "@preview/cetz:0.2.2": *
#import "../common.typ": answer
2.13 $I_0 = 0$으로 주어졌을 때, 다음 회로에서 전류 $I$를 구하라.
#answer[
$I_0 = 0$이기에, $I_0$이 연결된 가운데 엣지는 실제로 작동하지 않는다.
따라서 각 두 엣지(2개의 1옴 직렬로 이루어진 = 2옴)의 병렬 연결임으로, $R = 3 + (2*2 / 4) = 4 ohm$.
$therefore I = V/R = 24 / 4 = 6 A$
] | |
https://github.com/Gekkio/gb-ctr | https://raw.githubusercontent.com/Gekkio/gb-ctr/main/chapter/cartridges/mbc2.typ | typst | Creative Commons Attribution Share Alike 4.0 International | #import "../../common.typ": *
== MBC2 mapper chip
MBC2 supports ROM sizes up to 2 Mbit (16 banks of #hex("4000") bytes) and includes an internal 512x4 bit RAM array, which is its unique feature. The information in this section is based on my MBC2 research, Tauwasser's research notes @tauwasser_mbc2, and Pan Docs @pan... |
https://github.com/binhtran432k/ungrammar-docs | https://raw.githubusercontent.com/binhtran432k/ungrammar-docs/main/contents/system-implementation/lezer.typ | typst | #import "/components/glossary.typ": gls
=== Ungrammar Lezer <subsec-impl-lezer>
The Ungrammar Lezer Parser serves as the fundamental component responsible for
analyzing and understanding Ungrammar code. Leveraging the powerful Lezer
(@sec-lezer) parser generator and runtime, this essential tool transforms raw
Ungramm... | |
https://github.com/maucejo/cnam_templates | https://raw.githubusercontent.com/maucejo/cnam_templates/main/template/main_reunion.typ | typst | MIT License | #import "../src/cnam-templates.typ": *
// #show: cnam-reunion.with(
// // composante: "lmssc",
// type: "pv",
// titre: [Conseil de perfectionnement de la LP CAPPI],
// date: [01 janvier 2025],
// lieu: "Salle des conseils",
// redacteur: "<NAME>",
// toc: true
// )
// = Point 1
// #lorem(50)
// = Poi... |
https://github.com/crd2333/template-report | https://raw.githubusercontent.com/crd2333/template-report/master/covers.typ | typst | MIT License | #import "fonts.typ": 字体, 字号
#import "utils.typ": date_format
#let _info_key(body) = {
rect(width: 100%, inset: 2pt,
stroke: none,
text(
font: 字体.宋体,
size: 字号.三号,
body
)
)
}
#let _info_value(body) = {
rect(
width: 120%,
inset: 3pt,
stroke: (
bottom: 1pt + black
... |
https://github.com/indicatelovelace/typstTemplates | https://raw.githubusercontent.com/indicatelovelace/typstTemplates/main/themes/modern/modern.typ | typst | MIT License | //#import "../logic.typ"
//#import "../utils/utils.typ"
#import "@preview/polylux:0.3.1": *
#let fgdark = rgb("#234563")
#let bgwhite = rgb("FFFFFF")
#let sections = state("sections", ())
#let license = sym.copyright
#let author = [<NAME>]
#let currentSection(update: none) = {
let newSec = []
if update != none ... |
https://github.com/wumin199/wumin199.github.io | https://raw.githubusercontent.com/wumin199/wumin199.github.io/main/source/_posts/2023/power-of-matrix.md | markdown | ---
title: 《矩阵力量》课程笔记
date: 2023-07-16 22:05:15
tags: 笔记
toc: true
comment: true
widgets:
- type: toc
position: right
index: true
collapsed: false
depth: 3
---
有数据的地方,必有矩阵!有矩阵的地方,更有向量!
有向量的地方,就有几何!有几何的地方,皆有空间!
有数据的地方,定有统计!
<!-- more -->
---
## 概要
- [《矩阵力量》--姜伟生,清华大学出版社,2023年6月第一版](https://book.d... | |
https://github.com/justmejulian/typst-documentation-template | https://raw.githubusercontent.com/justmejulian/typst-documentation-template/main/utils/userStory.typ | typst | #let count = state("x", 0)
#let userStory(body) = {
count.update(x => x + 1)
[*US-#count.display():* #body #linebreak()]
}
| |
https://github.com/polarkac/MTG-Stories | https://raw.githubusercontent.com/polarkac/MTG-Stories/master/stories/035%20-%20Core%202019/004_Chronicle%20of%20Bolas%3A%20Whispers%20of%20Treachery.typ | typst | #import "@local/mtgstory:0.2.0": conf
#show: doc => conf(
"Chronicle of Bolas: Whispers of Treachery",
set_name: "Core 2019",
story_date: datetime(day: 11, month: 07, year: 2018),
author: "<NAME>",
doc
)
Grandmother was a formidable woman, once known as Yasova Dragonclaw of the Temur clan. Now that... | |
https://github.com/fabriceHategekimana/master | https://raw.githubusercontent.com/fabriceHategekimana/master/main/3_Theorie/Évaluation.typ | typst | #import "../src/module.typ" : *
#pagebreak()
== Sémantique d'Évaluation
#Definition()[Rèlges d'évaluation part.1
$ #proof-tree(eval("NUM",
$Delta tack.r "n" --> "n"$)) $
$ #proof-tree(eval("PLUS",
$Delta tack.r "E1" + "E2" --> "E3"$,
$Delta tack.r "E1" --> "E1p"$,
$Delta tack.r "E2" --> "E2p"$,
... | |
https://github.com/MrToWy/Bachelorarbeit | https://raw.githubusercontent.com/MrToWy/Bachelorarbeit/master/Code/authGuard.typ | typst | #import("../Template/customFunctions.typ"): *
#codly(
highlights:(
(line:13, label: <canActivateLine>),
)
)
```ts
export class JwtAuthGuard extends AuthGuard('jwt') {
canActivate(context: ExecutionContext) {
const isPublic = this.reflector.get<boolean>(
'isPublic',
context.getHandler(),
);
... | |
https://github.com/MattiaOldani/Generatore-Turni-Grest | https://raw.githubusercontent.com/MattiaOldani/Generatore-Turni-Grest/master/generator/template.typ | typst | #set align(center + horizon)
#set page(flipped: true)
= Turni animatori
\
#table(
columns: (auto, auto, auto, auto, auto, auto),
inset: 10pt,
align: horizon,
[], [*Lunedì*], [*Martedì*], [*Mercoledì*], [*Giovedì*], [*Venerdì*],
| |
https://github.com/sebaseb98/clean-math-thesis | https://raw.githubusercontent.com/sebaseb98/clean-math-thesis/main/README.md | markdown | MIT License | # clean-math-thesis
[](https://github.com/sebaseb98/clean-math-thesis/actions/workflows/build.yml)
[](https://github.com/sebaseb98/clean-math-thesis)
[![Lic... |
https://github.com/typst-community/glossarium | https://raw.githubusercontent.com/typst-community/glossarium/master/tests/non-regression/references-in-description.typ | typst | MIT License | // https://github.com/typst-community/glossarium/issues/55#issuecomment-2388176204
// #import "@preview/glossarium:0.4.1": make-glossary, print-glossary, gls, glspl
#import "../../themes/default.typ": *
#show: make-glossary
#let glossary-terms = (
(key: "a", short: "a", long: "A", desc: [test a @b]),
(key: "b", sh... |
https://github.com/drupol/master-thesis | https://raw.githubusercontent.com/drupol/master-thesis/main/src/thesis/disclaimer.typ | typst | Other | #import "theme/disclaimer.typ": *
#disclaimer(
title: title,
degree: degree,
author: author,
submissionDate: submissionDate,
)
|
https://github.com/TechnoElf/mqt-qcec-diff-thesis | https://raw.githubusercontent.com/TechnoElf/mqt-qcec-diff-thesis/main/content/implementation/postprocessing.typ | typst | #import "@preview/gentle-clues:0.9.0": example, code
== Post-processing of Edit Scripts
Using the implementation of the diff algorithms and the benchmarking framework, initial tests of the complete equivalence checking flow could be performed.
Naively applying gates based on the outputs of the diff algorithm generally... | |
https://github.com/ClazyChen/Table-Tennis-Rankings | https://raw.githubusercontent.com/ClazyChen/Table-Tennis-Rankings/main/history/2009/MS-12.typ | typst |
#set text(font: ("Courier New", "NSimSun"))
#figure(
caption: "Men's Singles (1 - 32)",
table(
columns: 4,
[Ranking], [Player], [Country/Region], [Rating],
[1], [WANG Hao], [CHN], [3239],
[2], [MA Long], [CHN], [3209],
[3], [BOLL Timo], [GER], [3083],
[4], [MA Lin], [CHN], [30... | |
https://github.com/Mc-Zen/tidy | https://raw.githubusercontent.com/Mc-Zen/tidy/main/examples/funny-math/funny-math-complex.typ | typst | MIT License |
/// Construct a complex number of the form
/// $ z= a + i b in CC. $
///
/// - real (float): Real part of the complex number.
/// - imag (float): Imaginary part of the complex number.
/// -> float
#let complex(real, imag) = {
(radius * calc.cos(phi), radius * calc.sin(phi))
}
/// Construct a complex number fro... |
https://github.com/hzkonor/bubble-template | https://raw.githubusercontent.com/hzkonor/bubble-template/main/README.md | markdown | # Bubble template
Simple and colorful template for [Typst](https://typst.app).
Also available as a [package](https://typst.app/universe/package/bubble).
This template includes the package [codelst](https://github.com/jneug/typst-codelst), and you can add others if you want.
## Features
You can select a main color... | |
https://github.com/songoffireandice03/simple-template | https://raw.githubusercontent.com/songoffireandice03/simple-template/main/templates/hop.typ | typst | #import "@preview/showybox:2.0.1": *
#import "@preview/ctheorems:1.1.2": *
#show: thmrules
#let oran = rgb("#877ac6")
#let brown = rgb("#964b00")
#let truered = rgb("#ff0000")
#let showythm1(head, number: 0, base: "heading", base_level: 1) = {
thmenv(
head,
base,
base_level,
(name, num... | |
https://github.com/42CrMo4/InvLabel | https://raw.githubusercontent.com/42CrMo4/InvLabel/main/Text+Barcode.typ | typst | MIT License | // Import necessary libraries
#import "@preview/tiaoma:0.1.0": qrcode
// Read CSV file
#let results = csv("part.csv", delimiter: ";")
// Set the page margins
#set page(
width: 25.91mm,
height: 16mm,
margin: (
y: 0mm,
x: 0.5mm,
),
)
// Loop through the CSV data
#for c in results [
// Set text positi... |
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/acrostiche/0.1.0/README.md | markdown | Apache License 2.0 | # Acrostiche (0.1.0)
Manages acronyms so you don't have to.
## Usage
The main goal of Acrostiche is to keep track of which acronym to define.
### Define acronyms and proxy functions
First, define the acronyms in a dictionary named `acronyms` with the keys being the acronyms, and the values an array of their definit... |
https://github.com/Seanwanq/Typst-Course-Report-Template | https://raw.githubusercontent.com/Seanwanq/Typst-Course-Report-Template/main/README.md | markdown | https://typst.app/project/rVH06qelWgRtY0AaCkhNoT
Used [codly/README.md at main · Zheoni/codly (github.com)](https://github.com/Zheoni/codly/blob/main/README.md).
| |
https://github.com/sthenic/technogram | https://raw.githubusercontent.com/sthenic/technogram/main/src/grouped-outline.typ | typst | MIT License | /* Convenience functions to generate grouped outlines. */
#import "keep-with-next.typ": *
/* We use a figure (taking up no space on the page) to place an outlineable item
so that we can construct a custom outline later on. We set the kind based on
the group and the supplement to something that all objects will ... |
https://github.com/timon-schelling/uni-phi111-logic-essay-2023-2024 | https://raw.githubusercontent.com/timon-schelling/uni-phi111-logic-essay-2023-2024/main/src/main.typ | typst | #import "template/template.typ": *
#show: project.with(
title: "Title",
authors: (
"<NAME>",
)
)
= Zitate
== Direkte Zitate
"Das ist ein direktes Zitat". @roux2013[&12]
== Indirekte Zitate
Das ist ein indirektes Zitat. @roux2013[vgl.&12]
== Mehrere Quellen
Das ist ein Zitat mit mehreren Quellen. @roux... | |
https://github.com/bkorecic/curriculum | https://raw.githubusercontent.com/bkorecic/curriculum/main/english.typ | typst | #import "template.typ": conf, entry, emoji, sensitive
// Template setup
#show: conf
= #emoji.page.pencil Summary
Currently pursuing a Master's degree in Computer Science. Interested in software development, security, low-level programming, algorithms and data structures, mathematics, and education.
= #emoji.mortarb... | |
https://github.com/AU-Master-Thesis/thesis | https://raw.githubusercontent.com/AU-Master-Thesis/thesis/main/sections/2-background/technical-introduction.typ | typst | MIT License | #import "../../lib/mod.typ": *
== Gaussian Models <s.b.gaussian-models>
// Reasons from @gbp-visual-introduction
// (1) they accurately represent the distribution for many real world events , (2) they have a simple analytic form, (3) complex operations can be expressed with simple formulae and (4) they are closed under... |
https://github.com/EpicEricEE/typst-plugins | https://raw.githubusercontent.com/EpicEricEE/typst-plugins/master/droplet/README.md | markdown | # droplet
A package for creating dropped capitals in typst.
> [!WARNING]
> This repository has been archived. The package has been moved to the [EpicEricEE/typst-droplet](https://github.com/EpicEricEE/typst-droplet) repository.
## Usage
The package comes with a single `dropcap` function that takes content and a few o... | |
https://github.com/JakkuSakura/MyResume | https://raw.githubusercontent.com/JakkuSakura/MyResume/master/resume_english.typ | typst | /*
===============================
===== RESUME TEMPLATE 2.0 =====
===============================
===== April 21st 2022 =====
===============================
Welcome to the 2.0 version of the Super Cool Resume Template: now with 100% less LaTeX!
This is a second major iteration of the Resume Template made by <N... | |
https://github.com/Myriad-Dreamin/typst.ts | https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/meta/figure-localization_01.typ | typst | Apache License 2.0 |
#import "/contrib/templates/std-tests/preset.typ": *
#show: test-page
// Test Chinese
#set text(lang: "zh")
#figure(
rect(),
caption: [一个矩形],
)
|
https://github.com/MrToWy/Bachelorarbeit | https://raw.githubusercontent.com/MrToWy/Bachelorarbeit/master/Code/compareFields.typ | typst | ```ts
const fields = Object.keys(unchangedObject);
fields.forEach(field => {
if (Array.isArray(unchangedObject[field])) {
if (field === "translations") {
compareTranslations(unchangedObject, newObject, baseFieldName);
} else {
compareArrayField(unchangedObject, newObject, baseFieldName, field);
... | |
https://github.com/typst-doc-cn/tutorial | https://raw.githubusercontent.com/typst-doc-cn/tutorial/main/typ/embedded-typst/example.typ | typst | Apache License 2.0 |
#import "lib.typ": *
#let doc = svg-doc(```
#set page(header: [
#set text(size: 20pt)
The book compiled by embedded typst
])
#set text(size: 30pt)
#v(1em)
= The first section <embedded-typst>
#lorem(120)
= The second section
#lorem(120)
```)
#let query-result = doc.header.at(0)
The selected element is:
#query-... |
https://github.com/MatheSchool/typst-g-exam | https://raw.githubusercontent.com/MatheSchool/typst-g-exam/develop/test/draft/test-001-show-draft.typ | typst | MIT License | #import "../../src/lib.typ": *
#show: g-exam.with(
show-grade-table: false,
show-draft: true,
)
Hello, how are you doing?
#pagebreak()
Page 2
#pagebreak()
Page 3
#pagebreak()
Page 4
#pagebreak()
Page 5
#pagebreak()
Page 6
#pagebreak()
Page 7
#pagebreak()
|
https://github.com/gmax9803/nd-assignment-templates | https://raw.githubusercontent.com/gmax9803/nd-assignment-templates/master/README.md | markdown | MIT License | # ND Assignment Templates
### About
Although the respository might contain more templates in the future, currently it just contains my main typesetting template for Typst that I use for Theory of Computing and similar proof-based math classes.
In `general/` you can find the general dynamic [typst](https://typst.app) t... |
https://github.com/Sckathach/hackademint-presentations | https://raw.githubusercontent.com/Sckathach/hackademint-presentations/main/AI_in_cybersecurity/main.typ | typst | Apache License 2.0 | #import "@preview/polylux:0.3.1": *
#import themes.simple: *
#set text(font: "Inria Sans")
#show: simple-theme.with(
footer: [<NAME>],
)
#title-slide[
= AI in Cyber Security
#v(2em)
Le magicien quantique #footnote[Aka Sckathach, Caml Master, Fan2Thermo] <f1> #h(1em)
2023
]
#slide[
== A bit of Geopo... |
https://github.com/YDX-2147483647/herglotz | https://raw.githubusercontent.com/YDX-2147483647/herglotz/main/herglotz.typ | typst | #import "@preview/physica:0.9.3": dd, dv, Re, Im, Res as _Res, Order, eval, difference
#import "@preview/xarrow:0.2.0": xarrow
#import "template.typ": project, remark, example, small, pseudonyms
#show: project.with(title: "<NAME>", date: "2023年10月9–10、11、26–28日,12月16日")
#let Res = math.limits(_Res)
#let comb = math.... | |
https://github.com/TimPaasche/Typst.Template.SimpleDocument | https://raw.githubusercontent.com/TimPaasche/Typst.Template.SimpleDocument/master/README.md | markdown | MIT License | # Typst.Template.SimpleDocument |
https://github.com/JinBridger/chicv-cn | https://raw.githubusercontent.com/JinBridger/chicv-cn/main/README.md | markdown | # Typst 简历模板
基于 [skyzh/chicv](https://github.com/skyzh/chicv) 制作
A simple CV template for [typst.app](https://typst.app).
## 如何使用
### 快速开始
在 [typst.app](https://typst.app) 创建一个项目, 把 https://github.com/JinBridger/chicv-cn/blob/master/template/cv.typ 里面的内容全部复制进去即可!
### 自定义你的简历
要更改文本大小,你可以在 `cv.typ` 文件中取消注释相应的行,并根据... | |
https://github.com/Julian-Wassmann/chapter-utils | https://raw.githubusercontent.com/Julian-Wassmann/chapter-utils/main/0.1.0/lib.typ | typst | #import "./util/chapter-header.typ": chapter-header, page-chapter, page-number
#import "./util/chapter-numbering.typ": chapter-numbering | |
https://github.com/Dr00gy/Typst-thesis-template-for-VSB | https://raw.githubusercontent.com/Dr00gy/Typst-thesis-template-for-VSB/main/thesis_template/show_rules.typ | typst | #let template(firstLineIndent: true, body) = {
set page(
margin: 2.5cm,
// Default size from the official styleguide is "a4", however, the official latex template uses "us-letter" if you're a masochist
paper: "a4",
)
// Font text and size
set text(
// There are more fonts allowed, visit the lin... | |
https://github.com/ammar-ahmed22/typst-resume | https://raw.githubusercontent.com/ammar-ahmed22/typst-resume/main/src/cover.typ | typst | #import "./templates/coverLetter.typ": coverLetter
#let data = yaml("./data.yml")
#coverLetter(
data,
accentColor: rgb("#764BA2"),
block(width: 100%)[
#text()[
*Behaviour Interactive Inc.*
] #h(1fr) #text()[January 19th, 2024] \
#text()[
6666 Saint-Urbain \
5e etage \
H2S ... | |
https://github.com/RandomcodeDev/FalseKing-Design | https://raw.githubusercontent.com/RandomcodeDev/FalseKing-Design/main/game/timeline.typ | typst | = Timeline
This is a general timeline for getting to a demo of the game that can be sent to console companies and probably released in Early Access on Steam, or at least used to make a trailer.
#table(
columns: 5,
[*Task/feature*], [*Type*], [*Status*], [*Notes*], [*Expected completion*],
[Basic rendering], [Engi... | |
https://github.com/Wh4rp/OCI-Solutions | https://raw.githubusercontent.com/Wh4rp/OCI-Solutions/main/main.typ | typst | #import "lib/problem.typ": *
#import "lib/project.typ": *
#show: doc => project(
title: "Olimpiada Chilena de Informática 2015-2023",
subtitle: "Problemas de la OCI",
author: "<NAME>",
date: "18 de Diciembre de 2023",
presentation: [
La Olimpiada Chilena de Informática (OCI) es una competencia nacional d... | |
https://github.com/shuosc/SHU-Bachelor-Thesis-Typst | https://raw.githubusercontent.com/shuosc/SHU-Bachelor-Thesis-Typst/main/contents/acknowledgement.typ | typst | Apache License 2.0 | 衷心感谢导师 xxx 教授对本人的精心指导。感谢上海大学开源社区提供的 Typst
模板。 |
https://github.com/jgm/typst-hs | https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/layout/transform-02.typ | typst | Other | // Test setting rotation origin.
#rotate(10deg, origin: top + left,
image("test/assets/files/tiger.jpg", width: 50%)
)
|
https://github.com/coco33920/.files | https://raw.githubusercontent.com/coco33920/.files/mistress/typst_templates/statuts/example.typ | typst | #import "template.typ": template
#let nom = [Mon Association]
#let objet = [
- Association
]
#let adresse = [Adresse]
#let dates = [01 janvier 1970]
#let taille_ca = 0
#let mandat = 1
#show: template.with(
name: nom,
object: objet,
address: adresse,
date: dates,
size_ca: taille_ca,
du... | |
https://github.com/werifu/HUST-typst-template | https://raw.githubusercontent.com/werifu/HUST-typst-template/main/sample.typ | typst | MIT License | // #import "cs-template.typ": *
#import "cse-template.typ": *
#import "@preview/codelst:2.0.0": sourcecode
#show: setup-lovelace
#let algorithm = algorithm.with(supplement: "算法")
#show: project.with(
anonymous: false,
title: "基于 ChatGPT 的狗屁通文章生成器但是把标题加长到两行",
author: "作者",
abstract_zh: [
先帝创业未半而中道崩殂,今天下三分,... |
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/unichar/0.1.0/ucd/block-109A0.typ | typst | Apache License 2.0 | #let data = (
("MEROITIC CURSIVE LETTER A", "Lo", 0),
("MEROITIC CURSIVE LETTER E", "Lo", 0),
("MEROITIC CURSIVE LETTER I", "Lo", 0),
("MEROITIC CURSIVE LETTER O", "Lo", 0),
("MEROITIC CURSIVE LETTER YA", "Lo", 0),
("MEROITIC CURSIVE LETTER WA", "Lo", 0),
("MEROITIC CURSIVE LETTER BA", "Lo", 0),
("MEROI... |
https://github.com/noahjutz/CV | https://raw.githubusercontent.com/noahjutz/CV/main/sidebar/section.typ | typst | #import "/theme.typ": theme
#let section(title) = table(
columns: (auto, 1fr),
align: horizon,
inset: 0pt,
stroke: none,
table.cell(
inset: (right: 6pt),
text(font: "Roboto Slab", title)
),
line(length: 100%),
) | |
https://github.com/chamik/gympl-skripta | https://raw.githubusercontent.com/chamik/gympl-skripta/main/cj-autori/shakespeare.typ | typst | Creative Commons Attribution Share Alike 4.0 International | #import "/helper.typ": autor
#autor("<NAME>", "1564", "1616 (52 let)", "dramatik", "King Edward VI School, Stratford-upon-Avon", "renesance, humanismus", "/cj-autori/media/shakespeare.jpg")
O jeho osobním životě se toho moc nedochovalo. Ve svých 18 letech se oženil s 26letou Annou Hathawayovou. Obřad byl pravděpodobn... |
https://github.com/HKFoggyU/hkust-thesis-typst | https://raw.githubusercontent.com/HKFoggyU/hkust-thesis-typst/main/hkust-thesis/imports.typ | typst | LaTeX Project Public License v1.3c | #import "@preview/physica:0.8.1": *
#import "@preview/outrageous:0.1.0"
#import "@preview/i-figured:0.2.4"
#import "@preview/t4t:0.3.2": is
#import "@preview/anti-matter:0.0.2": anti-front-end
#import "utils/utils.typ": *
#import "utils/constants.typ" as constants |
https://github.com/alperari/cyber-physical-systems | https://raw.githubusercontent.com/alperari/cyber-physical-systems/main/week13/solution.typ | typst | #import "@preview/diagraph:0.1.2": *
#set text(
size: 15pt,
)
#set page(
paper: "a4",
margin: (x: 1.8cm, y: 1.5cm),
)
#align(center, text(21pt)[
*Cyber Physical Systems - Discrete Models \
Exercise Sheet 13 Solution*
])
#grid(
columns: (1fr, 1fr),
align(center)[
<NAME> \
<EMAIL>
],
align(c... | |
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/xarrow/0.2.0/README.md | markdown | Apache License 2.0 | # typst-xarrow
Variable-length arrows in Typst, fitting the width of a given content.
## Usage
This library mainly provides the `xarrow` functions. This function takes one
positional argument, which is the content to display on top of the arrow.
Additionally, the library provides the following arrow styles:
- `xarr... |
https://github.com/fufexan/cv | https://raw.githubusercontent.com/fufexan/cv/typst/modules/skills.typ | typst | #import "../src/template.typ": *
#cvSection("Skills")
#cvSkill(
type: [Spoken languages],
info: [English, Romanian],
)
#cvSkill(
type: [Prog. languages],
info: [Bash, C/C++, Java, JavaScript, Matlab, Nix, PHP, Python, Rust],
)
#cvSkill(
type: [Databases],
info: [Microsoft SQL, MySQL, Firestore],
)
#cvSkill(
... | |
https://github.com/Wh4rp/Presentacion-Typst | https://raw.githubusercontent.com/Wh4rp/Presentacion-Typst/master/ejemplos/2_modo-matematico.typ | typst | = Ecuación en línea
El área de un círculo de radio $r$ es $A = pi r^2$.
= Ecuación en línea aparte
Llamaremos $cal(A)$ al conjunto definido por $ cal(A) = {x in RR | x > 0} $ | |
https://github.com/Iris-830/research-project | https://raw.githubusercontent.com/Iris-830/research-project/main/Dissertation/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: "research project",
authors: ((name: "<NAME>", email: "<EMAIL>"),),
// Insert your abstract after the colon, wrapped in brackets.
// Example... | |
https://github.com/coalg/notebook | https://raw.githubusercontent.com/coalg/notebook/main/exercises/basic-exercise.typ | typst | #import "@preview/ttt-exam:0.1.0": *
#import "@preview/wrap-it:0.1.0": *
#import components: frame, field, point-tag
#import "@preview/codelst:2.0.1": sourcecode
#set text(lang:"ja", font: "<NAME>", weight: 300, size: 12pt)
#set list(indent: 2em)
#set enum(indent: 2em, numbering: "a)")
#show link: underline
#show raw... | |
https://github.com/we-data-ch/shiny_tpg_project | https://raw.githubusercontent.com/we-data-ch/shiny_tpg_project/master/_extensions/quarto-ext/ams/typst-show.typ | typst | #show: ams-article.with(
$if(title)$
title: "$title$",
$endif$
$if(by-author)$
authors: (
$for(by-author)$
(
name: "$it.name.literal$",
email: "$it.email$",
url: "$it.url$",
$for(it.affiliations/first)$department: [$it.department$],
organization: [$it.name$],
location: [$it.city$, $it.r... | |
https://github.com/nath-roset/suiviProjetHekzamGUI | https://raw.githubusercontent.com/nath-roset/suiviProjetHekzamGUI/master/typ%20sources/Cahier_des_charges.typ | typst | Apache License 2.0 | #import "template.typ": base
#show: doc => base(
// left_header:[],
right_header : [Equipe scan-GUI-Printemps-2024],
title: [Projet Hekzam-GUI],
subtitle: [Cahier des charges],
version: [1.1],
doc
)
//TODO : make it so requirement list numbering keeps incrementing properly past other headings
//can't query ... |
https://github.com/Jollywatt/typst-fletcher | https://raw.githubusercontent.com/Jollywatt/typst-fletcher/master/tests/edge-options/test.typ | typst | MIT License | #set page(width: auto, height: auto, margin: 1em)
#import "/src/exports.typ" as fletcher: diagram, node, edge
Explicit named arguments versus implicit positional arguments.
Each row should be the same thing repeated.
#let ab = node((0,0), $A$) + node((1,0), $B$)
#grid(
columns: (3cm,)*3,
diagram(ab, edge((0,0), (... |
https://github.com/alxsimon/quarto-pci | https://raw.githubusercontent.com/alxsimon/quarto-pci/main/README.md | markdown | # PCI Format
## Installing
```bash
quarto use template alxsimon/typst-pci
```
This will install the format extension and create an example qmd file
that you can use as a starting place for your document.
## To Do
- [ ] Properly handle authors and affiliations
- [ ] Wait for pandoc 3.1.12 to be integrated in quarto... | |
https://github.com/ludwig-austermann/typst-funarray | https://raw.githubusercontent.com/ludwig-austermann/typst-funarray/main/CHANGELOG.md | markdown | MIT License | # v0.4.0
- added `accumulate`, `scan`, `unfold` and `iterated`
# v0.3.0
- removed `intersperse` as it is now included by typst itself (see [here](https://typst.app/docs/reference/foundations/array/#definitions-intersperse))
- changed `unzip` to match changed [`zip` method](https://typst.app/docs/reference/foundations/... |
https://github.com/7sDream/fonts-and-layout-zhCN | https://raw.githubusercontent.com/7sDream/fonts-and-layout-zhCN/master/chapters/05-features/lookup.typ | typst | Other | #import "/template/template.typ": web-page-template
#import "/template/components.typ": note
#import "/lib/glossary.typ": tr
#show: web-page-template
// ## Features and lookups
== 特性与#tr[lookup]
// We've been putting our *rules* into a *feature*. Features are part of the way that we signal to the shaper which rules... |
https://github.com/Myriad-Dreamin/typst.ts | https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/math/font-features_00.typ | typst | Apache License 2.0 |
#import "/contrib/templates/std-tests/preset.typ": *
#show: test-page
$ nothing $
$ "hi ∅ hey" $
$ sum_(i in NN) 1 + i $
#show math.equation: set text(features: ("cv01",), fallback: false)
$ nothing $
$ "hi ∅ hey" $
$ sum_(i in NN) 1 + i $
|
https://github.com/lucifer1004/leetcode.typ | https://raw.githubusercontent.com/lucifer1004/leetcode.typ/main/problems/p0001.typ | typst | #import "../helpers.typ": *
#import "../solutions/s0001.typ": *
= Two Sum
Given an array of integers `nums` and an integer `target`, return indices of the two numbers such that they add up to `target`.
You may assume that each input would have *exactly one solution*, and you may not use the same element twice.
You ... | |
https://github.com/ClazyChen/Table-Tennis-Rankings | https://raw.githubusercontent.com/ClazyChen/Table-Tennis-Rankings/main/history/2010/MS-03.typ | typst |
#set text(font: ("Courier New", "NSimSun"))
#figure(
caption: "Men's Singles (1 - 32)",
table(
columns: 4,
[Ranking], [Player], [Country/Region], [Rating],
[1], [MA Long], [CHN], [3246],
[2], [WANG Hao], [CHN], [3120],
[3], [BOLL Timo], [GER], [3069],
[4], [WANG Liqin], [CHN],... | |
https://github.com/Kasci/LiturgicalBooks | https://raw.githubusercontent.com/Kasci/LiturgicalBooks/master/X_misal/advent.typ | typst | #import "../utils.typ": *
#import "/style.typ": *
#let bg = {
rect(width: 95%, height: 95%, inset: 10pt, radius: 5pt, stroke: (paint: primary, thickness: 2pt),
rect(width: 100%, height: 100%, outset: 0pt, radius: 5pt, stroke: (paint: primary, thickness: 2pt))
)
}
#let project(body) = {
set page(paper:"a... | |
https://github.com/AliothCancer/AppuntiUniversity | https://raw.githubusercontent.com/AliothCancer/AppuntiUniversity/main/capitoli_fisica/trasmissione_stazionaria.typ | typst | = Trasmissione del calore: Regime Stazionario
== Coefficiente di conduzione (k)
- *Si indica con* $k$
- *Si misura in* $W / (m K)$
- Si usa per i vari strati della parete
- Differente per ogni materiale, gas, solido, liquido.
- È una misura di quanto velocemente un materiale scambia calore (Potenza termica $dot(Q)... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.