一键导入
latex
Quick-access LaTeX typesetting expertise -- journal preambles, project macros, notation reference, document review, arxiv checklist
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Quick-access LaTeX typesetting expertise -- journal preambles, project macros, notation reference, document review, arxiv checklist
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | latex |
| description | Quick-access LaTeX typesetting expertise -- journal preambles, project macros, notation reference, document review, arxiv checklist |
| disable-model-invocation | true |
| argument-hint | --preamble <journal> | --macros | --notation | --journal <name> | --check <file> | --arxiv | --bib | --index |
Quick access to LaTeX formatting expertise for the project's paper preparation. Backed by the LaTeX reference documents in researchers/LaTeX/ and the latex-typesetting-specialist agent definition.
/latex --preamble jhep # Generate JHEP-ready preamble with project macros
/latex --preamble cmp # Generate CMP/JGP-ready preamble
/latex --preamble prd # Generate PRD (REVTeX) preamble
/latex --macros # Show/generate {{PROJECT_NAME}}.sty macro file
/latex --notation # Project notation quick reference
/latex --journal jhep # JHEP style summary and requirements
/latex --journal cmp # CMP style summary
/latex --journal jgp # JGP style summary
/latex --journal prd # PRD (REVTeX) style summary
/latex --check paper.tex # Review a .tex file for common issues
/latex --arxiv # ArXiv submission checklist
/latex --bib # Bibliography setup guide (BibTeX vs BibLaTeX per venue)
/latex --index # Show the full document index
Extract the subcommand flag and its argument from the invocation. The first token is the subcommand flag. Anything after it is the argument.
If no arguments provided, show the usage block above and stop.
--preamble <journal>Generate a complete, ready-to-use LaTeX preamble for the specified journal. The preamble must include:
--macros below, inline it)Venue mappings (read the corresponding reference doc for details):
| Argument | Document Class | Reference Doc | Notes |
|---|---|---|---|
jhep | jheppub | researchers/LaTeX/04_JHEP_Submission_Style_Guide.md | Springer, uses natbib |
cmp | svjour3 with [twocolumn] or article | researchers/LaTeX/14_Journal_Geometry_Physics_CMP_Style.md | Springer math physics |
jgp | elsarticle | researchers/LaTeX/14_Journal_Geometry_Physics_CMP_Style.md | Elsevier |
prd | revtex4-2 with [aps,prd,twocolumn] | researchers/LaTeX/03_REVTeX4_Physics_Journal_Style.md | APS, uses natbib |
arxiv | article with [11pt,a4paper] | researchers/LaTeX/12_ArXiv_Submission_Workflow.md | Generic, bibtex |
Steps:
researchers/LaTeX/researchers/LaTeX/13_LaTeX_Macros_Physics_Papers.md for macro patternsresearchers/LaTeX/07_Spectral_Theory_NCG_Notation_LaTeX.md for NCG macrosresearchers/LaTeX/06_Differential_Geometry_Notation_LaTeX.md for geometry macrosOutput the preamble as a single LaTeX code block ready to copy-paste.
--macrosGenerate the project's shared macro file {{PROJECT_NAME}}.sty. Read these documents:
researchers/LaTeX/13_LaTeX_Macros_Physics_Papers.md -- macro design patternsresearchers/LaTeX/07_Spectral_Theory_NCG_Notation_LaTeX.md -- NCG notationresearchers/LaTeX/06_Differential_Geometry_Notation_LaTeX.md -- geometry notationresearchers/LaTeX/10_Physics_Symbol_Conventions.md -- symbol conventionsGenerate a .sty file with these sections:
%% {{PROJECT_NAME}}.sty -- Shared macros for the project's papers
%% Generated by /latex --macros
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{{{PROJECT_NAME}}}[2026/02/21 Project Macros]
%% === Required packages ===
% (amsmath, amssymb, mathtools, etc.)
%% === Operators ===
% \DeclareMathOperator{\Tr}{Tr}
% \DeclareMathOperator{\Spec}{Spec}
% \DeclareMathOperator{\Pf}{Pf}
% \DeclareMathOperator{\vol}{vol}
% \DeclareMathOperator{\KOdim}{KO\text{-}dim}
% \DeclareMathOperator{\diag}{diag}
% \DeclareMathOperator{\sgn}{sgn}
%% === Spectral triples and NCG ===
% \newcommand{\spectriple}{(\mathcal{A}, \mathcal{H}, D)}
% \newcommand{\AF}{\mathcal{A}_F}
% \newcommand{\HF}{\mathcal{H}_F}
% \newcommand{\DF}{D_F}
% \newcommand{\DK}{D_K} % Dirac on SU(3), Kosmann lift
% \newcommand{\DKtau}{D_K(\tau)} % Jensen-deformed Dirac
% \newcommand{\realJ}{J} % Real structure (roman J)
% \newcommand{\spectact}{\mathrm{Tr}\, f(D^2/\Lambda^2)}
%% === Geometry and KK ===
% \newcommand{\Riem}{R_{\mu\nu\rho\sigma}}
% \newcommand{\Ric}{R_{\mu\nu}}
% \newcommand{\Scal}{R} % Ricci scalar
% \newcommand{\covD}{\nabla}
% \newcommand{\Lie}{\mathcal{L}}
% \newcommand{\g}{g} % metric
% \newcommand{\gtau}{g(\tau)} % deformed metric
%% === Paasch and mass spectrum ===
% \newcommand{\phiP}{\phi_{\text{Paasch}}}
% \newcommand{\phival}{1.531580}
%% === Seeley-DeWitt ===
% \newcommand{\SDa}[1]{a_{#1}} % a_0, a_2, a_4
% \newcommand{\cutoff}{\Lambda}
%% === Common decorations ===
% \newcommand{\conj}[1]{\overline{#1}}
% \newcommand{\dual}[1]{#1^*}
% \newcommand{\dagger}[1]{#1^{\dagger}}
Present the full .sty file content. If the user approves, offer to write it to a file.
--notationQuick reference card for project notation. Read:
researchers/LaTeX/10_Physics_Symbol_Conventions.mdresearchers/LaTeX/07_Spectral_Theory_NCG_Notation_LaTeX.mdresearchers/LaTeX/06_Differential_Geometry_Notation_LaTeX.mdOutput a compact markdown table:
| Symbol | LaTeX | Meaning | First Appears |
|---|---|---|---|
| $D_K$ | D_K | Dirac operator on SU(3), Kosmann lift | Session 7 |
| $D_K(\tau)$ | D_K(\tau) | Jensen-deformed Dirac | Session 12 |
| $(A, H, D)$ | (\mathcal{A}, \mathcal{H}, D) | Spectral triple | Session 7 |
| ... | ... | ... | ... |
Include all project-critical symbols (30-50 entries), organized by category: NCG, geometry, Paasch, Seeley-DeWitt, condensed matter.
--journal <name>Show a concise style summary for the named journal. Read the corresponding reference doc:
jhep -> researchers/LaTeX/04_JHEP_Submission_Style_Guide.mdcmp or jgp -> researchers/LaTeX/14_Journal_Geometry_Physics_CMP_Style.mdprd -> researchers/LaTeX/03_REVTeX4_Physics_Journal_Style.mdOutput a structured summary:
--check <file>Review a .tex file for common issues. Read the file using the Read tool, then check:
\ref{...} and \cite{...}, cross-check against \label{...} and .bib entries\left/\right pairing\, in integrals, \text{} inside math mode misuseOutput a categorized issue list with line numbers and suggested fixes.
--arxivArXiv submission checklist. Read researchers/LaTeX/12_ArXiv_Submission_Workflow.md and produce:
## ArXiv Submission Checklist
### Pre-submission
- [ ] Compile .bbl file (arxiv cannot run bibtex/biber)
- [ ] Flatten \input commands OR include all .tex files
- [ ] All figures as PDF/PNG/EPS in submission directory
- [ ] Remove any \usepackage that arxiv doesn't support
- [ ] hyperref loaded LAST (or use \AtEndPreamble)
- [ ] No absolute paths in \includegraphics
### Metadata
- [ ] Title matches paper exactly
- [ ] All authors with correct affiliations
- [ ] Abstract (plain text, no LaTeX)
- [ ] Primary category: [hep-th / math-ph / gr-qc]
- [ ] Cross-list: [math.DG / math-ph / hep-ph]
- [ ] MSC codes (if math journal target)
- [ ] PACS codes (if physics journal target)
- [ ] Comments field: "N pages, M figures, submitted to [journal]"
### File package
- [ ] Single .tar.gz or .zip
- [ ] Main .tex file named clearly (e.g., {{PROJECT_NAME}}_main.tex)
- [ ] .bbl file included (NOT .bib)
- [ ] .sty file included if custom ({{PROJECT_NAME}}.sty)
- [ ] Figures in subdirectory (figures/) with relative paths
- [ ] Total size < 10 MB (< 1 MB preferred)
### Post-upload
- [ ] Verify PDF renders correctly in arxiv preview
- [ ] Check all cross-references resolve
- [ ] Check all figures appear
- [ ] Verify bibliography renders
- [ ] Note the arxiv ID for journal submission
--bibBibliography setup guide. Read researchers/LaTeX/05_BibLaTeX_Bibliography_Management.md and produce:
| Venue | Engine | Style | Package | Notes |
|---|---|---|---|---|
| PRD | BibTeX | apsrev4-2 | natbib | REVTeX handles this |
| JHEP | BibTeX | JHEP | natbib | jheppub.sty includes setup |
| JGP | BibTeX/BibLaTeX | elsarticle-num | natbib or biblatex | Elsevier flexible |
| CMP | BibTeX | spmpsci | natbib | Springer style |
| ArXiv | BibTeX | any | any | Must pre-compile .bbl |
\cite, \citep, \citet, \citeauthor, \citeyear--indexShow the full document index. Read researchers/LaTeX/index.md and display it to the user.
--preamble argument doesn't match a known venue: list the valid venues and stop--journal argument doesn't match: list valid journals and stop--check file doesn't exist: report file not found/new-researcher latex to regenerateresearchers/LaTeX/ -- it does NOT require spawning the latex-typesetting-specialist agentStructural review of a proof or derivation -- checks step justification, variable definitions, limiting cases, dimensional consistency, and canonical-source traceability
Quick symbolic/exact computation via the Sage MCP -- factor, simplify, symbolic eigenvalues, exact integrals. Use when float answers are not good enough
Classify a framework event, observable, or object as PROPAGATION (c-bounded, lives on g_M), SUBSTRATE DYNAMICS (not c-bounded, IS the substrate), MIXED, or CONTRADICTION -- walks a 6-step deterministic algorithm for emergent-metric / analog-gravity frameworks
TikZ-based Penrose / Carter-Penrose diagram authoring -- preamble, pattern library, worked templates for Schwarzschild, Kerr, dS, CCC, dynamical compactification, and the M4 x SU(3)(tau) modulus-space transit. Use whenever a causal-structure diagram is needed.
Index the project's open conjectures/propositions -- scans sessions + open-question registers, tabulates with priority (EVOI), origin, related tests, and status
Create a new researcher agent with web-fetched research papers and agent definition