repo
stringlengths
26
115
file
stringlengths
54
212
language
stringclasses
2 values
license
stringclasses
16 values
content
stringlengths
19
1.07M
https://github.com/soul667/typst
https://raw.githubusercontent.com/soul667/typst/main/复习/光电子材料与器件复习/temple/main.typ
typst
#import "template.typ": * // #import "@preview/big-todo:0.2.0": * #let data=yaml("./data.yaml") #import "@preview/tablex:0.0.8": tablex, rowspanx, // 设置页面 // #set page( // paper:"a4", // margin: ( // top:23.5mm, // bottom:25.4mm, // left:20mm, // right:20mm // ), // head...
https://github.com/kdog3682/mathematical
https://raw.githubusercontent.com/kdog3682/mathematical/main/0.1.0/src/dialogues/cover-layouts/time-travel-edition.typ
typst
#import "@local/typkit:0.1.0": * #let KacperStudent = ( grade: 6, name: "<NAME>", ) #let do-time-travel-sidebar-message(year) = { let time-travel-text = pattern-text( "TIME TRAVEL EDITION", ) let year-text = bold("(" + str(year) + ")", size: 32pt, fill: blue) let c = { time-tra...
https://github.com/typst/packages
https://raw.githubusercontent.com/typst/packages/main/packages/preview/touying-aqua/0.4.0/README.md
markdown
Apache License 2.0
# [Touying](https://github.com/touying-typ/touying) ![logo](https://github.com/touying-typ/touying/assets/34951714/2aa394d3-2319-4572-aef7-ed3c14b09846) [Touying](https://github.com/touying-typ/touying) (投影 in chinese, /tóuyǐng/, meaning projection) is a powerful and efficient package for creating presentation slides ...
https://github.com/lxl66566/my-college-files
https://raw.githubusercontent.com/lxl66566/my-college-files/main/信息科学与工程学院/互联网原理与技术/作业/实践4/main.typ
typst
The Unlicense
#import "../template.typ": * #show: project.with( title: "实践 4:Wireshark实验——IP", authors: ( "absolutex", ) ) = 内容 == 分析traceroute时的IP包格式。 运行 traceroute 并让它发送各种长度的数据报。Linux/Unix/MacOS : traceroute 用UDP 数据报 Traceroute指定包长度:一个长度 为 56 个字节,一个长度为 2000 个字节,另一个长度为 3500 个字节。 ``` traceroute www.bilibili.com 56 ...
https://github.com/typst/packages
https://raw.githubusercontent.com/typst/packages/main/packages/preview/metro/0.1.0/src/metro.typ
typst
Apache License 2.0
#import "defs/units.typ" #import "defs/prefixes.typ" #import "impl/impl.typ" // #import "parse_number.typ" #import "utils.typ": combine-dict #let _state-default = ( units: units._dict, prefixes: prefixes._dict, prefix-power-tens: prefixes._power-tens, powers: ( square: impl.raiseto([2]), cubic: impl.ra...
https://github.com/alberto-lazari/computer-science
https://raw.githubusercontent.com/alberto-lazari/computer-science/main/advanced-topics-cs/module-3/report.typ
typst
#set page(numbering: "1") #set heading(numbering: "1.1.A.") #set list(marker: ([•], [--])) #let make_title(title: none, author: none, course: none, date: none) = { align(center, text(size: 25pt, title)) align(center, text(size: 18pt, author)) align(center, text(size: 18pt, course)) align(center, text(size: 18p...
https://github.com/berceanu/activity-report
https://raw.githubusercontent.com/berceanu/activity-report/main/short_usage.typ
typst
BSD 3-Clause "New" or "Revised" License
#import "ultra-short-activity-report.typ": report, activities #show: body => report( month: "July, August, September 2023", your_name: "<NAME>", your_position: "CS-III", sign_date: "17/10/2023", department_head: "<NAME>", group_leader: "<NAME>", body, ) #activities - #lorem(40) - #lorem(5) `openPMD-resam...
https://github.com/fredguth/mwe-citation-quarto-typst
https://raw.githubusercontent.com/fredguth/mwe-citation-quarto-typst/main/article.typ
typst
// Some definitions presupposed by pandoc's typst output. #let blockquote(body) = [ #set text( size: 0.8em ) #align(right, block(inset: (right: 5em, top: 0.2em, bottom: 0.2em))[#body]) ] #let horizontalrule = [ #line(start: (25%,0%), end: (75%,0%)) ] #let endnote(num, contents) = [ #stack(dir: ltr, spacing: 3...
https://github.com/N3M0-dev/Notes
https://raw.githubusercontent.com/N3M0-dev/Notes/main/ECON/Principles_of_Economics/ch1/note_ch1.typ
typst
#let authors=("Nemo",) #let title="Ten Principles of Economics" #let date="2023.9.11-" #set document(author: authors, title: title) #set page(numbering: "1", number-align: center) #set heading(numbering: "1.1") #let def_count=counter("Defininition") #let th_count=counter("Theorem") #let Upperfirst(in_str)={upper(in_...
https://github.com/VisualFP/docs
https://raw.githubusercontent.com/VisualFP/docs/main/SA/design_concept/content/design/design_iteration_1_results.typ
typst
#import "../../../style.typ": include_section = Conclusions <iteration-1-conclusion> Based on the questionnaire answers for the first three designs, which can be seen in @design_iteration_one_survey_results, it can be concluded that each design received valid criticism. == Flo-inspired Design It is clear that the F...
https://github.com/smorad/um_cisc_7026
https://raw.githubusercontent.com/smorad/um_cisc_7026/main/lecture_10_autoencoders.typ
typst
#import "@preview/polylux:0.3.1": * #import themes.university: * #import "@preview/cetz:0.2.2": canvas, draw, plot #import "common.typ": * #import "@preview/algorithmic:0.1.0" #import algorithmic: algorithm #set math.vec(delim: "[") #set math.mat(delim: "[") #let ag = ( [Review], [Unsupervised Learning], [Compr...
https://github.com/fenjalien/metro
https://raw.githubusercontent.com/fenjalien/metro/main/tests/array/num-range/test.typ
typst
Apache License 2.0
#import "/src/lib.typ": * #set page(width: auto, height: auto, margin: 1cm) #num-range(10, 30) $numrange(10, 30)$ #num-range(5, 100) #num-range(5, 100, range-phrase: sym.dash) #num-range(10, 12) $#num-range(10, 12, range-open-phrase: [from ])$
https://github.com/xkevio/parcio-typst
https://raw.githubusercontent.com/xkevio/parcio-typst/main/parcio-slides/template/parcio.typ
typst
MIT License
#import "@preview/polylux:0.3.1": * #import "@preview/subpar:0.1.1" #let extra-light-gray = rgb("#FFFFFF") #let m-dark-teal = rgb("#23373b") #let m-light-brown = rgb("#eb811b") #let m-lighter-brown = rgb("#d6c6b7") #let m-extra-light-gray = white.darken(2%) #let ovgu-red = rgb("#D13F58") #let ovgu-purple = rgb("#7A00...
https://github.com/jgm/typst-hs
https://raw.githubusercontent.com/jgm/typst-hs/main/test/typ/visualize/stroke-06.typ
typst
Other
// Error: 29-55 expected "solid", "dotted", "densely-dotted", "loosely-dotted", "dashed", "densely-dashed", "loosely-dashed", "dash-dotted", "densely-dash-dotted", "loosely-dash-dotted", array, dictionary, dash pattern, or none #line(length: 60pt, stroke: (paint: red, dash: "dash"))
https://github.com/FlixCoder/typst-slides
https://raw.githubusercontent.com/FlixCoder/typst-slides/main/metadata.typ
typst
MIT License
#let beamer_format = (16, 9) #let theme_background = blue.darken(30%) #let theme_text = white #let font = "Open Sans" #let presentation_title = "Creating Presentations" #let presentation_subtitle = "Using Typst and this template" #let author = "FlixCoder" #let date = "2023-09-19"
https://github.com/polarkac/MTG-Stories
https://raw.githubusercontent.com/polarkac/MTG-Stories/master/stories/035%20-%20Core%202019/009_Unbowed%2C%20Part%201.typ
typst
#import "@local/mtgstory:0.2.0": conf #show: doc => conf( "Unbowed, Part 1", set_name: "Core 2019", story_date: datetime(day: 29, month: 08, year: 2018), author: "<NAME>", doc ) "You speak with fish as well? Mademoiselle, your skills are without number." The eels receded into the water at the soun...
https://github.com/hugoledoux/msc_geomatics_thesis_typst
https://raw.githubusercontent.com/hugoledoux/msc_geomatics_thesis_typst/main/template.typ
typst
MIT License
//-- my local cover #import "cover/cover_template.typ": cover //-- subfigure #import "@preview/subpar:0.1.1" //-- admonitions #import "@preview/gentle-clues:1.0.0": * //-- pseudo-code #import "@preview/lovelace:0.3.0": * //-- for the fancy headers #import "@preview/hydra:0.5.1": hydra //-- TODO #import "@preview/dash...
https://github.com/dashuai009/dashuai009.github.io
https://raw.githubusercontent.com/dashuai009/dashuai009.github.io/main/src/content/blog/036.typ
typst
#let date = datetime( year: 2022, month: 10, day: 2, ) #metadata(( title: "梅森素数与完全数", subtitle: [数论], author: "dashuai009", description: "什么是梅森素数,欧几里得完全数公式,$delta$函数的定义,欧拉完全数定理", pubDate: date.display(), ))<frontmatter> #import "../__template/style.typ": conf #show: conf == 引入梅森素数 <引入梅森素数> #quote[ ...
https://github.com/LDemetrios/Conspects-4sem
https://raw.githubusercontent.com/LDemetrios/Conspects-4sem/master/typst/styles/theme.typ
typst
#import "/typst/styles/theme-dispatch.typ": * #let decide(on, whatif) = if (on == none) { body => body } else { whatif } #let either(..a) = if (a.pos().contains(none)) { none } else { 1 } #let showtheme( base: none, fill: none, surface: none, high: none, subtle: none, overlay: none, iris:...
https://github.com/DrakeAxelrod/cvss.typ
https://raw.githubusercontent.com/DrakeAxelrod/cvss.typ/main/cvss/0.1.0/src/main.typ
typst
MIT License
#import "cvss.typ": score, severity, parse, metrics, verify, re, NONE, LOW, MEDIUM, HIGH, CRITICAL
https://github.com/The-Notebookinator/notebookinator
https://raw.githubusercontent.com/The-Notebookinator/notebookinator/main/internals.typ
typst
The Unlicense
#import "./globals.typ" #import "./themes/themes.typ" /// Internal function used by the template to print out all of the entries /// /// - theme (theme): /// -> content #let print-entries(theme: (:)) = { let print-helper(section, state) = context { for entry in state.final() { let entry-func = theme.at(sec...
https://github.com/typst/packages
https://raw.githubusercontent.com/typst/packages/main/packages/preview/game-theoryst/0.1.0/doc/gtheoryst-manual.typ
typst
Apache License 2.0
#set page("us-letter", header: align(right)[_Manual_]) #set text(12pt) #import "../src/lib.typ": * #show <title>: it => { set align(center) set text(1.75em) it } #show <author>: it => { set align(center) set text(1.25em) it } #heading(outlined: false)[Game-Theoryst] <title> #heading(level: 3, outlined: ...
https://github.com/An-314/Notes-of-Probability_and_Stochastic_Processes
https://raw.githubusercontent.com/An-314/Notes-of-Probability_and_Stochastic_Processes/main/chap2.typ
typst
#import "@local/mytemplate:1.0.0": * #import "@preview/physica:0.9.2": * = 离散型随机变量 == 随机变量 === 随机变量的概念 设随机试验的样本空间为$Ω$,如果对于每一个可能的试验结果(样本点) $omega in Ω$,都唯一地存在一个实数值$X(omega)$与之对应,则称$X(omega)$为一个*随机变量*,简记为$X$。 随机变量的概念是对概率空间概念的进一步发展。它将随机实验的结果数量化,从而可以用简洁的数学语言描述繁杂的随机问题,并而提高处理相关问题的效能和效率。随机变量的引入使概率论的研究前进了一大步。 ...
https://github.com/Enter-tainer/typstyle
https://raw.githubusercontent.com/Enter-tainer/typstyle/master/tests/assets/unit/code/chained-call-compileable.typ
typst
Apache License 2.0
#{ ((1,2),2,3).rev().rev().at(0).rev().rev().rev() } #{ ("a": ("b": (1,2))).a.b.rev().rev().rev().len() } #((1,2),2,3).rev().rev().at(0).rev().rev().rev() #("a": ("b": (1,2))).a.b.rev().rev().rev().len()
https://github.com/jamesrswift/pixel-pipeline
https://raw.githubusercontent.com/jamesrswift/pixel-pipeline/main/src/primitives/position.typ
typst
The Unlicense
#let position( space: "canvas", // Which coordinate system relative: none, name: none, coord ) = { (: position: coord, space: space ) if relative != none {(: relative: relative)} if name != none {(: name: name)} }
https://github.com/7sDream/fonts-and-layout-zhCN
https://raw.githubusercontent.com/7sDream/fonts-and-layout-zhCN/master/chapters/09-layout/bidi-embedding.typ
typst
Other
#import "/lib/draw.typ": * #import "/template/lang.typ": arabic, greek #import "bidi-unembedded.typ": example, make-arrow #let start = (0, 0) #let end = (1000, 160) #let graph = with-unit((ux, uy) => { // mesh(start, end, (100, 20), stroke: 1 * ux + gray) txt(example, (20, 20), size: 30 * ux, anchor: "lb") le...
https://github.com/diquah/OpenBoard
https://raw.githubusercontent.com/diquah/OpenBoard/main/example-exam.typ
typst
MIT License
#import "openboard.typ": * #show: doc => template( paper: "us-letter", doc, ) #title( title: "Example Exam", subtitle: "Using OpenBoard and Typst", organization: "University of the Internet", class: "Typography 101", collect_info: ("Name", "ID"), exam_version: "A", ) #instruct[ == Initial Instructi...
https://github.com/frectonz/the-pg-book
https://raw.githubusercontent.com/frectonz/the-pg-book/main/book/160.%2095.html.typ
typst
95.html Let the Other 95% of Great Programmers In December 2014American technology companies want the government to make immigration easier because they say they can't find enough programmers in the US. Anti-immigration people say that instead of letting foreigners take these jobs, we should train more Americans to b...
https://github.com/jrihon/multi-bibs
https://raw.githubusercontent.com/jrihon/multi-bibs/main/chapters/01_chapter/discussion.typ
typst
MIT License
#import "../../lib/multi-bib.typ": * #import "bib_01_chapter.typ": biblio == Conclusion #lorem(20)
https://github.com/liuguangxi/suiji
https://raw.githubusercontent.com/liuguangxi/suiji/main/tests/test-normal-f.typ
typst
MIT License
#set document(date: none) #import "/src/lib.typ": * #let print-arr(arr) = { if type(arr) != array { [#raw(str(arr) + " ")] } else { [#raw(arr.map(it => str(it)).join(" "))] } } #{ let rng = gen-rng-f(42) let arr = () (rng, arr) = normal-f(rng) raw(repr(arr)); parbreak() ...
https://github.com/albanie/typst2mathjax
https://raw.githubusercontent.com/albanie/typst2mathjax/main/README.md
markdown
# Typst2MathJax A simple [streamlit](https://streamlit.io/) app that converts [typst](https://typst.app/docs) to [mathjax](https://www.mathjax.org/). ## Use the app Web app available [here](https://albanie-typst2mathjax-main-dgpnp0.streamlit.app/). You can also run the app locally via: ```bash streamlit run main.p...
https://github.com/ns-shop/ns-shop-typst
https://raw.githubusercontent.com/ns-shop/ns-shop-typst/main/readme.md
markdown
# NS Shop Report --- ## Bibliography - [Hayagriva](https://github.com/typst/hayagriva/blob/main/docs/file-format.md) ## Commands - Install packages: `yarn` - Watching for exporting PDF: `yarn watch` - Update latest Typst: `yarn tupdate`
https://github.com/pride7/Typst-callout
https://raw.githubusercontent.com/pride7/Typst-callout/main/example/example.typ
typst
#import "../callout.typ": callout #set heading(numbering: "1") #set text(font:"LXGW WenKai") #align( center )[ #text(size: 2em)[Test for Callout] ] = Basic Callout #callout( title: [笔记] )[ 有一伟大的男子站在我面前,美丽,慈祥,遍身有大光辉,然而我知道他是魔鬼。 ] #callout( title:[警告], type:"warning" )[ #lorem(20) ] #callout( title:[...
https://github.com/Myriad-Dreamin/tinymist
https://raw.githubusercontent.com/Myriad-Dreamin/tinymist/main/syntaxes/textmate/tests/unit/basic/control-flow-if-content.typ
typst
Apache License 2.0
#if 1 #if [] 1 #if [] else [] 1 #if 1 [] else [] 1 #if {} [] else [] #1 #if [] [] else [] [] #if () [] else [] # a #if () [] else [] 1 #if () [] else [] [] #if () [] else [] { #if () [] else [] 1 # if () [] else [] 1 A#if false {} else thing
https://github.com/Shuenhoy/modern-zju-thesis
https://raw.githubusercontent.com/Shuenhoy/modern-zju-thesis/master/utils/fonts.typ
typst
MIT License
#let 字号 = ( 初号: 42pt, 小初: 36pt, 一号: 26pt, 小一: 24pt, 二号: 22pt, 小二: 18pt, 三号: 16pt, 小三: 15pt, 四号: 14pt, 中四: 13pt, 小四: 12pt, 五号: 10.5pt, 小五: 9pt, 六号: 7.5pt, 小六: 6.5pt, 七号: 5.5pt, 小七: 5pt, ) #let 字体 = ( 宋体: ("Times New Roman", "SimSun"), 黑体: ("Arial", "SimHei"), // 楷体 楷体: ("Times...
https://github.com/txpipe-shop/sundae-swap
https://raw.githubusercontent.com/txpipe-shop/sundae-swap/main/src/templates/report.typ
typst
// severity colors #let critical = rgb("#EB6F92") #let major = rgb("#EA9A97") #let minor = rgb("#F6C177") #let info = rgb("#e0def4") // status colors #let resolved = rgb("#73D480") #let acknowledged = rgb("#F1A03A") #let identified = rgb("#ED706B") // other colors #let table_header = rgb("#E5E5E5") // table cells #l...
https://github.com/curvenote-templates/ncssm
https://raw.githubusercontent.com/curvenote-templates/ncssm/main/README.md
markdown
MIT License
# The Morganton Scientific A typst template for NCSSM Morganton Scientific journal using MyST Markdown. ![](thumbnail.png)
https://github.com/Lucas-Wye/tech-note
https://raw.githubusercontent.com/Lucas-Wye/tech-note/main/src/Python.typ
typst
= Python #label("python") - Python 是一种解释型、面向对象、动态数据类型的高级程序设计语言。 - Python 由 <NAME> 于 1989 年底发明,第一个公开发行版发行于 1991 年。 像 Perl 语言一样, Python 源代码同样遵循 GPL(GNU General Public License) 协议。 == Install #label("install") 从#link("https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/")[清华镜像源]下载对应平台的 anaconda/miniconda 安装即可。 == ...
https://github.com/ukihot/igonna
https://raw.githubusercontent.com/ukihot/igonna/main/articles/shell-work/cui.typ
typst
#import "@preview/colorful-boxes:1.2.0": * == コンソール コンソールとは、OSを搭載したコンピュータに接続されたディスプレイおよびキーボードである。 コンピュータとの対話を可能にするための物理ハードウェア、入出力システムともいえる。 「文字だけの黒い画面」というキーワードで一般に想起される画面は、仮想コンソールである。 これは入出力を仮想的な空間に提供するものであり、この環境はCUI(Character-based User Interface)ともいう。 CUIは、我々が日々利用するGUI(Graphical User Interface)と対をなす存在であり、...
https://github.com/maantjemol/Aantekeningen-Jaar-2
https://raw.githubusercontent.com/maantjemol/Aantekeningen-Jaar-2/main/Machine%20Learning/mock-exam.typ
typst
= Mock exam: == Question 1: Which of the following is NOT a type of machine learning task according to "samenvatting.pdf"? *a)* Predictive tasks *b)* Descriptive tasks *c)* Analytical tasks *d)* Supervised learning == Question 2: What is the primary goal of probabilistic models in machine learning, as described i...
https://github.com/Myriad-Dreamin/tinymist
https://raw.githubusercontent.com/Myriad-Dreamin/tinymist/main/crates/tinymist-query/src/fixtures/completion/complete_purely_label.typ
typst
Apache License 2.0
// contains:test // compile:true #set heading(numbering: "1.1") = H <t> == H2 <test> aba aba #<t> /* range -3..-2 */
https://github.com/eduardz1/Bachelor-Thesis
https://raw.githubusercontent.com/eduardz1/Bachelor-Thesis/main/chapters/overview-of-the-greenhouse.typ
typst
#import "../utils/common.typ": * = Overview of the Greenhouse The specific greenhouse we're working on has the following characteristics: - It is divided into two shelves - Each shelf is composed of two groups of plants - Each group of plants is watered by a single water pump - Each group of plants is composed of two...
https://github.com/typst-community/valkyrie
https://raw.githubusercontent.com/typst-community/valkyrie/main/tests/types/tuple/test.typ
typst
Other
#import "/src/lib.typ" as z #set page(height: 1cm, width: 1cm) #{ let test-tuple = ( "123", "<EMAIL>", 1.1 ) z.parse( test-tuple, z.tuple( z.string(), z.email(), z.floating-point(), ), ) }
https://github.com/typst/packages
https://raw.githubusercontent.com/typst/packages/main/packages/preview/bytefield/0.0.4/lib/asserts.typ
typst
Apache License 2.0
#import "@preview/oxifmt:0.2.0": strfmt // fail if field is not a bf-field #let assert_bf-field(field) = { assert.eq(type(field),dictionary, message: strfmt("expected field to be a dictionary, found {}", type(field))); let bf-type = field.at("bf-type", default: none) assert.eq(bf-type, "bf-field", message: strfm...
https://github.com/polarkac/MTG-Stories
https://raw.githubusercontent.com/polarkac/MTG-Stories/master/stories/034%20-%20Dominaria/011_Return%20to%20Dominaria%3A%20Episode%2011.typ
typst
#import "@local/mtgstory:0.2.0": conf #show: doc => conf( "Return to Dominaria: Episode 11", set_name: "Dominaria", story_date: datetime(day: 23, month: 05, year: 2018), author: "<NAME>", doc ) The sun was close to setting when the #emph[Weatherlight] left the ocean and crossed over the coast into...
https://github.com/vEnhance/1802
https://raw.githubusercontent.com/vEnhance/1802/main/r12.typ
typst
MIT License
#import "@local/evan:1.0.0":* #show: evan.with( title: [Notes for 18.02 Recitation 12], subtitle: [18.02 Recitation MW9], author: "<NAME>", date: [16 October 2024], ) #quote(attribution: [<NAME> in the author notes for the Mystery Hunt puzzle \ #link("https://puzzles.mit.edu/2023/puzzlefactory.place/puzzles...
https://github.com/voXrey/cours-informatique
https://raw.githubusercontent.com/voXrey/cours-informatique/main/typst/17-algorithmes-de-recherche.typ
typst
#import "@preview/codly:0.2.1": * #show: codly-init.with() #codly() #set text(font: "Roboto Serif") = Problèmes de Recherche et d’optimisation <problèmes-de-recherche-et-doptimisation> == I - Problèmes de Recherche <i---problèmes-de-recherche> On dispose d’un ensemble S de "candidats" et on souhaite savoir si l’un d’...
https://github.com/Jollywatt/typst-wordometer
https://raw.githubusercontent.com/Jollywatt/typst-wordometer/master/tests/all-tests.typ
typst
MIT License
// Use this to preview tests in real time // typst watch --root . tests/all-tests.typ #include "word-count-of/test.typ" #include "word-count/test.typ" #include "word-count-callback/test.typ" #include "word-edge-cases/test.typ" #include "sentences/test.typ" #include "where-selectors/test.typ" #include "text-extraction/...
https://github.com/gdahia/typst-ams-fullpage-template
https://raw.githubusercontent.com/gdahia/typst-ams-fullpage-template/main/example.typ
typst
#import "template.typ": * #let log = $upright(log)$ #let exp = $upright(exp)$ #let max = $upright(max)$ #let Gamma = $upright(Gamma)$ #show: ams-article.with( title: "On discrete Fourier analysis and applications", short-title: "On discrete Fourier analysis and applications", authors: ( ( name: "<N...
https://github.com/ymgyt/techbook
https://raw.githubusercontent.com/ymgyt/techbook/master/programmings/js/typescript/specification/any.md
markdown
# any type * 何でもassignできる ```typescript let x: any; x = 1; // OK x = "string"; // OK x = { name: "オブジェクト" }; // OK ``` ## implicit any ```typescript function ok(arg) { } ``` * `arg`の型は`any`になる * tsconfig.jsonの`noImplicitAny: true`を指定すると、compile時にerrorにできる
https://github.com/typst/packages
https://raw.githubusercontent.com/typst/packages/main/packages/preview/unichar/0.1.0/ucd/block-1F700.typ
typst
Apache License 2.0
#let data = ( ("ALCHEMICAL SYMBOL FOR QUINTESSENCE", "So", 0), ("ALCHEMICAL SYMBOL FOR AIR", "So", 0), ("ALCHEMICAL SYMBOL FOR FIRE", "So", 0), ("ALCHEMICAL SYMBOL FOR EARTH", "So", 0), ("ALCHEMICAL SYMBOL FOR WATER", "So", 0), ("ALCHEMICAL SYMBOL FOR AQUAFORTIS", "So", 0), ("ALCHEMICAL SYMBOL FOR AQUA RE...
https://github.com/Myriad-Dreamin/typst.ts
https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/text/features_08.typ
typst
Apache License 2.0
#import "/contrib/templates/std-tests/preset.typ": * #show: test-page // // // Error: 26-31 expected integer or none, found boolean // #set text(stylistic-set: false)
https://github.com/ivaquero/scibook
https://raw.githubusercontent.com/ivaquero/scibook/main/0.1.0/scibook.typ
typst
// multi-languages #import "@preview/linguify:0.4.1": * // indent #import "@preview/indenta:0.0.3": fix-indent // header-footer #import "@preview/hydra:0.5.1": * // chemistry #import "@preview/whalogen:0.2.0": ce // physics #import "@preview/physica:0.9.2": * // theorems #import "@preview/ctheorems:1.1.3": * // banners...
https://github.com/Loosetooth/next-rehype-typst-mdx
https://raw.githubusercontent.com/Loosetooth/next-rehype-typst-mdx/main/README.md
markdown
A small test to get markdown formulas working using [Typst](https://typst.app) in [MDX](https://mdxjs.com/). This uses Next.js and [rehype-typst](https://github.com/Myriad-Dreamin/typst.ts/tree/main/projects/rehype-typst) under the hood. --- This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create...
https://github.com/Myriad-Dreamin/typst.ts
https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/visualize/polygon_01.typ
typst
Apache License 2.0
#import "/contrib/templates/std-tests/preset.typ": * #show: test-page // // // Error: 10-17 point array must contain exactly two entries // #polygon((50pt,))
https://github.com/typst/packages
https://raw.githubusercontent.com/typst/packages/main/packages/preview/titleize/0.1.0/README.md
markdown
Apache License 2.0
# titleize Small wrapper around the [titlecase](https://crates.io/crates/titlecase) library to convert text to title case. It follows the [rules defined by <NAME>](https://daringfireball.net/2008/05/title_case). For more details, refer to the library. ```typst #import "@preview/titleize:0.1.0": titlecase #set page(w...
https://github.com/Myriad-Dreamin/tinymist
https://raw.githubusercontent.com/Myriad-Dreamin/tinymist/main/syntaxes/textmate/tests/unit/basic/let_fn.typ
typst
Apache License 2.0
#let f() = 1; #let f(a) = 1; #let f(a, b: none) = 1; #let f(a, (b, c)) = 1; #let f(a, (b, c: d)) = 1; #let f((a, b)) = 1; #let f((a, (c: (b: e)))) = 1; #let f((a, ..)) = 1; #let f((.., a)) = 1;
https://github.com/MattiaOldani/Informatica-Teorica
https://raw.githubusercontent.com/MattiaOldani/Informatica-Teorica/master/capitoli/calcolabilità/08_richiami_matematici.typ
typst
#import "../alias.typ": * #import "@preview/lemmify:0.1.5": * #let ( theorem, lemma, corollary, remark, proposition, example, proof, rules: thm-rules ) = default-theorems("thm-group", lang: "it") #show: thm-rules #show thm-selector("thm-group", subgroup: "theorem"): it => block( it, stroke: red + 1pt, i...
https://github.com/PeiPei233/typst-template
https://raw.githubusercontent.com/PeiPei233/typst-template/main/README.md
markdown
# typst-template My Typst Template
https://github.com/cran/tinytable
https://raw.githubusercontent.com/cran/tinytable/master/NEWS.md
markdown
# News ## 0.5.0 New: * `output="html_portable"` returns a portable HTML file, where `plot_tt()` encodes and embeds the images directly in the HTML code, rather than link to external images. Thanks to @J-Moravec for implementing this nice feature! * `format_tt()` gets a `math` argument to wrap cell content in $...$ m...
https://github.com/jijinbei/typst_template
https://raw.githubusercontent.com/jijinbei/typst_template/main/report/template.typ
typst
#import "@preview/showybox:2.0.1": showybox #let custom_outline() = locate(loc => { heading(numbering: none)[目次] let headings = query(heading, loc) let toc = () let _ = headings.remove(0) for h in headings { let padd = h.level * 1em - 1em let page = counter(page).at(h.location()) let ch = ...
https://github.com/Servostar/dhbw-abb-typst-template
https://raw.githubusercontent.com/Servostar/dhbw-abb-typst-template/main/template/abstract.typ
typst
MIT License
// English summary "abstract" is content of this block: #let abstract = [ #lorem(100) ] // Other languages abstract translation is content of this block: // NOTE: An abstract is required in case the thesis is not written primarily in english // if writing in english (and the language is set to "en") this can ...
https://github.com/lvignoli/typst-action-example
https://raw.githubusercontent.com/lvignoli/typst-action-example/main/README.md
markdown
# Example using [typst-action](https://github.com/marketplace/actions/github-action-for-typst) Using the action at [`.github/workflows/build.yml`](.github/workflows/build.yml), file `main.typ` is compiled using [lvignoli/typst-action](https://github.com/marketplace/actions/github-action-for-typst) to a PDF, which is u...
https://github.com/htlwienwest/da-vorlage-typst
https://raw.githubusercontent.com/htlwienwest/da-vorlage-typst/main/lib/pages/deckblatt.typ
typst
MIT License
#import "../assertions.typ": * #import "../settings.typ" as settings #let deckblatt(title, abteilung, schuljahr, teilnehmer) = { set page(margin: (left: 3cm, bottom: 3cm, top: 1cm)) let gutter = 3mm let img_height = 3.81cm let headline = grid( columns: (1fr, auto, auto), align: (right), column...
https://github.com/Quaternijkon/Typst_USTC_CS
https://raw.githubusercontent.com/Quaternijkon/Typst_USTC_CS/main/mycontent.typ
typst
#import "config.typ": * #outline-slide() //第三步 //从这里开始
https://github.com/chilingg/kaiji
https://raw.githubusercontent.com/chilingg/kaiji/main/part1/chapter2.typ
typst
Other
#import "../template/main.typ": main_body, font_size_list, parenthese_numbers, sans_font_cfg, thin_line, font_cfg #import "@preview/tablex:0.0.6": gridx, tablex, rowspanx, colspanx, hlinex, vlinex, cellx #show: body => main_body(body) #columns(2)[ // 612 漢字活字書体の源流 = 汉字活字字体的源流 // ■漢字の構成は建築的である。その一書体は秩序ある体系美を備えている。それを...
https://github.com/vEnhance/1802
https://raw.githubusercontent.com/vEnhance/1802/main/src/sol-foxtrot.typ
typst
MIT License
#import "@local/evan:1.0.0":* = Solutions to Part Foxtrot == Solution to @exer-opt-lm-sin We want to minimize the function $ f (x , y) = x + y $ subject to the constraint $ g (x , y) = sin (x) + sin (y) = 1 $ and $x,y >= 0$. 0. The region $cal(R)$ has boundary whenever $x = 0$ or $y = 0$. It also has limit cases ...
https://github.com/SWATEngineering/Docs
https://raw.githubusercontent.com/SWATEngineering/Docs/main/src/2_RTB/PianoDiProgetto/sections/ConsuntivoSprint/QuartoSprint.typ
typst
MIT License
#import "../../const.typ": Re_cost, Am_cost, An_cost, Ve_cost, Pr_cost, Pt_cost #import "../../functions.typ": rendicontazioneOreAPosteriori, rendicontazioneCostiAPosteriori, glossary == Quarto #glossary[sprint] *Inizio*: Venerdì 15/12/2023 *Fine*: Giovedì 21/12/2023 #rendicontazioneOreAPosteriori(sprintNumber: "...
https://github.com/Mc-Zen/quill
https://raw.githubusercontent.com/Mc-Zen/quill/main/docs/images/logo.typ
typst
MIT License
#import "/src/quill.typ": * #set page(width: auto, height: auto, margin: 1pt) // #quantum-circuit( // 1, gate("Quantum"), control(1),2, [\ ], // 2, ctrl(), gate("Circui"), gate($T$) // ) // #v(2cm) // #quantum-circuit( // // background: blue.lighten(90%), // row-spacing: 8pt, // lstick($|psi〉$), gategroup...
https://github.com/ymgyt/techbook
https://raw.githubusercontent.com/ymgyt/techbook/master/programmings/js/typescript/utility_types.md
markdown
# Utility Types tsが提供してくれているbuiltin型。 https://www.typescriptlang.org/docs/handbook/utility-types.html ## `Partial<T>` `T`のpropertiesをすべてoptionalにした型を返す。 ## `Record<Keys, Type>` * HashMap型をつくれる ```typescript let x: Record<string,number>; x = {f1: 1, f2: 2}; ```
https://github.com/0x1B05/nju_os
https://raw.githubusercontent.com/0x1B05/nju_os/main/am_notes/template.typ
typst
#import "@preview/codelst:2.0.0": sourcecode, codelst #import "@preview/showybox:2.0.1": showybox #import "@preview/ctheorems:1.1.0": * #import "@preview/mitex:0.2.2": * #import "resource.typ": * /* 本模板修改自 jsk-lecnotes + 添加中文环境 + 修改封面布局 + 添加必要字体 */ #let template( // 笔记标题 title: "Lecture Notes Title"...
https://github.com/DJmouton/Enseignement
https://raw.githubusercontent.com/DJmouton/Enseignement/main/SNT/Réseaux sociaux/Cours%20cyberviolence.typ
typst
#import "/Templates/layouts.typ": SNT, titre, sous_titre #import "/Templates/utils.typ": cadre, pointillets #import "@preview/cetz:0.2.2" #show: doc => SNT(doc) #sous_titre[SNT - Réseaux Sociaux - Partie 2] #titre[Cyberviolence] #cadre(titre: "L'essentiel")[ Sur le Web, la violence prend des formes variées : -...
https://github.com/iniyanijoseph/Fair-Division
https://raw.githubusercontent.com/iniyanijoseph/Fair-Division/main/1_Introduction/1_Introduction.typ
typst
#import "@preview/touying:0.4.2": * #import emoji: * #import "@preview/ctheorems:1.1.2": * #show: thmrules #let theorem = thmbox("theorem", "Theorem", fill: rgb("#eeffee")) #let lemma = thmbox("lemma", "Lemma", fill: rgb("#eeffee")) #let corollary = thmplain( "corollary", "Corollary", base: "theorem", titlefmt...
https://github.com/lucifer1004/leetcode.typ
https://raw.githubusercontent.com/lucifer1004/leetcode.typ/main/solutions/s0010.typ
typst
#import "../helpers.typ": * #let regular-expression-matching-ref(s, p) = { let s = s.clusters() let p = p.clusters() let m = s.len() let n = p.len() let dp = fill(fill(false, n + 1), m + 1) dp.at(0).at(0) = true for i in range(0, m + 1) { for j in range(1, n + 1) { if p.at(j - 1) != "*" { ...
https://github.com/Myriad-Dreamin/typst.ts
https://raw.githubusercontent.com/Myriad-Dreamin/typst.ts/main/fuzzers/corpora/meta/footnote-container_00.typ
typst
Apache License 2.0
#import "/contrib/templates/std-tests/preset.typ": * #show: test-page // Test footnote in caption. Read the docs #footnote[https://typst.app/docs]! #figure( image("/assets/files/graph.png", width: 70%), caption: [ A graph #footnote[A _graph_ is a structure with nodes and edges.] ] ) More #footnote[just for ...
https://github.com/piepert/philodidaktik-hro-phf-ifp
https://raw.githubusercontent.com/piepert/philodidaktik-hro-phf-ifp/main/src/parts/ephid/grundpositionen/historische_standpunkte.typ
typst
Other
#import "/src/template.typ": * == Historische Standpunkte zur Philosophiedidaktik // Es folgen einige historische Grundpositionen, die jeweils zwei Dinge derjenigen Vertreter charakterisieren sollen: zuerst den Philosphiebegriff und darauf folgend eine didaktische Grundhaltung. Die didaktische Grundhaltung kann ein t...
https://github.com/ChHecker/unify
https://raw.githubusercontent.com/ChHecker/unify/main/lib.typ
typst
MIT License
#let _re-num = regex("^(-?\d+(\.|,)?\d*)?(((\+(\d+(\.|,)?\d*)-(\d+(\.|,)?\d*)))|((((\+-)|(-\+))(\d+(\.|,)?\d*))))?(e([-\+]?\d+))?$") #let _unicode-exponents = (("\u2070", "0"), ("\u00B9", "1"), ("\u00B2", "2"), ("\u00B3", "3"), ("\u2074", "4"), ("\u2075", "5"), ("\u2076", "6"), ("\u2077", "7"), ("\u2078", "8"), ("\u207...
https://github.com/alberto-lazari/cns-report
https://raw.githubusercontent.com/alberto-lazari/cns-report/main/test.typ
typst
= Test results <test_results> Since running tests on different applications require to write a distinct inspector for each application, our tests have been run on the "postepay" app. Then we showed that it is possible to automate the testing of applications which require a login by writing an inspector for the "discor...
https://github.com/0x1B05/nju_os
https://raw.githubusercontent.com/0x1B05/nju_os/main/lecture_notes/content/10_并发控制-同步2.typ
typst
#import "../template.typ": * #pagebreak() = 并发控制: 同步 (2) == 信号量 === 复习:生产者-消费者、互斥、条件变量 打印 “合法” 的括号序列 (())() - 左括号对应 push - 右括号对应 pop ```c #define CAN_PRODUCE (count < n) #define CAN_CONSUME (count > 0) wait_until(CAN_PRODUCE) with (mutex) { count++; printf("("); } wait_until(CAN_CONSUME) with (mutex) { cou...
https://github.com/TypstApp-team/typst
https://raw.githubusercontent.com/TypstApp-team/typst/master/tests/typ/meta/footnote-invariant.typ
typst
Apache License 2.0
// Ensure that a footnote and the first line of its entry // always end up on the same page. --- #set page(height: 120pt) #lorem(13) There #footnote(lorem(20))
https://github.com/jw2476/cslog-new
https://raw.githubusercontent.com/jw2476/cslog-new/master/main.typ
typst
#set text(font: "JetBrains Mono", size: 10pt) #outline(indent: 2em) = Analysis = Problem and Stakeholders == Outline My project is an application that helps with scheduling and productivity. You input tasks you need to do, as well as the time they take and the time they must be done by, and the app will make a sched...
https://github.com/RandomcodeDev/FalseKing-Design
https://raw.githubusercontent.com/RandomcodeDev/FalseKing-Design/main/game/visuals.typ
typst
= Visuals Due to limited resources and artistic talent on my part, the game will use low-poly models and simple textures. There will be a particle system, and the elemental powers will be given extra attention.
https://github.com/mem-courses/calculus
https://raw.githubusercontent.com/mem-courses/calculus/main/recourses-2/mid-term-2023-sim-lxj.typ
typst
#import "../template.typ": * #show: project.with( course: "Calculus II", course_fullname: "Calculus (A) II", course_code: "821T0160", title: "Mid Term 2023: 卢兴江模拟题", authors: (( name: "memset0", email: "https://mem.ac/", id: [_<EMAIL>_], ),), semester: "Spring-Summer 2024", date: "April 10, 2024", ) #v(...
https://github.com/explicit-refinement/ert-lean-together
https://raw.githubusercontent.com/explicit-refinement/ert-lean-together/main/slides.typ
typst
BSD Zero Clause License
#import "@preview/polylux:0.3.1": * #import "@preview/curryst:0.1.0": * #import themes.simple: * #show: simple-theme #let ert = $λ_sans("ert")$; #let stlc = $λ_sans("stlc")$; #let app = $med$; #let llet = $sans("let")$; #let case = $sans("case")$; #title-slide[ = Explicit Refinement Types #v(2em) <NAME> #h(1e...
https://github.com/EstebanMunoz/typst-template-evaluacion
https://raw.githubusercontent.com/EstebanMunoz/typst-template-evaluacion/main/conf.typ
typst
MIT No Attribution
#import "@preview/codly:1.0.0": * #import "@preview/subpar:0.1.1" // Template #let conf( title: none, subject: none, students: (), teachers: (), auxiliaries: (), assistants: (), lab-assistants: (), due-date: none, university: none, faculty: none, department: none, logo: none, course-code: no...
https://github.com/francescoo22/LCD-exercises
https://raw.githubusercontent.com/francescoo22/LCD-exercises/main/src/lemmas.typ
typst
#import "common.typ": * #import "rules.typ": * == Lemmas 0. $forall P in CCS_seq . P ended => e(P) ->^(tau*) P_"temp" ntrans P' and P' ended$ 1. $fi forall P in CCS_seq . fi P atrans P' then e(P) wnu awtrans P'' wnu and P' cr (P'' wnu) \ then forall P in CCS_seq . fi P atrans P' "and" Q approx e(P) then Q wnu awtran...
https://github.com/k4zuy/Typst-Template-HTW
https://raw.githubusercontent.com/k4zuy/Typst-Template-HTW/main/style/style.typ
typst
#import "../common/acronyms.typ": usedAcronyms, acronyms //#import "../common/acronyms.typ": * #import "@preview/hydra:0.2.0": hydra #let style( title: "", titleGerman: "", degree: "", program: "", supervisor: "", advisors: (), author: "", studentNumber: "", startDate: none, submissionDate: none, ...
https://github.com/noahjutz/AD
https://raw.githubusercontent.com/noahjutz/AD/main/uebungen/2/psi_convergence.typ
typst
#import "@preview/cetz:0.2.2" #cetz.canvas(length: 100%, { import cetz.draw: * import cetz.plot plot.plot( axis-style: "school-book", x-tick-step: none, x-ticks: (1,), y-tick-step: none, y-ticks: (-1, 1,), y-min: -1, y-max: 1, x-min: -1, x-label: $n$, y-label: $psi^n$, ...
https://github.com/floriandejonckheere/utu-thesis
https://raw.githubusercontent.com/floriandejonckheere/utu-thesis/master/thesis/chapters/09-conclusion.typ
typst
#import "@preview/acrostiche:0.3.1": * = Conclusion <conclusion> This thesis discussed the problem of (semi-)automated modularization of monolith applications, with a focus on the automated identification of microservice candidates. In the first part of the thesis, we investigated the modular monolith architecture, a...
https://github.com/ClazyChen/Table-Tennis-Rankings
https://raw.githubusercontent.com/ClazyChen/Table-Tennis-Rankings/main/history/2006/WS-02.typ
typst
#set text(font: ("Courier New", "NSimSun")) #figure( caption: "Women's Singles (1 - 32)", table( columns: 4, [Ranking], [Player], [Country/Region], [Rating], [1], [ZHANG Yining], [CHN], [2983], [2], [GUO Yue], [CHN], [2698], [3], [GUO Yan], [CHN], [2641], [4], [NIU Jianfeng], ...
https://github.com/lyzynec/hys-or-kys
https://raw.githubusercontent.com/lyzynec/hys-or-kys/main/03/main.typ
typst
#import "../lib.typ": * #knowledge[ #question(name: [Characterize the (max,+) algebra as a set: what are its elements?])[] #question(name: [Define the two key operations of (max,+) algebra. Do it both for scalars and for matrices.])[] #question(name: [Write down a general (max,+) linear (also MPL) ...
https://github.com/EricWay1024/Scientific-Computation-Notes
https://raw.githubusercontent.com/EricWay1024/Scientific-Computation-Notes/master/README.md
markdown
# Notes for MATH3036 _Scientific Computation and Numerical Analysis_ This document serves as an unofficial companion for the module MATH3036, _Scientific Computation and Numerical Analysis_, at the University of Nottingham. The material presented here is based on the available lecture slides from the academic year 20...
https://github.com/TypstApp-team/typst
https://raw.githubusercontent.com/TypstApp-team/typst/master/tests/typ/layout/par.typ
typst
Apache License 2.0
// Test configuring paragraph properties. --- // Test ragged-left. #set align(right) To the right! Where the sunlight peeks behind the mountain. --- // Test changing leading and spacing. #set block(spacing: 1em) #set par(leading: 2pt) But, soft! what light through yonder window breaks? It is the east, and Juliet is ...
https://github.com/Mouwrice/thesis-typst
https://raw.githubusercontent.com/Mouwrice/thesis-typst/main/measurements/measurement_methods.typ
typst
#import "../lib.typ": * == Methods To be able to get indications of the accuracy of MediaPipe Pose, a baseline, or base "truth", needed to be established. Using the aforementioned Qualisys MoCap setup at ASIL we can track marker locations at sub-millimetre accuracy, which are then taken as ground truth. === Measurem...
https://github.com/Myriad-Dreamin/shiroa
https://raw.githubusercontent.com/Myriad-Dreamin/shiroa/main/packages/shiroa/templates.typ
typst
Apache License 2.0
#import "template-link.typ": * #import "template-theme.typ": *
https://github.com/SnowManKeepsOnForgeting/NoteofModernControlTheory
https://raw.githubusercontent.com/SnowManKeepsOnForgeting/NoteofModernControlTheory/main/Homework/Homework_2.typ
typst
#import "@preview/physica:0.9.3": * #import "@preview/i-figured:0.2.4" + Given differential equations of system,try to write down their state space representation. (1) $accent(y,dot.triple) + accent(y,dot.double) + 4 accent(y,dot) + 5 y = 3 u$ (2) $2 accent(y,dot.triple) + 3 accent(y,dot) = accent(u,dot.doubl...
https://github.com/Myriad-Dreamin/tinymist
https://raw.githubusercontent.com/Myriad-Dreamin/tinymist/main/syntaxes/textmate/tests/unit/basic/raw2.typ
typst
Apache License 2.0
````typ #(let a ```` == A - a - b ```typ #(let a ```
https://github.com/ekmanib/curriculum-vitae
https://raw.githubusercontent.com/ekmanib/curriculum-vitae/main/main.typ
typst
#set page( fill: rgb("#EFE5DC") ) #set text( font: "Libre Franklin", size: 12pt ) #include("./docs/header.typ") #line(length: 100%, stroke: 0.5pt + rgb("a60707")) #v(10pt) #grid( columns: (3fr, 1fr), rows: (auto, auto), gutter: 10pt, row-gutter: 20pt, include("./docs/education.typ"),...
https://github.com/7sDream/fonts-and-layout-zhCN
https://raw.githubusercontent.com/7sDream/fonts-and-layout-zhCN/master/template/theme.typ
typst
Other
#import "@preview/book:0.2.5": target #let theme-target = if target.contains("-") { target.split("-").at(1) } else if "theme" in sys.inputs { sys.inputs.theme } else { "light" } #let themes = ( light: ( kind: "light", bg: white, main: color.black, link: color.rgb("#2a7ae2"), note: color.rg...
https://github.com/max-niederman/CS250
https://raw.githubusercontent.com/max-niederman/CS250/main/hw/5.typ
typst
#import "../lib.typ": * #show: homework.with(title: "CS 250 Homework #5") #set math.vec(delim: "[") #set math.mat(delim: "[") = Sets == 1 We'll first convert the sets to a normal form for comparison: + ${5}$ + ${-24, -12, -8, -6, -4, -3, -2, -1, 1, 2, 3, 4, 6, 8, 12, 24}$ + ${1, 2, 3, 4}$ + ${5, 8, 13}$ + ${1, 2,...