LaTeX Revision Tracker
by @larry-of-cosmotim
Systematic workflow for tracking, managing, and revising large LaTeX academic papers with version control, content integration, and quality assurance.
clawhub install latex-revision-trackerπ About This Skill
name: latex-revision-tracker description: Systematic workflow for tracking, managing, and revising large LaTeX academic papers with version control, content integration, and quality assurance. version: 1.0.0 homepage: https://github.com/Larry-of-cosmotim/latex-revision-tracker metadata: openclaw: emoji: π
LaTeX Revision Tracker Skill
Overview
This skill provides a comprehensive workflow for managing revisions to large LaTeX academic papers (10+ pages, multiple sections, complex bibliographies). It emphasizes systematic version control, careful content integration, and quality assurance throughout the revision process.
When to Use
Use this skill when:
Core Workflow
1. Version Control Setup
File Naming Convention:
manuscript_v1_initial.tex
manuscript_v2_reviewer_response.tex
manuscript_v3_final_submission.tex
Change Documentation:
Create version_changes.md for each revision:
# V2 TO V3 CHANGES SUMMARYCHANGES MADE:
β
NEW SECTION ADDED:
Section 4.2: Glass Limit Analysis
Location: After thermal conductivity discussion
Content: 3 paragraphs + 1 figure β
NEW FIGURE:
cahill_plot.pdf - Publication-ready (300 DPI)
Reference: Figure~\ref{fig:cahill_plot}
Caption: [Complete caption text] β
CONTENT MODIFICATIONS:
Updated abstract (lines 25-35)
Revised conclusion (Section 6, paragraph 2)
Added 12 new citations INTEGRATION DETAILS:
Placement: After existing analysis, before discussion
Line numbers: Approximately 450-480
Compilation status: β
Success / β Unicode issues
2. Content Integration Strategy
Pre-Integration Checklist:
\label{} and \ref{} commands)Integration Process:
1. Backup current working version
2. Identify integration point in document structure
3. Plan figure/table placement and numbering
4. Insert content with proper sectioning
5. Update cross-references throughout document
6. Compile and resolve errors iteratively
3. LaTeX-Specific Quality Control
Compilation Workflow:
# For bibliography updates (full workflow)
pdflatex manuscript.tex
bibtex manuscript
pdflatex manuscript.tex
pdflatex manuscript.texFor minor changes (quick check)
pdflatex manuscript.tex
pdflatex manuscript.tex
Common Issues and Solutions:
Unicode Characters:
% Problem: Special characters (ΞΊ, Ξ±, Ξ²) in text
% Solution: Use math mode or proper packages
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}% In text: $\kappa$ not ΞΊ
% In equations: \begin{equation} \kappa = ... \end{equation}
Reference Resolution:
% Ensure labels come after what they reference
\section{Results}
\label{sec:results} % β
After section\begin{figure}
\includegraphics{plot.pdf}
\caption{Important results}
\label{fig:results} % β
After caption
\end{figure}
Float Management:
% For flexible placement
\begin{figure}[htbp]% To force exact position (use sparingly)
\usepackage{float}
\begin{figure}[H]
% For wide figures in two-column format
\begin{figure*}[t]
4. Academic Content Integration
Section-Specific Integration Guidelines:
Abstract Updates:
Introduction Modifications:
Related Work Additions:
Results Section Integration:
Discussion/Conclusion Updates:
5. Bibliography Management
Citation Integration Process:
1. Add new entries to .bib file
2. Use consistent citation keys (author2024keyword)
3. Verify all required fields (author, title, year, venue)
4. Check for duplicate entries
5. Run bibtex to update references
6. Resolve any citation warnings
Citation Style Consistency:
% In-text citations
Recent work has shown \cite{smith2024analysis}...
Multiple studies \cite{jones2023,brown2024,wilson2024} have...
As demonstrated by Smith et al.~\cite{smith2024analysis}...% Reference formatting (depends on journal style)
% IEEE: [1] A. Smith, "Title," Journal, vol. 1, pp. 1-10, 2024.
% ACM: [1] Smith, A. 2024. Title. Journal 1, 1 (2024), 1-10.
6. Quality Assurance Process
Pre-Submission Checklist:
Collaboration Workflow:
1. Author A makes changes β commits with detailed message
2. Author B reviews changes β suggests modifications
3. Changes documented in version log
4. Final integration by designated "manuscript manager"
5. All co-authors review final version before submission
7. Error Resolution Strategies
Common LaTeX Errors:
Missing References:
LaTeX Warning: Reference fig:unknown' undefined
Solution: Check \label{} and \ref{} spelling, compile twice
Overfull/Underfull Boxes:
Overfull \hbox (15.0pt too wide)
Solution: Rephrase text, add hyphenation hints (\-), or use \sloppy
Float Issues:
Too many unprocessed floats
Solution: Add \clearpage or adjust float placement options
Bibliography Errors:
Citation unknown2024' undefined
Solution: Check .bib file, run bibtex, compile again
8. Performance Optimization
For Large Documents (50+ pages):
\includeonly{} to compile specific chapters\input{} or \include{}\graphicspath{} for organized figure directorieslatexmk for automated compilation managementMemory Management:
% For documents with many figures
\usepackage{graphicx}
\DeclareGraphicsExtensions{.pdf,.eps,.png,.jpg}% For complex bibliographies
\usepackage[backend=bibtex,style=ieee]{biblatex}
Advanced Features
1. Diff Tracking
CRITICAL: Diff files inherit ALL citation dependencies from the source documents. You MUST run the full bibliography workflow β a single pdflatex pass will ALWAYS produce citation errors ([?] markers) in diff files. This is the most common mistake.
Full diff workflow (mandatory β no shortcuts):
# Step 1: Generate the diff .tex
latexdiff manuscript_v1.tex manuscript_v2.tex > diff_v1_v2.texStep 2: Copy bibliography files to the same directory
The diff file needs access to the SAME .bib files and .bst style
cp manuscript.bib . # if not already presentStep 3: Full compilation (ALL steps required)
pdflatex diff_v1_v2.tex # First pass β generates .aux with citation keys
bibtex diff_v1_v2 # Resolves citations from .bib file
pdflatex diff_v1_v2.tex # Second pass β incorporates bibliography
pdflatex diff_v1_v2.tex # Third pass β resolves all cross-references
Never do this:
# WRONG β will produce [?] for every citation
pdflatex diff_v1_v2.tex # single pass = broken citations
Troubleshooting citation errors in diff files:
[?] markers β you skipped bibtex. Run the full 4-step workflow above.I couldn't open file name.bib β copy the .bib file to the diff directory.I couldn't open style file name.bst β copy the .bst file too.\bibliography{} and \bibliographystyle{} paths are correct in the source .tex files before running latexdiff.Post-diff cleanup: After the diff PDF is verified, remove all intermediate files. Only the final PDF should remain.
# Clean up all auxiliary and intermediate files
rm -f diff_v1_v2.tex diff_v1_v2.aux diff_v1_v2.log diff_v1_v2.out \
diff_v1_v2.bbl diff_v1_v2.blg diff_v1_v2.toc diff_v1_v2.lof \
diff_v1_v2.lot diff_v1_v2.synctex.gz diff_v1_v2.fls \
diff_v1_v2.fdb_latexmk diff_v1_v2.nav diff_v1_v2.snm
Keep only: diff_v1_v2.pdf
Rule: Always clean up after generating a diff PDF. The diff .tex file is a throwaway β it's auto-generated and can be recreated anytime from the two source versions. Never keep it around to clutter the workspace.
2. Automated Quality Checks
# Check for common LaTeX issues
lacheck manuscript.texCount words (approximate)
texcount manuscript.texValidate bibliography
bibtex manuscript 2>&1 | grep -i warning
3. Collaborative Tools
# Git integration for version control
git add manuscript_v3.tex version_changes.md
git commit -m "Add glass limit analysis section, update abstract"
git tag v3.0-submissionOverleaf sync for real-time collaboration
git push overleaf master
Templates
Change Log Template
# VERSION X.Y CHANGESSUMMARY
Brief description of major changesNEW CONTENT
Section/subsection additions
Figure/table additions
New citations (count) MODIFICATIONS
Sections revised
Figures updated
Text corrections TECHNICAL NOTES
Compilation status
Package updates needed
Known issues REVIEW STATUS
[ ] Content reviewed by Author A
[ ] Figures checked by Author B
[ ] Bibliography verified
[ ] Final compilation successful
Integration Checklist Template
## PRE-INTEGRATION
[ ] Content accuracy verified
[ ] Style guide compliance checked
[ ] Citations properly formatted
[ ] Figures publication-ready INTEGRATION
[ ] Placement planned
[ ] Cross-references updated
[ ] Numbering scheme maintained
[ ] LaTeX syntax verified POST-INTEGRATION
[ ] Document compiles successfully
[ ] All references resolve
[ ] Visual layout acceptable
[ ] Change log updated
Best Practices
1. Always backup before major changes 2. Document everything in change logs 3. Test compilation early and often 4. Use consistent naming for files and labels 5. Review systematically with checklists 6. Collaborate deliberately with clear ownership 7. Plan integration before making changes 8. Maintain quality throughout the process
Common Pitfalls
Tools and Resources
Essential Tools:
Quality Assurance:
latexdiff for visual change trackinglacheck for syntax validationtexcount for word countingThis skill provides the systematic approach needed to manage complex LaTeX academic papers while maintaining quality and avoiding common pitfalls that plague large document revision processes.
β‘ When to Use
π Tips & Best Practices
1. Always backup before major changes 2. Document everything in change logs 3. Test compilation early and often 4. Use consistent naming for files and labels 5. Review systematically with checklists 6. Collaborate deliberately with clear ownership 7. Plan integration before making changes 8. Maintain quality throughout the process