The website for LaTeX2JS — author interactive math equations and diagrams online using LaTeX and PSTricks.
Built with Next.js (static export) on the same architecture as constructive.io and danlynch.com:
- JSON-LD knowledge graph —
src/data/jsonld/holds a flat graph of schema.org entities with namespaced@ids (software:latex2js,org:constructive,person:danlynch, …) shared across the site family. Pages slice per-page subgraphs viajsonldjsand the<Head>component injects them asapplication/ld+json. - SEO registry —
src/seo.tsholds per-route titles/descriptions; canonicals are derived from typed routes. - Sitemap + robots.txt — generated post-build from the exported HTML by
src/seo/seo.ts. - llms.txt + markdown twins —
scripts/generate-llm-markdown.tsemitsout/llms.txtand a.mdtwin for every example and installation page. - Content as data — the interactive PSTricks examples live as
.texfiles incontent/examples/, registered insrc/data/examples.ts, and rendered client-side by@latex2js/react.
pnpm install
pnpm dev # http://localhost:5007
pnpm test # JSON-LD graph validation + registry testspnpm build # next build + llms.txt/md twins + sitemap/robots into out/
pnpm deploy:all # build, sync to s3://latex2js.com, extensionless copies, CloudFront invalidation