Skip to content

Instantly share code, notes, and snippets.

View chengluyu's full-sized avatar
😁
Working on a new project...

Luyu Cheng chengluyu

😁
Working on a new project...
View GitHub Profile
-- Lecture 4
-- Hylomophism
-- Definitions from previous lectures.
data Tree a = Empty | Fork (Tree a) a (Tree a)
-- We can construct a tree form a list.
@chengluyu
chengluyu / parody.typ
Created June 20, 2023 15:01
Include chapter numbers in numbering figures and tables.
#let figureCounters = state("thm",
(
"counters": ("heading": ()),
"latest": ()
)
)
#let figureInstances = state("instances", (:))
#let createFigureRenderer(identifier, base, base_level, render) = {