home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / d / dvips549.zip / DVIPS / PC / DVIPS.DOC < prev    next >
Text File  |  1992-10-14  |  16KB  |  330 lines

  1.  
  2.  
  3.  
  4.    13 February 1992                                                  DVIPS(1)
  5.  
  6.  
  7.  
  8.    NAME
  9.      dvips - convert a TeX DVI file to PostScript
  10.  
  11.    SYNOPSIS
  12.      dvips [ _o_p_t_i_o_n_s ] _f_i_l_e[.dvi]
  13.  
  14.    DESCRIPTION
  15.      The program dvips takes a DVI file _f_i_l_e[.dvi] produced by TeX (or by
  16.      some other processor such as GFtoDVI) and converts it to PostScript,
  17.      normally sending the result directly to the laserprinter.  The DVI file
  18.      may be specified without the ._d_v_i extension.  Fonts used may either be
  19.      resident in the printer or defined as bitmaps in PK files, or a `vir-
  20.      tual' combination of both.  If the MakeTeXPK program is installed, dvips
  21.      will automatically invoke METAFONT to generate fonts that don't already
  22.      exist.
  23.  
  24.      For more information, see the manual _d_v_i_p_s._t_e_x in the TEXINPUTS direc-
  25.      tory. The manual can be printed with the following commands:
  26.  
  27.  
  28.           tex dvips
  29.           dvips dvips -o dvips.ps
  30.           lpr dvips.ps
  31.  
  32.    OPTIONS
  33.  
  34.      -a   Conserve memory by making three passes over the .dvi file instead
  35.           of two and only loading those characters actually used.  Generally
  36.           only useful on machines with a very limited amount of memory, like
  37.           some PCs.
  38.  
  39.      -b num
  40.           Generate _n_u_m copies of each page, but duplicating the page body
  41.           rather than using the #_n_u_m_c_o_p_i_e_s option.  This can be useful in
  42.           conjunction with a header file setting _c_h_a_r_9_2_b_o_p-_h_o_o_k to do color
  43.           separations or other neat tricks.
  44.  
  45.      -c num
  46.           Generate _n_u_m copies of every page.  Default is 1.  (For collated
  47.           copies, see the -_C option below.)
  48.  
  49.      -C num
  50.           Create _n_u_m copies, but collated (by replicating the data in the
  51.           PostScript file).  Slower than the -_c option, but easier on the
  52.           hands, and faster than resubmitting the same PostScript file multi-
  53.           ple times.
  54.  
  55.      -d num
  56.           Set the debug flags.  This is intended only for emergencies or for
  57.           unusual fact-finding expeditions; it will work only if _d_v_i_p_s has
  58.           been compiled with the DEBUG option.  For more information on pos-
  59.           sible values see section 15 of _d_v_i_p_s._t_e_x.
  60.  
  61.  
  62.  
  63.    TeXware                                                                  1
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.    DVIPS(1)                                                  13 February 1992
  71.  
  72.  
  73.      -D num
  74.           Set the resolution in dpi (dots per inch) to _n_u_m. This affects the
  75.           choice of bitmap fonts that are loaded and also the positioning of
  76.           letters in resident PostScript fonts. Must be between 10 and 10000.
  77.           This affects both the horizontal and vertical resolution.  If a
  78.           high resolution (something greater than 400 dpi, say) is selected,
  79.           the -_Z flag should probably also be used.
  80.  
  81.      -e num
  82.           Make sure that each character is placed at most this many pixels
  83.           from its `true' resolution-independent position on the page. The
  84.           default value of this parameter is resolution dependent.  Allowing
  85.           individual characters to `drift' from their correctly rounded posi-
  86.           tions by a few pixels, while regaining the true position at the
  87.           beginning of each new word, improves the spacing of letters in
  88.           words.
  89.  
  90.      -E   makes _d_v_i_p_s attempt to generate an EPSF file with a tight bounding
  91.           box.  This only works on one-page files, and it only looks at marks
  92.           made by characters and rules, not by any included graphics.  In
  93.           addition, it gets the glyph metrics from the _t_f_m file, so charac-
  94.           ters that lie outside their enclosing _t_f_m box may confuse it.  In
  95.           addition, the bounding box might be a bit too loose if the charac-
  96.           ter glyph has significant left or right side bearings.  Nonethe-
  97.           less, this option works well for creating small EPSF files for
  98.           equations or tables or the like.  (Note, of course, that _d_v_i_p_s out-
  99.           put is resolution dependent and thus does not make very good EPSF
  100.           files, especially if the images are to be scaled; use these EPSF
  101.           files with a great deal of care.)
  102.  
  103.      -f   Read the ._d_v_i file from standard input and write the PostScript to
  104.           standard output.  The standard input must be seekable, so it cannot
  105.           be a pipe.  If you must use a pipe, write a shell script that
  106.           copies the pipe output to a temporary file and then points _d_v_i_p_s at
  107.           this file.  This option also disables the automatic reading of the
  108.           _P_R_I_N_T_E_R environment variable, and turns off the automatic sending
  109.           of control D if it was turned on with the -_F option or in the con-
  110.           figuration file; use -_F after this option if you want both.
  111.  
  112.      -F   Causes Control-D (ASCII code 4) to be appended as the very last
  113.           character of the PostScript file.  This is useful when _d_v_i_p_s is
  114.           driving the printer directly instead of working through a spooler,
  115.           as is common on extremely small systems.  NOTE! DO NOT USE THIS
  116.           OPTION!
  117.  
  118.      -h name
  119.           Prepend file _n_a_m_e as an additional header file. (However, if the
  120.           name is simply `-' suppress all header files from the output.)
  121.           This header file gets added to the PostScript _u_s_e_r_d_i_c_t.
  122.  
  123.      -i   Make each section be a separate file.  Under certain circumstances,
  124.           _d_v_i_p_s will split the document up into `sections' to be processed
  125.           independently; this is most often done for memory reasons.  Using
  126.           this option tells _d_v_i_p_s to place each section into a separate file;
  127.  
  128.  
  129.    2                                                                  TeXware
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.    13 February 1992                                                  DVIPS(1)
  137.  
  138.  
  139.           the new file names are created replacing the suffix of the supplied
  140.           output file name by a three-digit sequence number.  This option is
  141.           most often used in conjunction with the -_S option which sets the
  142.           maximum section length in pages.  For instance, some photo-
  143.           typesetters cannot print more than ten or so consecutive pages
  144.           before running out of steam; these options can be used to automati-
  145.           cally split a book into ten-page sections, each to its own file.
  146.  
  147.      -k   Print crop marks.  This option increases the paper size (which
  148.           should be specified, either with a paper size special or with the
  149.           -_T option) by a half inch in each dimension.  It translates each
  150.           page by a quarter inch and draws cross-style crop marks.  It is
  151.           mostly useful with typesetters that can set the page size automati-
  152.           cally.
  153.  
  154.      -K   This option causes comments in included PostScript graphics, font
  155.           files, and headers to be removed.  This is sometimes necessary to
  156.           get around bugs in spoolers or PostScript post-processing programs.
  157.           Specifically, the %%Page comments,  when left in, often cause dif-
  158.           ficulties.  Use of this flag can cause some included graphics to
  159.           fail, since the PostScript header macros from some software pack-
  160.           ages read portions of the input stream line by line, searching for
  161.           a particular comment.  This option has been turned off by default
  162.           because PostScript previewers and spoolers have been getting
  163.           better.
  164.  
  165.      -l num
  166.           The last page printed will be the first one numbered _n_u_m Default is
  167.           the last page in the document.  If the _n_u_m is prefixed by an equals
  168.           sign, then it (and any argument to the -_p option) is treated as a
  169.           sequence number, rather than a value to compare with _c_h_a_r_9_2 _c_o_u_n_t_0
  170.           values.  Thus, using -_l =_9 will end with the ninth page of the
  171.           document, no matter what the pages are actually numbered.
  172.  
  173.      -m   Specify manual feed for printer.
  174.  
  175.      -M   Turns off the automatic font generation facility.  If any fonts are
  176.           missing, commands to generate the fonts are appended to the file
  177.           _m_i_s_s_f_o_n_t._l_o_g in the current directory; this file can then be exe-
  178.           cuted and deleted to create the missing fonts.
  179.  
  180.      -n num
  181.           At most _n_u_m pages will be printed. Default is 100000.
  182.  
  183.      -N   Turns off structured comments; this might be necessary on some sys-
  184.           tems that try to interpret PostScript comments in weird ways, or on
  185.           some PostScript printers.  Old versions of TranScript in particular
  186.           cannot handle modern Encapsulated PostScript.
  187.  
  188.      -o name
  189.           The output will be sent to file _n_a_m_e If no file name is given, the
  190.           default name is _f_i_l_e._p_s where the .dvi file was called _f_i_l_e._d_v_i; if
  191.           this option isn't given, any default in the configuration file is
  192.           used.  If the first character of the supplied output file name is
  193.  
  194.  
  195.    TeXware                                                                  3
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.    DVIPS(1)                                                  13 February 1992
  203.  
  204.  
  205.           an exclamation mark, then the remainder will be used as an argument
  206.           to _p_o_p_e_n; thus, specifying !_l_p_r as the output file will automati-
  207.           cally queue the file for printing.  This option also disables the
  208.           automatic reading of the _P_R_I_N_T_E_R environment variable, and turns
  209.           off the automatic sending of control D if it was turned on with the
  210.           -_F option or in the configuration file; use -_F after this option if
  211.           you want both.
  212.  
  213.      -O offset
  214.           Move the origin by a certain amount.  The _o_f_f_s_e_t is a comma-
  215.           separated pair of dimensions, such as ._1_i_n,-._3_c_m (in the same syn-
  216.           tax used in the _p_a_p_e_r_s_i_z_e special).  The origin of the page is
  217.           shifted from the default position (of one inch down, one inch to
  218.           the right from the upper left corner of the paper) by this amount.
  219.  
  220.      -p num
  221.           The first page printed will be the first one numbered _n_u_m. Default
  222.           is the first page in the document.  If the _n_u_m is prefixed by an
  223.           equals sign, then it (and any argument to the -_l option) is treated
  224.           as a sequence number, rather than a value to compare with _c_h_a_r_9_2
  225.           _c_o_u_n_t_0 values.  Thus, using -_p =_3 will start with the third page of
  226.           the document, no matter what the pages are actually numbered.
  227.  
  228.      -P printername
  229.           Sets up the output for the appropriate printer.  This is imple-
  230.           mented by reading in _c_o_n_f_i_g._p_r_i_n_t_e_r_n_a_m_e , which can then set the
  231.           output pipe (as in, !_l_p_r -_P_p_r_i_n_t_e_r_n_a_m_e as well as the font paths
  232.           and any other _c_o_n_f_i_g._p_s defaults for that printer only.  Note that
  233.           _c_o_n_f_i_g._p_s is read before _c_o_n_f_i_g._p_r_i_n_t_e_r_n_a_m_e In addition, another
  234.           file called ~/._d_v_i_p_s_r_c is searched for immediately after _c_o_n_f_i_g._p_s;
  235.           this file is intended for user defaults.  If no -_P command is
  236.           given, the environment variable _P_R_I_N_T_E_R is checked.  If that vari-
  237.           able exists, and a corresponding configuration file exists, that
  238.           configuration file is read in.
  239.  
  240.      -q   Run in quiet mode.  Don't chatter about pages converted, etc.;
  241.           report nothing but errors to standard error.
  242.  
  243.      -r   Stack pages in reverse order.  Normally, page 1 will be printed
  244.           first.
  245.  
  246.      -s   Causes the entire global output to be enclosed in a save/restore
  247.           pair.  This causes the file to not be truly conformant, and is thus
  248.           not recommended, but is useful if you are driving the printer
  249.           directly and don't care too much about the portability of the out-
  250.           put.
  251.  
  252.      -S num
  253.           Set the maximum number of pages in each `section'.  This option is
  254.           most commonly used with the -_i option; see that documentation above
  255.           for more information.
  256.  
  257.      -t papertype
  258.           This sets the paper type to _p_a_p_e_r_t_y_p_e. The _p_a_p_e_r_t_y_p_e _s_h_o_u_l_d _b_e
  259.  
  260.  
  261.    4                                                                  TeXware
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.    13 February 1992                                                  DVIPS(1)
  269.  
  270.  
  271.           _d_e_f_i_n_e_d _i_n _o_n_e the appropriate code to select it.  (Currently known
  272.           types include _l_e_t_t_e_r, _l_e_g_a_l, _l_e_d_g_e_r, _a_4, _a_3, ) You can also specify
  273.           -_t _l_a_n_d_s_c_a_p_e, which rotates a document by 90 degrees.  To rotate a
  274.           document whose size is not letter, you can use the -_t option twice,
  275.           once for the page size, and once for landscape.  The upper left
  276.           corner of each page in the ._d_v_i file is placed one inch from the
  277.           left and one inch from the top.  Use of this option is highly
  278.           dependent on the configuration file.  Note that executing the
  279.           _l_e_t_t_e_r or _a_4 or other PostScript operators cause the document to be
  280.           nonconforming and can cause it not to print on certain printers, so
  281.           the paper size should not execute such an operator if at all possi-
  282.           ble.
  283.  
  284.      -T offset
  285.           Set the paper size to the given pair of dimensions.  This option
  286.           takes its arguments in the same style as -_O. It overrides any paper
  287.           size special in the dvi file.
  288.  
  289.      -U   Disable a PostScript virtual memory saving optimization that stores
  290.           the character metric information in the same string that is used to
  291.           store the bitmap information.  This is only necessary when driving
  292.           the Xerox 4045 PostScript interpreter.  It is caused by a bug in
  293.           that interpreter that results in `garbage' on the bottom of each
  294.           character.  Not recommended unless you must drive this printer.
  295.  
  296.      -x num
  297.           Set the magnification ratio to _n_u_m /1000. Overrides the magnifica-
  298.           tion specified in the .dvi file.  Must be between 10 and 100000.
  299.  
  300.      -X num
  301.           Set the horizontal resolution in dots per inch to _n_u_m.
  302.  
  303.      -Y num
  304.           Set the vertical resolution in dots per inch to _n_u_m.
  305.  
  306.      -Z   Causes bitmapped fonts to be compressed before they are downloaded,
  307.           thereby reducing the size of the PostScript font-downloading infor-
  308.           mation.  Especially useful at high resolutions or when very large
  309.           fonts are used.  Will slow down printing somewhat, especially on
  310.           early 68000-based PostScript printers.
  311.  
  312.    SEE ALSO
  313.      mf(1), afm2tfm(1), tex(1), latex(1), lpr(1), _d_v_i_p_s._t_e_x.
  314.  
  315.    DIAGNOSTICS
  316.  
  317.    NOTES
  318.      PostScript is a registered trademark of Adobe Systems Incorporated.
  319.  
  320.    AUTHOR
  321.      Tomas Rokicki <rokicki@cs.stanford.edu>; extended to virtual fonts by
  322.      Don Knuth.
  323.  
  324.  
  325.  
  326.  
  327.    TeXware                                                                  5
  328.  
  329.