← 返回命令列表

Linux command

xetex 命令

文本

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

常用示例

Compile document

xetex [document.tex]

Output to specific name

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

Non-stop mode

xetex -interaction=nonstopmode [document.tex]

Output to specific directory

xetex -output-directory=[path/to/dir] [document.tex]

说明

XeTeX is an extended TeX typesetting engine that adds native Unicode and modern font support to the traditional TeX system. Unlike classic TeX engines that are limited to 8-bit encodings, XeTeX handles the full range of Unicode characters natively, making it suitable for multilingual documents and scripts from any writing system. One of XeTeX's most significant features is its ability to use system-installed fonts directly, including OpenType and TrueType fonts, without requiring TeX-specific font installations. This gives authors access to the full range of fonts available on their system, along with advanced OpenType features such as ligatures, stylistic alternates, and font variations. XeTeX produces PDF output directly through the xdvipdfmx backend. It is commonly used through the xelatex wrapper which provides the familiar LaTeX macro layer on top of the XeTeX engine, combining LaTeX's document structuring capabilities with XeTeX's Unicode and font handling.

参数

-interaction _MODE_
Error handling mode.
-jobname _NAME_
Output name.
-output-directory _DIR_
Output location.
-halt-on-error
Stop on first error.
-no-pdf
Generate XDV output instead of PDF.
-output-driver _CMD_
Run CMD instead of xdvipdfmx to translate XDV to PDF.
-papersize _STRING_
Set PDF media size to STRING.
-synctex=_NUMBER_
Enable SyncTeX for editor integration (1 to enable).

FAQ

What is the xetex command used for?

XeTeX is an extended TeX typesetting engine that adds native Unicode and modern font support to the traditional TeX system. Unlike classic TeX engines that are limited to 8-bit encodings, XeTeX handles the full range of Unicode characters natively, making it suitable for multilingual documents and scripts from any writing system. One of XeTeX's most significant features is its ability to use system-installed fonts directly, including OpenType and TrueType fonts, without requiring TeX-specific font installations. This gives authors access to the full range of fonts available on their system, along with advanced OpenType features such as ligatures, stylistic alternates, and font variations. XeTeX produces PDF output directly through the xdvipdfmx backend. It is commonly used through the xelatex wrapper which provides the familiar LaTeX macro layer on top of the XeTeX engine, combining LaTeX's document structuring capabilities with XeTeX's Unicode and font handling.

How do I run a basic xetex example?

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

What does -interaction _MODE_ do in xetex?

Error handling mode.