Tex Citation Validate Fix
Overview
Use this skill for end-to-end citation integrity: local consistency checks, external validation, then minimal corrective patches.
Executable Entry Points
- •
scripts/validate_citations.py: runs local citation integrity checks and optional Crossref validation.
Example commands:
bash
python scripts/validate_citations.py --project-root . --main-tex main.tex --pretty python scripts/validate_citations.py --project-root . --remote --timeout 8 --pretty
Project Adaptation
- •Identify citation commands used (
\\cite,\\citep,\\citet, custom macros). - •Identify bibliography source(s) and preferred BibTeX style rules.
- •Confirm external validation source(s): DOI resolver, CrossRef, Semantic Scholar, arXiv, or internal catalog.
Workflow
- •Run
scripts/validate_citations.pyfor local integrity checks:- •undefined citation keys
- •uncited bibliography entries
- •style inconsistencies (for example
\\citevs project-preferred forms)
- •Run with
--remoteto validate entries against external sources by DOI/title. - •Classify each problematic entry as:
- •
valid - •
needs_correction - •
likely_hallucinated - •
not_found
- •
- •Generate minimal unified diffs for
.biband TeX files, preserving existing key naming where possible. - •Apply patches with review and rerun integrity checks.
Inputs and Outputs
- •Input: TeX source, bibliography source, validation results, style constraints.
- •Output: verification summary and auditable patch set for citation fixes.
Common Mistakes
- •Fixing citations before running external validation.
- •Replacing keys aggressively instead of preserving stable key names.
- •Applying mixed style and metadata rewrites in one oversized patch.
- •Skipping post-apply revalidation.