


DVITODVI(1)                                           DVITODVI(1)


NNAAMMEE
       dvitodvi - rearrange pages in a DVI file

SSYYNNOOPPSSIISS
       ddvviittooddvvii [ --qq ] [ --ii _i_n_f_i_l_e ] [ --oo _o_u_t_f_i_l_e ] [ --ww_w_i_d_t_h ] [
       --hh_h_e_i_g_h_t ] _p_a_g_e_s_p_e_c_s [ _i_n_f_i_l_e [ _o_u_t_f_i_l_e ] ]

DDEESSCCRRIIPPTTIIOONN
       _D_v_i_t_o_d_v_i rearranges pages from a DVI file, creating a  new
       DVI  file.  _D_v_i_t_o_d_v_i can be used to perform a large number
       of  arbitrary  re-arrangements  of  Documents,   including
       arranging  for  printing  2-up, 4-up, booklets, reversing,
       selecting front or back sides of documents, scaling,  etc.

       _p_a_g_e_s_p_e_c_s follow the syntax:

              _p_a_g_e_s_p_e_c_s   _= _[_m_o_d_u_l_o_:_]_[_m_a_g_@_]_s_p_e_c_s

              _s_p_e_c_s       _= _s_p_e_c_[_+_s_p_e_c_s_]_[_,_s_p_e_c_s_]

              _s_p_e_c        _= _[_-_]_p_a_g_e_n_o_[_(_x_o_f_f_,_y_o_f_f_)_]

       _m_o_d_u_l_o  is the number of pages in each block. The value of
       _m_o_d_u_l_o should be greater than 0; the default value  is  1.
       The  optional  _m_a_g parameter adjusts the file's magnifica-
       tion by the magnification specified. The magnification and
       modulo  can  be  specified  in  reverse  order if desired.
       _s_p_e_c_s are the page specifications for the  pages  in  each
       block.  The  value  of  the  _p_a_g_e_n_o in each _s_p_e_c should be
       between 0 (for the first page in the block)  and  _m_o_d_u_l_o-1
       (for the last page in each block) inclusive.  The optional
       dimensions _x_o_f_f and _y_o_f_f shift the page by  the  specified
       (positive)  amount.   _x_o_f_f  and  _y_o_f_f  are in PostScript's
       points, but may be followed by the units ccmm or iinn to  con-
       vert to centimetres or inches, or the flag ww or hh to spec-
       ify as a multiple of the width or height.  If the optional
       minus  sign  is specified, the page is relative to the end
       of the document, instead of the start.

       If page _s_p_e_cs are separated by ++ the pages will be  merged
       into  one  page; if they are separated by  they will be on
       separate pages.  If there is only one page  specification,
       with _p_a_g_e_n_o zero, the _p_a_g_e_n_o may be omitted.

       The  _-_w  option  gives  the  width  which is used by the ww
       dimension specifier, and the _-_h option  gives  the  height
       which  is  used by the hh dimension specifier. These dimen-
       sions are also used (after scaling) to  set  the  clipping
       path for each page.

       Dvitodvi normally prints the page numbers of the pages re-
       arranged; the _-_q option suppresses this.





                                                                1





DVITODVI(1)                                           DVITODVI(1)


EEXXAAMMPPLLEESS
       This section contains some sample re-arrangements. To  put
       two pages on one sheet (of landscaped A3 paper), the page-
       spec to use is:

                             2:0+1(21cm,0)

       To reduce an A3 page to A4 size, the pagespec to use is:

                           700@(-.3in,-.3in)

       To select all of the odd pages in reverse order, use:

                                  2:-0


AAUUTTHHOORR
       Angus Duggan, from dviselect(1), by Chris  Torek,  Univer-
       sity of Maryland

SSEEEE AALLSSOO
       dviconcat(1), dvibook(1), dviselect(1), latex(1), tex(1)
       _M_C_-_T_e_X _U_s_e_r_'_s _G_u_i_d_e
       _T_h_e  _T_e_X_b_o_o_k  _D_v_i_t_o_d_v_i does not adjust some of the parame-
       ters in the postamble. The may be a problem if these  val-
       ues are used to size certain structures in the output con-
       version programs.






























                                                                2


