repo stringlengths 26 115 | file stringlengths 54 212 | language stringclasses 2
values | license stringclasses 16
values | content stringlengths 19 1.07M |
|---|---|---|---|---|
https://github.com/alberto-lazari/computer-science | https://raw.githubusercontent.com/alberto-lazari/computer-science/main/advanced-topics-cs/quantum-algorithms/chapters/computational-model.typ | typst | #import "/common.typ": *
= Computational model
In order to understand quantum algorithms it is necessary to define the tensor product operation between matrices and to present some primitive constructs.
== Tensor product
Let $A in CC^(m times n), B in CC^(p times q), D in CC^(m p times n q)$
The tensor product $tens... | |
https://github.com/DieracDelta/presentations | https://raw.githubusercontent.com/DieracDelta/presentations/master/polylux/book/src/utils/fill-remaining.typ | typst | #import "../../../polylux.typ": *
#set page(paper: "presentation-16-9")
#set text(size: 40pt)
#polylux-slide[
#fit-to-height(1fr)[BIG]
]
| |
https://github.com/TypstApp-team/typst | https://raw.githubusercontent.com/TypstApp-team/typst/master/tests/typ/compiler/show-text.typ | typst | Apache License 2.0 | // Test text replacement show rules.
---
// Test classic example.
#set text(font: "Roboto")
#show "Der Spiegel": smallcaps
Die Zeitung Der Spiegel existiert.
---
// Another classic example.
#show "TeX": [T#h(-0.145em)#box(move(dy: 0.233em)[E])#h(-0.135em)X]
#show regex("(Lua)?(La)?TeX"): name => box(text(font: "New C... |
https://github.com/taylorh140/typst-graphviz-plugin | https://raw.githubusercontent.com/taylorh140/typst-graphviz-plugin/master/README.md | markdown | # typst-graphviz-plugin
A method to compile a small subset of graphviz functions to wasm for use as a typst plugin
It should contain everything needed to compile but the following tools are needed:
- Linux OS (It might work elsewhere but i didn't try it)
- python3 (for stub replacement)
- wabt (for conversion between ... | |
https://github.com/Anastasia-Labs/project-close-out-reports | https://raw.githubusercontent.com/Anastasia-Labs/project-close-out-reports/main/README.md | markdown | # project-close-out-report-template
# Typst Project Close-out Template
Project Close-out Report template using Typst
## How To Use
### Web App
- The easiest way to build this template is to create a project on [typst.app](https://typst.app)
- Copy the contents of the [template](https://github.com/Anastasia-Labs/pro... | |
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/modernpro-coverletter/0.0.1/modernpro-coverletter.typ | typst | Apache License 2.0 | ///////////////////////////////
// modernpro-coverletter.typ
// A cover letter template with modern Sans font for job applications and other formal letters.
// Copyright (c) 2024
// Author: <NAME>
// License: MIT
// Version: 0.0.1
// Date: 2024-04-19
// Email: <EMAIL>
///////////////////////////////
#let main(
... |
https://github.com/Tyrn/wei | https://raw.githubusercontent.com/Tyrn/wei/master/robn.typ | typst | #import "robinson-pip.typ": part, chapter, formatDoc
#show: doc => formatDoc(doc)
#set text(lang: "es")
#set par(first-line-indent: 1em, justify: true)
#set text(hyphenate: true)
#place(center + horizon, dy: -10em)[
#text(size: 25pt)[
The title of our book
]
#text(size: 15pt)[
A subtitle for the boo... | |
https://github.com/chendaohan/bevy_tutorials_typ | https://raw.githubusercontent.com/chendaohan/bevy_tutorials_typ/main/01_data/data.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. 数据
ECS 的数据结构称为 World 。这就是存储和管理所有数据的地方。对于高级场景,可以有多个世界,然后每个世界都将表现为独立的 ECS 实例。但是,通常情况下,你只需使用 Bevy 为你的 App 设置主 World 即可... | |
https://github.com/nixon-voxell/apu_ppf | https://raw.githubusercontent.com/nixon-voxell/apu_ppf/main/ppf.typ | typst | #set text(font: "Times New Roman", size: 12pt, hyphenate: false)
#align(center)[
#set text(size: 18pt)
#underline[*DRAFT PROJECT PROPOSAL FORM*]
#image("assets/apu-logo.png", width: 50%)
]
// #align(right)[
// #move(dx: 20pt, dy: -40pt)[
// #box(width: 80%)[
// #align(left)[
// #grid(
// ... | |
https://github.com/tuto193/typst-uos-thesis | https://raw.githubusercontent.com/tuto193/typst-uos-thesis/main/main.typ | typst | MIT License | #import "template.typ": project, gls, cite-et-al, cite-string, fancy-align, fancy-fill, fancy-stroke
#import "glossaries.typ": GLOSSARIES
#import "languages.typ": dict
// If you need to mark stuff and not forget!
// #import "@preview/big-todo:0.2.0": *
// If you need FANCIER tables!
// #import "@preview/tablex:0.0.7": ... |
https://github.com/bennyhandball/PA1_LoB_Finance | https://raw.githubusercontent.com/bennyhandball/PA1_LoB_Finance/main/PA/supercharged-dhbw/2.1.0/acronym-lib.typ | typst | #let prefix = "acronym-state-"
#let acros = state("acronyms", none)
#let init-acronyms(acronyms) = {
acros.update(acronyms)
}
// Check if an acronym exists
#let is-valid(acr) = {
acros.display(acronyms => {
if acr not in acronyms {
panic(acr + " is not a key in the acronyms dictionary.")
return fa... | |
https://github.com/coastalwhite/typst-tudelft | https://raw.githubusercontent.com/coastalwhite/typst-tudelft/main/README.md | markdown | # TU Delft Typst Template
This is a very basic Typst template to create slide decks for presentations with
TU Delft affiliation.
## License
Assets from TU Delft are not mine and are taken from the TU Delft website. | |
https://github.com/peng1999/typst-pyrunner | https://raw.githubusercontent.com/peng1999/typst-pyrunner/main/CHANGELOG.md | markdown | MIT License | # Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
## [0.2.0]
### Fixed
- Panic when calling `open`... |
https://github.com/protohaven/printed_materials | https://raw.githubusercontent.com/protohaven/printed_materials/main/meta-documentation/README-class_handouts-content.md | markdown | # Protohaven Class Handouts
This repo tracks all of the materials to reproduce, maintain, develop the class handout PDFs:
* Typst sources
* Source images
* Source files for annotated images
* Reference materials
* Notes
For more notes, see the Wiki:
https://protohaven.org/wiki/class_materials
# Notes on Editing ... | |
https://github.com/kdog3682/2024-typst | https://raw.githubusercontent.com/kdog3682/2024-typst/main/src/ex-graph-of-x2.typ | typst | #import "base-utils.typ": *
#let generate-points(domain, fn, skip: none) = {
let skip-fn(x, y) = {
if skip == none {
return false
}
if is-array(skip) and x in skip {
return true
}
if is-string(skip) {
if skip == "odd" {
ret... | |
https://github.com/TypstApp-team/typst | https://raw.githubusercontent.com/TypstApp-team/typst/master/tests/typ/text/linebreak.typ | typst | Apache License 2.0 | // Test line breaks.
---
// Test overlong word that is not directly after a hard break.
This is a spaceexceedinglylongy.
---
// Test two overlong words in a row.
Supercalifragilisticexpialidocious Expialigoricmetrioxidation.
---
// Test that there are no unwanted line break opportunities on run change.
This is partl... |
https://github.com/Jollywatt/typst-wordometer | https://raw.githubusercontent.com/Jollywatt/typst-wordometer/master/tests/text-extraction/test.typ | typst | MIT License | #import "/src/lib.typ": *
#set page(width: 15cm, height: auto)
#let el = [
Hello, _this_ is a bunch of `content`. \ New line.
== What we have
- This and that
- etcetera
#text(red)[what we *need*]
#circle[love]
]
#rect(el)
#raw(extract-text(el))
|
https://github.com/mrtz-j/typst-thesis-template | https://raw.githubusercontent.com/mrtz-j/typst-thesis-template/main/template/utils/feedback.typ | typst | MIT License | #let feedback(
feedback: none,
response: none,
) = {
counter("feedback").step()
rect(
width: 100%,
inset: 10pt,
radius: 3pt,
stroke: 0.5pt + blue,
fill: blue.lighten(75%),
)[
#text(
weight: 700,
counter("feedback").display() + ". Feedback: ",
)
#feedback
#if res... |
https://github.com/max-niederman/MATH51 | https://raw.githubusercontent.com/max-niederman/MATH51/main/hw/5.typ | typst | #import "../lib.typ": *
#show: homework.with(
title: "Math 51 Homework #5"
)
= 16.1
== a
$x_(n+1)$, the number of customers of $P_1$ in year $n+1$,
is equal to the sum of the $0.85x_n$ customers who stayed with $P_1$ from the previous year
and the $0.08y_n$ who switched from $P_1$.
Written as an equation, this ... | |
https://github.com/goshakowska/Typstdiff | https://raw.githubusercontent.com/goshakowska/Typstdiff/main/assets/example2/new.typ | typst | = Introduction
Authors using Microsoft Word will first need to save the AIAA Meeting PapersTemplate.dotx file in the “Templates” directory of their hard drive. To do so, simply open the AIAA Meeting Papers Template.dotx file and then click
= Some other headline
All manuscripts are to be submitted electronically to t... | |
https://github.com/ern1/typiskt | https://raw.githubusercontent.com/ern1/typiskt/main/templates/resume.typ | typst | #import "colors.typ": *
#let theme = (
/*bg-page: white,
bg-sidebar: gradient.linear(
(md.grey-400, 0%),
(md.grey-400, 65%),
(md.grey-100, 100%),
angle: 30deg,
),*/
bg-page: md.grey-200.lighten(15%),
bg-sidebar: white,
primary: md.grey-800,
primaryLight: md.grey-700,
primaryDark: md.grey... | |
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/ascii-ipa/1.1.0/CHANGELOG.md | markdown | Apache License 2.0 | # Changelog of `ascii-ipa`
follows [semantic versionin][semver]
## 1.1.0
- Translations will now return a [`string`][typst-string] if the font is not overridden
- The library now explicitly exposes functions via a "gateway" entrypoint
- Update internal project structure
- Update package metadata
- Update documentati... |
https://github.com/flaribbit/typst-tetris | https://raw.githubusercontent.com/flaribbit/typst-tetris/main/README.md | markdown | # typst-tetris
Yes, you can play tetris in typst!
[typst-preview](https://marketplace.visualstudio.com/items?itemName=mgt19937.typst-preview) vscode extension or [web app](https://typst.app/) recommended for best experience.

#let char_per_line = 25 *3 //3 bytes per char
#let vertical_text(content) = {
let a = ()
let l = 0
while l*char_per_line < content.len() {
let cn = char_per_line
if ((l*char_per_line + cn) >content.len()) {
cn =... |
https://github.com/PA055/5839B-Notebook | https://raw.githubusercontent.com/PA055/5839B-Notebook/main/frontmatter.typ | typst | #import "/utils.typ"
#import "/packages.typ": notebookinator
#import notebookinator: *
#import themes.radial.components: *
#create-frontmatter-entry(title: "Our Team")[
]
#create-frontmatter-entry(title: "Table of Contents")[
#toc()
] | |
https://github.com/wumin199/wumin199.github.io | https://raw.githubusercontent.com/wumin199/wumin199.github.io/main/source/_posts/2023/target-2023.md | markdown | ---
title: TARGET 2024
date: 2023-03-10 13:39:27
toc: true
password: <PASSWORD>
comment: false
widgets:
- type: toc
position: right
index: true
collapsed: false
depth: 3
---
人生是一个自我实现的预言,你不知道自己要去哪,那就连第一步都迈不出去
<!-- more -->
# 2023
## 职业
### 职业规划
- [x] 潘老师的职业入门课
- [x] 潘老师的新手经理必修课
- [ ] 针对以上2个课程,进行... | |
https://github.com/FrightenedFoxCN/cetz-cd | https://raw.githubusercontent.com/FrightenedFoxCN/cetz-cd/main/tests/render.typ | typst | #import "../src/cetz-cd.typ": *
// #cetz-cd(```
// $A$ ar[r, $g$] ar[rd, $f$, swapped] & $B$ ar[d] ;
// & $D$
// ```)
#cetz-cd(```
$EE$ ar[r, $tau_i$] & $EE_i$ ar[r] & $FF^"alg"$;
$FF[alpha]$ ar[r, $sigma_i$] ar[u] & $FF[sigma_i alpha]$ ar[u] ar[r] & $FF[sigma_i alpha]$ ar[u] ;
$FF$ ar[u] ... | |
https://github.com/MLAkainu/Network-Comuter-Report | https://raw.githubusercontent.com/MLAkainu/Network-Comuter-Report/main/contents/04_socket/index.typ | typst | Apache License 2.0 | = Socket programming with Python
Socket là cánh cổng ngăn cách giữa Application Layer với Transport Layer.
#figure(caption: [Mô hình socket],
image("../../components/assets/socket.png"))
Thư viện socket của Python hỗ trợ một số API sau để thiết lập kết nối socket TCP/UDP:
#block()[
- socket()
- bind()
... |
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/fletcher/0.4.0/src/draw.typ | typst | Apache License 2.0 | #import "@preview/cetz:0.1.2" as cetz: vector
#import "utils.typ": *
#import "marks.typ": *
/// Get the point at which a connector should attach to a node from a given
/// angle, taking into account the node's size and shape.
///
/// - node (dictionary): The node to connect to.
/// - θ (angle): The desired angle from ... |
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/fletcher/0.1.1/src/draw.typ | typst | Apache License 2.0 | #import "@preview/cetz:0.1.2" as cetz: vector
#import "utils.typ": *
#import "marks.typ": *
/// Get the point at which a connector should attach to a node from a given
/// angle, taking into account the node's size and shape.
///
/// - node (dictionary): The node to connect to.
/// - θ (angle): The desired angle from ... |
https://github.com/7sDream/fonts-and-layout-zhCN | https://raw.githubusercontent.com/7sDream/fonts-and-layout-zhCN/master/chapters/08-adv-features/adv-features.typ | typst | Other | #import "/template/template.typ": web-page-template
#import "/template/heading.typ": chapter
#import "/template/components.typ": note, cross-ref
#import "/lib/glossary.typ": tr
#show: web-page-template
#chapter(meta: (
footnote: [译注:作者尚未开始编写本章,原文亦只有小节标题。#cross-ref(<heading:not-finish-point>, web-path: "/chapters/0... |
https://github.com/polarkac/MTG-Stories | https://raw.githubusercontent.com/polarkac/MTG-Stories/master/stories/016_Fate%20Reforged.typ | typst | #import "@local/mtgset:0.1.0": conf
#show: doc => conf("Fate Reforged", doc)
#include "./016 - Fate Reforged/001_A New Tarkir of Old.typ"
#include "./016 - Fate Reforged/002_Unwritten.typ"
#include "./016 - Fate Reforged/003_The Reforged Chain.typ"
#include "./016 - Fate Reforged/004_The Truth of Names.typ"
#include "... | |
https://github.com/alberto-lazari/computer-science | https://raw.githubusercontent.com/alberto-lazari/computer-science/main/advanced-topics-cs/quantum-algorithms/chapters/gradient.typ | typst | #import "/common.typ": *
= Gradient estimation
Classical computers are able to estimate the gradient of a $d$-dimension function $f : [0, 1]^d -> RR_+$ at the origin by evaluating $f$ in $O(d)$ time.
Quantum computers are able to do it by evaluating $f$ once, a constant amount of time.
== Jordan's quantum gradient a... | |
https://github.com/ntjess/typst-nsf-templates | https://raw.githubusercontent.com/ntjess/typst-nsf-templates/main/main-nsf-general.typ | typst | MIT License | #import "nsf-proposal.typ": *
#show: template
#show regex("(?i:\bxxx\b)"): highlight[
(UPDATE ME)
]
#let note(..args) = {
set par(justify: false)
set text(size: 8pt, fill: blue)
[~]
drafting.margin-note(..args)
}
#title[Project Title XXX]
#text(red)[
#set par(justify: false)
Instructions pulled from:
... |
https://github.com/grnin/Zusammenfassungen | https://raw.githubusercontent.com/grnin/Zusammenfassungen/main/AIAp/AIAp_Zusammenfassung_FS24_NG_JT.typ | typst | // Compiled with Typst 0.11.1
#import "../template_zusammenf.typ": *
#import "@preview/wrap-it:0.1.0": wrap-content
#show: project.with(
authors: ("<NAME>", "<NAME>"),
fach: "AIAp",
fach-long: "AI Applications",
semester: "FS24",
language: "en",
font-size: 10pt,
tableofcontents: (enabled: true, depth: 3,... | |
https://github.com/drunkenQCat/typst-arknights-simulator | https://raw.githubusercontent.com/drunkenQCat/typst-arknights-simulator/master/template.typ | typst | #import "@preview/grayness:0.1.0": grayscale-image
#let background_pic = "pics/Avg_bg_bg_indoor_2.png"
#let portrait_pic = "pics/portrait.png"
#let char_name = "丰川祥子"
#let char_scripts = "你这家伙,满脑子都是自己呢。"
#let name_grid(name) = text(
text(
name,
size: 1.3em,
tracking: 0.01em,
),
font: "HarmonyOS Sa... | |
https://github.com/jgm/typst-hs | https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/compute/data-09.typ | typst | Other | // Error: 7-18 failed to parse toml file: expected `.`, `=`, index 15-15
#toml("test/assets/files/bad.toml")
|
https://github.com/sitandr/mdbook-typst-highlight | https://raw.githubusercontent.com/sitandr/mdbook-typst-highlight/main/example-book/src/indented/indented.md | markdown | MIT License | # Indented
```typst
#block(fill: red.lighten(70%), stroke: red, inset: 1em)[
This is a block
]
```
```typ
Page break:
#pagebreak()
#set page(header: "HEADER")
Some text
``` |
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/lovelace/0.2.0/examples/list-label.typ | typst | Apache License 2.0 | #set page(width: auto, height: auto, margin: 1em)
#import "../lib.typ": *
#show: setup-lovelace
#pseudocode-list[
- *input:* number $n in NN$
- *output:* zero
+ *while* $n > 0$
+ $n <- n - 1$ #line-label(<line:decr>)
+ *end*
+ *return* $n$
]
In @line:decr, we decrease $n$.
|
https://github.com/binhtran432k/ungrammar-docs | https://raw.githubusercontent.com/binhtran432k/ungrammar-docs/main/contents/system-implementation/playground.typ | typst | === Ungrammar Online Demonstration Playground <subsec-impl-playground>
The Ungrammar Online Demonstration Playground offers a convenient and
accessible platform for users to quickly explore and experience the
capabilities of the Ungrammar language ecosystem without requiring any
installation.
Key Features:
- *Effort... | |
https://github.com/TGM-HIT/typst-diploma-thesis | https://raw.githubusercontent.com/TGM-HIT/typst-diploma-thesis/main/template/chapters/studie.typ | typst | MIT License | #import "../lib.typ": *
= Studie
Nach der Definition der Problemstellungen und Ziele soll recherchiert werden, wie diese erreicht, beziehungsweise gelöst werden können. Diese Studie beschäftigt sich mit möglichen Lösungen und Technologien und analysiert deren Eigenschaften um konkrete Vor- und Nachteile zu finden. Be... |
https://github.com/Error-418-SWE/Documenti | https://raw.githubusercontent.com/Error-418-SWE/Documenti/src/1%20-%20Candidatura/Preventivo%20dei%20costi/Preventivo%20dei%20costi.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: "Preventivo Costi",
subTitle: "Organizzazione temporale e assunzione di impegno",
docType: "doc",
// Nome //Ruolo Durata P... | |
https://github.com/ludovic-esperce/afpa-typst-template | https://raw.githubusercontent.com/ludovic-esperce/afpa-typst-template/main/lib.typ | typst | #let afpa(title, subtitle, date, author, doc) = {
// Paramètrage des méta-données du document
set document(title: title, author: author, date: date)
let afpa_color = rgb("#86bc24")
let grey_color = rgb("#5A5A5A")
// Configuration des paramètres de style communs à toutes les pages
set par(justify: true)
... | |
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/unichar/0.1.0/ucd/block-10F70.typ | typst | Apache License 2.0 | #let data = (
("OLD UYGHUR LETTER ALEPH", "Lo", 0),
("OLD UYGHUR LETTER BETH", "Lo", 0),
("OLD UYGHUR LETTER GIMEL-HETH", "Lo", 0),
("OLD UYGHUR LETTER WAW", "Lo", 0),
("OLD UYGHUR LETTER ZAYIN", "Lo", 0),
("OLD UYGHUR LETTER FINAL HETH", "Lo", 0),
("OLD UYGHUR LETTER YODH", "Lo", 0),
("OLD UYGHUR LETTE... |
https://github.com/r8vnhill/apunte-bibliotecas-de-software | https://raw.githubusercontent.com/r8vnhill/apunte-bibliotecas-de-software/main/Unit2/data_classes.typ | typst | == Data Classes
Las data classes en Kotlin están diseñadas principalmente para contener datos.
Estas clases proporcionan automáticamente funcionalidades estándar como `toString()`, `equals()`, `hashCode()`, y `copy()` sin necesidad de implementarlas manualmente.
=== Características de las Data Classes
- *Funcionali... | |
https://github.com/HollowNumber/DDU-Rapport-Template | https://raw.githubusercontent.com/HollowNumber/DDU-Rapport-Template/main/src/chapters/projektbeskrivelse.typ | typst |
#include "./Projektbeskrivelse/indledning.typ"
#include "./Projektbeskrivelse/analyse.typ"
#include "./Projektbeskrivelse/kravspecifikationer.typ"
#include "./Projektbeskrivelse/projektafgraesning.typ" | |
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/cheda-seu-thesis/0.2.0/seu-thesis/parts/main-body-degree-fn.typ | typst | Apache License 2.0 | #import "../utils/states.typ": *
#import "../utils/fonts.typ": 字体, 字号
#let main-body-bachelor-conf(thesisname: [], doc) = {
set page(
header: {
set align(center)
set text(font: 字体.宋体, size: 字号.小五, lang: "zh")
set par(first-line-indent: 0pt, leading: 16pt, justify: true)
show par: ... |
https://github.com/LDemetrios/Typst4k | https://raw.githubusercontent.com/LDemetrios/Typst4k/master/src/test/resources/suite/styling/show-where.typ | typst | --- show-where-optional-field-raw ---
// Test that where selectors also trigger on set rule fields.
#show raw.where(block: false): box.with(
fill: luma(220),
inset: (x: 3pt, y: 0pt),
outset: (y: 3pt),
radius: 2pt,
)
This is #raw("fn main() {}") some text.
--- show-where-optional-field-text ---
// Note: This s... | |
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/scienceicons/0.0.6/README.md | markdown | Apache License 2.0 | # Open-science icons for Typst
SVG icons for open-science articles
## Usage
```typst
#import "@preview/scienceicons:0.0.6": open-access-icon
This article is Open Access #open-access-icon(color: orange, height: 1.1em, baseline: 20%)
```
<有序数组两数之和>
#note(
title: [
两数之和 II - 输入有序数组
],
description: [
给你一个下标从1开始的整数数组`numbers`,该数组已按非递减顺序排列,请你从数组中找出满足相加之和等于目标数`target`的两个数。如果设这两个数分别是`n... | |
https://github.com/GolemT/BA-Template | https://raw.githubusercontent.com/GolemT/BA-Template/main/subtext.typ | typst | #import "template.typ": *
#lorem(60) | |
https://github.com/kazewong/lecture-notes | https://raw.githubusercontent.com/kazewong/lecture-notes/main/Engineering/SoftwareEngineeringForDataScience/lab/jax.typ | typst | #set page(
paper: "us-letter",
header: align(center, text(17pt)[
*Introduction to Jax*
]),
numbering: "1",
)
#import "./style.typ": style_template
#show: doc => style_template(doc,)
= Foreword
My first encounter with `Jax` was in 2018. I was told that `jax` can be very useful for large scale trying to wr... | |
https://github.com/topdeoo/Course-Slides | https://raw.githubusercontent.com/topdeoo/Course-Slides/master/Courses/Method2CS/main.typ | typst | #import "../../theme/iTalk.typ": *
#show: nenu-theme.with(
short-title: "PyTorch",
short-date: "23-12-19",
short-author: "Virgil"
)
#let pinit-highlight-equation-from(height: 2em, pos: bottom, fill: red.darken(5%), highlight-pins, point-pin, body) = {
pinit-point-from(
fill: fill,
pin-dx: -0.6em,
... | |
https://github.com/Vanille-N/mpri2-edt | https://raw.githubusercontent.com/Vanille-N/mpri2-edt/master/typtyp.typ | typst | // TypTyp
// Type assertions library for Typst
//
// by <NAME> <EMAIL>
//
// The purpose of this library is to provide easy type annotations
// (or to be more precise: field requirements) for Typst objects.
//
// Example usage:
//
// ```
// #import "typtyp.typ"
// #let tt = typtyp
//
// #let Person = tt.t... | |
https://github.com/Tran-Thu-Le/typst-collection | https://raw.githubusercontent.com/Tran-Thu-Le/typst-collection/main/multi-files-reference/multi-ref.typ | typst | #let section-refs = state("section-refs", ())
#show ref: it => {
it
if it.element != none {
return
}
section-refs.update(old => {
old.push(it.target)
old
})
}
#show heading.where(level: 1): it => {
section-refs.update(())
it
}
| |
https://github.com/lucannez64/Notes | https://raw.githubusercontent.com/lucannez64/Notes/master/Maths_Expertes_Ex_14_05_2024.typ | typst | #import "@preview/bubble:0.1.0": *
#import "@preview/fletcher:0.4.3" as fletcher: diagram, node, edge
#import "@preview/cetz:0.2.2": canvas, draw, tree
#import "@preview/cheq:0.1.0": checklist
#import "@preview/typpuccino:0.1.0": macchiato
#import "@preview/wordometer:0.1.1": *
#import "@preview/tablem:0.1.0": tablem
... | |
https://github.com/lucannez64/Notes | https://raw.githubusercontent.com/lucannez64/Notes/master/Calculus.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: "Calculus",
authors: (
"<NAME>",
),
date: "30 Octobre, 2023",
)
#set heading(numbering: "1.1.")
#link("Derivative.pdf")[Derivative] #l... | |
https://github.com/MobtgZhang/sues-thesis-typst | https://raw.githubusercontent.com/MobtgZhang/sues-thesis-typst/main/paper/paper.typ | typst | MIT License | #import "thesis.typ":*
#show: doc => sues_thesis_master(
outlinedepth:3,
blind: true,
doc
)
// 中英文封面
#include("covers/cover.typ")
// 原创说明
#include("covers/origin.typ")
// 授权书
#include("covers/authorization.typ")
#frontmatter()
// 中文摘要和英文摘要
#display_abstract("chapters/abstract-cn.typ",language:"中文")
#display_abstr... |
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/bookletic/0.2.0/README.md | markdown | Apache License 2.0 | # Bookletic :book:
Create beautiful booklets with ease.
The current version of this library (0.2.0) contains a single function to take in an array of content blocks and order them into a ready to print booklet, bulletin, etc. No need to fight with printer settings or document converters.
### Example Output
Here i... |
https://github.com/sbleblanc/typst-templates | https://raw.githubusercontent.com/sbleblanc/typst-templates/main/resume/template.typ | typst | #import "@preview/fontawesome:0.2.0": *
#let build_header(personal_infos, header_bg, use_full_address) = {
let name_content = {
set text(weight: "bold", size: 2em)
smallcaps([#personal_infos.first_name\ #personal_infos.last_name])
}
let contact_content = grid(
columns: (1.8em, auto, 1.8em, auto),
... | |
https://github.com/jdupak/lang-talk-borrow-checker | https://raw.githubusercontent.com/jdupak/lang-talk-borrow-checker/master/theme/ctu.typ | typst | #import "@preview/polylux:0.3.1": *
#let theme = (
accent: rgb("#F74C00"),
text: rgb("#000000"),
)
#let ctu-theme(
aspect-ratio: "4-3",
footer: [],
background: white,
foreground: black,
body
) = {
set page(
paper: "presentation-" + aspect-ratio,
margin: 1em,
header: none,
footer: none,... | |
https://github.com/Jollywatt/typst-fletcher | https://raw.githubusercontent.com/Jollywatt/typst-fletcher/master/docs/readme-examples/feynman-diagram.typ | typst | MIT License | #diagram(/*<*/edge-stroke: fg,/*>*/$
e^- edge("rd", "-<|-") & & & edge("ld", "-|>-") e^+ \
& edge(gamma, "wave") \
e^+ edge("ru", "-|>-") & & & edge("lu", "-<|-") e^- \
$) |
https://github.com/seven-mile/gatsby-transformer-typst | https://raw.githubusercontent.com/seven-mile/gatsby-transformer-typst/master/README.md | markdown |
# `gatsby-transformer-typst`
A simple transformer plugin for Gatsby that converts `typ` / `typst` `File` nodes into `Typst` nodes.
## Node structure
Check `gatsby-node.js` for the node structure.
## How to use
This plugin depends on [`typst.ts`](https://github.com/Myriad-Dreamin/typst.ts). These packages are not ... | |
https://github.com/RolfBremer/in-dexter | https://raw.githubusercontent.com/RolfBremer/in-dexter/main/tests/DisplayTest.typ | typst | Apache License 2.0 | #import "../in-dexter.typ": *
#set page("a6", flipped: true, numbering: "1")
_A Test for the Display parameter.
The order of marked entries specifies, which display is used in the reference on the index page._
In this sample, the first entry for Gaga hides the displays of the other entries for Gaga.
#index[Gaga]
#in... |
https://github.com/kdog3682/mathematical | https://raw.githubusercontent.com/kdog3682/mathematical/main/0.1.0/src/tests/convex-hull.typ | typst | #import "../algorithms/convex-hull.typ": convex-hull
#let points = (
(0, 0),
(1, 1),
(2, 2),
(3, 1),
(4, 0),
(3, 3),
(2, 4),
(1, 3),
(2, 1),
(10, 10),
)
#{
convex-hull(points)
} | |
https://github.com/RandomcodeDev/FalseKing-Design | https://raw.githubusercontent.com/RandomcodeDev/FalseKing-Design/main/engine/components.typ | typst | = Engine components
The engine will be made of these pieces:
#table(
columns: 4,
[*Component*], [*Components needed*], [*Functionality*], [*Available in tools builds*],
[`Base`], [none], [containers, basic algorithms, strings, data manipulation and serialization, Unicode handling,
startup, shutdown, threading,... | |
https://github.com/davidedomini/DTM-2425-Crash-Course | https://raw.githubusercontent.com/davidedomini/DTM-2425-Crash-Course/master/slides/intro.typ | typst | Apache License 2.0 | #import "@preview/polylux:0.3.1": *
#import "@preview/fontawesome:0.1.0": *
#import themes.metropolis: *
#show: metropolis-theme.with(
aspect-ratio: "16-9",
// footer: [Optional Footnote]
)
#set text(font: "Fira Sans", weight: 350, size: 20pt)
#show math.equation: set text(font: "Fira Math")
#set strong(delta: 2... |
https://github.com/jgm/typst-hs | https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/compiler/construct-04.typ | typst | Other | // The constructor property should still work
// when there are recursive show rules.
#show enum: set text(blue)
#enum(numbering: "(a)", [A], enum[B])
|
https://github.com/Myriad-Dreamin/typst.ts | https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/layout/list_01.typ | typst | Apache License 2.0 |
#import "/contrib/templates/std-tests/preset.typ": *
#show: test-page
- First level.
- Second level.
There are multiple paragraphs.
- Third level.
Still the same bullet point.
- Still level 2.
- At the top.
|
https://github.com/kotfind/hse-se-2-notes | https://raw.githubusercontent.com/kotfind/hse-se-2-notes/master/edu/seminars/2024-09-25.typ | typst | = Разработка этапов актуализации знаний и первичного получения новых знаний
== Этап актуализации знаний
Актуализация знаний --- тип занятий, который
- готовит к восприятию нового материала
- напоминает изученные темы
- этап "пробуждения"
Форматы проведения актуализации:
- "Шкатулка идей, понятий, имен":
Вместе ... | |
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/cetz/0.0.1/canvas.typ | typst | Apache License 2.0 | #import "matrix.typ"
#import "vector.typ"
#import "draw.typ"
#import "cmd.typ"
#import "util.typ"
#import "coordinate.typ"
#import "styles.typ"
// Compute bounding box of points
#let bounding-box(pts, init: none) = {
let bounds = init
if type(pts) == "array" {
for (i, pt) in pts.enumerate() {
if init == ... |
https://github.com/TGM-HIT/typst-protocol | https://raw.githubusercontent.com/TGM-HIT/typst-protocol/main/template/assets/mod.typ | typst | MIT License | #let just-do-it-logo = image.with("just-do-it.png")
|
https://github.com/Wuvist/lcpc | https://raw.githubusercontent.com/Wuvist/lcpc/main/1st_progress.typ | typst | = Living Cost Misery Index
=== ECON6017 Paper 1st progress - <NAME>
== Motivation
There is no existing economic index reflecting living cost of local people in different cities in the world, nor to make comparison.
Existing relevant indexes have limitations:
- Worldwide Cost of-Living by EIU - Economist Inte... | |
https://github.com/Me0wzz/study-note | https://raw.githubusercontent.com/Me0wzz/study-note/main/Electromagnetics/vector.typ | typst | = Divergence theorem
$
integral_V nabla dot bold(A) d v = integral.cont_S bold(A) dot d s
$
- 체적 적분(3중 integral) < - - > 면적 적분(2중 integral)
- 내부의 인접한 elements 들 끼리 상쇄가 되기 때문에 가장자리 (맨 바깥쪽) 부분만 남음
- 체적 내부에선 발산이 상쇄되어 없어지고, 미소체적이 정의되지 않은 외부경계변의 발산만 남음
= Example 2-9 잘못된 풀이
- $1/e$ 누락된거 나중에 확인
== 시험 문제
공업수학 참고: ... | |
https://github.com/kotfind/hse-se-2-notes | https://raw.githubusercontent.com/kotfind/hse-se-2-notes/master/prob/lectures/2024-10-18.typ | typst | #import "/utils/math.typ": *
#blk[
Пусть есть генератор случайно величины $xi ~ R(0; 1)$.
Хотим получить случайную величину $eta ~ F_eta (y)$
$ eta = F_eta^(-1) (xi) $
Обратная функция всегда существует т.к. $F$ возрастает
]
=== Экспоненциальное (показательное) распределение
$ xi ~ E(lambda), lamb... | |
https://github.com/OrangeX4/typst-talk | https://raw.githubusercontent.com/OrangeX4/typst-talk/main/main.typ | typst | #import "@preview/touying:0.5.2": *
#import themes.university: *
#import "@preview/a2c-nums:0.0.1": int-to-cn-ancient-num
#import "utils.typ": *
// global styles
#set text(font: ("IBM Plex Serif", "Source Han Serif SC", "Noto Serif CJK SC"), lang: "zh", region: "cn")
#show heading.where(level: 1): set heading(numberin... | |
https://github.com/typst/packages | https://raw.githubusercontent.com/typst/packages/main/packages/preview/unichar/0.1.0/ucd/block-11660.typ | typst | Apache License 2.0 | #let data = (
("MONGOLIAN BIRGA WITH ORNAMENT", "Po", 0),
("MONGOLIAN ROTATED BIRGA", "Po", 0),
("MONGOLIAN DOUBLE BIRGA WITH ORNAMENT", "Po", 0),
("MONGOLIAN TRIPLE BIRGA WITH ORNAMENT", "Po", 0),
("MONGOLIAN BIRGA WITH DOUBLE ORNAMENT", "Po", 0),
("MONGOLIAN ROTATED BIRGA WITH ORNAMENT", "Po", 0),
("MON... |
https://github.com/platformer/typst-algorithms | https://raw.githubusercontent.com/platformer/typst-algorithms/main/test/test.typ | typst | MIT License | #import "../algo.typ": algo, i, d, comment, code
== Plain `algo` and `code`
#table(
columns: 2,
stroke: none,
align: (x, _) => (right, left).at(x),
"title:", "\"Floyd-Warshall\" (algo only)",
"parameters:", "(\"V\", \"E\", \"w\") (algo only)"
)
#algo(
title: "Floyd-Warshall",
parameters: ("V", "E"... |
https://github.com/rabotaem-incorporated/algebra-conspect-1course | https://raw.githubusercontent.com/rabotaem-incorporated/algebra-conspect-1course/master/sections/01-number-theory/!sec.typ | typst | Other | #import "../../config.typ"
#if config.enable-chapters-from-sem1 [
= Теория чисел
#include "01-divisibility.typ"
#include "02-equiv-relation.typ"
#include "03-modulo-eq.typ"
#include "04-multiplicative-rings.typ"
#include "05-gcd.typ"
#include "06-coprimes.typ"
#include "07-diophantine-... |
https://github.com/noahjutz/AD | https://raw.githubusercontent.com/noahjutz/AD/main/notizen/sortieralgorithmen/insertion_sort/insertion_sort.typ | typst | #import "/components/num_row.typ": num_row
#import "/config.typ": theme
#let row_push_key(nums, i, key) = num_row(
nums,
hl_primary: i,
prefix: (str(key),),
arrow: (
from: i,
to: -1,
color: theme.fg_light
)
)
#let row_shift_forward(nums, i, j, key) = num_row(
nums,
hl_primary: i,
hl_second... | |
https://github.com/jamesrswift/chemicoms-paper | https://raw.githubusercontent.com/jamesrswift/chemicoms-paper/main/README.md | markdown | # chemicoms-paper
This is a Typst template for a two-column paper in a style similar to that of the Royal Society of Chemistry.
## Usage
You can use this template in the Typst web app by clicking "Start from template" on the dashboard and searching for the `chimicoms-paper`.
Alternatively, you can use the CLI to kick... | |
https://github.com/coastalwhite/typst-tudelft | https://raw.githubusercontent.com/coastalwhite/typst-tudelft/main/tudelft-template.typ | typst | #let COLORS = (
primary: rgb("#00A6D6"),
secondary: rgb("#99D28C"),
)
#let BULLETS_FN = (level) => {
set text(fill: COLORS.primary)
([•], [‣], [◦]).at(level)
}
#let HEADER_FONT = "Roboto Slab"
#let TEXT_FONT = "Noto Sans"
#let SLIDE_INSET = 2cm
#let SPACING = 1cm
#let PROGRESS_BAR_HEIGHT = 0.5cm
#let CON... | |
https://github.com/Kasci/LiturgicalBooks | https://raw.githubusercontent.com/Kasci/LiturgicalBooks/master/CS_SK_pascha_test/Pascha.typ | typst | #import "/CU_json/all.typ": *
#show: book
#show "(ímja rek)": sText
#show "(povie meno)": sText
#let sk = json("./pascha_sk.json")
#let csl = json("./pascha_csl.json")
#let generateTable(tbl) = [
#table(
columns: (auto, 20pt, auto),
column-gutter: 0pt,
stroke: none,
// align: (a,b,... | |
https://github.com/HiiGHoVuTi/requin | https://raw.githubusercontent.com/HiiGHoVuTi/requin/main/math/green.typ | typst | #import "../lib.typ": *
#show heading: heading_fct
On dit que $(M,times)$ avec $M$ un ensemble est un monoïde s'il respecte 3 axiomes:
- $times$ est une loi de composition interne, aka $(times) : M^2 --> M$
- $times$ est associative, aka $forall a,b,c in M, (a times b) times c = a times (b times c)$
- Il existe un élé... | |
https://github.com/Myriad-Dreamin/tinymist | https://raw.githubusercontent.com/Myriad-Dreamin/tinymist/main/crates/tinymist-query/src/fixtures/references/cross_module.typ | typst | Apache License 2.0 | #import "base.typ": *
#x
-----
// path: base.typ
#let /* ident after */ x = 1; |
https://github.com/Enter-tainer/typstyle | https://raw.githubusercontent.com/Enter-tainer/typstyle/master/tests/assets/simple-paper.typ | typst | Apache License 2.0 | #let project(
title: "",
authors: (),
abstract: none,
keywords: (),
body
) = {
let song = "FZShuSong-Z01"
let hei = "FZHei-B01"
let kai = "FZKai-Z03"
let xbsong = "FZXiaoBiaoSong-B05"
let code = "DejaVu Sans Mono"
// Moidfy the following to change the font.
let title-font = hei
let author-font... |
https://github.com/jgm/typst-hs | https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/compiler/let-28.typ | typst | Other | #let _ = 4
#for _ in range(2) []
// Error: 2-3 unexpected underscore
#_
// Error: 8-9 unexpected underscore
#lorem(_)
// Error: 3-4 expected expression, found underscore
#(_,)
// Error: 3-4 expected expression, found underscore
#{_}
// Error: 8-9 expected expression, found underscore
#{ 1 + _ }
|
https://github.com/fiit-community/base-typst-template | https://raw.githubusercontent.com/fiit-community/base-typst-template/main/template/assets.typ | typst | MIT License | #import "assets/mod.typ": *
|
https://github.com/hewliyang/fyp-typst | https://raw.githubusercontent.com/hewliyang/fyp-typst/main/abstract.typ | typst | #align(
center + horizon,
[
= Abstract
#v(3em)
The evaluation of synthetic speech presents unique challenges in today's rapidly evolving technological landscape. While the Mean Opinion Score (MOS) remains the predominant metric for assessing speech quality, its inherent subjectivity raises concerns ab... | |
https://github.com/SWATEngineering/Docs | https://raw.githubusercontent.com/SWATEngineering/Docs/main/src/2_RTB/VerbaliEsterni/VerbaleEsterno_231110/signature.typ | typst | MIT License | #place(
bottom + left,
grid(
columns: (1fr),
row-gutter: 20pt,
[Luogo: #line(length: 60%)],
[Data: #line(length: 60%)],
[Firma: #line(length: 60%)]
)
) |
https://github.com/mariunaise/HDA-Thesis | https://raw.githubusercontent.com/mariunaise/HDA-Thesis/master/graphics/plots/optimal_BACH.typ | typst | #import "@preview/cetz:0.2.2": *
#let data = csv("../../data/z_distribution/z_distribution.csv")
#let data = data.map(value => value.map(v => float(v)))
#let line_style = (stroke: (paint: black, thickness: 2pt))
#let dashed = (stroke: (dash: "dashed"))
#canvas({
plot.plot(size: (8,3),
legend : "legend.south",
... | |
https://github.com/Area-53-Robotics/53B-Notebook-Over-Under-2023-2024 | https://raw.githubusercontent.com/Area-53-Robotics/53B-Notebook-Over-Under-2023-2024/master/entries/pre_building/game_reaveal.typ | typst | Creative Commons Attribution Share Alike 4.0 International | #import "/templates/entries.typ": *
#import "/templates/headers.typ": *
#import "/templates/text.typ": *
#create_default_entry(
title: [First Meeting After Reveal],
date: [April 28th, 2023],
design: [],
witness: [],
content:[
#box_header(
title: [Gabriel],
color: blue.lighten(60%)
) \
... |
https://github.com/IllustratedMan-code/nixconfig-wsl | https://raw.githubusercontent.com/IllustratedMan-code/nixconfig-wsl/main/README.md | markdown | # A simple flake based config for WSL
I'm currently using a windows computer. Since I can't possibly live without NixOS I've
created this simple config that has most things I need for daily life.
Interestingly enough, it comes with a template for `typst`, but does not come with `typst`.
Try to figure that one out why... | |
https://github.com/clementjumel/resume-template | https://raw.githubusercontent.com/clementjumel/resume-template/main/README.md | markdown | # Resume Template
My personal resume's _template_, written with [typst](https://github.com/typst/typst) and initially based on the
[basic-resume template](https://typst.app/universe/package/basic-resume).
This template contains the main files needed to compile my resume, except that it is filled with fake data instea... | |
https://github.com/Shuenhoy/modern-zju-thesis | https://raw.githubusercontent.com/Shuenhoy/modern-zju-thesis/master/utils/supplement.typ | typst | MIT License | #let show-set-supplement(s) = {
show heading.where(level: 1): set heading(supplement: [章])
show heading.where(level: 2): set heading(supplement: [节])
show heading.where(level: 3): set heading(supplement: [小节])
show heading.where(level: 4): set heading(supplement: [小小节])
s
} |
https://github.com/eratio08/learn-typst | https://raw.githubusercontent.com/eratio08/learn-typst/main/latex.typ | typst | #set page(margin: 1.75in)
#set par(leading: 0.55em, first-line-indent: 1.8em, justify: true)
#set text(font: "New Computer Modern")
#show raw: set text(font: "New Computer Modern Mono")
#show par: set block(spacing: 0.55em)
#show heading: set block(above: 1.4em, below: 1em)
| |
https://github.com/piepert/grape-suite | https://raw.githubusercontent.com/piepert/grape-suite/main/src/german-dates.typ | typst | MIT License | #let semester(short: false, date) = {
let wise = (
long: "Wintersemester",
short: "WiSe"
).at(if short { "short" } else { "long" })
let sose = (
long: "Sommersemester",
short: "SoSe"
).at(if short { "short" } else { "long" })
let sem = wise
let year = if date.m... |
https://github.com/Myriad-Dreamin/typst.ts | https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/text/quote_04.typ | typst | Apache License 2.0 |
#import "/contrib/templates/std-tests/preset.typ": *
#show: test-page
// Citation-format: label or numeric
#set text(8pt)
#set quote(block: true)
#quote(attribution: <tolkien54>)[In a hole in the ground there lived a hobbit.]
#set text(0pt)
#bibliography("/assets/files/works.bib", style: "ieee")
|
https://github.com/jgm/typst-hs | https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/text/linebreak-04.typ | typst | Other | // Test hard break directly after normal break.
Hard break directly after \ normal break.
|
https://github.com/sitandr/typst-examples-book | https://raw.githubusercontent.com/sitandr/typst-examples-book/main/src/basics/states/query.md | markdown | MIT License | # Query
<div class="warning">This section is outdated. It may be still useful, but it is strongly recommended to study new context system (using the reference).</div>
> Link [there](https://typst.app/docs/reference/meta/query/)
Query is a thing that allows you getting location by _selector_ (this is the same thing we... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.