Compile LaTeX source
compile_latexCompile LaTeX source to a PDF without choosing a project: the main .tex content plus optional extra .tex, .bib or .sty files. Use when the user wants a PDF of LaTeX that is in the conversation. Runs on letX's TeX Live installation and returns a PDF download link, and the LaTeX errors when there are any. Text files only, no images. The source is saved to the user's "AI Scratchpad" project, replacing the files of the same name from the previous call (earlier versions stay in that project's history).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | optional additional text files (chapters, refs.bib, custom .sty) | |
| compiler | No | TeX engine: pdflatex (default), xelatex, or lualatex. Leave empty and letX works it out from the packages the document loads. | |
| main_tex | Yes | the full content of main.tex |