Forrest logo
back to the xetex tool

xetex:tldr:49a3e

xetex: Compile a PDF document, specifying an output directory.
$ xetex -output-directory=${path-to-directory} ${source-tex}
try on your machine

This command is used to run XeTeX, a typesetting engine, with specified output directory and source file.

Here is the breakdown of the command:

  • xetex: This is the command used to invoke the XeTeX engine.

  • -output-directory=${path-to-directory}: This flag specifies the directory where the output files should be placed. ${path-to-directory} should be replaced with the desired path to the directory where you want the output files to be generated. For example, if you want the output files to be placed in a directory named "output" located in the current directory, you can replace ${path-to-directory} with ./output.

  • ${source-tex}: This represents the source .tex file that you want XeTeX to process. ${source-tex} should be replaced with the actual filename of your source .tex file. For example, if your source file is named "document.tex", you would replace ${source-tex} with document.tex.

By using this command, XeTeX will process the specified source .tex file and generate the output files (such as .pdf, .log, etc.) in the specified output directory.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the xetex tool