DVILJK(1) User Commands DVILJK(1) NAME dvilj4, dvilj4l, dvilj2p, dvilj - convert a TeX DVI file to PCL, for HP LaserJet printers SYNOPSIS dvilj [--D_n_u_m_b_e_r] [-c_c_o_p_i_e_s] [-d_m_o_d_e] [-D] [-E] [ - e_o_u_t_p_u_t_- _f_i_l_e] [-f_f_r_o_m_p_a_g_e] [-g] [-h_h_e_a_d_e_r_f_i_l_e] [-l] [-M_f_l_a_g] [-m_m_a_g] [-p_p_a_g_e_s] [-q] [-r] [-t_t_o_p_a_g_e] [-s_p_a_g_e_s_i_z_e] [-v] [ - w] [ - x_x_o_f_f(_m_m)] [-y_y_o_f_f(_m_m)] [-X_x_o_f_f(_d_o_t_s)] [-Y_y_o_f_f(_d_o_t_s)] [-z] [ -] [_f_i_l_e_n_a_m_e] DESCRIPTION Dvilj and siblings convert TeX-output .dvi files into PCL (the Hewlett-Packard Printer Control Language) commands suitable for printing on a HP LaserJet+, HP LaserJet IIP (using dvilj2p), HP LaserJet 4 (using dvilj4), and fully compatible printers. Dvilj4 also provides support for the builtin Intellifont and TrueType fonts; TFM and VF files are provided in the distri- bution. Virtual fonts are not supported directly by Dvilj, so you must run dvicopy(1) first, or otherwise expand the virtual fonts All programs are generated from one source file dvi2xx.c. They are usually called via a shell script or as a line printer filter. One such script, dvihp, is included in the distribution. It provides command-line options similar to those of dvips(1). OPTIONS --D_n_u_m_b_e_r Debug according to the bits of _n_u_m_b_e_r; see the Kpathsea manual for values. Also turns on general verbosity. -c_n_u_m_b_e_r print each page _n_u_m_b_e_r times (including original) -d_n_u_m_b_e_r print in duplex mode. The option -d_1 means long edge binding, -d_2 stands for short edge binding. This option is only selectable from _d_v_i_l_j_2_p, and is known to work on the LaserJet IId, LaserJet IIId, and LaserJet 4. -D[-] Double-sided printing - see below; -D_1 prints odd sides only, -D_2 is for even pages, a trailing - suppresses printing of empty padding pages. -E Switch printer into econo mode (dvilj4 only). -e_o_u_t_f_i_l_e Send output to _o_u_t_f_i_l_e instead of the basename of dvi file extended with `.lj'. If _o_u_t_f_i_l_e is `-' (as in `-e-') the output is directed to standard SunOS 5.5 Last change: 10 June 1996 1 DVILJK(1) User Commands DVILJK(1) output and can be directly piped into a spooler. -f_p_a_g_e_n_u_m Print pages with TeX page numbers greater than or equal to _p_a_g_e_n_u_m. -g ``go'' mode: do not reset printer at start of job. -h_h_e_a_d_e_r_f_i_l_e Copy _h_e_a_d_e_r_f_i_l_e to output before translation of the DVI file. Used to send arbitrary commands to the laserprinter. -l print output in landscape mode; supported only by dvilj2p and dvilj4. -M_f_l_a_g Do (not) call MakeTeXPK to generate fonts on demand. -M_1 and -M are equivalent. -M_0 enables invoking MakeTeXPK. (This is the same as dvips.) The default behavior (i.e., if no -M option is given) is chosen at compile-time; as distributed, MakeTeXPK is enabled. -M is only valid if dvi2xx was compiled with support for MakeTeXPK. -m_m_a_g_n_i_f_i_c_a_t_i_o_n Specify the magnification to use. The following are available: -m#_u_s_e_r_m_a_g e.g., #900 -m0 equivalent to -m#1000 -mh equivalent to -m#1095 -m1 equivalent to -m#1200 -mq equivalent to -m#1250 -m2 equivalent to -m#1440 -m3 equivalent to -m#1728 -m4 equivalent to -m#2074 -m5 equivalent to -m#2488 -p_p_a_g_e_c_o_u_n_t print _p_a_g_e_c_o_u_n_t pages after the starting page. -q Quiet operation: omit final statistics, etc. -r toggle page reversal; by default, pages are reversed. -s_p_a_g_e_s_i_z_e Specify the page size: -s1: executive (7.25in x 10.5in) -s2: letter (8.5in x 11in) -s3: legal (8.5in x 14in) -s26: A4 (210mm x 297mm) -s80: monarch (3.875in x 7.5in) -s81: commercial-10 (4.125in x 9.5in) SunOS 5.5 Last change: 10 June 1996 2 DVILJK(1) User Commands DVILJK(1) -s90: international DL (110mm x 220mm) -s91: international C5 (162mm x 229mm) All values are from the LJ II technical reference manual. If the -s commandline option is omitted, no clipping is performed at the bottom of the page. -t_p_a_g_e_n_u_m Print pages with TeX page numbers less than or equal to _p_a_g_e_n_u_m. -v Verbose mode: list fonts used, etc. -w Omit warnings. -x_o_f_f_s_e_t global x-offset in mm on output page relative to 1 inch/1 inch origin -y_o_f_f_s_e_t global y-offset in mm on output page relative to 1 inch/1 inch origin -X_o_f_f_s_e_t global x-offset in dots on output page (overrides 1 inch/1 inch origin) -Y_o_f_f_s_e_t global y-offset in dots on output page (overrides 1 inch/1 inch origin) -z print a test page with the page counter at end of job - Take input from standard input (must be seekable), write to standard output. If no arguments are specified a brief usage message is displayed. \special COMMANDS TeX `\special' commands that are implemented: \special{file=} copy specified file to the printer; either vector- or bitmap-graphics PMP commands \special{hpfile=} Same as `file'. others: There are a few other special commands implented for the LJ-series, which should only be used in connection with the distributed style files (e.g., graybox.sty). They may change in forthcoming versions. You can include Encapsulated PostScript (EPS) files in the PCL files output by dvilj if you convert them to PCL first. SunOS 5.5 Last change: 10 June 1996 3 DVILJK(1) User Commands DVILJK(1) The distribution includes a script `epspcl' to do this (using Ghostscript, so your Ghostscript must have the neces- sary LaserJet driver(s) compiled in). DOUBLE PAGE PRINTING The command line option -D causes the printer to print in doublepage mode, that is, roughly speaking, printing first the even pages and then the odd pages of a document. If -D is used to print both even and odd pages (-D is used without the optional _1 or _2) the following will happen after half of the pages is printed: LJ: the printer stops, shows message "FEED" and switches on manual feed led. The printer contin- ues when either the printed pages are fed into the manual page feeder, or the operator pushes the continue button (after placing first the printed pages into the paper tray). If -D1 was specified only odd pages will be printed, -D2 can be used for even pages. A trailing `-' (as in -D-, -D1- or -D2-) supresses printing of empty pages which are generated for padding otherwise. The driver allows the -D option for both print-directions (front-to-back or back-to-front printing). It tries to be clever in certain cases: when a document has an odd number of pages it inserts in the right place an empty page when a document starts with page 0 the driver inserts an empty page after the 0-page when a piece of a document is printed that starts with an even page-number it prints this page at the backside of the first page to ensure that the odd sides are always on the frontside. The 0-page is treated like an odd page. The doubleside option works for all LJs, not only for the new D model with does doubleside-printing (actually, I don't know whether it makes much sense on the new LJ II D at all). Caveat on the doubleside-option: When it is used frequently or on very large files, it might become necessary to clean the printer much more frequently. The command line option -pX can be used to abort printing after the output of X pages (can lead to strange results together with -D). I personally dislike this option. The secure way of printing a part of a document is using -f (from) and -t (to). ENVIRONMENT Dviljk uses the same environment variables and algorithms for finding font files as TeX and its friends do. See the documentation for the Kpathsea library for details. (Repeating it here is too cumbersome.) SunOS 5.5 Last change: 10 June 1996 4 DVILJK(1) User Commands DVILJK(1) DVILJFONTS, if set, overrides all other font paths. DVILJMAKEPK, if set, overrides `MakeTeXPK' as the name of the command to execute to create a PK file if one isn't found. The DVILJSIZES variable may be set to indicate which sizes of fonts are available. It should consist of a list of numbers separated by colons. If the list begins with a colon, the system default sizes are used, as well. Sizes are expressed in dots per inch; decimals may be used for ``pxl'' files: for example, a 300 dots per inch file magni- fied by half a step comes out to 1643 dots per five inches, which should be encoded as 328.6. _d_v_i_l_j tries the actual size of the font before trying any of the given sizes. KPATHSEA_DEBUG: Trace Kpathsea lookups; set to -1 for com- plete tracing. AUTHOR Gustaf Neumann, Wirtschaftsuniversitaet Wien neumann@wu-wien.ac.at dviljk changes by kb@mail.tug.org; email bug reports to tex- k@mail.tug.org. SunOS 5.5 Last change: 10 June 1996 5