Troubleshooting¶
When something breaks, collect these first:
If minted is enabled:
1) “File X.sty not found”¶
Install missing packages:
If you’re missing ModernDoc itself:
- confirm it is installed under
TEXMFHOME - run
mktexlsr
2) “fontspec error: cannot-use-pdftex”¶
You compiled with pdfLaTeX.
Use LuaLaTeX:
3) Minted errors¶
Shell escape missing¶
Pygments missing¶
Disable minted¶
4) Bibliography not appearing¶
Checklist:
\addbibresource{references.bib}exists\printbibliographyexists- biber runs successfully
Manual cycle:
lualatex --shell-escape main.tex
biber main
lualatex --shell-escape main.tex
lualatex --shell-escape main.tex
5) Debugging technique that works¶
Rebuild with file/line error reporting:
Then open main.log and fix the first real error. Everything after that is usually cascading.