Scriptora AI Docs
Compilation

Compiling Your Paper

How to compile LaTeX to PDF, choose engines, and run BibTeX.

Compiled PDF in the preview panel
After compilation, the PDF appears in the right panel with error reporting below.

Quick compile

Click the ▶ Compile button in the sidebar toolbar, or press:

Scriptora runs latexmk with your chosen engine and displays the result.

Compilation engines

Select the engine from the compile button dropdown:

EngineBest for
pdflatex (default)Standard papers, IEEE/ACM/Springer templates
xelatexUnicode fonts, custom typefaces, right-to-left languages
lualatexAdvanced font features, Lua scripting in documents

Most published templates (NeurIPS, ICML, Nature, IEEE) work with pdflatex. Switch to xelatex only if your template specifies it.

What happens during compilation

  1. latexmk runs in the project's working directory
  2. BibTeX / biber processes your .bib file for citations
  3. pdflatex runs up to 3 passes to resolve cross-references
  4. The resulting .pdf is sent to your browser

Total time: typically 5–15 seconds for a standard paper.

Compilation output

After compilation:

  • The PDF preview panel shows the result
  • The Error panel (below the PDF) lists all errors and warnings
  • Error lines are highlighted in the editor gutter with red markers
  • Click any error to jump to the corresponding line

Reading error messages

LaTeX error messages can be cryptic. Common ones:

ErrorMeaning
Undefined control sequenceMisspelled command or missing \usepackage
Missing $ insertedMath mode command used outside of $...$
File not foundMissing .bib file, missing figure, or wrong path
Overfull \hboxContent too wide for the column — a warning, not an error
Citation undefinedBibTeX key not found in .bib file

AI-powered error fixing

After a failed compilation, click Fix errors with AI in the error panel. The AI:

  1. Reads the full error log
  2. Identifies the root cause
  3. Applies targeted fixes using editFile
  4. Recompiles to verify

For complex errors, the AI will explain what it changed and why.

You can also just say "Fix the compilation errors" in the chat panel. The AI will compile, read the log, and fix issues in a single workflow.

BibTeX and citations

If citations appear as [?] in the PDF:

  1. Check that your .bib file has entries matching the \cite{key} keys
  2. Run a full compile (latexmk handles the BibTeX pass automatically)
  3. If citations still don't appear, ask the AI: "My citations aren't showing. Fix the BibTeX setup."

Compilation warnings

Warnings (overfull boxes, undefined references after first run, etc.) are shown in amber in the error panel. They do not prevent PDF generation — you can choose whether to address them.

Overfull \hbox warnings are very common and usually harmless. Address them only when the journal requires clean compilation output.

On this page