repo stringlengths 26 115 | file stringlengths 54 212 | language stringclasses 2
values | license stringclasses 16
values | content stringlengths 19 1.07M |
|---|---|---|---|---|
https://github.com/polarkac/MTG-Stories | https://raw.githubusercontent.com/polarkac/MTG-Stories/master/stories/017%20-%20Dragons%20of%20Tarkir/001_A%20Tarkir%20of%20Dragons.typ | typst | #import "@local/mtgstory:0.2.0": conf
#show: doc => conf(
"A Tarkir of Dragons",
set_name: "Dragons of Tarkir",
story_date: datetime(day: 25, month: 02, year: 2015),
author: "<NAME>",
doc
)
#emph[The Planeswalker and dragon mage, Sarkhan Vol, left his time to travel back more than 1,200 years into ... | |
https://github.com/typst-doc-cn/tutorial | https://raw.githubusercontent.com/typst-doc-cn/tutorial/main/src/intermediate/content-stateful-3.typ | typst | Apache License 2.0 | #import "mod.typ": *
#show: book.page.with(title: "维护文档状态 —— 制作页眉标题法二")
在上一节(法一)中,我们仅靠「#typst-func("query")」函数就完成制作所要求页眉的功能。
思考下面函数:
```typ
#let get-heading-at-page(loc) = {
let (headings, last-heading) = calc-headings(
query(heading.where(level: 2), loc))
headings.at(loc.page() - 1, default: last-heading)
... |
https://github.com/AlvaroRamirez01/Analisis_de_Algoritmos_2024-1 | https://raw.githubusercontent.com/AlvaroRamirez01/Analisis_de_Algoritmos_2024-1/master/Tarea_04_Diseño_de_Algoritmos/Tarea04.typ | typst | #import "conf.typ": *
#import "@preview/algorithmic:0.1.0"
#import algorithmic: *
#show: doc => conf(
materia: "Análisis de Algoritmos",
tarea: "Tarea 4: Diseño de Algoritmos usando Inducción Matemática.",
profesor: (
nombre: "<NAME>",
sexo: "F",
),
ayudantes: (
"<NAME>",
"<NAME>"
),
alum... | |
https://github.com/nju-typst/.github | https://raw.githubusercontent.com/nju-typst/.github/main/profile/README.md | markdown | ## NJU Typst 团队简介 👋
我们将基于[Typst](https://github.com/typst/typst)项目构建适用于南京大学的文档模板,包括但不限于报告、作业、毕业论文模版。
团队成员由来自南京大学的爱好者组成。
## 关于Typst
Typst是撰写任何长篇文本(如论文、文章、科学论文、书籍、报告和家庭
作业)。此外,Typst非常适合于编写任何包含数学符号的文档,例如在数学、
物理和工程领域的论文。
这是一个替代LaTex的现代化文本排版引擎,天下苦LaTex久矣!
<!--
**Here are some ideas to get you started:**
🙋♀️ A shor... | |
https://github.com/kdog3682/mathematical | https://raw.githubusercontent.com/kdog3682/mathematical/main/0.1.0/src/examples/convex-hull-working-2.typ | typst | #import "@preview/cetz:0.2.2"
#let cross_product(o, a, b) = {
return (a.at(0) - o.at(0)) * (b.at(1) - o.at(1)) - (a.at(1) - o.at(1)) * (b.at(0) - o.at(0))
}
#let calculate-convex-hull(points) = {
let sorted_points = points.sorted()
let n = sorted_points.len()
if n <= 3 {
return sorted_points
}
// Bu... | |
https://github.com/jgm/typst-hs | https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/layout/page-style-01.typ | typst | Other | // Empty with styles and then pagebreak
// Should result in two red-colored pages.
#set page(fill: red)
#pagebreak()
|
https://github.com/longlin10086/HITSZ-PhTyp | https://raw.githubusercontent.com/longlin10086/HITSZ-PhTyp/main/README.md | markdown | # HITSZ-PhTyp
This repo is a Typst template of Harbin Institute of Technology(Shenzhen) Physics lab report.
## 🏠 Architecture
```sh
.
├── README.md
├── assets
│ └── images # Directory used for store images
├── layout
│ └── page.typ # Define the page's style
├── template.pdf
├── templa... | |
https://github.com/diquah/OpenBoard | https://raw.githubusercontent.com/diquah/OpenBoard/main/README.md | markdown | MIT License | # OpenBoard
<h3 align="center">
Easily build clean assessments in the style of the College Board.
</h3>
<p align="center">
<img width="45%" src="https://raw.githubusercontent.com/diquah/OpenBoard/main/Preview/ExamplePage1.png">
<img width="45%" src="https://raw.githubusercontent.com/diquah/OpenBoard/main/Preview/... |
https://github.com/jamesrswift/ionio-illustrate | https://raw.githubusercontent.com/jamesrswift/ionio-illustrate/main/src/extras/title.typ | typst | MIT License | #import "@preview/cetz:0.1.2"
#let _prepare(self, ctx) = {
self.coordinates = ( (ctx.prototype.range.at(0), 110),)
return self
}
#let _stroke(self, ctx) = {
cetz.draw.content(
anchor: self.anchors.at(0),
self.coordinates.at(0),
//(72, 80),
box(inset: self.inset, [#self.content]),
... |
https://github.com/philipsd6/typst-yearly-planner | https://raw.githubusercontent.com/philipsd6/typst-yearly-planner/main/calendar.typ | typst | MIT License | /*
** Configuration
*/
#let config = yaml("config.yaml")
#(config.height = eval(config.height))
#(config.width = eval(config.width))
#(config.toolbar-width = eval(config.toolbar-width))
#(config.fontsize = eval(config.fontsize))
#(config.margin = eval(config.margin))
#let heavyline = line.with(stroke: 1pt + black, len... |
https://github.com/LugsoIn2/typst-htwg-thesis-template | https://raw.githubusercontent.com/LugsoIn2/typst-htwg-thesis-template/main/glossar/glossary.typ | typst | MIT License | // this is an example. Check https://typst.app/universe/package/glossarium
#let glossary = (
// minimal term
(key: "kuleuven", short: "KU Leuven"),
// a term with a long form and a group
(key: "unamur", short: "UNamur", long: "Namur University",
// group: "Universities"
),
// a term wit... |
https://github.com/Cldfire/site | https://raw.githubusercontent.com/Cldfire/site/main/resume/README.md | markdown | # resume
Built with https://typst.app.
* Template: https://github.com/GeorgeHoneywood/alta-typst
* Font: https://github.com/be5invis/Iosevka
Run the following to work on the content:
```
typst watch resume/resume.typ static/resume.pdf
```
Swap `watch` for `compile` if you just want to compile the PDF once.
| |
https://github.com/jgm/typst-hs | https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/compiler/break-continue-05.typ | typst | Other | // Test break in function call.
#let identity(x) = x
#let out = for i in range(5) {
"A"
identity({
"B"
break
})
"C"
}
#test(out, "AB")
|
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/ssrn-scribe/0.4.9/README.md | markdown | Apache License 2.0 | # Typst-Paper-Template
Following the official tutorial, I create a single-column paper template for general use. You can use it for papers published on SSRN etc.
## How to use
### Use as an template package
Typst integrated the template with their official package manager. You can use it as the other third-party pa... |
https://github.com/lyzynec/orr-go-brr | https://raw.githubusercontent.com/lyzynec/orr-go-brr/main/14/main.typ | typst | #import "../lib.typ": *
#knowledge[
#question(name: [Explain the concept of _Linear Matrix Inequality_ (LMI).
Characterize the feasible set of such inequalitiy(--ies). In particular, is
the feasible set convex? Show a few simple examples of an LMI from linear
algebra or control theory.])[
Such ... | |
https://github.com/InseeFrLab/address-search-gaia-docs | https://raw.githubusercontent.com/InseeFrLab/address-search-gaia-docs/main/src/abstract-ntts/definitions.typ | typst | MIT License | // Some definitions presupposed by pandoc's typst output.
#let horizontalrule = [
#line(start: (25%,0%), end: (75%,0%))
]
#let endnote(num, contents) = [
#stack(dir: ltr, spacing: 3pt, super[#num], contents)
]
#show outline.entry.where(
level: 1): it => {
v(12pt, weak: true)
... |
https://github.com/mangkoran/share.typ | https://raw.githubusercontent.com/mangkoran/share.typ/master/example.typ | typst | MIT License | // if you add this repo as git submodule, change this to "share.typ/share.typ"
#import "share.typ": *
// variables
#let user_vars = (
color: "b4befe",
)
// load post data from YAML
#let share_data = yaml("example.yml")
#let custom_rules(doc) = {
// add custom document style rules here
doc
}
#let share_i... |
https://github.com/hongjr03/shiroa-page | https://raw.githubusercontent.com/hongjr03/shiroa-page/main/DIP/chapters/3空间域图像增强.typ | typst | #import "../template.typ": *
#import "@preview/fletcher:0.5.0" as fletcher: diagram, node, edge
#import fletcher.shapes: house, hexagon, ellipse
#import "@preview/pinit:0.1.4": *
#import "@preview/cetz:0.2.2"
#import "/book.typ": book-page
#show: book-page.with(title: "数字图像处理基础 | DIP")
= 空间域图像增强 Image Enhancement in ... | |
https://github.com/dismint/docmint | https://raw.githubusercontent.com/dismint/docmint/main/multicore/pset6b.typ | typst | #import "template.typ": *
#show: template.with(
title: "6.5081 PSET 6B",
subtitle: "<NAME>",
pset: true
)
= Overview
#note(
title: "Warning",
)[
It is *CRITICAL* to note that all my testing relies on the initial states of every source being allowed to send, and all destinations receiving from all sources. W... | |
https://github.com/typst-doc-cn/tutorial | https://raw.githubusercontent.com/typst-doc-cn/tutorial/main/src/book.typ | typst | Apache License 2.0 | #import "@preview/shiroa:0.1.1": *
#show: book
#let book-info = json("/meta.json")
#book-meta(
title: "The Raindrop-Blue Book (Typst中文教程)",
description: "Typst中文教程",
repository: "https://github.com/typst-doc-cn/tutorial",
repository-edit: "https://github.com/typst-doc-cn/tutorial/edit/main/src/{path}",
aut... |
https://github.com/jgm/typst-hs | https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/layout/columns-00.typ | typst | Other | // Test normal operation and RTL directions.
#set page(height: 3.25cm, width: 7.05cm, columns: 2)
#set text(lang: "ar", font: ("Noto Sans Arabic", "Linux Libertine"))
#set columns(gutter: 30pt)
#box(fill: green, height: 8pt, width: 6pt) وتحفيز
العديد من التفاعلات الكيميائية. (DNA) من أهم الأحماض النووية التي تُشكِّل
إ... |
https://github.com/chamik/gympl-skripta | https://raw.githubusercontent.com/chamik/gympl-skripta/main/cj-autori/beckett.typ | typst | Creative Commons Attribution Share Alike 4.0 International | #import "/helper.typ": autor
#autor("<NAME>", "1906", "1989 (83 let)", "dramatik, básník", "Trinity College", "absurdismus", "/cj-autori/media/beckett.jpg")
Psal eseje, prózy a básně, ovšem proslavil se hlavně svými absurdními dramaty. Celý život se potýkal s alkoholismem a depresemi.
Hercům při zkouškách odmítal od... |
https://github.com/cafeclimber/typst-psu | https://raw.githubusercontent.com/cafeclimber/typst-psu/main/README.md | markdown | # typst-psu
A template file for Penn State students to write theses / dissertations in [typst](https://typst.app)
| |
https://github.com/polarkac/MTG-Stories | https://raw.githubusercontent.com/polarkac/MTG-Stories/master/stories/045%20-%20Kamigawa%3A%20Neon%20Dynasty/008_The%20Epoch%20Engine.typ | typst | #import "@local/mtgstory:0.2.0": conf
#show: doc => conf(
"The Epoch Engine",
set_name: "Kamigawa: Neon Dynasty",
story_date: datetime(day: 08, month: 02, year: 2022),
author: "<NAME>",
doc
)
As Katsumasa led her through a maze of passages, Kotori's skin crackled with exhilaration. He'd brought her... | |
https://github.com/EliasRothfuss/vorlage_typst_doku-master | https://raw.githubusercontent.com/EliasRothfuss/vorlage_typst_doku-master/main/pages/erklaerung.typ | typst | #import "../config.typ"
#heading(level: 1, numbering: none)[Erklärung]
\
gemäß Ziffer 1.1.14 der Anlage 1 zu §§ 3, 4 und 5 der Studien- und
Prüfungsordnung für die Bachelorstudiengänge im Studienbereich Technik
der Dualen Hochschule Baden-Württemberg vom 29.09.2017 in der Fassung
vom 24.07.2023.\
\
Ich versichere hie... | |
https://github.com/crd2333/crd2333.github.io | https://raw.githubusercontent.com/crd2333/crd2333.github.io/main/src/docs/AI/Reinforce%20Learning/基本概念.typ | typst | ---
order: 1
---
#import "/src/components/TypstTemplate/lib.typ": *
#show: project.with(
title: "",
lang: "zh",
)
- Reinforcement Learning
- 其他人的博客 or 笔记
+ #link("https://www.cnblogs.com/pinard/category/1254674.html")[刘建平Pinard的强化学习随笔]
#note(caption: "注:")[
我觉得 rl 的本质是把无梯度的 feedback 转换为可训练的梯度。具体使用什么样的框架更好,并... | |
https://github.com/arthurcadore/typst-intelbras | https://raw.githubusercontent.com/arthurcadore/typst-intelbras/main/templates/report-confidential-en.typ | typst | MIT License | #let report(
title: "Typst Support Model - Intelbras",
subtitle: "ITB Business Networks - Special Projects",
authors: "<NAME>",
date: none,
doc,
) = {
set page(background: rotate(24deg,
text(38pt, fill: rgb("FFCBC4"))[
*CONFIDENTIAL DOCUMENT* \
*INTELBRAS - REMP. RD*
]
))
// Defining the d... |
https://github.com/polarkac/MTG-Stories | https://raw.githubusercontent.com/polarkac/MTG-Stories/master/stories/006%20-%20Magic%202014/006_Zurbit's%20Day.typ | typst | #import "@local/mtgstory:0.2.0": conf
#show: doc => conf(
"Zurbit's Day",
set_name: "Magic 2014",
story_date: datetime(day: 31, month: 07, year: 2013),
author: "<NAME>",
doc
)
#emph["I need more money."]
Relno looked nervously at the floor and fidgeted with his staff. It was all he could do to kee... | |
https://github.com/1STEP621/typst-anshere | https://raw.githubusercontent.com/1STEP621/typst-anshere/main/src/anshere.typ | typst | #let (q, q-break, q-blank, anshere) = {
let q-break = "q-break"
let q(
content: h(1fr),
label: auto,
numbering: auto,
numbering-width: auto,
hide-numbering: false,
counter-reset: none,
counter-skip: none,
children: none,
) = (
content: content,
label: label,
numbering:... | |
https://github.com/rabotaem-incorporated/calculus-notes-2course | https://raw.githubusercontent.com/rabotaem-incorporated/calculus-notes-2course/master/sections/06-fourier-series/!sec.typ | typst | #import "../../utils/core.typ": *
= <NAME>
#include "01-lebesgue-spaces.typ"
#include "02-hilbert-spaces.typ"
#include "03-trigonometrical-fourier-series.typ"
#include "04-adding-fouriers.typ"
#include "05-fourier-misc.typ"
| |
https://github.com/MDLC01/board-n-pieces | https://raw.githubusercontent.com/MDLC01/board-n-pieces/main/src/internals.typ | typst | MIT License | #let functions = plugin("plugin.wasm")
#let replay-game(starting-position, turns) = {
let game = functions.replay_game(
bytes(starting-position.fen),
turns.map(bytes).join(bytes((0, )))
)
array(game).split(0).map(position => (
type: "board-n-pieces:fen",
fen: str(bytes(position))
))
}
#let gam... |
https://github.com/peteole/relai_poster_template | https://raw.githubusercontent.com/peteole/relai_poster_template/main/poster.typ | typst | #import "relai_poster_template.typ": poster
#show: doc => poster(
doc,
text("Example title", size: 60pt, weight: "bold"),
flipped: false, // change for landscape
n_columns: 2,
authors: (
("name": "<NAME>", "affiliation": "TUM", "email": "<EMAIL>"),
("name": "<NAME>", "affiliation": "LMU", "email": "<E... | |
https://github.com/warthog-network/whitepaper | https://raw.githubusercontent.com/warthog-network/whitepaper/master/main.typ | typst | #import "template.typ": *
#import "@preview/codelst:2.0.1": sourcecode
#set outline(title: "Table of contents", indent: 1em)
#let emission = csv("files/emission_scheme.csv")
#show: bubble.with(
title: "Warthog Network",
subtitle: "Rethinking the Blockchain",
alt: "Whitepaper",
affiliation: "University",
da... | |
https://github.com/AxiomOfChoices/Typst | https://raw.githubusercontent.com/AxiomOfChoices/Typst/master/Miscellaneous/typst_logo.typ | typst | #set page(width: 13.5cm, height: 14cm)
#set text(size: 120pt, font: "Austera Text",);
t
| |
https://github.com/Myriad-Dreamin/typst.ts | https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/meta/document_04.typ | typst | Apache License 2.0 |
#import "/contrib/templates/std-tests/preset.typ": *
#show: test-page
//
// Hello
//
// // Error: 2-30 document set rules must appear before any content
// #set document(title: [Hello]) |
https://github.com/cunhapaulo/typst_styles | https://raw.githubusercontent.com/cunhapaulo/typst_styles/main/toolbox/monography.typ | typst | MIT License | #import "toolbox.typ": *
//====================================================================
// The project function defines how your document looks.
// It takes your content and some metadata and formats it.
//====================================================================
#let project(
university: "... |
https://github.com/kokkonisd/typst-phd-template | https://raw.githubusercontent.com/kokkonisd/typst-phd-template/main/README.md | markdown | The Unlicense | # PhD doc/presentation template
## How to install
The template needs to be installed in a special directory, as described [in the
docs](https://github.com/typst/packages?tab=readme-ov-file#local-packages).
The installer in this repo assumes you have `TYPST_LOCAL_PACKAGES` defined to the correct path,
which should b... |
https://github.com/jens-hj/ds-exam-notes | https://raw.githubusercontent.com/jens-hj/ds-exam-notes/main/lectures/4.typ | typst | #import "../lib.typ": *
#show link: it => underline(emph(it))
#set math.equation(numbering: "(1)")
#set enum(full: true)
#set math.mat(delim: "[")
#set math.vec(delim: "[")
#set list(marker: text(catppuccin.latte.lavender, sym.diamond.filled))
#show heading.where(level: 1): it => text(size: 22pt, it)
#show heading.wh... | |
https://github.com/Myriad-Dreamin/tinymist | https://raw.githubusercontent.com/Myriad-Dreamin/tinymist/main/syntaxes/textmate/tests/unit/basic/array.typ | typst | Apache License 2.0 | #(0)
#let f(name) = (
(
pad(align(center + horizon, name)),
),
) |
https://github.com/elpekenin/access_kb | https://raw.githubusercontent.com/elpekenin/access_kb/main/typst/content/parts/state_of_the_art.typ | typst | == Sin innovaciones
Lo primero que debemos notar es que el panorama apenas ha variado en los ultimos 40 años, ni siquiera para adaptarse a las pequeñas pantallas táctiles de los móviles. Seguimos con las mismas ideas pese a tener tecnologías que superan antiguas limitaciones, permiten nuevas funcionalidades o proponen... | |
https://github.com/jamesrswift/pixel-pipeline | https://raw.githubusercontent.com/jamesrswift/pixel-pipeline/main/src/layers/anchored.typ | typst | The Unlicense | #let validation(input, output, next) = {
// output.push("Initializing Anchored")
next(input, output)
}
#let input-assembler(input, output, next)={
next(input, output)
}
#let compute(input, output, next)={
next(input, output)
}
#let vertex(input, output, next)={
next(input, output)
}
#let layer() = (:
va... |
https://github.com/jomaway/typst-bytefield | https://raw.githubusercontent.com/jomaway/typst-bytefield/main/common.typ | typst | MIT License | #import "lib/api.typ": *
// Common network protocols
#let ipv4 = bytefield(
bitheader("bytes"),
bits(4)[Version], bits(4)[IHL], bytes(1)[TOS], bytes(2)[Total Length],
bytes(2)[Identification], bits(3)[Flags], bits(13)[Fragment Offset],
bytes(1)[TTL], bytes(1)[Protocol], bytes(2)[Header Checksum],
bytes(4)[So... |
https://github.com/0x1B05/nju_os | https://raw.githubusercontent.com/0x1B05/nju_os/main/book_notes/content/02_virtualization_02_memory_00_basic.typ | typst | #import "../template.typ": *
#pagebreak()
= memory virtualization
== Address Spaces
=== Early Systems
The OS was a set of routines (a library, really) that sat in memory, and there would be one running program (a process) that currently sat in physical memory and used the rest of memory.
#image("images/20... | |
https://github.com/Myriad-Dreamin/typst.ts | https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/math/syntax_02.typ | typst | Apache License 2.0 |
#import "/contrib/templates/std-tests/preset.typ": *
#show: test-page
// Test common symbols.
$ dot \ dots \ ast \ tilde \ star $
|
https://github.com/mrcinv/nummat-typst | https://raw.githubusercontent.com/mrcinv/nummat-typst/master/template.typ | typst | #let conf(title: none, authors: (), doc) = {
// define how a equation label should look
let equation-label(heading, equation) = [(#heading.#equation)]
// define the numbering for an equation
// first locate, where we are in the document
set math.equation(
numbering: equation => locate(
loc => {
... | |
https://github.com/TechnoElf/mqt-qcec-diff-thesis | https://raw.githubusercontent.com/TechnoElf/mqt-qcec-diff-thesis/main/content/outlook.typ | typst | = Outlook
Over the course of this thesis, many aspects of the application of diff algorithms to quantum circuit equivalence checking have been explored.
This work, however, also opens various avenues of future exploration.
One possible path is the development of new diff and diff-like algorithms that are better suited... | |
https://github.com/AxiomOfChoices/Typst | https://raw.githubusercontent.com/AxiomOfChoices/Typst/master/Miscellaneous/Alg/Practice%20Problems.typ | typst | Prove that the ring $B = CC[x,y,z,w,v] slash (x y z^2 + w v)$ is not an integral extension over $CC[x,y,z,w]$ and then use Noether's normalization lemma to rewrite it as an integral extension of a polynomial ring.
Prove that the ring $B = CC[x,y,z,w,v] slash (x y z^2 + w^3 v)$ is not an integral extension over $CC[x,... | |
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/drafting/0.1.0/README.md | markdown | Apache License 2.0 | # Drafting
This package hosts several utilities that are useful for drafting documents, namely margin notes and precise positioning
helpers. Over time, hopefully more utilities will be contributed. A quick, comprehensive overview is provided by the
[example document](https://github.com/ntjess/typst-drafting/blob/main/... |
https://github.com/soul667/typst | https://raw.githubusercontent.com/soul667/typst/main/PPT/typst-slides-fudan/themes/polylux/book/src/themes.md | markdown | # Themes
The `polylux` template also supports theming.
By default, the theme `slides-default-theme` is used.
You can specify the use of another one in the initial `slides` statement:
```typ
#show: slides(
authors: "...",
title: "...",
// ...
theme: your-fancy-theme(with, some, options),
)
```
## Theme variants... | |
https://github.com/jgm/typst-hs | https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/compiler/array-35.typ | typst | Other | // Error: 32-37 cannot divide by zero
#(1, 2, 0, 3).sorted(key: x => 5 / x)
|
https://github.com/max-niederman/MTH311 | https://raw.githubusercontent.com/max-niederman/MTH311/main/lib.typ | typst | #let implies = sym.arrow.r.double
#let iff = sym.arrow.r.l.double
#let pow = math.cal[P]
#let common(title: "", margin: 1in, body) = {
set document(
author: "<NAME>",
title: title,
)
set page(
paper: "us-letter",
margin: margin,
numbering: (..nums) => "Niederman " + ... | |
https://github.com/goshakowska/Typstdiff | https://raw.githubusercontent.com/goshakowska/Typstdiff/main/documentation/docs/user_how_to.md | markdown | # User Guide
## Installation of Typstdiff package
In order to use Typstdiff package functionality You are required to install the package through `pip` package manager.
In order to do that in terminal You need to run the command:
```pip install typstdiff```
And that's it! If the installation goes succesfully You ha... | |
https://github.com/gvallinder/KTHThesis_Typst | https://raw.githubusercontent.com/gvallinder/KTHThesis_Typst/main/Chapter2.typ | typst | MIT License | #import "Template/kth_thesis.typ": chapter
#show: doc => chapter(title: [Heading 1], doc)
#lorem(100)
- Indrag text 4 mm, Georgia 11pt tem quamet iriliquatie modipis
- Indrag text 4 mm, Georgia 11pt tem quamet iriliquatie modipis
- Indrag text 4 mm, Georgia 11pt tem quamet iriliquatie modipis,
== Heading 2
#lorem(1... |
https://github.com/lxl66566/my-college-files | https://raw.githubusercontent.com/lxl66566/my-college-files/main/信息科学与工程学院/数字信号处理/实验报告.typ | typst | The Unlicense | // typst 0.10.0
#import "../template.typ": *
#import "@preview/mitex:0.1.0": *
#let 手写字体=(
"德彪钢笔行书字库", "LiDeBiao-Xing3", // 德彪钢笔行书 https://freefonts.top/font/60a68009f694d7302081e78b
"田英章楷书", // https://eng.m.fontke.com/font/13069604/download/
"ChenDaiMing", // 陈代明硬笔体 https://freefonts.top/font/60bef156aa520e302... |
https://github.com/widlarizer/lang-talk-unbash | https://raw.githubusercontent.com/widlarizer/lang-talk-unbash/main/presentation.typ | typst | The Unlicense | // Get Polylux from the official package repository
#import "@preview/polylux:0.3.1": *
// Make the paper dimensions fit for a presentation and the text larger
#set page(paper: "presentation-16-9")
#set text(size: 25pt)
// Use #polylux-slide to create a slide and style it using your favourite Typst functions
#polylux... |
https://github.com/mkpoli/ipsj-typst-template | https://raw.githubusercontent.com/mkpoli/ipsj-typst-template/master/lib/latex.typ | typst | #let skew(angle, vscale: 1, body) = {
let (a, b, c, d) = (1, vscale * calc.tan(angle), 0, vscale)
let E = (a + d) / 2
let F = (a - d) / 2
let G = (b + c) / 2
let H = (c - b) / 2
let Q = calc.sqrt(E * E + H * H)
let R = calc.sqrt(F * F + G * G)
let sx = Q + R
let sy = Q - R
let a1 = calc.atan2(F, G)
... | |
https://github.com/katamyra/Notes | https://raw.githubusercontent.com/katamyra/Notes/main/Compiled%20School%20Notes/CS1332/Modules/Stacks.typ | typst | #import "../../../template.typ": *
= Stacks
#definition[
A *stack* is a last in, first out (LIFO) linear data structure, meaning that additions and removals happen on the same side of the structure.
The main operations for stacks include:
- *push(data)* - adds the data to the "top" of the stack
- *pop()* - ... | |
https://github.com/bnse/typst_tempalte_cn | https://raw.githubusercontent.com/bnse/typst_tempalte_cn/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,
body,
) = {
// Set the document's basic properties.
set document(author: authors.... | |
https://github.com/Myriad-Dreamin/tinymist | https://raw.githubusercontent.com/Myriad-Dreamin/tinymist/main/crates/tinymist-query/src/fixtures/lexical_hierarchy/func.typ | typst | Apache License 2.0 | #let x = 1;
#let f(a) = a; |
https://github.com/songguokunsgg/HUNNU-Typst-Master-Thesis | https://raw.githubusercontent.com/songguokunsgg/HUNNU-Typst-Master-Thesis/master/hnu-thesis/templates/master-cover.typ | typst | MIT License | #import "@preview/t4t:0.3.2": is
#import "../utils/datetime-display.typ": datetime-display, datetime-en-display
#import "../utils/justify-text.typ": justify-text
#import "../utils/style.typ": 字号, 字体
// 硕士研究生封面
#let master-cover(
// documentclass 传入的参数
type: "master",
degree: "academic",
nl-cover: false,
anon... |
https://github.com/csimide/SEU-Typst-Template | https://raw.githubusercontent.com/csimide/SEU-Typst-Template/master/seu-thesis/parts/outline-bachelor-fn.typ | typst | MIT License | #let outline-conf(outline-depth: 3, show-self-in-outline: true) = {
set page(
numbering: "I",
number-align: center,
)
set par(first-line-indent: 0pt, leading: 13.84pt)
// 试出来的数值
heading(
numbering: none,
outlined: show-self-in-outline,
bookmarked: true,
)[目录]
v(3pt)
show outline.e... |
https://github.com/polarkac/MTG-Stories | https://raw.githubusercontent.com/polarkac/MTG-Stories/master/stories/034%20-%20Dominaria/004_Return%20to%20Dominaria%3A%20Episode%204.typ | typst | #import "@local/mtgstory:0.2.0": conf
#show: doc => conf(
"Return to Dominaria: Episode 4",
set_name: "Dominaria",
story_date: datetime(day: 04, month: 04, year: 2018),
author: "<NAME>",
doc
)
Tiana's first conscious thought came as she stood in the Cathedral of Serra, bathed in sunlight splintered... | |
https://github.com/jgm/typst-hs | https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/text/hyphenate-02.typ | typst | Other | // Hyphenate between shape runs.
#set page(width: 80pt)
#set text(hyphenate: true)
It's a #emph[Tree]beard.
|
https://github.com/Myriad-Dreamin/typst.ts | https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/math/cancel_01.typ | typst | Apache License 2.0 |
#import "/contrib/templates/std-tests/preset.typ": *
#show: test-page
// Display
#set page(width: auto)
$ a + b + cancel(b + c) - cancel(b) - cancel(c) - 5 + cancel(6) - cancel(6) $
$ e + (a dot.c cancel((b + c + d)))/(cancel(b + c + d)) $
|
https://github.com/SkytAsul/INSA-Typst-Template | https://raw.githubusercontent.com/SkytAsul/INSA-Typst-Template/main/insa-template/document-template.typ | typst | MIT License | // CONSTANTS:
#let heading-fonts = ("League Spartan", "Arial", "Liberation Sans")
#let normal-fonts = ("Source Serif", "Source Serif 4", "Georgia")
// TOOLS:
#let insa-translate(translations, key, lang, placeholders: (:)) = {
let key-translations = translations.at(key)
let string
if lang in key-translations {... |
https://github.com/7sDream/fonts-and-layout-zhCN | https://raw.githubusercontent.com/7sDream/fonts-and-layout-zhCN/master/chapters/09-layout/bidi-unembedded.typ | typst | Other | #import "/lib/draw.typ": *
#import "/template/lang.typ": arabic, greek
#let start = (0, 0)
#let end = (1000, 100)
#let example = [
A quote from Wikipedia: "#arabic[تعود أصل الكلمة إلى الإغريقية: #greek[δηνάριον] (ديناريوس).]"
]
#let make-arrow = ux => arrow.with(
stroke: 2 * ux + gray.darken(30%),
head-scale: ... |
https://github.com/RaphGL/ElectronicsFromBasics | https://raw.githubusercontent.com/RaphGL/ElectronicsFromBasics/main/DC/chap2/chap2.typ | typst | Other | == Ohm's Law
#include "1_voltage_current_resistance_relation.typ"
#include "2_analogy_for_ohms_law.typ"
#include "3_power_in_electric_circuits.typ"
#include "4_calculating_electric_power.typ"
#include "5_resistors.typ"
#include "6_nonlinear_conduction.typ"
#include "7_circuit_wiring.typ"
#include "8_polarity_of_voltag... |
https://github.com/danilasar/conspectuses-3sem | https://raw.githubusercontent.com/danilasar/conspectuses-3sem/master/Ассемблер/240913.typ | typst | В следующую пятницу вместо ассемблера будет дискра. Про ассемблер спросить у умных людей.
Существует 6 сегментных регистров, которые содержат в себе старшие 4 цифры адреса начала сегмента.
Адрес начала сегмента кода --- cs.
*Адрес начала сегмента стека* система автоматически загружает в начало *ss*, регистр *sp* ука... | |
https://github.com/polarkac/MTG-Stories | https://raw.githubusercontent.com/polarkac/MTG-Stories/master/stories/009%20-%20Born%20of%20the%20Gods/009_Seasons%20in%20Setessa.typ | typst | #import "@local/mtgstory:0.2.0": conf
#show: doc => conf(
"Seasons in Setessa",
set_name: "Born of the Gods",
story_date: datetime(day: 26, month: 03, year: 2014),
author: "<NAME>",
doc
)
#emph["Better to kiss a snake than fight a Setessan."]
—Akroan saying
=== A Summer
Throughout the forest, th... | |
https://github.com/RandomcodeDev/FalseKing-Design | https://raw.githubusercontent.com/RandomcodeDev/FalseKing-Design/main/engine/scene.typ | typst | = Scene system
Scenes contain entities. Entities have components like a "renderable", which contains a handle to a mesh and other
information, and transform information.
These are some kinds of entities:
#list(
[Sky/sun/moon entities],
[Details like grass, leaves, etc],
[Terrain],
[Objects like furniture, items, et... | |
https://github.com/barddust/Kuafu | https://raw.githubusercontent.com/barddust/Kuafu/main/src/Meta/yoga.typ | typst | = 轻瑜伽
目标并非是为了成为瑜伽大师,只是依据《睡眠革命》的观点,睡醒之后应当进行适当的运动,舒活筋骨,消除疲惫,开启美好的一天。一些剧烈的运动或者健身动作就不太合适(目前没去找理论依据),我能想到的最符合需求的应当就是类似瑜伽之类的延展类动作。
== 站立拉伸
+ 站立,双手自然下垂;
+ 从两侧举起双手,在头顶合掌,头向上仰。慢速深呼吸一次;
+ 上半身向右侧弯曲,拉伸左侧腰部。上臂和头部向后仰,胸口向前扩张。慢速深呼吸三次;
+ 身体回正。慢速深呼吸一次;
+ 上半身向右侧弯曲,拉伸右侧腰部。上臂和头部向后仰,胸口向前扩张。慢速深呼吸三次;
+ 身体回正。慢速深呼吸一次。
== 半蹲拉伸
+ 双腿并拢;
+ 半蹲,腰部... | |
https://github.com/The-Notebookinator/notebookinator | https://raw.githubusercontent.com/The-Notebookinator/notebookinator/main/docs/src/reference.typ | typst | The Unlicense | // ------------- Template -------------------------
#import "@preview/tidy:0.3.0"
#import "@preview/gentle-clues:0.6.0": *
#import "@preview/codly:0.2.0": *
#let show-module = tidy.show-module.with(
show-outline: false,
sort-functions: none,
first-heading-level: 1,
)
#let def-arg(term, t, default: none, descri... |
https://github.com/thornoar/lambda-calculus-course | https://raw.githubusercontent.com/thornoar/lambda-calculus-course/master/main-lectures/problems-2.typ | typst | #import "template.lib.typ": *
#import "@local/common:0.0.0": *
#show: problemlist(2, [ л-Представимость и неразрешимость ])
#let Mult = combinator([Mult])
#let Fac = combinator([Fac])
+ Пусть $M_1, M_2, ..., M_k$ и $N_1, N_2, ..., N_k$ --- два набора л-выражений. Покажите, что
$
<< M_1, M_2, ..., M_k >> = << N_1... | |
https://github.com/pedrofp4444/BD | https://raw.githubusercontent.com/pedrofp4444/BD/main/report/content/[3] Modelação Concetual/diagrama.typ | typst | #let diagrama = {
[
== Apresentação e Explicação do Diagrama ER Produzido
Após a identificação e caracterização detalhada de cada entidade, atributo e relacionamento nos tópicos anteriores, prosseguimos agora para a apresentação de todo o diagrama ER que suporta o modelo da base de dados em questão.
#al... | |
https://github.com/chubetho/Bachelor_Thesis | https://raw.githubusercontent.com/chubetho/Bachelor_Thesis/main/templates/declaration.typ | typst | #heading(
level: 1,
numbering: none,
"Eidesstattliche Erklärung",
)
#[
#set text(lang: "de")
Hiermit versichere ich, dass ich die vorgelegte Bachelorarbeit selbstständig verfasst und noch nicht anderweitig zu Prüfungszwecken vorgelegt habe. Alle benutzten Quellen und Hilfsmittel sind angegeben, wötliche und ... | |
https://github.com/FlorentCLMichel/quetta | https://raw.githubusercontent.com/FlorentCLMichel/quetta/main/README.md | markdown | MIT License | A simple module to write [tengwar](https://en.wikipedia.org/wiki/Tengwar) in [Typst](https://typst.app/).
## Requirements
- [Typst](https://github.com/typst/typst) version 0.11.0 or 0.11.1
- The [Tengwar Annatar](https://www.fontspace.com/tengwar-annatar-font-f2244) fonts version 1.20
To use this module with the [Ty... |
https://github.com/jgm/typst-hs | https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/compiler/ops-invalid-04.typ | typst | Other | // Error: 3-6 cannot apply '-' to string
#(-"")
|
https://github.com/benjamineeckh/kul-typst-template | https://raw.githubusercontent.com/benjamineeckh/kul-typst-template/main/src/core/component/cover-page.typ | typst | MIT License | // Currently borked, searches for file from core/component, instead of the directory where the main file is located which uses lib
#let parse-image(logo) = {
if logo != none {
let t = type(logo)
if t == figure or t == content{
logo = logo
}else if t == str{
logo = image(logo)
}else{
... |
https://github.com/Quentindeve/tp_b2_symfony | https://raw.githubusercontent.com/Quentindeve/tp_b2_symfony/master/documents/tp_twig.typ | typst | #set document(title: "TP B2 - Contrôleurs et Twig", author: "<NAME>")
#set page(paper: "a4", header: [
#figure(
image("images/sio.png", width: 10%)
)
])
#set text(size: 24pt, font: "Cascadia", weight: "medium")
#set heading(numbering: "1.a >")
#show heading: it => [
#set align(center)
#set text(24pt, we... | |
https://github.com/gRox167/typst-assignment-template | https://raw.githubusercontent.com/gRox167/typst-assignment-template/main/README.md | markdown | # typst-assignment-template
This is a simple template for assignment.
| |
https://github.com/skyl4b/typst-templates | https://raw.githubusercontent.com/skyl4b/typst-templates/main/src/homework/template.typ | typst | MIT License | // Homework template for exercises and self-studies
#let project(title: "", author: "", date: none, body) = {
// Set margins
let margin = (
x: 1.00cm,
y: 3.65cm,
)
// Define page counter function
let page_count = {
let page_counter = counter(page)
let page = page_co... |
https://github.com/Myriad-Dreamin/typst.ts | https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/visualize/image_01.typ | typst | Apache License 2.0 |
#import "/contrib/templates/std-tests/preset.typ": *
#show: test-page
// Test configuring the size and fitting behaviour of images.
// Set width and height explicitly.
#box(image("/assets/files/rhino.png", width: 30pt))
#box(image("/assets/files/rhino.png", height: 30pt))
// Set width and height explicitly and forc... |
https://github.com/Kasci/LiturgicalBooks | https://raw.githubusercontent.com/Kasci/LiturgicalBooks/master/style.typ | typst | #let fSize = 25pt
#let black = rgb("1f1f1f")
#let gray = rgb("666666")
#let red = rgb("8c1919")
#let lred = rgb("a21d1d")
#let blue = rgb("19538c")
#let lblue = rgb("216db7")
#let green = rgb("198c53")
#let lgreen = rgb("21b76d")
#let gold = rgb("a0740a")
#let lgold = rgb("d0980c")
#let purple = rgb("663399")
#le... | |
https://github.com/matnut2/SlidesBSc | https://raw.githubusercontent.com/matnut2/SlidesBSc/master/slides.typ | typst | #import "@preview/polylux:0.3.1": *
#import "unipd.typ": *
#show: unipd-theme.with(author: "<NAME>", date: "22/02/2024", supervisore: "Supervisore: <NAME>", cosupervisore: "Cosupervisore: <NAME>", ccs:"Tutor CCS: <NAME>")
#set text(font: (
"Noto Sans",
"Segoe UI",
"roboto",
"Helvetica Neue",
"Cantarell",
... | |
https://github.com/goshakowska/Typstdiff | https://raw.githubusercontent.com/goshakowska/Typstdiff/main/documentation/docs/project_configuration.md | markdown | # Project Configuration and Developer How-To
### Tools that were used in project development & their configuration, which might be useful to understand for any future contributors.
---
## Justfile
the easiest way for running unit tests, automated _Tox_ environments' tests, building package and documentation is by run... | |
https://github.com/Myriad-Dreamin/typst.ts | https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/visualize/gradient-stroke_03.typ | typst | Apache License 2.0 |
#import "/contrib/templates/std-tests/preset.typ": *
#show: test-page
// Test gradient on lines
#set page(width: 100pt, height: 100pt)
#line(length: 100%, stroke: 1pt + gradient.linear(red, blue))
#line(length: 100%, angle: 10deg, stroke: 1pt + gradient.linear(red, blue))
#line(length: 100%, angle: 10deg, stroke: 1pt... |
https://github.com/Myriad-Dreamin/typst.ts | https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/math/accent_05.typ | typst | Apache License 2.0 |
#import "/contrib/templates/std-tests/preset.typ": *
#show: test-page
// Test effect of accent on superscript.
$A^x != hat(A)^x != hat(hat(A))^x$
|
https://github.com/howardlau1999/sysu-thesis-typst | https://raw.githubusercontent.com/howardlau1999/sysu-thesis-typst/master/functions/booktab.typ | typst | MIT License | #import "helpers.typ": *
#import "style.typ": *
#let booktab(columns: (), aligns: (), width: auto, caption: none, ..cells) = {
let headers = cells.pos().slice(0, columns.len())
let contents = cells.pos().slice(columns.len(), cells.pos().len())
set align(center)
if aligns == () {
for i in range(0, columns.... |
https://github.com/kazuyanagimoto/quarto-slides-typst | https://raw.githubusercontent.com/kazuyanagimoto/quarto-slides-typst/main/_extensions/kazuyanagimoto/clean/typst-show.typ | typst | MIT License | #show: clean-theme.with(
aspect-ratio: "16-9",
$if(handout)$
handout: true,
$endif$
$if(fontsize)$
font-size: $fontsize$,
$endif$
$if(sansfont)$
font-heading: ("$sansfont$",),
$endif$
$if(mainfont)$
font-body: ("$mainfont$",),
$endif$
$if(font-weight-heading)$
font-weight-heading... |
https://github.com/chrischriscris/Tareas-CI5651-EM2024 | https://raw.githubusercontent.com/chrischriscris/Tareas-CI5651-EM2024/main/skel2/src/main.typ | typst | #import "template.typ": conf, question, pseudocode, GITFRONT_REPO
#show: doc => conf("Tarea n: ", doc)
#question[
Pregunta 1
][
Solución 1
][
Pregunta n
][
Solución n
]
| |
https://github.com/NwaitDev/Typst-Accessibility-Template | https://raw.githubusercontent.com/NwaitDev/Typst-Accessibility-Template/main/Components/abstract.typ | typst | #let print_abstract(abstract, language:"english") = {
let oldval = alignment.horizon
set align(center)
if language=="english" {
[*Abstract*]
} else if language == "french" {
[*Résumé*]
} else {
[*--------*]
}
[\ #abstract]
set align(oldval)
} | |
https://github.com/T1mVo/shadowed | https://raw.githubusercontent.com/T1mVo/shadowed/main/src/shadowed.typ | typst | MIT License | #let renderer = plugin("renderer.wasm")
#let render(
svg-height,
svg-width,
blur,
color,
rect-height,
rect-width,
x-offset,
y-offset,
radius,
) = {
assert(type(svg-height) == length, message: "svg-height must be of type: length")
assert(type(svg-width) == length, message: "svg-width must be of ty... |
https://github.com/kdog3682/mathematical | https://raw.githubusercontent.com/kdog3682/mathematical/main/0.1.0/src/examples/graphs/a.typ | typst | #import "@preview/cetz:0.2.2"
#let plot-opts = (
size: (4, 4),
name: "plot",
axis-style: "school-book",
x-min: -4 + 0.0,
y-min: -4,
x-format: v => text(6pt, $ #v $),
x-tick-step: 0.5,
y-format: v => text(6pt, $ #v $),
y-tick-step: 0.5,
)
#let plot-style = (
axes: (
x: (
mark: (fill: bl... | |
https://github.com/michidk/cv | https://raw.githubusercontent.com/michidk/cv/main/src/cv-eu.typ | typst | #import "template/mod.typ": *
#show: template.with(
data: json("../data/resume.json"),
displayMugshot: true,
debug: false
)
| |
https://github.com/Doublonmousse/pandoc-typst-reproducer | https://raw.githubusercontent.com/Doublonmousse/pandoc-typst-reproducer/main/color_issues/saturate.typ | typst | #square(
fill: red.saturate(10%)
)
| |
https://github.com/EGmux/PCOM-2023.2 | https://raw.githubusercontent.com/EGmux/PCOM-2023.2/main/lista2/typstodcs.md | markdown | ---
created: 2024-02-15T09:19:32 (UTC -03:00)
tags: []
source: https://typst.app/docs/reference/syntax/
author:
---
# Syntax – Typst Documentation
> ## Excerpt
> A compact reference for Typst's syntax. Learn more about the language within
markup, math, and code mode.
---
Typst is a markup language. This means that ... | |
https://github.com/Dav1com/minerva-report-fcfm | https://raw.githubusercontent.com/Dav1com/minerva-report-fcfm/master/docs/tidy-things.typ | typst | MIT No Attribution | #import "preamble.typ": *
#import "@preview/tidy:0.3.0" as tidy
#import "../meta.typ" as package-meta
#let _main = tidy.parse-module(
main-file,
name: "minerva",
require-all-parameters: true
)
#let main = {
let main_functions = _main
main_functions.variables = main_functions.variables.filter(it => it.type !... |
https://github.com/xsro/xsro.github.io | https://raw.githubusercontent.com/xsro/xsro.github.io/zola/typst/Control-for-Integrator-Systems/2single.typ | typst | #import "lib/lib.typ":ode45,get_signal,op
#import "@preview/cetz:0.2.0"
#import cetz.plot
#import cetz.draw: *
= Control Single Integrator System
== Bang-Bang Control $dot(x)=-k"sign"(x)+delta$
#columns(2, gutter: 11pt)[
#set par(justify: true)
Consider the fisrt order system $dot(x)=u+delta$,
$delta$ is the ... | |
https://github.com/Goldan32/brilliant-cv | https://raw.githubusercontent.com/Goldan32/brilliant-cv/main/modules/education.typ | typst | Apache License 2.0 | #import "../brilliant-CV/template.typ": *
#cvSection("Education")
#cvEntry(
title: [Master of Science in Electrical Engineering],
society: [Budapest University of Technology and Economics],
date: [2022 - 2024],
location: [Budapest],
logo: "../src/logos/bme.png",
description: [Specialization:
... |
https://github.com/Rhinemann/mage-hack | https://raw.githubusercontent.com/Rhinemann/mage-hack/main/src/chapters/Consequences.typ | typst | #import "../templates/interior_template.typ": *
#show: chapter.with(chapter_name: "Consequences")
= Consequences
#show: columns.with(2, gutter: 1em)
While playing Mage characters may face consequences of dealing with the danger. Hits of fiery bolts, stress after an all nighter, twisted ankles, this is what the follo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.