LaTeX Doctor
Use this skill when the user asks whether LaTeX, Tectonic, TeX Live, MacTeX, latexmk, pdflatex, xelatex, lualatex, biber, or kpsewhich are installed or working.
Run from the plugin root:
python3 scripts/latex_doctor.py
For machine-readable output:
python3 scripts/latex_doctor.py --json
Interpretation
ready: At least one runtime passed a smoke compile. Preferlatex-compileinautomode.existing-usable: Use the existing TeX installation. Do not install managed TeX Live.existing-partial: Report the gaps. Do not install managed TeX Live unless the user explicitly asks to replace or bypass the partial installation.missing: Managed full TeX Live can be offered throughtexlive-runtime-installer.
Output Contract
Summarize:
- detector status
- Tectonic path and smoke-test result when available
- detected TeX bin directory
TEXMFROOTwhen available- missing required or recommended tools
- TeX Live smoke-test result when a compile was attempted