TEXIFY(1)

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

✨ NAME ✨

texify β€” it formats your code so it can go live in LaTeX, bestie πŸ’…


🌸 SYNOPSIS 🌸

texify<input-type> [OPTION]...

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so picture this: texify takes source code written in literally any of several different languages and translates it into latex(1) source files. The whole point? Making the source code you embed in your documents actually readable, by giving it syntax highlighting. It's giving glow-up, no cap. ✨


πŸ’– OPTIONS πŸ’–

  • -i FILE β€” read from FILE instead of standard input.
  • -o FILE β€” write to FILE instead of standard output.
  • -l LENGTH β€” limit line length to LENGTH.
  • -t LENGTH β€” make a tab correspond to LENGTH spaces. Default is 6.
  • -num INTERVAL β€” prefix output lines with the matching line number from the input, skipping INTERVAL lines between each time a prefix gets added. An interval of 1 means every single line is prefixed.
  • -numsize \texsize β€” swap out the TeX code used to set the size of the line numbers. The default is \footnotesize.

🌈 INPUT TYPES 🌈

The vibe check on what texify can handle β€” every one of these is a whole mood:

  • abel β€” ABEL source code
  • ada β€” Ada source code
  • asm β€” Assembly code
  • axiom β€” AXIOM code
  • B β€” B source code
  • beta β€” BETA source code
  • bison β€” Bison source code
  • c β€” C source code
  • c++ β€” C++ source code
  • idl β€” OMG/CORBA IDL source code
  • java β€” Java source code
  • lex β€” Lex source code
  • lisp β€” LISP source code
  • logla β€” LOGLA source code
  • matlab β€” MATLAB script
  • ml β€” ML source code
  • perl β€” Perl source code
  • promela β€” Promela source code
  • python β€” Python source code
  • scheme β€” Scheme source code
  • sim β€” SIMULA source code
  • sql β€” SQL queries
  • ruby β€” Ruby source code
  • vhdl β€” VHDL description
🫢 Real talk: this manual page was written for the Debian operating system, because the original program doesn't have a manual page. Not me filling in the gaps for the girlies πŸ’€

πŸŽ€ EXAMPLES πŸŽ€

Say you wanna format a Java source file. Literally just type:

texifyjava < input.java > output.tex

You can also format the output of some program without stashing its output in a temporary file first. If you want to format the output of a PostgreSQL database dump, just type:

pg_dump foobar | texifysql > output.tex

See? Piping is main character energy. πŸ‘‘


πŸ’œ AUTHOR πŸ’œ

This manual page was written by Morten Hustveit <morten@debian.org>. Iconic of him honestly. 🌟


And that's the whole page, bestie πŸŽ€ β€” Debian-flavored, dated January 2003, brought to you under TEXIFY(1) in the General Commands Manual. Slay, go highlight some code πŸ’…βœ¨