Difference between revisions of "Running ConTeXt"

From Wiki
Jump to navigation Jump to search
Line 15: Line 15:
 
== --path=list ==
 
== --path=list ==
  
Provide a list of paths for ConTeXt to search when processing.
+
Provide a comma-separated list of paths for ConTeXt to search when processing. For example:
 +
 
 +
context --path="$HOME/writing/common/styles,$HOME/writing/amazing-novel/styles"
  
 
== --result ==
 
== --result ==

Revision as of 02:14, 31 March 2021

The First Document page provides a cursory introduction to typesetting document using ConTeXt. The Context page describes the command-line options in brief. This page provides additional information for command-line options.

--run

Process one or more files; this is the default action and may be omitted.

--autopdf

Reopen the generated PDF file in the system's default PDF file viewer after recompiling a document.

--purgeall

Delete all build artifacts generated during compiling of a document, such as .tuc and .log files.

--path=list

Provide a comma-separated list of paths for ConTeXt to search when processing. For example:

context --path="$HOME/writing/common/styles,$HOME/writing/amazing-novel/styles"

--result

Changes the output document file name. ConTeXt creates the output document file in the current working directory; this option cannot create or move the output document in a different directory. Instead, change the working directory before running ConTeXt and use the --path option to configure where ConTeXt searches for files to process.