Review LaTeX Manuscript Structure
Review a LaTeX manuscript for structural integrity: orphaned references, missing input files, cross-reference consistency, and appendix completeness.
Steps
- •
Read CLAUDE.md to find the manuscript location and bibliography file paths for this project.
- •
Identify manuscript to review:
- •If
$ARGUMENTSis a specific.texfilename: review that file - •Otherwise: review the primary manuscript listed in CLAUDE.md
- •If
- •
Read the full manuscript and extract all structural elements:
REFERENCES: Find all
\ref{...}and\label{...}— flag any\refwithout a matching\labelCITATIONS: Find all\cite{...},\citet{...},\citep{...}— cross-check against the project's.bibfiles INPUTS: Find all\input{...}and\includegraphics{...}— verify each referenced file exists on disk FOOTNOTES: Check footnotes for dangling references or incomplete text APPENDIX: Verify that main-text references to appendix sections (e.g., "Appendix A", "Table A1") have matching\labeltargets in the appendix - •
Check section structure:
- •All
\section,\subsectionhave content (not empty) - •No orphaned
\begin{...}without matching\end{...} - •Table and figure environments have both
\captionand\label - •No duplicate
\labelkeys
- •All
- •
Check bibliography completeness:
- •Every
\citekey exists in one of the project's.bibfiles - •Flag
.bibentries with missing required fields (author, title, year) - •Flag potential typos in citation keys (fuzzy match near-misses)
- •Every
- •
Produce a detailed report listing every finding with:
- •Location (line number)
- •Issue type (ORPHAN_REF | MISSING_FILE | MISSING_CITE | DUPLICATE_LABEL | EMPTY_SECTION | UNCLOSED_ENV)
- •Severity (Critical / Major / Minor)
- •Description of the problem
- •
Save report to
quality_reports/manuscript_review.md - •
IMPORTANT: Do NOT edit any source files. Only produce the report. Fixes are applied after user review.
- •
Present summary to the user:
- •Total issues by severity
- •Most critical problems highlighted
- •List of missing files (if any)