Troubleshooting¶
Common issues and solutions for docrev.
Installation Issues¶
"pandoc: command not found"¶
Pandoc is required for building documents.
macOS:
Windows:
Linux (Debian/Ubuntu):
Verify installation:
"pandoc-crossref: command not found"¶
pandoc-crossref is optional but required for figure/table cross-references.
macOS:
Windows: Download from https://github.com/lierdakil/pandoc-crossref/releases
Linux:
LaTeX not found (PDF generation fails)¶
PDF output requires a LaTeX distribution.
macOS:
Windows: Install MiKTeX from https://miktex.org/download
Linux:
Build Errors¶
"No section files found"¶
Cause: No .md files in the directory, or sections not specified in rev.yaml.
Solutions:
1. Create section files: rev new
2. Specify sections in rev.yaml:
"Failed to parse rev.yaml"¶
Cause: Invalid YAML syntax.
Common fixes:
- Check indentation (use spaces, not tabs)
- Quote strings with special characters
- Validate with: rev check
Example of correct YAML:
title: "My Paper: A Study" # Quotes needed for colon
authors:
- name: John Doe # 2-space indent
affiliation: University
Build produces empty PDF¶
Causes: 1. Section files are empty 2. Pandoc filter errors (check terminal output) 3. LaTeX errors
Debug:
Import Issues¶
Comments not imported from Word¶
Causes: 1. Document uses older .doc format (only .docx supported) 2. Comments are in review mode but not finalized
Solutions: 1. Save as .docx in Word 2. Accept/reject track changes before importing if you want clean text
Track changes garbled or missing¶
Cause: Complex nested changes or unsupported Word features.
Solution:
"Cannot read file" errors¶
Causes: 1. File is open in Word (Windows locks open files) 2. File path contains special characters 3. Corrupted .docx file
Solutions: 1. Close the file in Word 2. Rename file to remove special characters 3. Try opening in Word and re-saving
Comment Issues¶
Comments not appearing in Word export¶
Cause: Comments marked as resolved are hidden by default.
Solutions:
rev comments file.md --resolved # Check resolved comments
rev resolve file.md -a -u # Unresolve all comments
Reply threading not working¶
Comments must be adjacent (no text between them) to thread in Word.
Works:
Won't thread:
Author name not set¶
Cross-Reference Issues¶
Figures/tables not numbered¶
Causes: 1. pandoc-crossref not installed 2. Labels not in correct format
Correct format:
References show "??" instead of numbers¶
Causes: 1. Label doesn't exist 2. Typo in reference 3. pandoc-crossref not running
Debug:
PDF Issues¶
Fonts missing or wrong¶
LaTeX errors about fonts:
# Install more fonts
sudo apt install texlive-fonts-extra # Linux
# Or use standard fonts in rev.yaml:
pdf:
mainfont: "Times New Roman"
Images not appearing¶
Causes: 1. Image path incorrect (relative to project root) 2. Image format not supported by LaTeX
Solutions:
1. Use relative paths: 
2. Convert to PNG/PDF: LaTeX prefers PDF for vector graphics
PDF too large¶
Performance Issues¶
DOI lookup slow¶
DOI validation queries external APIs. For large bibliographies:
Build taking too long¶
Encoding Issues¶
Special characters corrupted¶
Cause: File encoding mismatch.
Solutions: 1. Ensure files are UTF-8 encoded 2. In Word, save with "UTF-8" encoding option 3. Check your editor's encoding settings
BibTeX entries with accents fail¶
Use LaTeX-style escapes or UTF-8:
Getting Help¶
Debug mode¶
Check system status¶
Report issues¶
https://github.com/gcol33/docrev/issues
Include:
- rev --version output
- rev doctor output
- Minimal reproducible example