Flan246/dsh-latex-guard

dsh-latex-guard gives DSH four LaTeX / BibTeX tools: latex_check compiles a project with latexmk and reports errors, warnings and undefined citations; bib_lint dedupes keys and validates required fields; bib_fill fills missing fields from Crossref; cite_audit compares cited keys against the .bib - each with human-readable or --json output.

dsh-latex-guard gives DeepSeek Harness four LaTeX and BibTeX tools. latex_check compiles a project with latexmk and returns a structured report of errors, warnings and undefined citations. bib_lint dedupes entry keys, checks the required fields for each entry type and canonicalizes formatting. bib_fill fills missing entry fields from Crossref by DOI or title without overwriting anything already present. cite_audit compares citation keys in .tex files against a .bib file and reports both cited-but-missing and never-cited entries, recognizing \cite, \citep, \citet, \parencite, \textcite and the biblatex commands \autocite, \footcite, \fullcite and \nocite (a \nocite key counts as cited). The same logic is usable outside DSH through the package's CLI, so a paper can be checked in CI as well as in conversation.

Learning & Research ★ 0 updated 2026-09-09
View on GitHub ↗

Install

dsh plugin add dsh-latex-guard

Copied verbatim from the README's "As a dsh plugin" block. The README also documents the standalone CLI through npx dsh-latex-guard .... npm package dsh-latex-guard at 0.1.3 (registry check 2026-10-16; the registry repository field resolves back to this repo).

Compatibility

All four commands return human-readable output by default and structured JSON with --json; exit codes are 0 for success, 1 for a business error and 2 for a usage error. The README is precise about the edge cases: a check that compiles but reports status: "failed" also exits 1, while a skipped check (latexmk unavailable) exits 0, because graceful degradation is not an error. --write modifies the bib file in place and the README says to confirm before using it; as a safety net, bib_fill never overwrites values that already exist.

Details

Alternatives

1692775560/dsh-Mimir-Academic-research · Astervolans/dsh-literature-search · beibingyangliuying/dsh-autoresearch

More plugins in Learning & Research

Browse more in Learning & Research

Guides for Learning & Research plugins