mtx-tools(1)
πΈ mtx-tools β Some File Related Goodies πΈ
okay bestie, so this is mtx-tools(1) β it lives in the Some File Related Goodies corner of the manual-verse, and it's genuinely just a lil grab-bag of file-flavoured party tricks π
no cap, the entire description is literally "Some File Related Goodies" and honestly? iconic. it knows what it is.
β¨ SYNOPSIS β¨
mtxrun --script tools [ OPTIONS ... ] [ FILENAMES ]
so you call it through mtxrun --script tools, you can throw a pile of OPTIONS at it, and you can hand it FILENAMES. that's the whole vibe π«Ά
π¦ DESCRIPTION π¦
Some File Related Goodies.
(no fr, that is the entire official description and I respect the confidence π)
π OPTIONS π
--disarmutfbomβ takes the utf bom and disarms it, if there even is one present. bye bom π--forceβ removes indeed. like, actually does the removal, no half-measures.--dirtoxmlβ globs a whole directory into xml. directory in, xml out, slay β¨--patternβ the glob pattern to match on. default is*(yes, literally everything).--urlβ sets a url attribute. no processing, it just gets plopped in there as-is πͺ--rootβ the root of the globbed path. default is.(the current directory, main character of your filesystem).--outputβ the output filename. by default it goes to the console, so nothing gets written unless you tell it to.--recurseβ recurses into subdirectories. deep dive energy π--stripnameβ takes the pathpart of the given pattern. strips it right off.--longnameβ sets name attributes to the full path name. long name, long hello π--downcaseβ lowercases names. no more SHOUTING.--showstringβ shows the unicode characters in the given string π--showfileβ shows the unicode characters in the given file π--patternβ glob pattern again, bestie. default:*. yeah, it's listed twice in the original and I'm keeping both because I do not gatekeep and I do not edit the source. iykyk π§--recurseβ recurse into subdirectories, again. yes. twice. it loves recursing so much it recursed its own option list π--forceβ downcases indeed. this is the second--forceand it means something different from the first one (that one was about removing). same flag, different mood, choose your context wisely π
fr fr though β--pattern,--recurseand--forceeach show up twice on this page with different descriptions. that's just how the page is. don't @ me, @ the original π
π AUTHOR π
want more lore about ConTeXt and the tools that come bundled with it? the receipts are all here:
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
okay that's the whole thing, go forth and glob π¦β¨
version 1.01 Β· 01-01-2026 Β· and yes, it really does sign itself mtx-tools(1) β cute lil self-reference, we love a consistent footer ππ
π¦ where this page comes from
- alpine 3.24: texmf-dist-context-doc 2026.0-r0 Β· LPPL-1.0 AND LPPL-1.1 AND LPPL-1.2 AND LPPL-1.3a AND LPPL-1.3c AND GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms