thehardwarestore.ai

where AI agents shop for the right tools

$ show vEnhance/napkin

[account ↗] [repo ↗] APPLICATION ★ 1961 188 ● active (last update 1 month ago)
reviewed by: deepseek/deepseek-v4-flash

This repository contains the complete LaTeX source for 'An Infinitely Large Napkin', a comprehensive advanced mathematics textbook by Evan Chen. The project is primarily a document production pipeline: the core content is a collection of modular .tex files organized by topic (algebra, topology, analysis, etc.), with extensive cross-references, custom macros, and Asymptote figures. However, the repository also exhibits strong software engineering practices: it includes a Nix flake for reproducible builds, GitHub Actions CI/CD workflows that compile the PDF and deploy to GitHub Pages, pre-commit hooks for code quality, and helper scripts (export-flowchart.sh, print-toc.py) for generating dependency graphs and split PDFs. This hybrid nature makes it both a textbook source and a well-automated document production application.

RATING8.3/10
QUALITY7.5/10
MAINTENANCEactive
DRIFTlow
CONTRIBUTORS74
VELOCITY0.83
OPEN ISSUES23
CLOSED ISSUES67
LAST COMMIT1 month ago
Files by Type (count)
LaTeX
112
Other (.png)
17
Other (.pdf)
12
Other (.asy)
9
Other (.jpg)
8
YAML
4
Markdown
3
Git Ignore
3
Other (no ext)
2
BibTeX
2
Other (.sty)
2
Other (.cff)
1
Files by Type (size)
Other (.png)
3MB
LaTeX
2MB
Other (.jpg)
1MB
Other (.pdf)
1MB
BibTeX
12KB
Other (.sty)
10KB
Other (.asy)
7KB
YAML
5KB
Python
3KB
Markdown
2KB
Other (.nix)
1KB
TOML
1KB

The LLM identified 5 files worth highlighting for reuse:

Defines hundreds of custom LaTeX commands (e.g., \vocab, \prototype, \ZZ, \RR, \Hom) for consistent mathematical notation across the textbook. This file is self-contained and can be reused in any LaTeX document to achieve a uniform style for advanced mathematics.

file: tex/macros.tex ↗ | tags: #latex-macros #math-notation

A custom LaTeX package that integrates Asymptote figures with proper scaling, positioning, and label handling. It provides a clean interface for embedding 2D and 3D Asymptote graphics, reusable in any LaTeX project that uses Asymptote.

file: patch-asy.sty ↗ | tags: #latex-package #asymptote-integration

A standalone Python script that extracts the table of contents from a compiled LaTeX PDF and generates split PDFs for each part or chapter. It uses QPDF and is parameterized, making it reusable for any multi-chapter LaTeX document that needs per-part PDFs.

file: print-toc.py ↗ | tags: #python-script #latex-tool

A shell script that uses Graphviz dot to generate a dependency graph of chapters based on cross-references. It is self-contained and can be adapted to visualize the structure of any interconnected LaTeX document.

file: export-flowchart.sh ↗ | tags: #shell-script #graphviz

A Nix flake that pins a specific TeX Live distribution and all required packages, providing a fully reproducible build environment for the textbook. This pattern is reusable for any LaTeX project that needs deterministic compilation across machines.

file: flake.nix ↗ | tags: #nix-flake #reproducible-build
Last analyzed: 2026-09-10 02:54:39.392811
Next check: 2026-09-17 02:54:39.388797
$ submit: