Skip to content

romeoahmed/latex-stress-test

Repository files navigation

LuaLaTeX QFT Stress-Test Benchmark

A comprehensive stress-test benchmark for LuaLaTeX (TeX Live 2026), using Standard Model quantum field theory as the narrative thread. Covers OpenType math fonts, Feynman diagram auto-layout, 3D plotting, Lua scripting, CJK–Latin mixed typesetting, and more.

中文版


Project Structure

.
├── main.tex                  # Document entry point
├── preamble.tex              # Preamble loader (thin wrapper)
├── preamble/
│   ├── layout.tex            #   Page layout · colours · chapter styles
│   ├── packages.tex          #   Math · physics · graphics · table packages
│   ├── theorems.tex          #   tcolorbox theorem environments
│   └── refs-macros.tex       #   hyperref · cleveref · bibliography · macros
├── chapters/
│   ├── ch01-symmetry.tex     #   Ch 1  Gauge Symmetries & Group Structure
│   ├── ch02-lagrangian.tex   #   Ch 2  Standard Model Lagrangian
│   ├── ch03-pathintegral.tex #   Ch 3  Path Integrals & Functionals
│   ├── ch04-feynman.tex      #   Ch 4  Feynman Diagrams & Amplitudes
│   ├── ch05-renorm.tex       #   Ch 5  Renormalization & Running Couplings
│   ├── ch06-pheno.tex        #   Ch 6  Particle Phenomenology
│   ├── ch07-lua.tex          #   Ch 7  LuaTeX Engine Deep Dive
│   ├── ch08-fonts.tex        #   Ch 8  Fonts & OpenType Math Typesetting
│   └── app-references.tex    #   App   Cross-references & Bibliography
├── reference.bib             # Bibliography database (12 entries)
├── .latexmkrc                # Latexmk build configuration
├── .gitattributes            # Git attributes (e.g. for line endings)
├── .gitignore                # Git ignore rules
├── build/                    # Intermediate files (.aux, .log, …)
└── output/                   # Final artifacts (main.pdf, SyncTeX)

Prerequisites

Dependency Minimum Version Notes
TeX Live 2026 Full install with LuaHBTeX 1.24.0
Biber 2.21+ Bibliography backend
LXGW Fonts OpenType CJK fonts required by fontset=lxgw

Build

Command Line

# Full build (automatic multi-pass lualatex + biber)
latexmk main.tex

# Clean intermediate files
latexmk -c main.tex

# Clean everything (including PDF)
latexmk -C main.tex

.latexmkrc is pre-configured: $pdf_mode = 4 (LuaLaTeX), $out_dir = 'output', $aux_dir = 'build'. No extra flags needed.

VS Code (LaTeX Workshop)

  1. Install the recommended extension james-yu.latex-workshop (listed in .vscode/extensions.json)
  2. Open the project folder
  3. Build with the latexmk (latexmkrc) or latexmk (lualatex) recipe
  4. Output → output/main.pdf

Package Coverage

The document stress-tests the following packages / tools:

unicode-math · mathtools · tikz-cd · nicematrix · physics2 · derivative · tikz-feynman · simplewick · witharrows · cancel · slashed · pgfplots (polar / 3D / fillbetween / xbar) · tabularray · siunitx · tcolorbox · lua-ul · luacode · hologo · microtype · marginnote · biblatex (GB/T 7714-2015) · cleveref · hyperref

License

For typesetting engine testing and educational demonstration only. Physics content is drawn from publicly available literature.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages