TEXIFY(1)
β¨ 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 fromFILEinstead of standard input.-o FILEβ write toFILEinstead of standard output.-l LENGTHβ limit line length toLENGTH.-t LENGTHβ make a tab correspond toLENGTHspaces. Default is6.-num INTERVALβ prefix output lines with the matching line number from the input, skippingINTERVALlines between each time a prefix gets added. An interval of1means 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 codeadaβ Ada source codeasmβ Assembly codeaxiomβ AXIOM codeBβ B source codebetaβ BETA source codebisonβ Bison source codecβ C source codec++β C++ source codeidlβ OMG/CORBA IDL source codejavaβ Java source codelexβ Lex source codelispβ LISP source codeloglaβ LOGLA source codematlabβ MATLAB scriptmlβ ML source codeperlβ Perl source codepromelaβ Promela source codepythonβ Python source codeschemeβ Scheme source codesimβ SIMULA source codesqlβ SQL queriesrubyβ Ruby source codevhdlβ 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 π
β¨
π¦ where this page comes from
- debian bookworm: texify 1.20-4.1 Β· GPL-2.0-or-later
- debian trixie: texify 1.20-5 Β· GPL-2.0-or-later
- ubuntu jammy: texify 1.20-4.1 Β· GPL-2.0-or-later
- ubuntu noble: texify 1.20-4.1 Β· GPL-2.0-or-later
- ubuntu questing: texify 1.20-5
- ubuntu resolute: texify 1.20-5build1 Β· GPL-2.0-or-later
- ubuntu stonking: texify 1.20-6 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms