latex-footnote-fidelity-audit
Skill5 starsChanged 57 days agoMITView on GitHub
Audit footnotes in a re-typeset LaTeX translation against source pages and OCR dumps, including unusual markers, page-local numbering, missing bodies, and index entries inside notes. Treat word/count scans as candidates and verify restored notes in the PDF.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- VesperaZephyr/agent-skillstheir own version, first seen Nov 29, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- VesperaZephyr/agent-skills★ 7same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository12 other files it gives its agents.
- aimath-translations-skillSkill
- latex-array-diagram-auditSkill
- latex-bookmark-anchor-auditSkill
- latex-display-layout-auditSkill
- latex-eq-numbering-auditSkill
- latex-ocr-math-defect-auditSkill
- latex-translation-fidelity-auditSkill
- math-pdf-bookmarkSkill
- mathtranslation-build-verifySkill
- mathtranslation-cls-v31-upgradeSkill
- mathtranslation-hardrefSkill
- pdf-scanned-ocr-bookmarkSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 6 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Use the original rendered page as the authority.
- Distinctive: line 28
All prose, mathematics and references inside the body.
- Distinctive: line 50
No historical chapter range or source line is an expected target.
- Distinctive: line 54
Use a balanced extraction and exact reviewed patch.
- Distinctive: line 56
Do not insert an OCR number directly as a global footnote counter without establishing the reset model.
- Distinctive: line 59
Run the actual build, then inspect each repaired note and its marker in the PDF for presence, numbering, wrapping, clipping and hyperlink …
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Footnote fidelity audit
Preserve source spelling of human names and follow the shared terminology policy when translating note bodies. Use the original rendered page as the authority; OCR is an inventory aid.
Inventory markers and note bodies separately
Record the source page, local marker, body and corresponding translated note. Numbers can restart per page, chapter or section. Key an inventory by source page and marker/occurrence rather than a bare number; do not keep only the first occurrence. Inspect notes above a usual footer threshold as well as conventional footnote bands.
OCR can represent markers as $^3$, {~}^2, {}^{2}, \ldots^{7}, punctuation plus a superscript, Unicode superscripts, or a mangled symbol. These forms are candidates, not universal proof of a footnote: empty-base exponents and superscript ellipses can have mathematical uses. Check the rendered page and the note body before moving them.
A complete comparison considers:
- The in-text marker and its actual note body.
- All prose, mathematics and references inside the body.
- Index entries or citations carried by the note.
- Whether the note is actually printed in the delivered PDF.
Bundled candidate checks
python scripts/footnote_survey.py <OCR-block-file> [FN_TOP]
python scripts/check_footnote_text.py <project-root> [chapter numbers...]The survey expects <<pPAGE|label|bbox=[x0,y0,x1,y1]>> blocks and reports suspicious heads and repeated numbers. FN_TOP uses that OCR dump's coordinate scale; calibrate it from source pages instead of transferring a historical threshold.
The text checker discovers src/chN.blocks.md files unless chapters are supplied and expects chapters/ch0N.tex. It compares counts and English word overlaps with TeX footnote bodies. A Chinese translation normally does not share the English source's words. Empty normalized text, count differences and unmatched words require review; neither overlap nor zero candidates proves a faithful translation. Its marker/TeX-macro filters are bounded; inspect custom note commands separately.
For note-math candidates and complete note display, use the sibling latex-ocr-math-defect-audit scripts fnaudit.py, fndump.py and fnshow.py. No historical chapter range or source line is an expected target.
Restore only confirmed omissions
Use a balanced extraction and exact reviewed patch. Preserve encoding, line endings, code examples and source mathematics. Keep the project's numbering mechanism. Do not insert an OCR number directly as a global footnote counter without establishing the reset model. If a note contains an index entry, retain it in the correct body.
Run the actual build, then inspect each repaired note and its marker in the PDF for presence, numbering, wrapping, clipping and hyperlink behavior. Check the refreshed index when restoring entries carried inside notes. Report source-reviewed coverage and any notes still requiring manual identification.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

