mtx-context(1)

πŸ“¦
version 78010 Β· 3 versions
, in fedora 44

πŸ’– 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 --silent is 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 (like texlua).
  • --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 use upsynctex[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:


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