UNTEX(1)

πŸ“¦
version 1.2 Β· 2 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

🌸 UNTEX(1) β€” the girlies' guide to stripping LaTeX ✨

okay so bestie, welcome to General Commands Manual territory, where we're talking about untex, a whole little icon πŸ’…


✨ NAME ✨

untex β€” strip LaTeX comands from input

(and yes, the manpage itself says "comands", we don't fix canon in this house πŸ’–)


πŸŽ€ SYNOPSIS πŸŽ€

untex [ options ] [ files ...  ]

πŸ¦‹ DESCRIPTION πŸ¦‹

so basically untex removes some LaTeX commands from the files you list in the arguments β€” or from standard input if you don't list any β€” and then prints the output to standard output. that's it, that's the whole vibe. lowkey a glow-up for your raw text ✨


πŸ’… OPTIONS πŸ’…

  • - β€” read from standard input. classic, iconic, no notes 🫢
  • -o β€” remove options to LaTeX commands, i. e. everything in brackets [] behind a command. bye bye brackets πŸ’€
  • -i β€” process "\include{file}" and "\input{file}" and "\input file" commands. it's giving recursion energy 🌈
  • -m β€” (try to) remove all math code. note the "(try to)" bestie, we said what we said 😭
  • -u β€” replace all \"a (etc.) with ibm (CP850) characters.
  • -uiso β€” replace all \"a (etc.) with ISO characters.
  • -uascii β€” replace all \"a (etc.) with ascii characters.
  • -g β€” replace all "a (etc., from german.sty) with ibm (CP850) characters.
  • -giso β€” replace all "a (etc., from german.sty) with ISO characters.
  • -gascii β€” replace all "a (etc., from german.sty) with ascii characters.
  • -e β€” remove environment names. environment? gone. not me deleting it 🧚
  • -a β€” remove arguments of commands (not recommended). > ⚠️ bestie this one is literally marked not recommended, so proceed with caution fr fr

also, important lore: -g implies -u, and -a implies -o. so they come as a package deal, periodt πŸ’–


πŸ‘‘ SEE ALSO πŸ‘‘

latex, tex, detex

like, the whole friend group 🫢


πŸ’€ BUGS πŸ’€

okay so the tea β˜•:

  • the -g and -u options only work for german accented characters. not fixed due to lack of time, and any help is appreciated. so if you've got free time and a dream, the maintainers are literally asking πŸ™ˆ
  • the \includeonly command is ignored. it's just out here being invisible πŸ’…
  • using the -u option in a UTF-8 terminal doesn't work. and using it alone in a Latin1 terminal doesn't work either β€” you must also add -uiso. yeah. you have to do both. no cap, that's the rule 😭

🌸 AUTHORS 🌸

untex was written by Michael Staats (michael@hal6000.thp.Uni-Duisburg.DE). the -gascii and -uascii options were added by Denis Endisch (denis@smoky.ikf.physik.uni-frankfurt.de). and a big shoutout to Subhasish Mazumdar (mazumdar@ringer.cs.utsa.edu) for some hints for improvements and bug reports πŸ’– absolute legends, all of them πŸ‘‘


and that's the whole page bestie! this lil masterpiece is from the 4th Berkeley Distribution, Version 1.2, dated 1994 April 6 β€” yes she's vintage, yes she still serves, we love a timeless queen πŸ’…βœ¨πŸŽ€