Home

LaTeX

This page lists the safe and destructive patterns in the LaTeX Build Tools shell guard pack. See Shell Tool for how these patterns are evaluated.

LaTeX Build Tools

Pack ID: latex.build_tools

Guards against destructive LaTeX build tool operations

Safe patterns

Rule IDPattern
latex.build_tools.latexmk_version^latexmk\s+--version\b[^|><]*$
latex.build_tools.biber_version^biber\s+--version\b[^|><]*$

Destructive patterns

Rule IDReasonSuggestionConfidence
latex.build_tools.latexmk_cleanRemoves all generated files including PDFs and auxiliary filesUse latexmk -c (lowercase) to clean only auxiliary files, preserving PDFsMedium
latex.build_tools.latexmk_clean_allRemoves all generated files including PDFs, auxiliary files, and extra generated filesUse latexmk -c (lowercase) to clean only auxiliary files, preserving PDFsHigh

This documentation was generated from rust/agents/src/tool_guard/shell/packs/latex.rs.

© 2026 Stencila