pdflatex
compiles LaTeX documents directly to PDF format
TLDR
Compile LaTeX to PDF
$ pdflatex [document.tex]
Compile in non-stop mode$ pdflatex -interaction=nonstopmode [document.tex]
Compile with shell escape$ pdflatex -shell-escape [document.tex]
Output to specific directory$ pdflatex -output-directory=[outdir] [document.tex]
Specify output name$ pdflatex -jobname=[output] [document.tex]
SYNOPSIS
pdflatex [options] file
DESCRIPTION
pdflatex compiles LaTeX documents directly to PDF format. It's part of TeX Live and MiKTeX distributions, and the most common way to produce PDFs from LaTeX source.The tool processes .tex files, handling typesetting, cross-references, and including graphics. Multiple runs may be needed for complete document processing.
PARAMETERS
-interaction= mode
Interaction mode (batchmode, nonstopmode, scrollmode, errorstopmode).-output-directory= dir
Output directory.-jobname= name
Set output name.-shell-escape
Enable shell commands.-halt-on-error
Stop at first error.-file-line-error
Show file:line:error format.-synctex= n
Generate SyncTeX data (1 enables, -1 compressed).-draftmode
Skip writing the final PDF output (for faster compilation checks).-no-shell-escape
Disable execution of shell commands (default).-shell-restricted
Allow only a restricted set of shell commands.-recorder
Enable filename recording (writes .fls file).-fmt= name
Use the specified format file.-output-format= fmt
Output format: pdf (default) or dvi.--help
Show usage information and exit.--version
Show version information and exit.
CAVEATS
Often needs multiple runs for references. Shell escape has security implications. Package errors can be cryptic. Auxiliary files accumulate.
HISTORY
pdfTeX was developed by Han The Thanh starting in 1996, extending TeX to output PDF directly. pdflatex combines this with the LaTeX format. It became the standard LaTeX workflow, largely replacing DVI output.
