latexmk_compile
Compile LaTeX documents from raw source or .tex file, returning structured errors, warnings, missing package hints, page count, and output file path.
Instructions
Compile a LaTeX document using latexmk. Accepts raw LaTeX source or a path to an existing .tex file. Returns structured errors, warnings, missing package hints, page count, and the output file path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bibtex | No | Bibliography processor | none |
| engine | No | TeX engine to use | pdflatex |
| synctex | No | Generate SyncTeX data | |
| file_path | No | Absolute path to an existing .tex file (mutually exclusive with tex_content) | |
| extra_args | No | Extra latexmk CLI arguments to pass through | |
| return_pdf | No | Include the compiled PDF as base64 in the response when output_format is pdf. | |
| tex_content | No | LaTeX source content (mutually exclusive with file_path) | |
| working_dir | No | Working directory. Defaults to a fresh temp directory. | |
| shell_escape | No | Enable --shell-escape | |
| output_format | No | Target output format |