Scroll to navigation

TEXIFY(1) General Commands Manual TEXIFY(1)

NAME

texify - format code for use with LaTeX

SYNOPSIS

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

DESCRIPTION

texify translates source code written in any of several different languages to latex(1) source files. The purpose is to make source code embedded in documents more readable, by providing syntax highliting.

OPTIONS

Read from FILE instead of standard input.
Write to FILE instead of standard output.
Limit line length to LENGTH.
Make a tab correspond to LENGTH spaces. Default is 6.
Prefix output lines with the corresponding line number from the input, skipping INTERVAL lines between each time a prefix is added. An interval of 1 will ensure that every line is prefixed.
Replace the TeX code used to set the size of the line numbers. The default is \footnotesize.

INPUT TYPES

ABEL source code
Ada source code
Assembly code
AXIOM code
B source code
BETA source code
Bison source code
C source code
C++ source code
OMG/CORBA IDL source code
Java source code
Lex source code
LISP source code
LOGLA source code
MATLAB script
ML source code
Perl source code
Promela source code
Python source code
Scheme soruce code
SIMULA source code
SQL queries
Ruby source code
VHDL description

This manual page was written for the Debian operating system because the original program does not have a manual page.

EXAMPLES

texifyjava < input.java > output.tex
pg_dump foobar | texifysql > output.tex

AUTHOR

This manual page was written by Morten Hustveit <morten@debian.org>.

January 2003