mtx-context(1)
π mtx-context(1) β ConTeXt Process Management π
okay bestie, pull up a chair, because this is the page for mtx-context, aka ConTeXt Process Management, and it's genuinely the main character of the whole ConTeXt toolchain. β¨
πΈ SYNOPSIS πΈ
mtxrun --script context [ OPTIONS ... ] [ FILENAMES ]
π¦ DESCRIPTION π¦
ConTeXt Process Management β that's the whole vibe, fr fr. It runs your files, it makes your formats, it does the process-management thing. That's it, that's the description. π
β¨ OPTIONS: BASIC β¨
like the name says, this is where you start. π
--runβ process (one or more) files. this is the default action, so if you don't say anything, this is what happens. no cap.--makeβ create context formats. β¨- *
--ctx=name* β use a ctx file (a process management specification). --noctxβ ignore ctx directives and flags. justβ¦ pretend they're not there. π--interfaceβ use the specified user interface (default:en).--autopdfβ close the pdf file in the viewer, then start the pdf viewer afterwards. little open-close-reopen moment, we love a glow-up.--purgeβ purge files either or not after a run (--pattern=...).--purgeallβ purge all files either or not after a run (--pattern=...).- *
--usemodule=list* β load the given module or style, normally part of the distribution. - *
--environment=list* β load the given environment file first (document styles). - *
--mode=list* β enable the given modes (conditional processing in styles). - *
--path=list* β also consult the given paths when files are looked for. - *
--arguments=list* β set variables that can be consulted during a run (key/value pairs). - *
--randomseed=number* β set the randomseed. π² - *
--result=name* β rename the resulting output to the given name. - *
--trackers=list* β set tracker variables (show the list with--showtrackers). - *
--directives=list* β set directive variables (show the list with--showdirectives). - *
--silent=list* β disable logcategories (show the list with--showlogcategories). --stripβ strip Lua code. only meant for production where no errors are expected. β οΈ like, do not do this while debugging, bestie.- *
--errors=list* β show errors at the end of a run, and quit when in list (also when--silentis on). --htmlerrorpageβ generate an html error page instead (optional:=scite).--noconsoleβ disable logging to the console (logfile only).--nodummyβ don't create a dummy file (this can confuse pdf viewers that keep the file in view).--purgeresultβ purge the result file before the run.- *
--find=string* β search for the given pattern in the documentation sources. --forcexmlβ force xml stub.--forcecldβ force cld (context lua document) stub.--forceluaβ force lua stub (liketexlua).--forcempβ force mp stub.--arrangeβ run an extra imposition pass, given that the style sets up imposition.--noarrangeβ ignore imposition specifications in the style.--pagesβ report pagenumbers of names pages and list references (--page=...or--page=...).--jitβ use luajittex with jit turned off (only use the faster virtual machine).--jitonβ use luajittex with jit turned on (in most cases not faster, even slower). π--onceβ only run once (no multipass data file is produced).--runsβ process at most this many times.--forcedrunsβ process this many times (permits for optimization trial runs).--batchmodeβ run without stopping and do not show messages on the console.--nonstopmodeβ run without stopping.--nocompactfontsβ revert to less efficient (traditional) font scaling.--nosynctexβ never initializes synctex (for production runs).--synctexβ run with synctex enabled (better useupsynctex[state=start]).--nodatesβ omit runtime dates in the pdf file (optional value: a number (1970 offset) or a string"YYYY-MM-DD HH:MM").--nocompressionβ forcefully turns off compression in the backend.--traileridβ alternative trailer id (or a constant one).--generateβ generate file database etc. (as luatools does).--paranoidβ do not descend to..and../... π«--versionβ report the installed context version.--globalβ assume the given file is present elsewhere.--nofileβ use a dummy file as jobname.--forceinputβ use this file as input file instead of the given one.--expertβ show some more options. π (this is your ticket into the EXPERT section, iykyk)
π OPTIONS: EXPERT π
you made it past --expert. welcome to the inner circle. π«Ά
--touchβ update the context version number (also provide--expert, optionally provide--basepath).--nostatisticsβ omit runtime statistics at the end of the run.--profileβ profile the job (use:mtxrun --script profile --analyze).--timingβ generate a timing and statistics overview.--keeptucβ keep previous tuc files (jobname-tuc-[run].tmp).--keeppdfβ keep previous pdf files (jobname-pdf-keep.tmp).--keeplogβ keep previous log files (jobname-log-[run].tmp).--notucβ don't write a tuc file.--lmtxβ force lmtx mode (when available).--overloadmode=error|warning|0--6|255β enable csname overload checking.- *
--extra=name* β process extra (mtx-context-...in distribution). --extrasβ show extras.--ownerpasswordβ encrypt the (pdf) file using this master password. π--userpasswordβ use an additional password for opening the document.--permissionsβ list of:print,modify,extract,add,fillin,assemble,quality.--wtpdfβ add an wtpdf conformance blob, but best check first if it applies. β οΈ
π OPTIONS: SPECIAL π
the special-est of specials. β¨
--pdftexβ process file with texexec using pdftex.--xetexβ process file with texexec using xetex.--mkiiβ process file with texexec.--pipeβ do not check for file and enter scroll mode (--dummyfile=whatever.tmp).--parallelβ process multiple files at the same time (you can specify a number of processes, default:8).--parallellistβ process commands in this file (lines that start with'context').--sandboxβ process file in a limited environment.--addbinarypathβ prepend the (found) binarypath to runners.
π§ AUTHOR π§
more information about ConTeXt and the tools that come with it can be found at:
- maillist:
ntg-context@ntg.nl/http://www.ntg.nl/mailman/listinfo/ntg-context - webpage:
http://www.pragma-ade.nl/http://tex.aanhet.net - wiki:
http://contextgarden.net
and that's the whole page bestie, you ate that π
β¨ this was version 1.05, dated 01-01-2025 β go forth and --run something iconic. πΈπ¦π
π¦ where this page comes from
- opensuse-leap 16.0: texlive-context-texlive-doc 2025.221.svn74241-160000.3.1 Β· LPPL-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms