Forrest logo
back to the tex tool

tex:tldr:37c4b

tex: Compile a DVI document, exiting on each error.
$ tex -halt-on-error ${source-tex}
try on your machine

The command "tex -halt-on-error ${source-tex}" is used to compile a TeX document file.

Here's a breakdown of the different parts of the command:

  • "tex" is the command that invokes the TeX compiler.
  • "-halt-on-error" is an option for the TeX compiler that tells it to stop the compilation process if it encounters an error. Without this option, the TeX compiler usually attempts to continue compiling the document and outputs a log file with error messages.
  • "${source-tex}" is a placeholder or variable that represents the name of the TeX document file that you want to compile. It should be replaced with the actual file name or path when using the command.

Overall, this command essentially tells the TeX compiler to compile a TeX document and stop if any errors occur during the process.

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 tex tool