Technical notes in Mathematics, Machine Learning, and Computer Science written in Typst.
This repository contains a collection of well-structured academic notes covering various topics in mathematics, machine learning, and related fields. All notes are written using Typst, a modern markup-based typesetting system.
Note/
├── notes/ # All note content
│ ├── Mathematics/
│ │ ├── Statistics/ # Statistics notes
│ │ │ └── Likelihood.typ
│ │ └── Analysis/ # Mathematical analysis notes
│ │ └── Cauchy-Schwarz_Inequality.typ
│ └── Machine_Learning/
│ └── Supervised/ # Supervised learning algorithms
│ ├── Naive_Bayes.typ
│ └── K-Nearest_Neighbors.typ
│
├── templates/ # Typst templates and styling
│ └── lib.typ # Main template library
│
├── guides/ # Writing and style guides
│ └── Expression.typ # Mathematical writing guide
│
├── assets/ # Shared resources
│ ├── images/
│ ├── diagrams/
│ └── data/
│
├── build/ # Compiled PDF outputs (git-ignored)
│
├── Makefile # Build automation
├── .gitignore # Git ignore patterns
└── README.md # This file
-
Typst - Install via:
# macOS brew install typst # Linux cargo install --git https://github.com/typst/typst --locked typst-cli # Or download from https://github.com/typst/typst/releases
make allmake mathematics # Build only Mathematics notes
make ml # Build only Machine Learning notes
make guides # Build only guidesmake watch # Auto-rebuild on changes (default file)
# Or watch a specific file:
typst watch notes/Mathematics/Statistics/Likelihood.typ build/output.pdfmake cleanmake help- Choose the appropriate directory under
notes/ - Create a new
.typfile - Use the template structure:
#import "/templates/lib.typ": EE, LL, RR, conf, definition, note, theorem
// Set Metadata
#set document(
title: "Your Note Title",
author: "Abel Zhan",
)
// Apply Template
#show: conf
= Your First Section
Content goes here...theorem(title: "...", body)- Theorem boxesdefinition(title: "...", body)- Definition boxesnote(body)- Note boxes for important remarksEE- Expected value symbolLL- Loss function symbolRR- Real numbers symbol
Refer to guides/Expression.typ for a comprehensive guide on writing mathematical expressions in English with proper academic conventions.
- Likelihood: Maximum Likelihood Estimation (MLE), log-likelihood, Fisher Information, model comparison
- Cauchy-Schwarz Inequality: Proof and geometric interpretation
- Naive Bayes: Bayes decision theory, conditional independence, parameter estimation
- K-Nearest Neighbors: 1-NN algorithm, Cover-Hart bounds, asymptotic error analysis
When adding new notes:
- Place files in the appropriate subject directory
- Use the standard template from
templates/lib.typ - Follow the naming convention:
Topic_Name.typ(use underscores for spaces) - Ensure notes compile successfully with
typst compile - Update this README if adding new categories
Personal academic notes by Abel Zhan.
For questions or suggestions, please open an issue in this repository.