← 返回命令列表

Linux command

pdftex 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Compile TeX to PDF

pdftex [document.tex]

Compile with output name

pdftex -jobname=[output] [document.tex]

Interaction mode

pdftex -interaction=nonstopmode [document.tex]

Draft mode (no output)

pdftex -draftmode [document.tex]

Show version

pdftex --version

说明

pdfTeX is a TeX engine that produces PDF output directly from TeX source, without an intermediate DVI stage. It extends Knuth's original TeX with PDF-specific primitives and microtypographic features such as margin kerning (character protrusion) and font expansion (hz-optimization) for improved text appearance. pdfTeX processes plain TeX by default. For LaTeX documents, use pdflatex instead, which is pdfTeX with the LaTeX format preloaded.

参数

-interaction _MODE_
Set interaction (nonstopmode, batchmode, scrollmode).
-jobname _NAME_
Set output name.
-draftmode
No PDF output.
-output-directory _DIR_
Output directory.
-halt-on-error
Stop on first error.
-ini
Initialize (create) a format file for faster loading.
-fmt _FORMAT_
Use the specified format file instead of the default.
-file-line-error
Print error messages with file name and line number.
-synctex _NUMBER_
Generate SyncTeX data for editor integration (1 to enable).
-shell-escape
Enable \write18 for running external commands.
-no-shell-escape
Disable \write18 (default).

FAQ

What is the pdftex command used for?

pdfTeX is a TeX engine that produces PDF output directly from TeX source, without an intermediate DVI stage. It extends Knuth's original TeX with PDF-specific primitives and microtypographic features such as margin kerning (character protrusion) and font expansion (hz-optimization) for improved text appearance. pdfTeX processes plain TeX by default. For LaTeX documents, use pdflatex instead, which is pdfTeX with the LaTeX format preloaded.

How do I run a basic pdftex example?

Run `pdftex [document.tex]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -interaction _MODE_ do in pdftex?

Set interaction (nonstopmode, batchmode, scrollmode).