Compile LaTeX source
compile_latexCompile LaTeX source to a PDF without picking a project: pass the main .tex content (and optional extra .tex/.bib files). Runs on letX's real TeX Live compile farm and returns a PDF download link, or the compile errors so you can fix the source and try again. Note: only text files are supported here, so projects with images should be created via create_project and edited in letX. The source is saved to the user's "AI Scratchpad" project.
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 |