Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

prg2lout(1) [debian man page]

PRG2LOUT(1)						      General Commands Manual						       PRG2LOUT(1)

NAME
prg2lout - convert computer program text into Lout SYNOPSIS
prg2lout -l language [ options ] files... DESCRIPTION
Reformat computer program text for input to the Lout document formatting system, taking care of comments, character strings, tab charac- ters, etc. prg2lout reads the named program source files and produces output suitable for input to lout -s. Thus, prg2lout -l C foo.c | lout -s | lpr will print the C program foo.c on a PostScript printer. Each file will start on a new page, preceded by its name in bold. OPTIONS
-llanguage (Compulsory.) Files are written in this programmming language. Run prg2lout -u to see the list of languages available. -pfixed Use a fixed width font (the default for C). -pvarying Use a varying-width italic font with non-italic bold keywords (the default for Eiffel). -psymbol Use a varying-width italic font with mathematical symbols and non-italic bold keywords. -n Do not print the file name before each source file. -f font Select a font family. The default is -fCourier for -pfixed, and -fTimes for -pvarying and -psymbol. -s size Select a Lout font size. The default is -s9p (meaning 9 points) for -pfixed, and -s10p for -pvarying and -psymbol. These work well with 80-character-wide programs. -v vsize Select a Lout vertical inter-line gap. The default is -v1.1fx meaning 1.1 times the font size measured from baseline to baseline. -b num Select a blank line scale factor. The default is -b1.0 meaning no scaling. A good alternative is 0.6. -t num Set the tab interval to num characters (default is -t8). -T width Without this option, prg2lout simulates tabs with spaces. With this option, prg2lout simulates tabs with Lout tabulation operators; width is the width of one tab interval in the final print, measured in Lout units. This guarantees alignment of characters follow- ing tabs even with varying-width fonts, provided width is sufficiently large. For example, -T0.5i produces half-inch tab intervals. -L number Attach line numbers to the program text, beginning with number or 1 if number is not given. You may need to give the 1 anyway to prevent .I prg2lout from taking a following file name as a number. -N Do not print line numbers on blank lines. -M Like -N but do not assign line numbers to blank lines. -S filename Use filename as the setup file instead of the system default setup file. The setup file determines the value of all formatting options not given to prg2lout as command line arguments. -u Print usage information on stderr, including available languages, and exit. -V Print version information on stderr and exit. Raw Mode There is a "raw mode" usage of prg2lout invoked by a -r flag (must be the first argument). This converts one program file into Lout-read- able source without any heading or trailing information. Synopsis: prg2lout -r -i infile -o out -e err -t num -T width Users should never need this mode; it is invoked automatically from within Lout by symbols supplied with the standard configuration (see reference). SEE ALSO
lout(1), lpr(1), ghostview(1). REFERENCES
Jeffrey H. Kingston, "A User's Guide to the Lout Document Formatting System", Chapter 11. AUTHOR
Jeffrey H. Kingston PRG2LOUT(1)

Check Out this Related Man Page

pbmtopk(1)						      General Commands Manual							pbmtopk(1)

NAME
pbmtopk - convert a portable bitmap into a packed (PK) format font SYNOPSIS
pbmtopk pkfile[.pk] tfmfile[.tfm] resolution [-s designsize] [-p num param...] [-C codingscheme] [-F family] [-f optfile] [-c num] [-W width] [-H height] [-D depth] [-I ital] [-h horiz] [-v vert] [-x xoff] [-y yoff] [pbmfile]... DESCRIPTION
Reads portable bitmaps as input, and produces a packed (PK) font file and a TFM (TeX font metric) file as output. The resolution parameter indicates the resolution of the font, in dots per inch. If the filename "-" is used for any of the filenames, the standard input stream (or standard output where appropriate) will be used. OPTIONS
-s designsize Sets the design size of the font, in TeX's points (72.27pt to the inch). The default design size is 1. The TFM parameters are given as multiples of the design size. -p num param... Sets the first num font parameters for the font. The first seven parameters are the slant, interword spacing, interword space stretchability, interword space shrinkability, x-height, quad width, and post-sentence extra space of the font. Math and symbol fonts may have more parameters; see The TeXbook for a list of these. Reasonable default values are chosen for parameters which are not specified. -C codingscheme Sets the coding scheme comment in the TFM file. -F family Sets the font family comment in the TFM file. -f optfile Reads the file optfile, which should contain a lines of the form: filename xoff yoff horiz vert width height depth ital The pbm files specified by the filename parameters are inserted consecutively in the font with the specified attributes. If any of the attributes are omitted, or replaced with "*", a default value will be calculated from the size of the bitmap. The settings of the -W, -H, -D, -I, -h, -v, -x, and -y options do not affected characters created in this way. The character number can be changed by including a line starting with "=", followed by the new number. Lines beginning with "%" or "#" are ignored. -c num Sets the character number of the next bitmap encountered to num. -W width Sets the TFM width of the next character to width (in design size multiples). -H height Sets the TFM height of the next character to height (in design size multiples). -D depth Sets the TFM depth of the next character to depth (in design size multiples). -I ital Sets the italic correction of the next character to ital (in design size multiples). -h horiz Sets the horizontal escapement of the next character to horiz (in pixels). -v vert Sets the vertical escapement of the next character to vert (in pixels). -x xoff Sets the horizontal offset of the next character to xoff (in pixels). -y yoff Sets the vertical offset of the next character to yoff (in pixels, from the top row). SEE ALSO
pktopbm(1), pbm(5) AUTHOR
Adapted from Tom Rokicki's pxtopk by Angus Duggan <ajcd@dcs.ed.ac.uk>. 6 August 1990 pbmtopk(1)
Man Page