math-typesetting-guide
LaTeX math typesetting, equation formatting, and cross-referencing
npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill math-typesetting-guide --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Math Typesetting Guide Comprehensive reference for typesetting mathematical notation, equations, and theorems in LaTeX with correct formatting, numbering, and cross-referencing. ## Essential Packages ```latex \usepackage{amsmath} % Core math environments (align, gather, etc.) \usepackage{amssymb} % Additional math symbols \usepackage{amsthm} % Theorem environments \usepackage{mathtools} % Extensions to amsmath (dcases, coloneqq, etc.) \usepackage{bm} % Bold math symbols (\bm{x}) \usepackage{bbm} % Blackboard bold for indicators (\mathbbm{1}) \usepackage{nicefrac} % Inline fractions (\nicefrac{1}{2}) \usepackage{siunitx} % SI units (\SI{9.8}{m/s^2}) ``` ## Inline vs. Display Math ### Inline Math Use `$...$` or `\(...\)` for math within text: ```latex The loss function $\mathcal{L}(\theta) = -\sum_{i=1}^{N} \log p(y_i | x_i; \theta)$ minimizes the negative log-likelihood. ``` ### Display Math (Unnumbered) Use `\[...\]` for centered, unnumbered equations: ```latex \[ \nabla_\theta \mathcal{L}(\theta) = -\frac{1}{N} \sum_{i=1}^{N} \nabla_\theta \log p(y_i | x_i; \theta) \] ``` ### Display Math (Numbered) Use the `equation` environment for numbered equations: ```latex \begin{equation}
- Essential Packages
- Inline vs. Display Math
- Inline Math
- Display Math (Unnumbered)
- Display Math (Numbered)
- Multi-Line Equations
- align Environment
- split Environment
- cases Environment
- Common Mathematical Notation
- Symbols Reference Table
- Custom Operators
- Matrices and Arrays
- Theorems and Proofs
What does the math-typesetting-guide skill do?
LaTeX math typesetting, equation formatting, and cross-referencing
How do I install it?
Run `npx skills add brycewang-stanford/Auto-Empirical-Research-Skills --skill math-typesetting-guide --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From brycewang-stanford/Auto-Empirical-Research-Skills, a repository with 3,244 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.